/* ═══════════════════════════════════════════════════
   SMALL FARE® — PROFESSIONAL DESIGN SYSTEM v3
   Clean · Responsive · Dual-Theme
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@400;500;600&display=swap');

/* ─── LIGHT THEME (DEFAULT) ────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #F8F9FC;
  --bg-surface:  #FFFFFF;
  --bg-card:     #FFFFFF;
  --bg-subtle:   #EEF1F8;
  --bg-nav:      rgba(248,249,252,0.85);

  /* Text */
  --tx:          #0C1220;
  --tx-2:        #4B5572;
  --tx-3:        #9AA3BE;
  --tx-inv:      #FFFFFF;

  /* Brand Accent — Deep Indigo */
  --a:           #3B5BDB;
  --a-h:         #2F4AC5;
  --a-soft:      rgba(59,91,219,0.08);
  --a-mid:       rgba(59,91,219,0.18);
  --a-glow:      0 8px 32px rgba(59,91,219,0.22);

  /* Secondary — Cyan */
  --c:           #0EA5E9;
  --c-soft:      rgba(14,165,233,0.08);
  --c-mid:       rgba(14,165,233,0.18);

  /* Accent — Amber */
  --am:          #F59E0B;
  --am-soft:     rgba(245,158,11,0.09);
  --am-mid:      rgba(245,158,11,0.20);

  /* Emerald */
  --em:          #10B981;
  --em-soft:     rgba(16,185,129,0.09);

  /* Violet */
  --vi:          #8B5CF6;
  --vi-soft:     rgba(139,92,246,0.09);

  /* Rose */
  --ro:          #F43F5E;
  --ro-soft:     rgba(244,63,94,0.09);

  /* Structure */
  --bd:          rgba(0,0,0,0.07);
  --bd-a:        rgba(59,91,219,0.18);
  --divider:     #E5E9F4;

  /* Shadows */
  --sh-xs:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sh-sm:  0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --sh-md:  0 6px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.05);
  --sh-lg:  0 16px 48px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --sh-xl:  0 24px 64px rgba(0,0,0,0.12);

  /* Radius */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  40px;
  --r-pill: 999px;

  /* Type */
  --ff-head:  'Plus Jakarta Sans', sans-serif;
  --ff-body:  'Inter', sans-serif;

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --t:        all 0.25s var(--ease);
  --t-slow:   all 0.45s var(--ease);

  color-scheme: light;
}

/* ─── DARK THEME ────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #070C17;
  --bg-surface:  #0C1427;
  --bg-card:     #101C32;
  --bg-subtle:   #0E1829;
  --bg-nav:      rgba(7,12,23,0.88);

  --tx:          #ECF0FF;
  --tx-2:        #7B8DB5;
  --tx-3:        #3E506E;
  --tx-inv:      #070C17;

  --a:           #748FFC;
  --a-h:         #91A7FF;
  --a-soft:      rgba(116,143,252,0.10);
  --a-mid:       rgba(116,143,252,0.22);
  --a-glow:      0 8px 32px rgba(116,143,252,0.20);

  --c:           #38BDF8;
  --c-soft:      rgba(56,189,248,0.09);
  --c-mid:       rgba(56,189,248,0.20);

  --am:          #FCD34D;
  --am-soft:     rgba(252,211,77,0.10);
  --am-mid:      rgba(252,211,77,0.22);

  --em:          #34D399;
  --em-soft:     rgba(52,211,153,0.10);

  --vi:          #A78BFA;
  --vi-soft:     rgba(167,139,250,0.10);

  --ro:          #FB7185;
  --ro-soft:     rgba(251,113,133,0.10);

  --bd:          rgba(255,255,255,0.06);
  --bd-a:        rgba(116,143,252,0.22);
  --divider:     rgba(255,255,255,0.06);

  --sh-xs:  0 1px 3px rgba(0,0,0,0.35);
  --sh-sm:  0 2px 10px rgba(0,0,0,0.40);
  --sh-md:  0 6px 28px rgba(0,0,0,0.45);
  --sh-lg:  0 16px 50px rgba(0,0,0,0.55);
  --sh-xl:  0 24px 72px rgba(0,0,0,0.60);

  color-scheme: dark;
}

/* ─── RESET ─────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; tab-size:4; }
body {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--tx);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
a  { color:inherit; text-decoration:none; }
img,svg { display:block; max-width:100%; }
ul  { list-style:none; }
button,input,textarea,select { font-family:inherit; }

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--a); border-radius:3px; }
::selection { background:var(--a-soft); color:var(--a); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--tx);
}

.t-display { font-size: clamp(2.6rem, 5.5vw, 5rem);  font-weight: 800; letter-spacing: -0.03em; }
.t-h1      { font-size: clamp(2rem,   4vw,   3.6rem); font-weight: 800; letter-spacing: -0.025em; }
.t-h2      { font-size: clamp(1.65rem, 3vw,  2.5rem); font-weight: 700; }
.t-h3      { font-size: clamp(1.2rem,  2vw,  1.55rem); font-weight: 700; }
.t-h4      { font-size: 1.05rem; font-weight: 600; }
.t-body    { font-size: 0.9375rem; line-height: 1.72; }
.t-sm      { font-size: 0.875rem; }
.t-xs      { font-size: 0.8rem; }
.t-2xs     { font-size: 0.72rem; letter-spacing: 0.06em; }

.tc  { text-align:center; }
.c-a  { color:var(--a); }
.c-am { color:var(--am); }
.c-c  { color:var(--c); }
.c-em { color:var(--em); }
.c-2  { color:var(--tx-2); }
.c-3  { color:var(--tx-3); }

/* Gradient text */
.gt {
  background: linear-gradient(130deg, var(--a) 0%, var(--c) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gt-gold {
  background: linear-gradient(130deg, var(--am) 0%, var(--ro) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gt-em {
  background: linear-gradient(130deg, var(--em) 0%, var(--c) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.wrap    { max-width:1200px; margin:0 auto; padding:0 1.5rem; }
.wrap-sm { max-width:860px;  margin:0 auto; padding:0 1.5rem; }
.wrap-lg { max-width:1360px; margin:0 auto; padding:0 2rem; }

.sec    { padding:5.5rem 0; }
.sec-sm { padding:3.5rem 0; }
.sec-lg { padding:8rem 0; }

/* ─── EYEBROW LABELS ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a);
  background: var(--a-soft);
  border: 1px solid var(--bd-a);
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.9rem;
}
.eyebrow i { width:12px; height:12px; }
.eyebrow.gold  { color:var(--am); background:var(--am-soft); border-color:var(--am-mid); }
.eyebrow.teal  { color:var(--c);  background:var(--c-soft);  border-color:var(--c-mid);  }
.eyebrow.green { color:var(--em); background:var(--em-soft); border-color:rgba(16,185,129,0.22); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items:center; justify-content:center; gap:0.45rem;
  font-family: var(--ff-head); font-size:0.875rem; font-weight:600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn i { width:15px; height:15px; flex-shrink:0; }
.btn-sm  { font-size:0.8rem;  padding:0.5rem 1.1rem; }
.btn-lg  { font-size:0.9375rem; padding:0.75rem 1.85rem; }
.btn-xl  { font-size:1rem;    padding:0.875rem 2.2rem; }

.btn-pri {
  background:var(--a); color:#fff; border-color:var(--a);
  box-shadow: var(--a-glow);
}
.btn-pri:hover { background:var(--a-h); transform:translateY(-2px); box-shadow:0 12px 36px rgba(59,91,219,0.30); }
[data-theme="dark"] .btn-pri:hover { box-shadow:0 12px 36px rgba(116,143,252,0.28); }

.btn-out {
  background:transparent; color:var(--a);
  border-color: var(--bd-a);
}
.btn-out:hover { background:var(--a-soft); border-color:var(--a); }

.btn-surf {
  background:var(--bg-card); color:var(--tx);
  border-color:var(--bd);
  box-shadow: var(--sh-sm);
}
.btn-surf:hover { border-color:var(--bd-a); box-shadow:var(--sh-md); }

.btn-gold { background:var(--am); color:#fff; border-color:var(--am); }
.btn-gold:hover { opacity:0.88; transform:translateY(-2px); }

.btn-ghost { background:transparent; color:var(--tx-2); border-color:transparent; }
.btn-ghost:hover { color:var(--a); background:var(--a-soft); }

/* Icon button */
.btn-icon {
  width:38px; height:38px; padding:0;
  background:var(--bg-card); border:1px solid var(--bd);
  border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--tx-2);
  transition:var(--t);
  cursor:pointer;
}
.btn-icon:hover { border-color:var(--bd-a); color:var(--a); background:var(--a-soft); }
.btn-icon i { width:16px; height:16px; }
.btn-icon.sm { width:32px; height:32px; }
.btn-icon.sm i { width:14px; height:14px; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background:var(--bg-card);
  border:1px solid var(--bd);
  border-radius:var(--r-lg);
  box-shadow:var(--sh-sm);
  transition:var(--t);
}
.card:hover { box-shadow:var(--sh-lg); border-color:var(--bd-a); transform:translateY(-3px); }

.card-surface {
  background:var(--bg-surface);
  border:1px solid var(--bd);
  border-radius:var(--r-md);
}

/* ─── ICON BOX ───────────────────────────────────────────── */
.ibox {
  width:46px; height:46px;
  border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  background:var(--a-soft); border:1px solid var(--bd-a); color:var(--a);
  transition:var(--t);
}
.ibox i { width:20px; height:20px; }
.ibox.lg { width:56px; height:56px; border-radius:var(--r-md); }
.ibox.lg i { width:24px; height:24px; }
.ibox.xl { width:66px; height:66px; border-radius:var(--r-md); }
.ibox.xl i { width:28px; height:28px; }
.ibox.round { border-radius:50%; }
.ibox.gold  { background:var(--am-soft); border-color:var(--am-mid); color:var(--am); }
.ibox.teal  { background:var(--c-soft);  border-color:var(--c-mid);  color:var(--c);  }
.ibox.green { background:var(--em-soft); border-color:rgba(16,185,129,0.2); color:var(--em); }
.ibox.vi    { background:var(--vi-soft); border-color:rgba(139,92,246,0.2); color:var(--vi); }
.ibox.ro    { background:var(--ro-soft); border-color:rgba(244,63,94,0.2);  color:var(--ro); }

/* ─── BADGES ─────────────────────────────────────────────── */
.tag {
  display:inline-flex; align-items:center; gap:0.3rem;
  font-family:var(--ff-head); font-size:0.7rem; font-weight:700;
  letter-spacing:0.07em; text-transform:uppercase;
  padding:0.22rem 0.65rem;
  border-radius:var(--r-pill);
  border:1px solid transparent;
  white-space:nowrap;
}
.tag i { width:10px; height:10px; }
.tag-a    { background:var(--a-soft);  color:var(--a);  border-color:var(--bd-a); }
.tag-gold { background:var(--am-soft); color:var(--am); border-color:var(--am-mid); }
.tag-teal { background:var(--c-soft);  color:var(--c);  border-color:var(--c-mid); }
.tag-em   { background:var(--em-soft); color:var(--em); border-color:rgba(16,185,129,0.2); }
.tag-vi   { background:var(--vi-soft); color:var(--vi); border-color:rgba(139,92,246,0.2); }
.tag-ro   { background:var(--ro-soft); color:var(--ro); border-color:rgba(244,63,94,0.2); }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:1rem 0;
  transition: var(--t);
}
.nav.stuck {
  background:var(--bg-nav);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--bd);
  padding:0.6rem 0;
  box-shadow:var(--sh-xs);
}
.nav-inner {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
/* Site Logo */
.site-logo {
  display:flex; align-items:center;
  flex-shrink:0;
  text-decoration:none;
  transition:var(--t);
}
.site-logo:hover { opacity:0.85; }
.site-logo img {
  height:26px; width:auto;
  display:block;
}
/* logo visibility handled by JS src-swap only */




/* Nav links */
.nav-menu {
  display:flex; align-items:center; gap:0.15rem;
  flex:1; justify-content:center;
}
.nav-menu a {
  font-family:var(--ff-head); font-size:0.875rem; font-weight:500;
  color:var(--tx-2); padding:0.42rem 0.9rem;
  border-radius:var(--r-pill);
  transition:var(--t);
}
.nav-menu a:hover { color:var(--tx); background:var(--bd); }
.nav-menu a.on   { color:var(--a);  background:var(--a-soft); font-weight:600; }

/* Nav right */
.nav-right { display:flex; align-items:center; gap:0.5rem; }

/* Theme toggle */
.theme-toggle {
  width:36px; height:36px;
  background:var(--bg-card); border:1px solid var(--bd);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--tx-2); cursor:pointer;
  transition:var(--t);
}
.theme-toggle:hover { border-color:var(--bd-a); color:var(--a); background:var(--a-soft); }
.theme-toggle .i-sun  { display:block;  width:16px; height:16px; }
.theme-toggle .i-moon { display:none;   width:16px; height:16px; }
[data-theme="dark"] .theme-toggle .i-sun  { display:none; }
[data-theme="dark"] .theme-toggle .i-moon { display:block; }

/* Hamburger */
.nav-ham {
  display:none; width:38px; height:38px;
  background:var(--bg-card); border:1px solid var(--bd);
  border-radius:var(--r-sm);
  align-items:center; justify-content:center;
  color:var(--tx); cursor:pointer;
  transition:var(--t);
}
.nav-ham:hover { border-color:var(--bd-a); color:var(--a); }

/* Mobile nav overlay */
.nav-overlay {
  display:none; position:fixed; inset:0; z-index:999;
  background:var(--bg);
  flex-direction:column; align-items:center; justify-content:center;
  gap:0.35rem;
}
.nav-overlay.open { display:flex; }
.nav-overlay a {
  font-family:var(--ff-head); font-size:1.5rem; font-weight:700;
  color:var(--tx-2); padding:0.6rem 2.5rem;
  border-radius:var(--r-md); width:100%; max-width:280px; text-align:center;
  transition:var(--t);
}
.nav-overlay a:hover { background:var(--a-soft); color:var(--a); }
.nav-overlay-close {
  position:absolute; top:1.25rem; right:1.25rem;
  width:40px; height:40px; background:var(--bg-surface);
  border:1px solid var(--bd); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--tx-2); cursor:pointer; transition:var(--t);
}
.nav-overlay-close:hover { color:var(--a); border-color:var(--bd-a); }
.nav-overlay-foot {
  position:absolute; bottom:2rem;
  display:flex; align-items:center; gap:0.75rem;
}
.nav-overlay-foot a {
  color:#F8F9FC;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height:100svh; display:flex; align-items:center;
  position:relative; overflow:hidden;
  padding-top:5.5rem;
}
.hero-noise {
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.4;
}
.hero-bg-glow {
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(ellipse 70% 55% at 70% 10%, var(--a-soft) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 10% 85%, var(--c-soft)  0%, transparent 65%);
}
[data-theme="dark"] .hero-bg-glow {
  background:
    radial-gradient(ellipse 70% 55% at 70% 10%, rgba(116,143,252,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 10% 85%, rgba(56,189,248,0.07) 0%, transparent 65%);
}
.hero-grid-lines {
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(var(--bd) 1px, transparent 1px),
    linear-gradient(90deg, var(--bd) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse 80% 70% at 60% 40%, black 0%, transparent 100%);
}
.hero-wrap {
  position:relative; z-index:1;
  display:grid; grid-template-columns:1fr 1fr;
  gap:3rem; align-items:center;
}
.hero-text { max-width:580px; }
.hero-kicker {
  display:inline-flex; align-items:center; gap:0.45rem;
  font-family:var(--ff-head); font-size:0.72rem; font-weight:700;
  letter-spacing:0.1em; text-transform:uppercase;
  color:var(--am); background:var(--am-soft);
  border:1px solid var(--am-mid);
  padding:0.3rem 0.85rem; border-radius:var(--r-pill);
  margin-bottom:1.5rem;
}
.hero-kicker i { width:12px; height:12px; }
.hero-h1 {
  font-family:var(--ff-head); font-weight:800;
  font-size:clamp(2.5rem, 5.2vw, 4.8rem);
  line-height:1.06; letter-spacing:-0.03em;
  margin-bottom:1.35rem;
}
.hero-sub {
  font-size:clamp(0.9rem, 1.5vw, 1.05rem);
  color:var(--tx-2); line-height:1.78;
  max-width:480px; margin-bottom:2.25rem;
}
.hero-btns { display:flex; flex-wrap:wrap; gap:0.75rem; }
.hero-stats {
  display:flex; gap:2.5rem; flex-wrap:wrap;
  padding-top:2rem; margin-top:2rem;
  border-top:1px solid var(--divider);
}
.hs-val {
  font-family:var(--ff-head); font-size:1.8rem; font-weight:800;
  color:var(--a); line-height:1;
}
.hs-lbl { font-size:0.775rem; color:var(--tx-3); margin-top:0.2rem; }
.hero-visual {
  display:flex; align-items:center; justify-content:flex-end;
}

/* ─── STATS STRIP ────────────────────────────────────────── */
.strip {
  background:var(--bg-surface);
  border-top:1px solid var(--bd);
  border-bottom:1px solid var(--bd);
}
.strip-inner {
  display:grid; grid-template-columns:repeat(4,1fr);
}
.strip-cell {
  padding:2rem 1.5rem; text-align:center;
  border-right:1px solid var(--bd);
  transition:var(--t);
}
.strip-cell:last-child { border-right:none; }
.strip-cell:hover { background:var(--a-soft); }
.strip-num {
  font-family:var(--ff-head); font-size:2.2rem; font-weight:800;
  line-height:1; margin-bottom:0.35rem;
}
.strip-lbl { font-size:0.8rem; color:var(--tx-3); }

/* ─── SECTION HEADER ─────────────────────────────────────── */
.sec-hd { max-width:600px; }
.sec-hd.tc { margin:0 auto; }
.sec-hd p { margin-top:0.75rem; color:var(--tx-2); font-size:0.9375rem; line-height:1.72; }

/* ─── SERVICES GRID ──────────────────────────────────────── */
.svc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; }
.svc-card {
  background:var(--bg-surface);
  border:1px solid var(--bd);
  border-radius:var(--r-lg);
  padding:2rem;
  position:relative; overflow:hidden;
  transition:var(--t);
  box-shadow:var(--sh-xs);
}
.svc-card::after {
  content:'';
  position:absolute; bottom:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, var(--a), var(--c));
  transform:scaleX(0); transform-origin:left;
  transition:transform 0.38s var(--ease);
}
.svc-card:hover { border-color:var(--bd-a); transform:translateY(-4px); box-shadow:var(--sh-lg); }
.svc-card:hover::after { transform:scaleX(1); }
.svc-n {
  font-family:var(--ff-head); font-size:0.68rem; font-weight:700;
  letter-spacing:0.1em; color:var(--tx-3); margin-bottom:1rem;
}
.svc-card h3 { font-size:1rem; margin-bottom:0.55rem; }
.svc-card p  { font-size:0.855rem; color:var(--tx-2); line-height:1.7; }
.svc-more {
  display:inline-flex; align-items:center; gap:0.3rem;
  font-family:var(--ff-head); font-size:0.8rem; font-weight:600;
  color:var(--a); margin-top:1.1rem;
  transition:var(--t);
}
.svc-more i { width:13px; height:13px; transition:transform 0.2s; }
.svc-more:hover i { transform:translateX(4px); }

/* ─── BRAND PORTFOLIO ────────────────────────────────────── */
.brand-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.25rem; }
.bc {
  background:var(--bg-surface);
  border:1px solid var(--bd);
  border-radius:var(--r-xl);
  padding:2rem 2.25rem;
  transition:var(--t);
  position:relative; overflow:hidden;
  box-shadow:var(--sh-xs);
  display:block; text-decoration:none; color:inherit;
}
.bc:hover { border-color:var(--bd-a); transform:translateY(-4px); box-shadow:var(--sh-lg); }
.bc-bar {
  position:absolute; top:0; left:0; right:0; height:3px;
  transform:scaleX(0); transform-origin:left;
  transition:transform 0.38s var(--ease);
}
.bc:hover .bc-bar { transform:scaleX(1); }
.bc-logo-wrap {
  height:38px; margin-bottom:1.25rem;
  display:flex; align-items:center;
}
.bc-logo-wrap img { max-height:34px; width:auto; object-fit:contain; object-position:left center; }
.bc h3  { font-size:1rem; margin-bottom:0.5rem; }
.bc p   { font-size:0.855rem; color:var(--tx-2); line-height:1.68; }
.bc-ft  {
  display:flex; align-items:center; justify-content:space-between;
  margin-top:1.4rem; padding-top:1.1rem;
  border-top:1px solid var(--bd);
}
.bc-link {
  display:inline-flex; align-items:center; gap:0.3rem;
  font-family:var(--ff-head); font-size:0.8rem; font-weight:600;
  color:var(--a); transition:var(--t);
}
.bc-link i { width:13px; height:13px; transition:transform 0.2s; }
.bc:hover .bc-link i { transform:translateX(3px); }

/* ─── ABOUT / SPLIT ──────────────────────────────────────── */
.split { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; }
.feat-stack { display:flex; flex-direction:column; gap:0.8rem; }
.feat-row {
  display:flex; gap:1rem; align-items:flex-start;
  padding:1.1rem 1.25rem;
  background:var(--bg-surface); border:1px solid var(--bd);
  border-radius:var(--r-md); transition:var(--t);
}
.feat-row:hover { border-color:var(--bd-a); transform:translateX(4px); }
.feat-row h4 { font-size:0.9rem; margin-bottom:0.2rem; }
.feat-row p  { font-size:0.835rem; color:var(--tx-2); }

/* ─── WHY US ─────────────────────────────────────────────── */
.why-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; }
.why-row {
  display:flex; gap:1rem; align-items:flex-start;
  padding:1.35rem;
  background:var(--bg-surface); border:1px solid var(--bd);
  border-radius:var(--r-md);
  transition:var(--t);
}
.why-row:hover { border-color:var(--bd-a); box-shadow:var(--sh-sm); }
.why-row h4 { font-size:0.9rem; margin-bottom:0.25rem; }
.why-row p  { font-size:0.835rem; color:var(--tx-2); line-height:1.65; }

/* ─── PROCESS ────────────────────────────────────────────── */
.process-row {
  display:grid; grid-template-columns:repeat(4,1fr);
  position:relative;
}
.process-row::before {
  content:''; position:absolute;
  top:27px; left:calc(12.5% + 12px); right:calc(12.5% + 12px);
  height:1px;
  background:linear-gradient(90deg, var(--a), var(--c));
  opacity:0.35;
}
.ps { text-align:center; padding:0 1.25rem 2rem; }
.ps-n {
  width:54px; height:54px; border-radius:50%;
  background:var(--bg-surface); border:2px solid var(--bd-a);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--ff-head); font-size:1.05rem; font-weight:800;
  color:var(--a); margin:0 auto 1.25rem;
  position:relative; z-index:1;
}
.ps h4 { font-size:0.9rem; margin-bottom:0.35rem; }
.ps p  { font-size:0.82rem; color:var(--tx-2); line-height:1.65; }

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; }
.testi {
  background:var(--bg-surface); border:1px solid var(--bd);
  border-radius:var(--r-lg); padding:1.75rem;
  box-shadow:var(--sh-xs); transition:var(--t);
}
.testi:hover { border-color:var(--bd-a); box-shadow:var(--sh-md); }
.testi-q  { font-size:2rem; line-height:1; color:var(--a); opacity:0.5; margin-bottom:0.75rem; font-family:Georgia,serif; }
.testi-txt { font-size:0.875rem; color:var(--tx-2); line-height:1.75; font-style:italic; margin-bottom:1.1rem; }
.testi-stars { display:flex; gap:2px; color:var(--am); margin-bottom:1rem; }
.testi-stars i { width:13px; height:13px; }
.testi-who { display:flex; align-items:center; gap:0.75rem; }
.testi-av {
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg, var(--a), var(--c));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--ff-head); font-weight:700; font-size:0.8rem;
  color:#fff; flex-shrink:0;
}
.testi-nm  { font-size:0.875rem; font-weight:600; }
.testi-rl  { font-size:0.775rem; color:var(--tx-3); }

/* ─── PARTNER LOGOS ──────────────────────────────────────── */
.logo-shelf {
  display:grid; gap:1rem;
}
.ls-4 { grid-template-columns:repeat(4,1fr); }
.ls-2 { grid-template-columns:repeat(2,1fr); max-width:480px; }
.logo-tile {
  background:var(--bg-surface);
  border:1px solid var(--bd);
  border-radius:var(--r-md);
  display:flex; align-items:center; justify-content:center;
  padding:1.75rem;
  min-height:80px;
  transition:var(--t);
  box-shadow:var(--sh-xs);
}
.logo-tile:hover { border-color:var(--bd-a); box-shadow:var(--sh-md); transform:translateY(-2px); }
.logo-tile img {
  max-height:28px; width:auto; max-width:130px;
  object-fit:contain;
}

/* ─── CTA BLOCK ──────────────────────────────────────────── */
.cta-block {
  background:var(--bg-surface);
  border:1px solid var(--bd);
  border-radius:var(--r-2xl);
  padding:4.5rem 3rem;
  text-align:center;
  position:relative; overflow:hidden;
}
.cta-block::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, var(--a-soft),  transparent),
    radial-gradient(ellipse 50% 60% at 80% 50%, var(--c-soft),  transparent);
  pointer-events:none;
}
.cta-block > * { position:relative; z-index:1; }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-grid { display:grid; grid-template-columns:1fr 1.6fr; gap:3.5rem; align-items:start; }
.cinfo-tile {
  display:flex; gap:1rem; align-items:center;
  padding:1.1rem 1.25rem;
  background:var(--bg-surface); border:1px solid var(--bd);
  border-radius:var(--r-md); margin-bottom:0.8rem;
  transition:var(--t);
}
.cinfo-tile:hover { border-color:var(--bd-a); }
.cinfo-tile p { font-size:0.875rem; }
.cinfo-tile p:first-of-type { font-weight:600; font-size:0.84rem; }
.cinfo-tile p:last-of-type  { color:var(--tx-2); font-size:0.82rem; }
.form-box {
  background:var(--bg-surface); border:1px solid var(--bd);
  border-radius:var(--r-xl); padding:2.25rem;
  box-shadow:var(--sh-md);
}
.f-lbl {
  display:block; font-family:var(--ff-head);
  font-size:0.75rem; font-weight:600;
  letter-spacing:0.055em; text-transform:uppercase;
  color:var(--tx-2); margin-bottom:0.4rem;
}
.f-ctrl {
  width:100%; background:var(--bg);
  border:1.5px solid var(--bd);
  border-radius:var(--r-md);
  padding:0.7rem 1rem;
  color:var(--tx); font-size:0.9rem;
  outline:none; transition:var(--t);
  appearance:none;
}
.f-ctrl::placeholder { color:var(--tx-3); }
.f-ctrl:focus { border-color:var(--a); box-shadow:0 0 0 3px var(--a-soft); }
textarea.f-ctrl { height:125px; resize:vertical; }
.f-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.f-group { margin-bottom:1.1rem; }
.alert {
  display:flex; align-items:flex-start; gap:0.65rem;
  padding:0.85rem 1.1rem; border-radius:var(--r-sm);
  font-size:0.875rem; margin-bottom:1.1rem;
}
.alert i { width:15px; height:15px; flex-shrink:0; margin-top:1px; }
.alert-ok  { background:var(--em-soft); border:1px solid rgba(16,185,129,.25); color:var(--em); }
.alert-err { background:var(--ro-soft); border:1px solid rgba(244,63,94,.25);  color:var(--ro); }

/* ─── PAGE HERO ──────────────────────────────────────────── */
.pg-hero {
  padding:8rem 0 4.5rem;
  position:relative; overflow:hidden;
}
.pg-hero::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 65% 60% at 50% 0%, var(--a-soft), transparent);
  pointer-events:none;
}
.pg-hero .wrap { position:relative; }

/* ─── MARQUEE ────────────────────────────────────────────── */
.mq-wrap {
  overflow:hidden;
  border-top:1px solid var(--bd);
  border-bottom:1px solid var(--bd);
  background:var(--bg-subtle);
  padding:0.9rem 0;
}
.mq-track {
  display:flex; gap:2.5rem; width:max-content;
  animation:marquee 30s linear infinite;
}
.mq-item {
  display:flex; align-items:center; gap:0.5rem;
  font-family:var(--ff-head); font-size:0.78rem; font-weight:600;
  color:var(--tx-3); white-space:nowrap;
}
.mq-item i { color:var(--a); width:13px; height:13px; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ─── FAQ ────────────────────────────────────────────────── */
details.faq-item {
  background:var(--bg-surface); border:1px solid var(--bd);
  border-radius:var(--r-md); overflow:hidden; transition:var(--t);
}
details.faq-item[open] { border-color:var(--bd-a); box-shadow:var(--sh-sm); }
details.faq-item summary {
  list-style:none; display:flex; align-items:center;
  justify-content:space-between; gap:1rem;
  padding:1.1rem 1.35rem;
  font-family:var(--ff-head); font-size:0.9rem; font-weight:600;
  cursor:pointer; user-select:none;
}
details.faq-item summary::-webkit-details-marker { display:none; }
details.faq-item summary i { width:15px; height:15px; color:var(--a); flex-shrink:0; transition:transform 0.25s; }
details.faq-item[open] summary i { transform:rotate(180deg); }
.faq-ans { padding:0 1.35rem 1.15rem; font-size:0.875rem; color:var(--tx-2); line-height:1.72; border-top:1px solid var(--bd); padding-top:1rem; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background:var(--bg-surface);
  border-top:1px solid var(--bd);
  padding:4rem 0 1.75rem;
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1.2fr;
  gap:2.5rem; margin-bottom:2.5rem;
}
.footer-desc {
  font-size:0.855rem; color:var(--tx-2); line-height:1.75;
  margin:1rem 0 1.5rem; max-width:280px;
}
.socials { display:flex; gap:0.5rem; }
.soc {
  width:32px; height:32px;
  background:var(--bg-card); border:1px solid var(--bd);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--tx-2); transition:var(--t);
}
.soc:hover { border-color:var(--bd-a); color:var(--a); background:var(--a-soft); }
.soc i { width:13px; height:13px; }
.fh { font-family:var(--ff-head); font-size:0.72rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--tx); margin-bottom:1rem; }
.flinks { display:flex; flex-direction:column; gap:0.35rem; }
.flinks a { font-size:0.85rem; color:var(--tx-2); transition:var(--t); padding:0.08rem 0; }
.flinks a:hover { color:var(--a); }
.nl-row { display:flex; gap:0.4rem; margin-top:0.85rem; }
.nl-in {
  flex:1; background:var(--bg); border:1px solid var(--bd);
  border-radius:var(--r-pill); padding:0.55rem 1rem;
  font-size:0.82rem; color:var(--tx); outline:none; transition:var(--t);
}
.nl-in::placeholder { color:var(--tx-3); }
.nl-in:focus { border-color:var(--bd-a); }
.nl-btn {
  background:var(--a); color:#fff; border:none; cursor:pointer;
  border-radius:var(--r-pill); width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  transition:var(--t); flex-shrink:0;
}
.nl-btn:hover { background:var(--a-h); }
.nl-btn i { width:14px; height:14px; }
.footer-bot {
  padding-top:1.75rem; border-top:1px solid var(--bd);
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:0.75rem;
  font-size:0.8rem; color:var(--tx-3);
}
.footer-bot a { color:var(--tx-3); transition:var(--t); }
.footer-bot a:hover { color:var(--a); }
.footer-bot-links { display:flex; gap:1.25rem; }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
[data-sr] { opacity:0; transform:translateY(16px); transition:opacity 0.55s var(--ease), transform 0.55s var(--ease); }
[data-sr].vis { opacity:1; transform:translateY(0); }

/* ─── KEYFRAMES ──────────────────────────────────────────── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes floatY   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes spin     { to{transform:rotate(360deg)} }
@keyframes pulse-ring {
  0%   { transform:scale(1); opacity:0.6; }
  100% { transform:scale(1.7); opacity:0; }
}
.anim-up   { animation:fadeUp  0.55s var(--ease) both; }
.anim-in   { animation:fadeIn  0.55s var(--ease) both; }
.anim-float{ animation:floatY  6s ease-in-out infinite; }
.d1 { animation-delay:.06s; } .d2 { animation-delay:.12s; }
.d3 { animation-delay:.18s; } .d4 { animation-delay:.24s; }
.d5 { animation-delay:.30s; }

/* ─── UTILS ──────────────────────────────────────────────── */
.mt-1 { margin-top:0.5rem; }  .mt-2 { margin-top:1rem; }
.mt-3 { margin-top:1.5rem; }  .mt-4 { margin-top:2rem; }
.mb-2 { margin-bottom:1rem; } .mb-3 { margin-bottom:1.5rem; }
.gap-2 { gap:0.75rem; }
.flex-c { display:flex; align-items:center; }
.flex-cb { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.divider { height:1px; background:var(--divider); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media(max-width:1100px) {
  .svc-grid      { grid-template-columns:repeat(2,1fr); }
  .testi-grid    { grid-template-columns:repeat(2,1fr); }
  .ls-4          { grid-template-columns:repeat(2,1fr); }
  .footer-grid   { grid-template-columns:1fr 1fr; }
  .strip-inner   { grid-template-columns:repeat(2,1fr); }
  .strip-cell:nth-child(2)  { border-right:none; }
  .strip-cell:nth-child(1),
  .strip-cell:nth-child(2)  { border-bottom:1px solid var(--bd); }
  .process-row   { grid-template-columns:repeat(2,1fr); }
  .process-row::before { display:none; }
}

@media(max-width:780px) {
  .nav-menu, .nav-right .btn-pri { display:none; }
  .nav-ham  { display:flex; }

  .hero-wrap   { grid-template-columns:1fr; text-align:center; gap:2.5rem; }
  .hero-sub    { max-width:100%; margin:0 auto 2rem; }
  .hero-btns   { justify-content:center; }
  .hero-stats  { justify-content:center; }
  .hero-visual { order:-1; justify-content:center; }
  .hero-text   { max-width:100%; }

  .split         { grid-template-columns:1fr; gap:2.5rem; }
  .brand-grid    { grid-template-columns:1fr; }
  .svc-grid      { grid-template-columns:1fr; }
  .testi-grid    { grid-template-columns:1fr; }
  .why-grid      { grid-template-columns:1fr; }
  .contact-grid  { grid-template-columns:1fr; }
  .f-row         { grid-template-columns:1fr; }
  .process-row   { grid-template-columns:1fr; }
  .ls-4          { grid-template-columns:repeat(2,1fr); }
  .ls-2          { grid-template-columns:1fr; max-width:100%; }
  .strip-inner   { grid-template-columns:repeat(2,1fr); }
  .footer-grid   { grid-template-columns:1fr; gap:2rem; }
  .footer-bot    { flex-direction:column; align-items:center; text-align:center; }
  .cta-block     { padding:3rem 1.75rem; }
  .pg-hero       { padding:6.5rem 0 3.5rem; }
  .sec { padding:4rem 0; }
}

@media(max-width:480px) {
  .ls-4 { grid-template-columns:repeat(2,1fr); }
  .hero-stats { gap:1.5rem; }
  .strip-inner { grid-template-columns:repeat(2,1fr); }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE FIXES & UTILITY CLASSES — v3.1
   ═══════════════════════════════════════════════════ */

/* ── RESPONSIVE GRID UTILITIES ──────────────────────
   Use these classes instead of inline grid styles
   to get automatic mobile breakpoints.
   ─────────────────────────────────────────────────── */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.grid-3connect { /* contact quick-connect */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  max-width: 780px;
  margin: 0 auto;
}
.brand-detail-row { /* portfolio brand card inner */
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.faq-split { /* contact FAQ layout */
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 4rem;
  align-items: start;
}
.pricing-grid { /* services pricing */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ── THEME ICON SYNC ────────────────────────────────
   Sun/moon toggle — JS controls display via .style
   CSS sets defaults so they're correct before JS runs
   ─────────────────────────────────────────────────── */
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun  { display: none;  }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* ── SITE LOGO IMAGE ────────────────────────────────
   Single <img data-logo> per logo — JS swaps src.
   No duplicate images, no CSS visibility toggling.
   ─────────────────────────────────────────────────── */
img[data-logo] { display: block; }

/* ── SECTION — SURFACE BG ───────────────────────────
   Utility for alternating surface backgrounds
   ─────────────────────────────────────────────────── */
.bg-surface { background: var(--bg-surface); }

/* ══════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════ */

/* ── 1024px — Tablets landscape ─────────────────── */
@media (max-width: 1024px) {
  .grid-3col      { grid-template-columns: repeat(2, 1fr); }
  .grid-3connect  { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .pricing-grid   { grid-template-columns: 1fr; max-width: 520px; }
  .brand-detail-row {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
  }
}

/* ── 860px — Small tablets ───────────────────────── */
@media (max-width: 860px) {
  .faq-split      { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── 780px — Mobile ──────────────────────────────── */
@media (max-width: 780px) {

  /* Nav */
  .nav-menu, .nav-right .btn-pri { display: none; }
  .nav-ham { display: flex; }

  /* Hero */
  .hero            { padding-top: 5rem; }
  .hero-wrap       { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-sub        { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-btns       { justify-content: center; }
  .hero-stats      { justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
  .hero-visual     { order: -1; justify-content: center; }
  .hero-text       { max-width: 100%; }
  .hero-h1         { font-size: clamp(2rem, 7vw, 3rem); }

  /* Stats strip */
  .strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .strip-cell:nth-child(2) { border-right: none; }
  .strip-cell:nth-child(1),
  .strip-cell:nth-child(2) { border-bottom: 1px solid var(--bd); }

  /* General split/grid */
  .split          { grid-template-columns: 1fr; gap: 2.5rem; }
  .brand-grid     { grid-template-columns: 1fr; }
  .svc-grid       { grid-template-columns: 1fr; }
  .testi-grid     { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .process-row    { grid-template-columns: repeat(2, 1fr); }
  .process-row::before { display: none; }

  /* About page */
  .grid-3col      { grid-template-columns: 1fr; }
  .grid-2col      { grid-template-columns: 1fr; }

  /* Portfolio brand detail cards */
  .brand-detail-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Portfolio logo shelf */
  .ls-4           { grid-template-columns: repeat(2, 1fr); }
  .ls-2           { grid-template-columns: repeat(2, 1fr); max-width: 100%; }

  /* Contact */
  .contact-grid   { grid-template-columns: 1fr; }
  .f-row          { grid-template-columns: 1fr; }
  .grid-3connect  { grid-template-columns: 1fr; max-width: 100%; }
  .faq-split      { grid-template-columns: 1fr; gap: 2rem; }

  /* Services */
  .pricing-grid   { grid-template-columns: 1fr; max-width: 100%; }

  /* Footer */
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bot     { flex-direction: column; align-items: center; text-align: center; }
  .footer-bot-links { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

  /* CTA block */
  .cta-block      { padding: 3rem 1.5rem; }

  /* Page heroes */
  .pg-hero        { padding: 6.5rem 0 3rem; }

  /* Section spacing */
  .sec            { padding: 3.5rem 0; }
  .sec-sm         { padding: 2.5rem 0; }

  /* Typography scale down */
  .t-h1           { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .t-h2           { font-size: clamp(1.5rem, 5vw, 2rem); }
}

/* ── 600px — Small phones ────────────────────────── */
@media (max-width: 600px) {
  /* About 3-col grid goes to 1 col */
  .grid-3col      { grid-template-columns: 1fr; }

  /* Services detail split */
  .split          { grid-template-columns: 1fr; gap: 2rem; }

  /* Hero stats row */
  .hero-stats     { gap: 1.25rem; }
  .hs-val         { font-size: 1.5rem; }

  /* Portfolio quick-connect */
  .grid-3connect  { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid    { grid-template-columns: 1fr; }

  /* Card padding reduce */
  .card           { padding: 1.25rem; }
}

/* ── 480px — Extra small phones ─────────────────── */
@media (max-width: 480px) {
  /* Wrap */
  .wrap, .wrap-sm, .wrap-lg { padding: 0 1rem; }

  /* Stats strip to 2-col */
  .strip-inner    { grid-template-columns: repeat(2, 1fr); }

  /* Logo shelf */
  .ls-4           { grid-template-columns: repeat(2, 1fr); }
  .ls-2           { grid-template-columns: 1fr; }
  .logo-shelf     { gap: 0.75rem; }

  /* Process */
  .process-row    { grid-template-columns: 1fr; }

  /* Brand detail */
  .brand-detail-row { grid-template-columns: 1fr; }

  /* Hero */
  .hero-h1        { font-size: clamp(1.85rem, 8vw, 2.4rem); }

  /* Page hero */
  .pg-hero        { padding: 6rem 0 2.5rem; }

  /* Buttons stack */
  .hero-btns      { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; }

  /* CTA block */
  .cta-block      { padding: 2.5rem 1.25rem; border-radius: var(--r-xl); }

  /* FAQ */
  .faq-split      { gap: 1.5rem; }

  /* Contact tiles */
  .cinfo-tile     { padding: 0.9rem 1rem; }

  /* Footer */
  .footer         { padding: 3rem 0 1.5rem; }
  .footer-bot-links { gap: 0.5rem; font-size: 0.75rem; }
}

/* ── PORTFOLIO specific ──────────────────────────── */
/* Brand detail card inner grid — responsive */
@media (max-width: 780px) {
  .port-brand-inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .port-brand-logo-col { max-width: 100%; }
}

/* ── SERVICES specific ───────────────────────────── */
@media (max-width: 780px) {
  /* Swap order: on mobile show illustration below text */
  .svc-split-reverse > *:first-child { order: 2; }
  .svc-split-reverse > *:last-child  { order: 1; }
}

/* ── ABOUT specific ──────────────────────────────── */
@media (max-width: 780px) {
  /* Stats visual SVG scales properly */
  .about-stats-visual { max-width: 100%; }
}

/* ── CONTACT specific ────────────────────────────── */
@media (max-width: 780px) {
  .contact-channels-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
  .contact-faq-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ── OVERFLOW SAFETY ─────────────────────────────── */
/* Prevent any element from causing horizontal scroll */
img     { max-width: 100%; height: auto; }
svg     { max-width: 100%; }
table   { max-width: 100%; overflow-x: auto; display: block; }
pre,code { overflow-x: auto; }

* { min-width: 0; } /* fix flexbox/grid overflow in Firefox */

/* ── TOUCH TARGETS ───────────────────────────────── */
@media (max-width: 780px) {
  .btn      { min-height: 44px; }
  .soc      { width: 40px; height: 40px; }
  .btn-icon { width: 44px; height: 44px; }
  .nav-ham  { width: 44px; height: 44px; }
  .theme-toggle { width: 44px; height: 44px; }
  .faq-item summary { padding: 1rem 1.1rem; min-height: 54px; }
}

