/* ═══════════════════════════════════════════════════════════
   DESKTOP PRO — Layout & proportion (loads last)
   Fixes structure and oversized decorative elements only.
   Does NOT shrink body copy — readable text stays readable.
   ═══════════════════════════════════════════════════════════ */

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.header-phone svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
  flex-shrink: 0;
}

.header-phone:hover {
  color: var(--teal);
}

.nav-links a.nav-link--featured {
  color: var(--teal) !important;
}

@media (min-width: 1024px) {
  :root {
    --container: min(1180px, 90vw);
    --section-pad: clamp(64px, 6vw, 88px);
    --header-h: 68px;
  }

  /* ─── Cap vw-driven headline blow-up (not body text) ─── */
  h1 {
    font-size: clamp(2.5rem, 3vw, 3.25rem) !important;
    line-height: 1.08 !important;
  }

  h2 {
    font-size: clamp(1.85rem, 2.2vw, 2.35rem) !important;
    line-height: 1.12 !important;
  }

  /* ─── Header ─── */
  .site-header {
    padding-block: 0.7rem !important;
  }

  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--container);
  }

  .nav-logo img {
    height: 34px;
    width: auto;
  }

  .nav-links {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem !important;
    margin-left: auto;
  }

  .nav-links > a:not(.nav-cta):not(.header-phone) {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
  }

  .nav-cta {
    padding: 0.55rem 1.1rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
  }

  .header-phone {
    display: inline-flex;
  }

  .nav-toggle {
    display: none !important;
  }

  .container {
    max-width: var(--container);
    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 3vw, 2rem);
  }

  /* ─── Homepage hero: two-column layout ─── */
  .page-home .hero {
    display: flex !important;
    align-items: center !important;
    min-height: clamp(520px, 72vh, 680px) !important;
    padding: calc(var(--header-h) + 2rem) 0 3.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .page-home .hero-overlay {
    background:
      linear-gradient(
        100deg,
        rgba(5, 10, 18, 0.95) 0%,
        rgba(5, 10, 18, 0.88) 42%,
        rgba(5, 10, 18, 0.45) 58%,
        rgba(5, 10, 18, 0.15) 72%,
        rgba(5, 10, 18, 0.4) 100%
      ) !important;
  }

  .page-home .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    width: 100%;
  }

  .page-home .hero-content {
    max-width: 34rem;
    text-align: left;
    padding: 0 !important;
  }

  .page-home .hero-aside {
    min-height: 280px;
    pointer-events: none;
  }

  .page-home .hero-content h1 {
    font-size: clamp(2.5rem, 3vw, 3.25rem) !important;
    margin-bottom: 1.25rem !important;
  }

  .page-home .hero-content .lead {
    max-width: 32rem;
    font-size: clamp(1.05rem, 1.2vw, 1.15rem) !important;
    line-height: 1.7 !important;
  }

  .page-home .hero-actions {
    margin-top: 2rem !important;
    justify-content: flex-start;
  }

  .page-home .hero-trust {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    justify-content: flex-start;
    gap: 1.25rem 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .page-home .hero-trust-item {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 0.85rem !important;
  }

  /* ─── Section layout ─── */
  .page-home main > section:not(.hero):not(.stats-strip) {
    padding-top: var(--section-pad) !important;
    padding-bottom: var(--section-pad) !important;
  }

  .page-home .section-header {
    margin-bottom: clamp(2rem, 3vw, 2.75rem) !important;
  }

  .page-home .section-header--center h2 {
    max-width: none !important;
  }

  .page-home .section-header--center .lead {
    max-width: 40rem;
    margin-inline: auto !important;
  }

  /* ─── Expertise cards ─── */
  .expertise-section {
    padding: var(--section-pad) 0 !important;
  }

  .expertise-grid {
    gap: 1.15rem;
  }

  .expertise-card {
    min-height: 0;
  }

  .expertise-card-media {
    height: 140px;
  }

  .expertise-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }

  .expertise-icon svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
  }

  /* ─── Stats: clean bar, icons proportional ─── */
  .page-home .stats-strip {
    padding: 0 !important;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
  }

  .page-home .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 !important;
  }

  .page-home .stat-card {
    padding: 2rem 1.75rem !important;
    border-radius: 0 !important;
    border: none !important;
    border-right: 1px solid var(--border) !important;
    background: transparent !important;
    text-align: left;
  }

  .page-home .stat-card:last-child {
    border-right: none !important;
  }

  .page-home .stat-card:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.02) !important;
  }

  .page-home .stat-card-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
    margin-bottom: 0.85rem !important;
  }

  .page-home .stat-card-icon svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
  }

  .page-home .stat-number {
    font-size: clamp(2rem, 2vw, 2.5rem) !important;
  }

  /* ─── Logos row ─── */
  .page-home .logos-section {
    padding: 2rem 0 !important;
  }

  .page-home .hero-aside {
    display: block;
  }

  .page-home .logos-grid {
    gap: 1.15rem;
  }

  /* ─── AI agents: balanced two-column hero ─── */
  .page-home .ai-agents-hero-card {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    gap: 2.5rem;
    padding: 2rem 2.25rem;
    margin-bottom: 1.75rem;
  }

  .page-home .ai-agents-hero-photo {
    min-height: 100%;
  }

  .page-home .ai-agents-hero-photo img {
    min-height: 240px;
  }

  .page-home .ai-agents-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .page-home .agent-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }

  .page-home .agent-icon svg {
    width: 1.15rem !important;
    height: 1.15rem !important;
  }

  .page-home .ai-agents-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  /* ─── CTA strip ─── */
  .page-home .cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.75rem 2rem !important;
  }

  .page-home .cta-strip-actions {
    display: flex;
    gap: 0.85rem;
    flex-shrink: 0;
  }

  /* ─── Bento portfolio ─── */
  .page-home .bento-grid {
    gap: 1.15rem !important;
  }

  .page-home .bento-item--large {
    min-height: 400px !important;
  }

  .page-home .bento-item--wide {
    min-height: 260px !important;
  }

  .page-home .bento-item:hover {
    transform: translateY(-3px) scale(1) !important;
  }

  /* ─── Testimonials: 3-column grid ─── */
  .page-home .testimonial-track {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    transform: none !important;
    gap: 1.15rem;
  }

  .page-home .testimonial-slide {
    min-width: 0 !important;
    padding: 0;
  }

  .page-home .testimonial-card {
    height: 100%;
    padding: 1.75rem 1.5rem !important;
  }

  .page-home .testimonial-card::before {
    font-size: 3.5rem !important;
    opacity: 0.1 !important;
  }

  .page-home .testimonial-quote {
    line-height: 1.65 !important;
    font-style: normal !important;
  }

  .page-home .testimonial-quote::before {
    display: none !important;
  }

  .page-home .testimonial-nav {
    display: none;
  }

  /* ─── How we work ─── */
  .page-home .how-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem !important;
  }

  .page-home .how-step {
    padding: 1.75rem 1.35rem !important;
  }

  .page-home .how-step-num {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* ─── FAQ two-column ─── */
  .page-home .faq-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 1.25rem;
  }

  /* ─── Footer ─── */
  .site-footer .footer-grid {
    gap: 3rem 2rem;
    align-items: start;
  }

  .site-footer .footer-brand {
    max-width: 22rem;
  }

  /* ─── Inner pages ─── */
  body:not(.page-home) .page-hero {
    padding: calc(var(--header-h) + 1rem) 0 2.5rem !important;
  }

  body:not(.page-home) .page-hero-content {
    max-width: 40rem;
    text-align: left;
  }

  body:not(.page-home) .page-hero h1 {
    font-size: clamp(2.25rem, 2.8vw, 2.75rem) !important;
    max-width: 18ch;
  }

  body:not(.page-home) .service-detail-grid {
    gap: 1.75rem;
  }

  body:not(.page-home) .service-detail-img {
    height: 240px;
  }

  /* ─── Site-wide decorative scale caps (icons, not copy) ─── */
  .stat-number {
    font-size: clamp(2rem, 2vw, 2.5rem) !important;
  }

  .how-step-num {
    font-size: 1.5rem !important;
  }

  .ai-agents-hero-visual svg {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
  }

  .agent-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }

  .agent-icon:has(svg) {
    font-size: 0 !important;
  }

  .agent-icon svg {
    width: 1.15rem !important;
    height: 1.15rem !important;
  }

  .agent-icon:not(:has(svg)) {
    font-size: 1.1rem !important;
  }

  .testimonial-card::before {
    font-size: 3.5rem !important;
    opacity: 0.1 !important;
  }
}

/* Expertise: 3+2 centred on medium desktops */
@media (min-width: 1024px) and (max-width: 1399px) {
  .expertise-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }

  .expertise-card:nth-child(1),
  .expertise-card:nth-child(2),
  .expertise-card:nth-child(3) {
    grid-column: span 2;
  }

  .expertise-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .expertise-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (min-width: 1400px) {
  :root {
    --container: min(1200px, 88vw);
  }

  .expertise-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .expertise-card:nth-child(n) {
    grid-column: auto;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .header-phone-num {
    display: none;
  }

  .nav-links {
    gap: 1.15rem !important;
  }
}

@media (max-width: 1023px) {
  .header-phone {
    display: none !important;
  }

  .page-home .hero-layout {
    grid-template-columns: 1fr;
  }

  .page-home .hero-aside {
    display: none;
  }
}
