/* ============================================================
   Shri Rama Welfare Trust — Design System
   Palette from the trust emblem: navy · forest green · amber
   ============================================================ */

:root {
  /* Brand */
  --navy:        #13294b;
  --navy-800:    #1a3560;
  --navy-700:    #24457a;
  --green:       #2f7d33;
  --green-600:   #3a8c3f;
  --green-050:   #eaf4ea;
  --amber:       #f2a71b;
  --amber-600:   #e0940a;
  --amber-050:   #fdf1d8;

  /* Neutrals */
  --bg:          #fbfaf6;
  --surface:     #ffffff;
  --surface-2:   #f4f1ea;
  --ink:         #17223a;
  --body:        #495468;
  --muted:       #7a8496;
  --line:        #e7e3d9;
  --line-soft:   #efece4;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(19,41,75,.05), 0 1px 3px rgba(19,41,75,.06);
  --shadow:    0 6px 22px -8px rgba(19,41,75,.18);
  --shadow-lg: 0 24px 60px -20px rgba(19,41,75,.28);
  --ring: 0 0 0 4px rgba(242,167,27,.28);

  /* Shape */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Type */
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ------------------------------ Reset ------------------------------ */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input,select,textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ------------------------------ Typography ------------------------------ */
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h4 { font-size: 1.12rem; }
p { color: var(--body); }
strong { color: var(--ink); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.28rem); color: #3f4a5e; line-height: 1.6; }

/* ------------------------------ Layout ------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
section { position: relative; }
.section { padding: clamp(64px, 5vw + 40px, 120px) 0; }
.section-sm { padding: clamp(48px, 4vw + 24px, 84px) 0; }
.bg-surface { background: var(--surface); }
.bg-soft    { background: var(--surface-2); }
.bg-navy    { background: var(--navy); color: #d9e2f1; }
.bg-navy h1,.bg-navy h2,.bg-navy h3 { color: #fff; }

.grid { display: grid; gap: clamp(20px, 2vw, 30px); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }

/* ------------------------------ Eyebrow / section heads ------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-600);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); border-radius: 2px; }
.bg-navy .eyebrow { color: var(--amber); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 700; font-size: .98rem;
  letter-spacing: .005em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--amber); color: #3a2a05; box-shadow: 0 10px 24px -10px rgba(242,167,27,.75); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(242,167,27,.8); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(47,125,51,.7); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 1.02em 2em; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Text link with arrow */
.tlink { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--green-600); }
.tlink svg { width: 1em; height: 1em; transition: transform .2s ease; }
.tlink:hover svg { transform: translateX(4px); }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(251,250,246,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(19,41,75,.07), var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: var(--shadow-sm); background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--navy); letter-spacing: -.01em; }
.brand-sub  { font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-600); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: .55em .85em; font-weight: 600; font-size: .95rem; color: #33405a; border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--navy); background: rgba(19,41,75,.05); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .28em; height: 2px; background: var(--amber); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #e7ecf6; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1000px 520px at 82% -8%, rgba(242,167,27,.20), transparent 60%),
    linear-gradient(180deg, rgba(19,41,75,.62) 0%, rgba(19,41,75,.86) 62%, rgba(19,41,75,.96) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(72px, 8vw, 132px) 0 clamp(64px, 7vw, 118px); max-width: 860px; }
.hero h1 { color: #fff; }
.hero .lead { color: #cdd7ea; margin-top: 1.35rem; max-width: 660px; }
.hero .btn-row { margin-top: 2.2rem; }
.badge {
  display: inline-flex; align-items: center; gap: .6em; padding: .5em 1em; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  font-size: .82rem; font-weight: 600; color: #f4e7cf; letter-spacing: .02em; margin-bottom: 1.5rem;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242,167,27,.25); }

/* Page hero (interior pages) */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #dbe4f3; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,41,75,.66), rgba(19,41,75,.92)); }
.page-hero-inner { position: relative; z-index: 2; padding: clamp(72px, 8vw, 120px) 0 clamp(52px, 6vw, 84px); max-width: 780px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c9d4e8; margin-top: 1rem; }
.breadcrumb { display: flex; gap: .5em; align-items: center; font-size: .86rem; font-weight: 600; color: #a9b6d0; margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--amber); }

/* ------------------------------ Cards ------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.card-pad { padding: clamp(24px, 2.4vw, 34px); }

/* Icon tile */
.icon-tile {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--green-050); color: var(--green-600); margin-bottom: 18px;
}
.icon-tile.amber { background: var(--amber-050); color: var(--amber-600); }
.icon-tile.navy  { background: rgba(19,41,75,.08); color: var(--navy); }
.icon-tile svg { width: 28px; height: 28px; }

/* Initiative card */
.initiative { display: flex; flex-direction: column; }
.initiative h3 { margin-bottom: .5rem; }
.initiative .tag-num { font-family: var(--font-head); font-size: .95rem; color: var(--amber-600); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .42em .8em; border-radius: 999px;
  background: var(--surface-2); color: #3f4a5e; font-size: .82rem; font-weight: 600; border: 1px solid var(--line-soft);
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* Feature list */
.feature-list { display: grid; gap: 12px; margin-top: 8px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.feature-list .tick {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green-050); color: var(--green-600);
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list .tick svg { width: 14px; height: 14px; }

/* Media + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 5/4; object-fit: cover; }
.split-media { position: relative; }
.media-frame { position: relative; }
.media-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 18px 22px; display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.media-badge .mb-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--amber-050); color: var(--amber-600); display: grid; place-items: center; }
.media-badge strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); }
.media-badge span { font-size: .8rem; color: var(--muted); }

/* ------------------------------ Stats ------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; padding: 24px 12px; }
.stat .num { font-family: var(--font-head); font-size: clamp(1.8rem,1.2rem+1.6vw,2.6rem); color: var(--navy); font-weight: 600; }
.stat .lbl { font-size: .9rem; color: var(--muted); font-weight: 600; margin-top: 6px; }
.bg-navy .stat .num { color: #fff; } .bg-navy .stat .lbl { color: #a9b6d0; }

/* Notice banner */
.notice {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--r);
  background: linear-gradient(100deg, var(--amber-050), #fff); border: 1px solid var(--amber-050);
  box-shadow: var(--shadow-sm);
}
.notice .n-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--amber); color: #fff; display: grid; place-items: center; }
.notice p { color: #4a4230; font-size: .96rem; }
.notice strong { color: var(--amber-600); }

/* ------------------------------ Collaboration ------------------------------ */
.collab-card {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 2.6vw, 38px);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.collab-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.collab-top { display: flex; align-items: center; gap: 16px; }
.collab-logo {
  width: 66px; height: 66px; border-radius: 18px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; padding: 9px;
  background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
}
.collab-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.collab-card h3 { margin-bottom: 2px; }
.collab-card .role { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.collab-visit { margin-top: auto; }

/* ------------------------------ CTA band ------------------------------ */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #d9e2f1; border-radius: var(--r-xl); padding: clamp(40px,5vw,72px); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 20% 0%, rgba(242,167,27,.18), transparent 60%),
              radial-gradient(600px 300px at 90% 120%, rgba(47,125,51,.22), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band p { color: #c2cde3; max-width: 620px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }

/* ------------------------------ Gallery ------------------------------ */
.gallery-grid { columns: 3; column-gap: 18px; }
.gallery-grid figure { break-inside: avoid; margin-bottom: 18px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.gallery-grid img { width: 100%; transition: transform .5s ease; display: block; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 16px 14px; color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(transparent, rgba(19,41,75,.82)); opacity: 0; transition: opacity .3s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

/* ------------------------------ Forms ------------------------------ */
.form-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(26px,3vw,42px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: .82em 1em; border-radius: 12px; background: var(--bg);
  border: 1.5px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); background: #fff; box-shadow: 0 0 0 3px rgba(242,167,27,.16); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* Contact info list */
.info-list { display: grid; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ii-ic { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; background: var(--green-050); color: var(--green-600); display: grid; place-items: center; }
.info-item .ii-ic svg { width: 22px; height: 22px; }
.info-item h4 { color: var(--ink); margin-bottom: 3px; font-family: var(--font-body); font-weight: 700; font-size: .95rem; }
.info-item p, .info-item a { color: var(--body); }
.info-item a:hover { color: var(--green-600); }

/* Location map — exact embed of the Shri Rama Welfare office */
.map-embed { margin: 26px 0 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow); background: var(--surface); }
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }
.map-embed-open { display: flex; align-items: center; gap: .55em; padding: 14px 20px;
  font-size: .92rem; font-weight: 600; color: var(--navy); border-top: 1px solid var(--line-soft); }
.map-embed-open .pin { color: var(--amber); display: inline-flex; flex-shrink: 0; }
.map-embed-open .pin svg { width: 18px; height: 18px; }
.map-embed-open .go { margin-left: auto; display: inline-flex; }
.map-embed-open .go svg { width: 16px; height: 16px; transition: transform .25s ease; }
.map-embed:hover .map-embed-open .go svg { transform: translateX(4px); }

/* ------------------------------ Update / news cards ------------------------------ */
.update { display: flex; flex-direction: column; }
.update .u-media { aspect-ratio: 16/10; overflow: hidden; }
.update .u-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.update:hover .u-media img { transform: scale(1.05); }
.update .u-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.update .u-meta .pill { color: var(--green-600); }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: #0f2143; color: #a9b6d0; padding-top: clamp(56px,5vw,84px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand-name { color: #fff; }
.site-footer .f-about { margin-top: 18px; max-width: 320px; font-size: .95rem; color: #9fadC8; }
.f-title { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.f-links { display: grid; gap: 11px; }
.f-links a { color: #a9b6d0; font-size: .95rem; transition: color .2s ease, padding .2s ease; }
.f-links a:hover { color: var(--amber); padding-left: 4px; }
.f-contact { display: grid; gap: 14px; }
.f-contact .fc { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: #a9b6d0; }
.f-contact .fc svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; margin-top: 3px; }
.f-motto { display: inline-flex; gap: .6em; align-items: center; margin-top: 20px; font-weight: 600; color: #cdd7ea; font-size: .82rem; letter-spacing: .04em; }
.f-motto b { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; color: #8595b4; }
.footer-bottom a { color: #b9c5dd; } .footer-bottom a:hover { color: var(--amber); }

/* ------------------------------ Reveal animation (gated behind .js so no-JS users see content) ------------------------------ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------ Misc utilities ------------------------------ */
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.maxw-720{max-width:720px}.mx-auto{margin-inline:auto}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.prose p + p { margin-top: 1rem; }
.prose h3 { margin: 2rem 0 .8rem; }
.pill-tag { display:inline-block; padding:.4em .9em; border-radius:999px; background:var(--green-050); color:var(--green-600); font-weight:700; font-size:.78rem; letter-spacing:.04em; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { columns: 2; }
}
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .media-badge { left: 16px; bottom: 16px; }
  .form-grid { grid-template-columns: 1fr; }

  /* Mobile nav panel */
  .mobile-nav {
    display: block; position: fixed; inset: 0; z-index: 200; background: rgba(15,33,67,.5); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  }
  .mobile-nav.open { opacity: 1; visibility: visible; }
  .mobile-panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 86vw); background: var(--surface);
    box-shadow: var(--shadow-lg); padding: 26px 24px; display: flex; flex-direction: column; gap: 6px;
    transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.1,1);
  }
  .mobile-nav.open .mobile-panel { transform: none; }
  .mobile-panel .mp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .mobile-panel a.mlink { padding: .9em .6em; font-weight: 600; font-size: 1.06rem; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
  .mobile-panel a.mlink.active { color: var(--green-600); }
  .mobile-panel .btn { margin-top: 18px; }
}
@media (max-width: 560px) {
  .cols-3, .cols-4, .cols-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 1; }
  .brand-sub { display: none; }
  .btn-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
.nav-toggle { display: none; }
@media (max-width: 860px) { .nav-toggle { display: inline-flex; } }
