/*
Theme Name: Fiscala WordPress
Theme URI: https://fiscala.com.mx/
Author: Fiscala
Description: Tema editable de una sola página para Fiscala, con servicios, equipo, clientes y formulario de WhatsApp administrables desde WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fiscala
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:       #f5f5f5;
      --white:    #ffffff;
      --dark:     #242629;
      --dark-80:  rgba(36,38,41,0.8);
      --dark-50:  rgba(36,38,41,0.5);
      --dark-20:  rgba(36,38,41,0.12);
      --accent:   #ad9871;
      --accent-lt:#c4b594;
      --border:   rgba(173,152,113,0.22);
    }

    html { scroll-behavior: smooth; }
    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg);
      color: var(--dark);
      overflow-x: hidden;
    }
    body.menu-open { overflow: hidden; }

    /* ══════════════════════════════════════
       SCROLL ANIMATIONS — base states
    ══════════════════════════════════════ */
    .reveal {
      opacity: 0;
      transform: translateY(36px);
      transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
                  transform 0.75s cubic-bezier(0.16,1,0.3,1);
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-left {
      opacity: 0;
      transform: translateX(-40px);
      transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
                  transform 0.8s cubic-bezier(0.16,1,0.3,1);
    }
    .reveal-left.visible { opacity: 1; transform: translateX(0); }
    .reveal-right {
      opacity: 0;
      transform: translateX(40px);
      transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
                  transform 0.8s cubic-bezier(0.16,1,0.3,1);
    }
    .reveal-right.visible { opacity: 1; transform: translateX(0); }
    .reveal-scale {
      opacity: 0;
      transform: scale(0.94);
      transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                  transform 0.7s cubic-bezier(0.16,1,0.3,1);
    }
    .reveal-scale.visible { opacity: 1; transform: scale(1); }

    /* Stagger delays for children */
    .stagger > *:nth-child(1) { transition-delay: 0s; }
    .stagger > *:nth-child(2) { transition-delay: 0.08s; }
    .stagger > *:nth-child(3) { transition-delay: 0.16s; }
    .stagger > *:nth-child(4) { transition-delay: 0.24s; }
    .stagger > *:nth-child(5) { transition-delay: 0.32s; }
    .stagger > *:nth-child(6) { transition-delay: 0.40s; }
    .stagger > *:nth-child(7) { transition-delay: 0.48s; }

    /* ══════════════════════════════════════
       NAV
    ══════════════════════════════════════ */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 300;
      height: 72px;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 6%;
      background: rgba(255,255,255,0.97);
      border-bottom: 1px solid var(--dark-20);
      backdrop-filter: blur(14px);
      transition: box-shadow 0.3s;
    }
    nav.scrolled { box-shadow: 0 2px 24px rgba(36,38,41,0.08); }

    .nav-logo { display: flex; align-items: center; text-decoration: none; z-index: 301; }
    .nav-logo img { display: block; height: 44px; width: auto; max-width: 190px; object-fit: contain; }
    .nav-logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
    .nav-logo-top { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dark-50); }
    .nav-logo-name { font-family: 'DM Serif Display', serif; font-size: 22px; font-weight: 400; color: var(--dark); letter-spacing: 0.04em; }
    .nav-logo-sub { font-family: 'DM Sans', sans-serif; font-size: 8px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: 1px; }

    .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
    .nav-links a { font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--dark-80); text-decoration: none; transition: color 0.2s; }
    .nav-links a:hover { color: var(--accent); }

    .nav-right { display: flex; align-items: center; gap: 18px; }
    .nav-social { display: flex; gap: 14px; align-items: center; }
    .nav-social a { display: flex; color: var(--dark-50); transition: color 0.2s; }
    .nav-social a:hover { color: var(--accent); }
    .nav-social svg { width: 17px; height: 17px; }
    .nav-sep { width: 1px; height: 20px; background: var(--dark-20); }

    .btn-accent {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 22px;
      background: var(--accent); color: var(--white);
      font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
      text-decoration: none; border: none; cursor: pointer;
      transition: background 0.2s;
    }
    .btn-accent:hover { background: var(--accent-lt); }

    /* ── HAMBURGER BUTTON ── */
    .hamburger {
      display: none;
      flex-direction: column; justify-content: center; align-items: center;
      width: 44px; height: 44px; gap: 0;
      background: none; border: none; cursor: pointer;
      z-index: 301; position: relative;
      padding: 0;
    }
    .hamburger-line {
      display: block;
      width: 22px; height: 1.5px;
      background: var(--dark);
      border-radius: 2px;
      transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                  opacity 0.3s ease,
                  width 0.3s ease;
      position: absolute;
    }
    .hamburger-line:nth-child(1) { transform: translateY(-6px); }
    .hamburger-line:nth-child(2) { transform: translateY(0); width: 16px; margin-left: -3px; }
    .hamburger-line:nth-child(3) { transform: translateY(6px); }

    .hamburger.active .hamburger-line:nth-child(1) { transform: translateY(0) rotate(45deg); width: 22px; }
    .hamburger.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.active .hamburger-line:nth-child(3) { transform: translateY(0) rotate(-45deg); width: 22px; }

    /* ── MOBILE MENU OVERLAY ── */
    .mobile-menu {
      position: fixed; inset: 0; z-index: 200;
      background: var(--dark);
      display: flex; flex-direction: column;
      padding: 0;
      pointer-events: none;
      clip-path: circle(0% at calc(100% - 44px) 36px);
      transition: clip-path 0.65s cubic-bezier(0.16,1,0.3,1);
    }
    .mobile-menu.open {
      pointer-events: all;
      clip-path: circle(150% at calc(100% - 44px) 36px);
    }

    .mobile-menu-inner {
      display: flex; flex-direction: column;
      height: 100%;
      padding: 100px 8% 48px;
      justify-content: space-between;
    }

    .mobile-nav-links { list-style: none; }
    .mobile-nav-links li {
      border-bottom: 1px solid rgba(255,255,255,0.07);
      overflow: hidden;
    }
    .mobile-nav-links li:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
    .mobile-nav-links a {
      display: flex; align-items: center; justify-content: space-between;
      padding: 22px 0;
      font-family: 'DM Serif Display', serif;
      font-size: clamp(28px, 7vw, 44px); font-weight: 400;
      color: rgba(255,255,255,0.85); text-decoration: none;
      transition: color 0.2s;
    }
    .mobile-nav-links a:hover { color: var(--accent); }
    .mobile-nav-links a .arrow {
      font-size: 20px; opacity: 0.3;
      transition: transform 0.3s, opacity 0.2s;
    }
    .mobile-nav-links a:hover .arrow { transform: translateX(6px); opacity: 0.8; }

    /* Stagger animation for menu items */
    .mobile-nav-links li {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1),
                  transform 0.5s cubic-bezier(0.16,1,0.3,1);
    }
    .mobile-menu.open .mobile-nav-links li:nth-child(1) { opacity:1; transform:none; transition-delay:0.15s; }
    .mobile-menu.open .mobile-nav-links li:nth-child(2) { opacity:1; transform:none; transition-delay:0.22s; }
    .mobile-menu.open .mobile-nav-links li:nth-child(3) { opacity:1; transform:none; transition-delay:0.29s; }
    .mobile-menu.open .mobile-nav-links li:nth-child(4) { opacity:1; transform:none; transition-delay:0.36s; }
    .mobile-menu.open .mobile-nav-links li:nth-child(5) { opacity:1; transform:none; transition-delay:0.43s; }

    .mobile-menu-footer {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.5s ease 0.45s, transform 0.5s ease 0.45s;
    }
    .mobile-menu.open .mobile-menu-footer { opacity: 1; transform: none; }

    .mobile-cta {
      display: block;
      padding: 16px 28px;
      background: var(--accent); color: var(--white);
      font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
      text-decoration: none; text-align: center;
      margin-bottom: 28px;
      transition: background 0.2s;
    }
    .mobile-cta:hover { background: var(--accent-lt); }

    .mobile-menu-meta {
      display: flex; align-items: center; justify-content: space-between;
    }
    .mobile-menu-contact {
      font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.4);
      line-height: 1.7;
    }
    .mobile-menu-contact a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; }
    .mobile-social { display: flex; gap: 12px; }
    .mobile-social a {
      width: 38px; height: 38px;
      border: 1px solid rgba(255,255,255,0.15);
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,0.5); text-decoration: none;
      transition: border-color 0.2s, color 0.2s;
    }
    .mobile-social a:hover { border-color: var(--accent); color: var(--accent); }
    .mobile-social svg { width: 16px; height: 16px; }

    /* ══════════════════════════════════════
       HERO
    ══════════════════════════════════════ */
    .hero {
      min-height: 100vh;
      background: var(--dark);
      display: grid; grid-template-columns: 1fr 1fr;
      padding-top: 72px;
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; inset: 0;
      background-image: radial-gradient(circle at 70% 40%, rgba(173,152,113,0.07) 0%, transparent 60%);
      pointer-events: none;
    }

    .hero-left {
      padding: 80px 8% 80px 10%;
      display: flex; flex-direction: column; justify-content: center;
      position: relative; z-index: 1;
    }
    .hero-eyebrow {
      font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 32px;
      display: flex; align-items: center; gap: 14px;
      opacity: 0; transform: translateY(20px);
      animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
    }
    .hero-eyebrow::before { content:''; display:inline-block; width:28px; height:1px; background:var(--accent); }
    .hero-title {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(36px, 4vw, 58px); font-weight: 400;
      color: var(--white); line-height: 1.14; margin-bottom: 28px;
      opacity: 0; transform: translateY(24px);
      animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.35s forwards;
    }
    .hero-title em { font-style: italic; color: var(--accent); }
    .hero-sub {
      font-size: 16px; font-weight: 300; line-height: 1.78;
      color: rgba(255,255,255,0.6); max-width: 400px; margin-bottom: 48px;
      opacity: 0; transform: translateY(20px);
      animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.48s forwards;
    }
    .hero-actions {
      display: flex; gap: 14px; flex-wrap: wrap;
      opacity: 0; transform: translateY(16px);
      animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.6s forwards;
    }
    .hero-stats {
      margin-top: 64px; padding-top: 40px;
      border-top: 1px solid rgba(255,255,255,0.1);
      display: flex; gap: 44px;
      opacity: 0; transform: translateY(16px);
      animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.75s forwards;
    }
    @keyframes heroIn {
      to { opacity: 1; transform: none; }
    }

    .btn-outline-light {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 22px;
      border: 1px solid rgba(255,255,255,0.3);
      color: rgba(255,255,255,0.8);
      font-size: 13px; font-weight: 400; letter-spacing: 0.04em;
      text-decoration: none; transition: border-color 0.2s, color 0.2s;
    }
    .btn-outline-light:hover { border-color: var(--accent); color: var(--accent); }

    .stat-num { font-family: 'DM Serif Display', serif; font-size: 38px; font-weight: 400; color: var(--accent); line-height: 1; }
    .stat-lbl { font-size: 12px; font-weight: 400; letter-spacing: 0.04em; color: rgba(255,255,255,0.4); margin-top: 6px; }

    .hero-right {
      position: relative; z-index: 1;
      display: flex; align-items: stretch;
      opacity: 0; animation: heroIn 1.1s cubic-bezier(0.16,1,0.3,1) 0.4s forwards;
    }
    .hero-img-placeholder {
      flex: 1;
      min-height: 480px;
      border-left: 1px solid rgba(255,255,255,0.07);
      background-image: linear-gradient(rgba(36,38,41,0.18), rgba(36,38,41,0.38)), url('assets/images/Hero-image.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .contact-bar {
      background: var(--accent);
      display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0;
    }
    .contact-bar-item {
      display: flex; align-items: center; gap: 9px;
      padding: 14px 28px;
      font-size: 13px; font-weight: 500; color: var(--white);
      text-decoration: none;
      border-right: 1px solid rgba(255,255,255,0.25);
      transition: background 0.2s;
    }
    .contact-bar-item:last-child { border-right: none; }
    .contact-bar-item:hover { background: rgba(255,255,255,0.1); }
    .contact-bar-item svg { width: 15px; height: 15px; stroke: var(--white); fill: none; stroke-width: 1.8; flex-shrink: 0; }

    /* ══════════════════════════════════════
       ABOUT
    ══════════════════════════════════════ */
    .about { background: var(--white); padding: 96px 10%; }
    .two-col { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: center; }

    .eyebrow {
      font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 18px;
      display: flex; align-items: center; gap: 12px;
    }
    .eyebrow::before { content:''; display:inline-block; width:22px; height:1px; background:var(--accent); }

    .section-title {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(28px, 3vw, 42px); font-weight: 400; line-height: 1.18; color: var(--dark);
    }
    .section-title em { font-style: italic; color: var(--accent); }

    .body-text { font-size: 15px; font-weight: 300; line-height: 1.82; color: var(--dark-80); }
    .body-text + .body-text { margin-top: 18px; }

    .about-img-placeholder {
      width: 100%; aspect-ratio: 4/3;
      background: var(--bg); border: 1px solid var(--dark-20);
      overflow: hidden;
      display: flex; align-items: center; justify-content: center;
    }
    .about-img-placeholder img {
      width: 100%; height: 100%;
      display: block;
      object-fit: cover;
      object-position: center;
    }

    .pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
    .pillar { padding: 22px 20px; background: var(--bg); border-left: 2px solid var(--accent); }
    .pillar-name { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 5px; }
    .pillar-text { font-size: 12px; font-weight: 300; color: var(--dark-80); line-height: 1.65; }

    /* ══════════════════════════════════════
       SERVICES
    ══════════════════════════════════════ */
    .services { background: var(--bg); padding: 96px 10%; }
    .section-header { margin-bottom: 60px; }
    .section-header .section-title { margin-top: 14px; }
    .section-header .section-desc { font-size: 15px; font-weight: 300; color: var(--dark-80); margin-top: 16px; max-width: 520px; line-height: 1.75; }

    .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--dark-20); }
    .svc-card {
      padding: 36px 32px;
      border-right: 1px solid var(--dark-20); border-bottom: 1px solid var(--dark-20);
      background: var(--white);
      transition: background 0.3s; cursor: default;
    }
    .svc-card:nth-child(3n) { border-right: none; }
    .svc-card:nth-last-child(-n+3) { border-bottom: none; }
    .svc-card:hover { background: var(--dark); }
    .svc-card:hover .svc-icon { border-color: rgba(173,152,113,0.4); background: rgba(173,152,113,0.1); }
    .svc-card:hover .svc-icon svg { stroke: var(--accent); }
    .svc-card:hover .svc-name { color: var(--white); }
    .svc-card:hover .svc-text { color: rgba(255,255,255,0.5); }
    .svc-icon {
      width: 44px; height: 44px; border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
      transition: all 0.3s;
    }
    .svc-icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.5; transition: stroke 0.3s; }
    .svc-name { font-family: 'DM Serif Display', serif; font-size: 18px; font-weight: 400; color: var(--dark); margin-bottom: 12px; line-height: 1.25; transition: color 0.3s; }
    .svc-text { font-size: 13px; font-weight: 300; line-height: 1.75; color: var(--dark-80); transition: color 0.3s; }

    /* ══════════════════════════════════════
       PROCESS
    ══════════════════════════════════════ */
    .process { background: var(--white); padding: 96px 10%; }
    .process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
    .process-card {
      position: relative;
      padding: 34px 30px;
      background: var(--bg);
      border: 1px solid var(--dark-20);
      overflow: hidden;
      transition: transform 0.25s, border-color 0.25s, background 0.25s;
    }
    .process-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--white); }
    .process-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s;
    }
    .process-card:hover::before { transform: scaleX(1); }
    .process-num {
      font-family: 'DM Serif Display', serif;
      font-size: 42px;
      line-height: 1;
      color: rgba(173,152,113,0.38);
      margin-bottom: 22px;
    }
    .process-title {
      font-family: 'DM Serif Display', serif;
      font-size: 22px;
      font-weight: 400;
      color: var(--dark);
      margin-bottom: 12px;
      line-height: 1.2;
    }
    .process-text { font-size: 14px; font-weight: 300; line-height: 1.78; color: var(--dark-80); }


    /* ══════════════════════════════════════
       TEAM
    ══════════════════════════════════════ */
    .team { background: var(--white); padding: 96px 10%; }
    .team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
    .team-img-card {
      background: var(--bg); border: 1px solid var(--dark-20); aspect-ratio: 3/4;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 12px; color: var(--dark-50);
      font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
      overflow: hidden;
    }
    .team-img-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .team-img-label { margin-top: 16px; font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--dark); }
    .team-img-role { font-size: 12px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }

    /* ══════════════════════════════════════
       WHY
    ══════════════════════════════════════ */
    .why { background: var(--dark); padding: 96px 10%; }
    .why .section-title { color: var(--white); margin-top: 14px; }
    .why .section-desc { color: rgba(255,255,255,0.5); margin-top: 16px; max-width: 520px; font-size: 15px; font-weight: 300; line-height: 1.75; }
    .why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,0.07); margin-top: 60px; }
    .why-card { padding: 36px 32px; background: var(--dark); transition: background 0.25s; }
    .why-card:hover { background: #2e3136; }
    .why-card-accent { width: 32px; height: 2px; background: var(--accent); margin-bottom: 24px; }
    .why-card-title { font-family: 'DM Serif Display', serif; font-size: 20px; font-weight: 400; color: var(--white); margin-bottom: 14px; line-height: 1.25; }
    .why-card-text { font-size: 14px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.5); }

    /* ══════════════════════════════════════
       CTA BAND
    ══════════════════════════════════════ */
    .cta-band {
      background: var(--accent); padding: 72px 10%;
      display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
    }
    .cta-band h2 { font-family: 'DM Serif Display', serif; font-size: clamp(24px, 2.8vw, 38px); font-weight: 400; color: var(--white); line-height: 1.2; }
    .cta-band p { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.75); margin-top: 10px; }
    .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
    .btn-white {
      display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px;
      background: var(--white); color: var(--dark);
      font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-decoration: none;
      transition: background 0.2s;
    }
    .btn-white:hover { background: var(--bg); }
    .btn-outline-white {
      display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px;
      border: 1px solid rgba(255,255,255,0.6); color: var(--white);
      font-size: 13px; font-weight: 400; letter-spacing: 0.04em; text-decoration: none;
      transition: border-color 0.2s, background 0.2s;
    }
    .btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

    /* ══════════════════════════════════════
       CONTACT
    ══════════════════════════════════════ */
    .contact { background: var(--bg); padding: 96px 10%; }
    .contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; }
    .contact-detail { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--dark-20); }
    .contact-detail:last-child { border-bottom: none; }
    .cd-icon { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
    .cd-icon svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
    .cd-lbl { font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dark-50); margin-bottom: 4px; }
    .cd-val { font-size: 15px; font-weight: 400; color: var(--dark); }
    .cd-val a { color: var(--dark); text-decoration: none; }
    .cd-val a:hover { color: var(--accent); }
    .contact-social { display: flex; gap: 12px; margin-top: 28px; }
    .social-btn {
      display: flex; align-items: center; gap: 8px; padding: 10px 18px;
      border: 1px solid var(--dark-20);
      font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
      color: var(--dark-80); text-decoration: none; transition: border-color 0.2s, color 0.2s;
    }
    .social-btn:hover { border-color: var(--accent); color: var(--accent); }
    .social-btn svg { width: 16px; height: 16px; }

    .contact-form { background: var(--white); border: 1px solid var(--dark-20); padding: 40px; }
    .contact-form h3 { font-family: 'DM Serif Display', serif; font-size: 24px; font-weight: 400; color: var(--dark); margin-bottom: 28px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-group { margin-bottom: 18px; }
    .form-group label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dark-50); margin-bottom: 8px; }
    .form-group input, .form-group select, .form-group textarea {
      width: 100%; padding: 11px 14px;
      border: 1px solid var(--dark-20); background: var(--bg);
      font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300; color: var(--dark);
      outline: none; transition: border-color 0.2s;
    }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); background: var(--white); }
    .form-group textarea { resize: vertical; min-height: 110px; }
    .btn-submit {
      width: 100%; padding: 13px;
      background: var(--dark); color: var(--white);
      font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
      border: none; cursor: pointer; transition: background 0.2s;
    }
    .btn-submit:hover { background: #2e3136; }

    /* ══════════════════════════════════════
       FOOTER
    ══════════════════════════════════════ */
    footer { background: #1a1c1f; padding: 64px 10% 32px; }
    .footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .footer-logo-img { display: block; width: 210px; max-width: 100%; height: auto; margin-bottom: 18px; }
    .footer-brand-text { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.4); line-height: 1.8; max-width: 260px; }
    .footer-social { display: flex; gap: 10px; margin-top: 24px; }
    .footer-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
    .footer-social a:hover { border-color: var(--accent); color: var(--accent); }
    .footer-social svg { width: 16px; height: 16px; }
    .footer-col-title { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 10px; }
    .footer-links a { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
    .footer-links a:hover { color: var(--accent); }
    .footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; font-size: 11px; color: rgba(255,255,255,0.25); flex-wrap: wrap; gap: 8px; }
    .footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
    .footer-bottom a:hover { color: var(--accent); }

    /* ══════════════════════════════════════
       RESPONSIVE
    ══════════════════════════════════════ */
    @media (max-width: 1024px) {
      .services-grid { grid-template-columns: 1fr 1fr; }
      .svc-card:nth-child(3n) { border-right: 1px solid var(--dark-20); }
      .svc-card:nth-child(2n) { border-right: none; }
      .why-grid { grid-template-columns: 1fr; }
      .footer-top { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 768px) {
      nav { padding: 0 5%; }
      .nav-logo img { height: 38px; max-width: 158px; }
      .nav-links { display: none; }
      .nav-social { display: none; }
      .nav-sep { display: none; }
      .btn-accent.nav-cta-btn { display: none; }
      .hamburger { display: flex; }

      .hero { grid-template-columns: 1fr; min-height: auto; }
      .hero-right { display: none; }
      .hero-left { padding: 60px 5% 100px; }
      .hero-stats { gap: 28px; }

      .contact-bar { justify-content: flex-start; overflow-x: auto; }
      .contact-bar-item { white-space: nowrap; padding: 12px 20px; font-size: 12px; }

      .about { padding: 64px 5%; }
      .two-col { grid-template-columns: 1fr; gap: 40px; }
      .pillars { grid-template-columns: 1fr; }

      .services { padding: 64px 5%; }
      .services-grid { grid-template-columns: 1fr; }
      .svc-card { border-right: none !important; }
      .svc-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--dark-20); }
      .svc-card:last-child { border-bottom: none; }

      .process { padding: 64px 5%; }
      .process-grid { grid-template-columns: 1fr; gap: 18px; }

      .team { padding: 64px 5%; }
      .team-grid { grid-template-columns: 1fr; }

      .why { padding: 64px 5%; }
      .why-grid { grid-template-columns: 1fr; }

      .cta-band { flex-direction: column; padding: 56px 5%; }

      .contact { padding: 64px 5%; }
      .contact-grid { grid-template-columns: 1fr; gap: 40px; }
      .form-row { grid-template-columns: 1fr; }

      footer { padding: 56px 5% 28px; }
      .footer-top { grid-template-columns: 1fr; gap: 32px; }
    }

    /* ══════════════════════════════════════
       CLIENTS MARQUEE
    ══════════════════════════════════════ */
    .clients {
      background: var(--white);
      padding: 80px 0;
      overflow: hidden;
    }
    .clients-header {
      text-align: center;
      padding: 0 10% 56px;
    }
    .clients-header .eyebrow { justify-content: center; }
    .clients-header .eyebrow::before { display: none; }
    .clients-header .section-title { margin-top: 14px; }

    /* Track wrapper — clips the scrolling content */
    .marquee-wrapper {
      position: relative;
      width: 100%;
      overflow: hidden;
    }
    /* Fade edges */
    .marquee-wrapper::before,
    .marquee-wrapper::after {
      content: '';
      position: absolute; top: 0; bottom: 0; z-index: 2; width: 120px;
      pointer-events: none;
    }
    .marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
    .marquee-wrapper::after  { right: 0; background: linear-gradient(to left,  var(--white), transparent); }

    /* The scrolling track — duplicated for seamless loop */
    .marquee-track {
      display: flex;
      width: max-content;
      animation: marqueeScroll 32s linear infinite;
    }
    .marquee-track:hover { animation-play-state: paused; }

    @keyframes marqueeScroll {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    /* Second row — reverse direction */
    .marquee-track.reverse {
      animation-direction: reverse;
      animation-duration: 38s;
      margin-top: 24px;
    }

    /* Individual logo card */
    .client-card {
      flex-shrink: 0;
      width: 200px; height: 112px;
      margin: 0 12px;
      background: var(--white);
      border: 1px solid var(--dark-20);
      display: flex;
      align-items: center; justify-content: center;
      padding: 14px 16px;
      transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
      cursor: default;
    }
    .client-card:hover {
      border-color: var(--accent);
      background: var(--white);
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(36,38,41,0.08);
    }
    .client-logo {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      filter: saturate(0.98) contrast(1.02);
    }

    @media (prefers-reduced-motion: reduce) {
      .reveal, .reveal-left, .reveal-right, .reveal-scale,
      .hero-eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-stats, .hero-right { animation: none; opacity: 1; transform: none; }
      .marquee-track { animation: none; }
    }

/* WordPress integration */
body.admin-bar nav { top: 32px; }
.wp-site-content { min-height: 60vh; padding: 130px 6% 80px; max-width: 1120px; margin: 0 auto; }
.wp-site-content h1, .wp-site-content h2, .wp-site-content h3 { font-family: 'DM Serif Display', serif; margin-bottom: 18px; }
.wp-site-content p { line-height: 1.75; margin-bottom: 16px; }
.wp-site-content a { color: var(--accent); }
.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 782px) { body.admin-bar nav { top: 46px; } }

