/* ==========================================================================
   Tele Law Legal — Design System v3 ("Chambers")
   Concept: a modern advocate's chambers — warm paper tones, deep ink navy,
   a single maroon accent, and real photography carried through every page
   (image hero, image-backed page headers, photo gallery, feature banners)
   instead of flat colour blocks. Soft elevated cards, rounded corners,
   gentle motion. Type: Newsreader (display) + Noto Sans / Noto Sans
   Devanagari (body)
   ========================================================================== */

:root{
  --ink-900:#16233d;
  --ink-800:#1c2b4a;
  --ink-700:#223357;
  --ink-500:#3a5480;
  --maroon-600:#8a2632;
  --maroon-500:#a23241;
  --maroon-100:#f1dcdc;
  --sage-600:#43604c;
  --sage-100:#dee8e0;
  --ochre-600:#8f7128;
  --ochre-100:#ece2c6;
  --paper-0:#f8f6f0;
  --paper-1:#efe9dd;
  --line:#e0d9c8;
  --line-strong:#c9bfa4;
  --text:#211d1a;
  --text-soft:#5c564c;
  --white:#ffffff;
  --success:#2f6d4f;

  --font-display:"Newsreader", "Noto Sans Devanagari", Georgia, serif;
  --font-body:"Noto Sans", "Noto Sans Devanagari", -apple-system, "Segoe UI", sans-serif;

  --radius-s:6px;
  --radius-m:14px;
  --radius-l:22px;
  --offset: 6px;
  --shadow-hard: var(--offset) var(--offset) 0 0 var(--maroon-600);
  --shadow-hard-ink: var(--offset) var(--offset) 0 0 var(--ink-900);
  --shadow-pop: 0 18px 40px -20px rgba(22,35,61,.35);
  --shadow-card: 0 1px 2px rgba(22,25,20,.04), 0 14px 30px -18px rgba(22,25,20,.22);
  --shadow-card-hover: 0 1px 2px rgba(22,25,20,.05), 0 26px 48px -20px rgba(22,25,20,.32);
  --container: 1400px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important;}
}

body{
  margin:0;
  font-family:var(--font-body);
  background:var(--paper-0);
  color:var(--text);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%; height:auto; display:block;}
a{color:inherit; text-decoration:none;}
ul{margin:0; padding:0;}
h1,h2,h3,h4{font-family:var(--font-display); color:var(--ink-900); line-height:1.18; margin:0 0 .5em; font-weight:600;}
p{margin:0 0 1em;}

.container{width:100%; max-width:var(--container); margin:0 auto; padding:0 20px; }
.page-hero-content{
  display:flex; justify-content:space-between; gap:24px; align-items:flex-end; flex-wrap:wrap;
}
.visually-hidden{position:absolute !important; width:1px;height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}

.skip-link{position:absolute; left:-999px; top:0; background:var(--ink-900); color:#fff; padding:10px 16px; z-index:999; border-radius:0 0 6px 0;}
.skip-link:focus{left:0;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px; justify-content:center;
  font-family:var(--font-body); font-weight:600; font-size:.95rem;
  padding:.85em 1.5em; border-radius:999px; border:1.5px solid var(--ink-900);
  cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap; position:relative;
}
.btn:focus-visible{outline:3px solid var(--ochre-600); outline-offset:2px;}
.btn-primary{background:var(--maroon-600); border-color:var(--maroon-600); color:#fff; box-shadow:0 10px 24px -10px rgba(138,38,50,.65);}
.btn-primary:hover{background:var(--maroon-500); transform:translateY(-2px); box-shadow:0 16px 30px -10px rgba(138,38,50,.72);}
.btn-ghost{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.55); color:#fff; backdrop-filter:blur(6px);}
.btn-ghost:hover{background:rgba(255,255,255,.18); border-color:#fff; transform:translateY(-2px);}
.btn-outline{background:transparent; border-color:var(--ink-900); color:var(--ink-900);}
.btn-outline:hover{background:var(--ink-900); color:#fff; transform:translateY(-2px);}
.btn-block{width:100%;}
.btn-sm{padding:.6em 1.15em; font-size:.85rem;}

/* ---------- Top utility line ---------- */
.topbar{background:var(--ink-900); color:#c7cede; font-size:.82rem;}
.topbar .container{display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:9px; padding-bottom:9px; flex-wrap:wrap;}
.topbar-contacts{display:flex; gap:22px; flex-wrap:wrap;}
.topbar-contacts a{display:inline-flex; align-items:center; gap:7px; color:#c7cede;}
.topbar-contacts a:hover{color:#fff;}
.topbar-offer{color:#f1c8ca; font-weight:600;}
.topbar-offer a{text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(241,200,202,.5);}

/* ---------- Header / Nav ---------- */
.site-header{background:rgba(248,246,240,.92);  border-bottom:1px solid var(--line); position:sticky; top:0; z-index:100;}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:24px; padding:12px 10px;}
.brand{display:flex; align-items:center; gap:12px; min-width:0; height:48px; background:#fff;}
.brand img{height:100%; width:auto; object-fit:contain; flex-shrink:0;}

.main-nav{display:flex; align-items:center; gap:4px;}
.nav-desktop-brand{display:none;}
.nav-list{display:flex; align-items:center; gap:2px; list-style:none;}
.nav-list > li{position:relative;}
.nav-list > li > a{
  display:flex; align-items:center; gap:6px; padding:10px 13px; font-weight:600; font-size:.92rem; color:var(--ink-700);
  border-radius:999px;
  transition:background .15s ease, color .15s ease;
  white-space:nowrap;
}
.nav-list > li > a:hover, .nav-list > li > a:focus-visible{color:var(--ink-900); background:var(--paper-1);}
.nav-list > li.current > a{color:#fff; background:var(--maroon-600);}

.has-dropdown > .dropdown{
  position:absolute; top:100%; left:0; min-width:250px; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius-m); box-shadow:var(--shadow-pop);
  padding:8px; opacity:0; visibility:hidden; transform:translateY(4px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s ease; z-index:50;
  list-style:none; margin-top:8px;
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown{opacity:1; visibility:visible; transform:translateY(0);}
.dropdown li a{display:block; padding:10px 12px; border-radius:var(--radius-s); font-size:.9rem; color:var(--ink-700);}
.dropdown li a:hover{background:var(--paper-1); color:var(--maroon-600);}
.dropdown-caret{font-size:.6rem; transition:transform .15s ease;}
.has-dropdown:hover .dropdown-caret{transform:rotate(180deg);}

.header-cta{display:flex; align-items:center; gap:10px;}
.nav-toggle{
  display:none; align-items:center; justify-content:center; gap:8px;
  background:var(--ink-900); color:#fff; border:none; border-radius:999px;
  min-width:94px; min-height:42px; padding:9px 13px; font-weight:600; font-size:.9rem;
  cursor:pointer; transition:background .2s ease; z-index:10;
}
.nav-toggle:hover{background:var(--ink-800);}
.nav-toggle:focus-visible{outline:3px solid var(--ochre-600); outline-offset:3px;}
.nav-toggle-icons{display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px;}
.nav-toggle-icons i{font-size:18px; line-height:1;}
.nav-close-icon{display:none;}
.nav-toggle.is-open .nav-open-icon{display:none;}
.nav-toggle.is-open .nav-close-icon{display:inline-block;}

.mobile-nav-head{display:none;}
.nav-close{
  width:42px; height:42px; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.2); border-radius:50%;
  background:rgba(255,255,255,.06); color:#fff; cursor:pointer; flex-shrink:0;
  transition:background .2s ease, color .2s ease;
}
.nav-close:hover{background:var(--maroon-600); color:#fff;}
.nav-close:focus-visible{outline:3px solid var(--ochre-600); outline-offset:2px;}

/* ---------- Hero — full-bleed photograph ---------- */
.hero{position:relative; color:#fff; overflow:hidden; background:var(--ink-900);}
.hero-media{position:absolute; inset:0; z-index:0;}
.hero-media img{width:100%; height:100%; object-fit:cover; object-position:center 30%;}
.hero-media::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(12,18,32,.94) 0%, rgba(14,21,38,.86) 38%, rgba(16,24,43,.55) 68%, rgba(16,24,43,.35) 100%);
}
.hero::before{
  content:""; position:absolute; left:0; right:0; bottom:0; height:6px; z-index:2;
  background:repeating-linear-gradient(90deg, var(--maroon-600) 0 28px, transparent 28px 40px);
  opacity:.7; pointer-events:none;
}
.hero-inner{position:relative; z-index:1; padding:88px 20px 72px; max-width: var(--container); margin:0 auto;}
.hero-eyebrow{display:inline-flex; align-items:center; gap:8px; color:#f1c8ca; font-family:var(--font-display); font-style:italic; font-size:1rem; margin-bottom:18px;}
.hero-eyebrow::before{content:""; width:26px; height:2px; background:var(--maroon-500); display:inline-block;}
.hero h1{color:#fff; font-size:clamp(2rem, 4vw, 3.1rem); margin-bottom:.4em; font-weight:600;}
.hero p.lead{color:#dbe0ee; font-size:1.1rem; max-width:52ch; margin-bottom:1.8em;}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:36px;}
.hero-stats{display:flex; gap:0; flex-wrap:wrap; border-top:1px solid rgba(255,255,255,.2); padding-top:22px;}
.hero-stats div{padding:0 26px 0 0; margin-right:26px; border-right:1px solid rgba(255,255,255,.2);}
.hero-stats div:last-child{border-right:none; margin-right:0;}
.hero-stats div strong{display:block; font-family:var(--font-display); font-size:1.5rem; color:#fff; font-weight:600;}
.hero-stats div span{font-size:.8rem; color:#aeb8d4;}

/* ---------- Photo gallery strip (moved out of hero, own section) ---------- */
.gallery-section{background:var(--ink-900); padding:56px 0 62px; position:relative;}
.gallery-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:26px;}
.gallery-head h2{color:#fff; margin:0; font-size:clamp(1.4rem, 2.4vw, 1.9rem);}
.gallery-head p{color:#aeb8d4; margin:6px 0 0; max-width:52ch;}
.hero-gallery{display:flex; flex-direction:column; gap:14px; min-width:0;}
.hero-scroll{
  display:flex; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  padding:6px 6px 18px 2px; margin:0 -2px;
  -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:var(--maroon-500) rgba(255,255,255,.08);
}
.hero-scroll:focus-visible{outline:3px solid var(--ochre-600); outline-offset:4px;}
.hero-scroll::-webkit-scrollbar{height:8px;}
.hero-scroll::-webkit-scrollbar-track{background:rgba(255,255,255,.08); border-radius:8px;}
.hero-scroll::-webkit-scrollbar-thumb{background:var(--maroon-500); border-radius:8px;}
.hero-slide{
  flex:0 0 auto; scroll-snap-align:start; width:min(78%, 290px); margin:0; position:relative;
  border-radius:var(--radius-m); overflow:hidden; box-shadow:var(--shadow-pop);
  background:var(--ink-800);
}
.hero-slide img{width:100%; height:210px; object-fit:cover; display:block; transition:transform .5s ease;}
.hero-slide:hover img{transform:scale(1.06);}
.hero-slide figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:12px 16px 14px; font-size:.85rem; font-weight:600; color:#fff;
  background:linear-gradient(0deg, rgba(10,15,28,.95), rgba(10,15,28,0));
}
.hero-scroll-controls{display:flex; align-items:center; justify-content:center; gap:14px;}
.scroll-btn{
  width:38px; height:38px; border-radius:50%; border:1.5px solid rgba(255,255,255,.35); background:transparent; color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .15s ease, border-color .15s ease;
  flex-shrink:0;
}
.scroll-btn:hover{background:var(--maroon-600); border-color:var(--maroon-600);}
.scroll-btn:focus-visible{outline:3px solid var(--ochre-600); outline-offset:2px;}
.hero-scroll-hint{font-size:.76rem; color:#9fabc8; letter-spacing:.02em; display:flex; align-items:center; gap:6px;}
.hero-scroll-hint i{animation:hero-hint-nudge 2.6s ease-in-out infinite;}
@keyframes hero-hint-nudge{0%,100%{transform:translateX(0);}50%{transform:translateX(3px);}}
@media (prefers-reduced-motion: reduce){ .hero-scroll-hint i{animation:none;} }

/* Simple page header (inner pages) — now carries a photograph */
.page-hero{position:relative; color:#fff; padding:74px 0 54px; overflow:hidden; background:var(--ink-900) center/cover no-repeat;}
.page-hero::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(110deg, rgba(12,18,32,.93) 0%, rgba(14,21,38,.82) 45%, rgba(16,24,43,.5) 100%);
}
.page-hero::after{content:""; position:absolute; left:0; right:0; bottom:0; height:4px; background:var(--maroon-600);}
.page-hero .container{position:relative; z-index:1;}
.page-hero .breadcrumb{font-size:.82rem; color:#c3cbe4; margin-bottom:12px;}
.page-hero .breadcrumb a{color:#e3e7f3;}
.page-hero .breadcrumb a:hover{color:#fff; text-decoration:underline;}
.page-hero h1{color:#fff; margin:0; font-size:clamp(1.65rem, 3.2vw, 2.35rem);}
.page-hero p{color:#dbe0ee; max-width:65ch; margin-top:.6em; margin-bottom:0;}
.service-img{border-radius:var(--radius-m); box-shadow:var(--shadow-pop);}

/* ---------- Section scaffolding ---------- */
.section{padding:72px 0;}
.section-alt{background:var(--paper-1);}
.section-head{max-width:640px; margin:0 0 40px;}
.section-head .eyebrow{display:inline-flex; align-items:center; gap:8px; color:var(--maroon-600); font-family:var(--font-body); font-weight:700; text-transform:uppercase; letter-spacing:.06em; font-size:.78rem; margin-bottom:10px;}
.section-head .eyebrow::before{content:""; width:22px; height:2px; background:var(--maroon-600); display:inline-block;}
.section-head h2{font-size:clamp(1.6rem, 2.6vw, 2.15rem);}
.section-head p{color:var(--text-soft); margin:0;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-head.center .eyebrow::before{display:none;}

/* ---------- Quick links strip ---------- */
.quicklinks-strip{background:#fff; border-bottom:1px solid var(--line);}
.quicklinks-strip .container{display:flex; gap:0; overflow-x:auto; padding:0; scrollbar-width:thin;}
.quicklinks-strip a{white-space:nowrap; font-size:.82rem; font-weight:600; color:var(--ink-800); padding:13px 18px; border-right:1px solid var(--line); display:flex; align-items:center; gap:7px;}
.quicklinks-strip a:hover{background:var(--paper-1); color:var(--maroon-600);}

/* ---------- Services — elevated photo/icon cards ---------- */
.card-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:22px;
}
.service-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-m); box-shadow:var(--shadow-card);
  padding:28px 24px; position:relative; display:flex; flex-direction:column; align-items:flex-start;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{transform:translateY(-5px); box-shadow:var(--shadow-card-hover); border-color:var(--line-strong);}
.service-card .icon{
  width:52px; height:52px; border-radius:14px; background:var(--paper-1); border:none;
  color:var(--ink-900); display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0;
  margin-bottom:16px;
}
.service-card h3{font-size:1.12rem; margin:0 0 8px;}
.service-card p{color:var(--text-soft); font-size:.92rem; margin:0 0 16px; flex-grow:1;}
.service-card .card-link{
  font-weight:700; font-size:.85rem; color:var(--ink-900);
  display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
}
.service-card .card-link i{transition:transform .15s ease;}
.service-card .card-link:hover{color:var(--maroon-600);}
.service-card .card-link:hover i{transform:translateX(3px);}

/* category tabs — colour keyed to matter type */
.service-card.cat-family .icon{background:var(--sage-100); color:var(--sage-600);}
.service-card.cat-criminal .icon{background:var(--maroon-100); color:var(--maroon-600);}
.service-card.cat-property .icon{background:#dde4ef; color:var(--ink-700);}
.service-card.cat-doc .icon{background:var(--ochre-100); color:var(--ochre-600);}

/* ---------- Process / how it works ---------- */
.steps-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; counter-reset:step;}
.step-card{position:relative; padding:30px 22px 24px; background:#fff; border:1px solid var(--line); border-radius:var(--radius-m); box-shadow:var(--shadow-card);}
.step-card .step-num{
  counter-increment:step; display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%; background:var(--ink-900); color:#fff;
  font-family:var(--font-display); font-weight:700; margin-bottom:16px; font-size:1.05rem;
}
.step-card h3{font-size:1.02rem; margin:0 0 8px;}
.step-card p{color:var(--text-soft); font-size:.88rem; margin:0;}

/* ---------- Content layout (inner pages) ---------- */
.content-layout{display:grid; grid-template-columns:2.15fr 1fr; gap:40px; align-items:start;}
.article-body{background:#fff; border:1px solid var(--line); border-radius:var(--radius-l); padding:38px; box-shadow:var(--shadow-card);}
.article-body h2{font-size:1.35rem; margin-top:1.4em; padding-top:.2em; padding-bottom:.3em; border-bottom:1px solid var(--line);}
.article-body h2:first-child{margin-top:0;}
.article-body h3{font-size:1.1rem; margin-top:1.2em; color:var(--maroon-600);}
.article-body p{color:var(--text); }
.article-body ul, .article-body ol{margin:0 0 1.2em 1.3em;}
.article-body li{margin-bottom:.5em;}
.article-body a{color:var(--maroon-600); font-weight:600; text-decoration:underline; text-decoration-color:rgba(138,38,50,.35); text-underline-offset:3px;}
.article-body a:hover{color:var(--ink-900);}
.article-body table{width:100%; border-collapse:collapse; margin:1em 0;}
.article-body table td, .article-body table th{border:1px solid var(--line); padding:8px 10px; text-align:left; font-size:.92rem;}

.sidebar{display:flex; flex-direction:column; gap:20px; position:sticky; top:90px;}
.side-card{
  position:relative; overflow:hidden; color:#fff; border-radius:var(--radius-l); padding:170px 26px 26px;
  background:var(--ink-900) center/cover no-repeat;
  box-shadow:var(--shadow-pop);
}
.side-card::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(16,24,43,.15) 0%, rgba(16,24,43,.95) 62%);
}
.side-card > *{position:relative; z-index:1;}
.side-card h3{color:#fff; font-size:1.1rem;}
.side-card p{color:#dbe0ee; font-size:.9rem;}
.side-card .btn-primary{margin-top:6px; box-shadow:0 10px 22px -8px rgba(0,0,0,.55);}
.side-links{background:#fff; border:1px solid var(--line); border-radius:var(--radius-m); padding:22px; box-shadow:var(--shadow-card);}
.side-links h3{font-size:1rem; padding-bottom:10px; border-bottom:1px solid var(--line);}
.side-links ul{list-style:none; display:flex; flex-direction:column; gap:2px;}
.side-links li a{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 4px; font-size:.9rem; color:var(--ink-700); border-bottom:1px solid var(--paper-1);}
.side-links li:last-child a{border-bottom:none;}
.side-links li a:hover{color:var(--maroon-600);}

/* ---------- About / feature split ---------- */
.split{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
.split img{border-radius:var(--radius-l); box-shadow:var(--shadow-pop);}
.split-media{position:relative;}
.split-media::before{
  content:""; position:absolute; top:-16px; left:-16px; right:16px; bottom:16px;
  border:2px solid var(--maroon-600); border-radius:var(--radius-l); z-index:0;
}
.split-media img{position:relative; z-index:1;}
.check-list{list-style:none; display:flex; flex-direction:column; gap:13px; margin-top:18px;}
.check-list li{display:flex; gap:12px; align-items:flex-start; font-size:.95rem;}
.check-list li::before{content:"✓"; flex-shrink:0; width:22px; height:22px; border-radius:50%; background:var(--sage-100); color:var(--sage-600); font-size:.72rem; font-weight:700; display:flex; align-items:center; justify-content:center; margin-top:2px;}

/* ---------- Feature banner (image background, "why choose us") ---------- */
.feature-banner{position:relative; color:#fff; padding:70px 0; overflow:hidden; background:var(--ink-900) center/cover no-repeat;}
.feature-banner::before{content:""; position:absolute; inset:0; background:linear-gradient(120deg, rgba(10,15,28,.95) 0%, rgba(14,20,36,.86) 50%, rgba(16,24,43,.7) 100%);}
.feature-banner .container{position:relative; z-index:1;}
.feature-banner .section-head h2, .feature-banner .section-head p{color:#fff;}
.feature-banner .section-head p{color:#c9d1e2;}
.feature-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:10px;}
.feature-item{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); border-radius:var(--radius-m); padding:26px 22px; backdrop-filter:blur(4px);}
.feature-item .icon{width:44px; height:44px; border-radius:12px; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; margin-bottom:14px; font-size:1.1rem; color:#f1c8ca;}
.feature-item h3{color:#fff; font-size:1.02rem; margin:0 0 8px;}
.feature-item p{color:#c9d1e2; font-size:.88rem; margin:0;}

/* ---------- Photo mosaic gallery (index page) ---------- */
.photo-mosaic{display:grid; grid-template-columns:repeat(4, 1fr); grid-auto-rows:130px; gap:14px;}
.photo-mosaic figure{margin:0; position:relative; border-radius:var(--radius-m); overflow:hidden; box-shadow:var(--shadow-card);}
.photo-mosaic figure img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
.photo-mosaic figure:hover img{transform:scale(1.07);}
.photo-mosaic figure.tall{grid-row:span 2;}
.photo-mosaic figure.wide{grid-column:span 2;}
.photo-mosaic figcaption{position:absolute; left:0; right:0; bottom:0; padding:10px 14px; font-size:.78rem; font-weight:600; color:#fff; background:linear-gradient(0deg, rgba(10,15,28,.92), rgba(10,15,28,0));}

/* ---------- CTA band ---------- */
.cta-band{
  position:relative; overflow:hidden; color:#fff; border-radius:var(--radius-l); padding:48px 44px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  background:var(--ink-900) center/cover no-repeat;
}
.cta-band::before{content:""; position:absolute; inset:0; background:linear-gradient(100deg, rgba(10,15,28,.94) 10%, rgba(16,24,43,.72) 70%);}
.cta-band > *{position:relative; z-index:1;}
.cta-band h2{color:#fff; margin-bottom:.2em; font-size:1.5rem;}
.cta-band p{color:#dbe0ee; margin:0;}

/* ---------- Contact form ---------- */
.form-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius-l); padding:32px; box-shadow:var(--shadow-card);}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.field{margin-bottom:16px;}
.field label{display:block; font-weight:600; font-size:.88rem; margin-bottom:6px; color:var(--ink-800);}
.field input, .field textarea, .field select{
  width:100%; padding:.75em .9em; border:1.5px solid var(--line); border-radius:var(--radius-s); font-family:var(--font-body); font-size:.95rem;
  background:var(--paper-0); transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{outline:none; border-color:var(--maroon-600); box-shadow:0 0 0 3px rgba(138,38,50,.14);}
.contact-info-list{list-style:none; display:flex; flex-direction:column; gap:18px;}
.contact-info-list li{display:flex; gap:14px; align-items:flex-start;}
.contact-info-list .icon{width:40px; height:40px; border-radius:50%; background:var(--paper-1); color:var(--maroon-600); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.contact-info-list strong{display:block; font-size:.85rem; color:var(--text-soft); text-transform:uppercase; letter-spacing:.04em;}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink-900); color:#c2cbe0; border-top:6px solid var(--maroon-600); position:relative;}
.footer-top{padding:56px 20px 32px; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px;}
.footer-brand .name{font-family:var(--font-display); color:#fff; font-size:1.25rem; font-weight:700;}
.footer-brand .tag{color:#e7c9c9; font-family:var(--font-display); font-style:italic; font-size:.92rem; margin:6px 0 12px;}
.footer-brand p{color:#a9b2c9; font-size:.88rem;}
.footer-col h3{color:#fff; font-size:1rem; margin-bottom:14px; padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,.14);}
.footer-col ul{list-style:none; display:flex; flex-direction:column; gap:9px;}
.footer-col a{color:#a9b2c9; font-size:.9rem;}
.footer-col a:hover{color:#fff;}
.footer-social{display:flex; gap:10px; margin-top:14px;}
.footer-social a{width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center; color:#fff;}
.footer-social a:hover{background:var(--maroon-600); border-color:var(--maroon-600);}
.footer-bottom{border-top:1px solid rgba(255,255,255,.14); padding:18px 0; font-size:.82rem; color:#8b96b3; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;}
.footer-bottom a{color:#8b96b3;}
.footer-bottom a:hover{color:#fff;}

/* ---------- Scroll to top ---------- */
.scrollup{
  position:fixed; right:20px; bottom:20px; width:44px; height:44px; border-radius:50%; background:var(--ink-900); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-pop); opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease; z-index:90; border:none; cursor:pointer;
}
.scrollup:hover{background:var(--maroon-600);}
.scrollup.show{opacity:1; visibility:visible; transform:translateY(0);}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px){
  .content-layout{grid-template-columns:1fr;}
  .sidebar{position:static; flex-direction:row; flex-wrap:wrap;}
  .sidebar > *{flex:1 1 260px;}
  .footer-top{grid-template-columns:1fr 1fr;}
  .card-grid{grid-template-columns:repeat(2, 1fr);}
  .steps-grid{grid-template-columns:repeat(2, 1fr);}
  .feature-grid{grid-template-columns:repeat(2, 1fr);}
  .photo-mosaic{grid-template-columns:repeat(3, 1fr);}
}

@media (max-width: 880px){
  .header-inner{padding:10px 14px;}
  .nav-toggle{display:inline-flex;}

  .main-nav{
    position:fixed; top:0; right:0; bottom:0;
    width:min(360px, 88vw); height:100dvh; max-height:100dvh;
    background:var(--ink-900); padding:0 20px 28px;
    transform:translateX(105%); transition:transform .28s ease;
    overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
    z-index:300; display:flex; flex-direction:column; align-items:stretch; gap:14px;
    box-shadow:-24px 0 50px rgba(0,0,0,.32);
  }
  .main-nav.open{transform:translateX(0);}

  .mobile-nav-head{
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    position:sticky; top:0; z-index:2;
    min-height:78px; margin:0 -20px; padding:14px 20px;
    background:var(--ink-900); border-bottom:1px solid rgba(255,255,255,.1);
  }
  .mobile-nav-head .brand{display:flex; max-width:calc(100% - 56px);}
  .mobile-nav-head .brand img{height:44px; width:auto; max-width:190px; object-fit:contain;}
  .nav-desktop-brand{display:none !important;}

  .nav-list{flex-direction:column; align-items:stretch; gap:0; width:100%;}
  .nav-list > li{width:100%;}
  .nav-list > li > a{
    color:#fff; min-height:50px; padding:14px 10px;
    border-bottom:1px solid rgba(255,255,255,.08); border-radius:0;
    display:flex; align-items:center; justify-content:flex-start; gap:8px;
  }
  .nav-list > li > a:hover,
  .nav-list > li > a:focus-visible{background:rgba(255,255,255,.06); color:#fff;}
  .nav-list > li.current > a{background:rgba(162,50,65,.28);}

  .has-dropdown > a{position:relative;}
  .has-dropdown > a .dropdown-caret{margin-left:auto; transition:transform .2s ease;}
  .has-dropdown.open > a .dropdown-caret{transform:rotate(180deg);}

  .has-dropdown > .dropdown{
    position:static; opacity:1; visibility:visible; transform:none;
    width:100%; min-width:0; background:rgba(255,255,255,.045);
    border:0; border-left:2px solid var(--maroon-500); border-radius:0;
    box-shadow:none; display:none; padding:4px 0 6px 10px; margin:0;
  }
  .has-dropdown.open > .dropdown{display:block;}
  .dropdown li a{
    color:#c9d1e2; padding:11px 10px; font-size:.88rem;
    border-radius:4px; white-space:normal;
  }
  .dropdown li a:hover,
  .dropdown li a:focus-visible{background:rgba(255,255,255,.08); color:#fff;}

  .nav-backdrop{
    position:fixed; inset:0; background:rgba(10,14,26,.62);
    opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .2s ease, visibility .2s ease; z-index:250;
  }
  .nav-backdrop.show{opacity:1; visibility:visible; pointer-events:auto;}

  .header-cta .btn-primary span{display:none;}
  .hero-inner{padding:56px 20px 46px;}
  .hero-slide{width:min(84%, 320px);}
  .hero p.lead{max-width:none;}
  .card-grid{grid-template-columns:1fr;}
  .steps-grid{grid-template-columns:1fr;}
  .feature-grid{grid-template-columns:1fr;}
  .photo-mosaic{grid-template-columns:repeat(2, 1fr); grid-auto-rows:150px;}
  .photo-mosaic figure.tall{grid-row:span 1;}
}

@media (max-width: 520px){
  .main-nav{width:92vw; padding-left:16px; padding-right:16px;}
  .mobile-nav-head{margin-left:-16px; margin-right:-16px; padding-left:16px; padding-right:16px;}
  .mobile-nav-head .brand img{height:40px; max-width:175px;}
  .nav-toggle{min-width:46px; width:46px; padding:9px; gap:0;}
  .nav-toggle-label{display:none;}
}

@media (max-width: 720px){
  .split{grid-template-columns:1fr;}
  .split .split-media{order:-1; margin-bottom:10px;}
  .form-row{grid-template-columns:1fr;}
  .footer-top{grid-template-columns:1fr 1fr; gap:28px;}
  .cta-band{flex-direction:column; text-align:center; padding:36px 26px;}
  .cta-band .btn{width:100%;}
  .topbar .container{justify-content:center; display:grid; text-align:center;}
}

@media (max-width: 520px){
  .footer-top{grid-template-columns:1fr;}
  .footer-bottom{flex-direction:column; text-align:center;}
  .hero-stats{gap:0;}
  .hero-slide{width:100%;}
  .hero-slide img{height:180px;}
  .article-body{padding:26px 20px;}
  .brand img{height:38px;}
  .section{padding:50px 0;}
  .photo-mosaic{grid-template-columns:1fr 1fr; grid-auto-rows:120px;}
}
