/* ============================================
   AMRUT GEMS — DESIGN SYSTEM (v2 — built from brand logo)
   ============================================
   Palette (sampled directly from the logo artwork):
     --cobalt      #1B4F7A   deep cobalt blue   (primary / "Amrut" script)
     --steel       #2E7FB8   bright steel blue  (secondary / links / CTAs)
     --steel-light #7CA5CA   light steel blue   (soft accents)
     --graphite    #5B5D60   graphite grey      ("Gems" wordmark tone)
     --silver      #ADB9BD   silver grey        (borders, dividers, shard)
     --navy        #0E1B2B   deep navy-black    (high-contrast sections, used sparingly)
     --paper       #F7F3E9   warm off-white     (dominant background, aged-paper tone)
   ============================================ */

:root {
  --cobalt: #1B4F7A;
  --cobalt-deep: #133A5C;
  --steel: #2E7FB8;
  --steel-light: #7CA5CA;
  --graphite: #5B5D60;
  --graphite-dark: #3A3C3F;
  --silver: #ADB9BD;
  --silver-pale: #E8E1D2;
  --navy: #0E1B2B;
  --navy-soft: #16273A;
  --paper: #F7F3E9;
  --paper-dim: #EFE8D8;
  --white: #FFFEFA;

  /* legacy aliases so existing markup keeps working */
  --ink: var(--navy);
  --ink-soft: var(--navy-soft);
  --ivory: var(--paper);
  --ivory-dim: var(--paper-dim);
  --gold: var(--steel);
  --gold-bright: var(--steel-light);
  --stone: var(--graphite);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-script: 'Cormorant Garamond', 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1240px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Subtle paper-grain texture, reused across body and section backgrounds */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  background-image: var(--grain);
  background-repeat: repeat;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============ FACET DIVIDER (signature motif) ============ */
.facet-divider {
  width: 100%;
  height: 28px;
  display: block;
  line-height: 0;
}

.facet-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 1px solid var(--silver-pale);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(14, 27, 43, 0.6);
  /* backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); */
  z-index: 1;
  bottom: -1px;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(100%);
}

.site-header.header-open::after {
  transform: translateX(0);
  opacity: 1;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
}

.brand-mark {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-wordmark {
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.brand-wordmark-header {
  height: 45px;
  width: auto;
  margin-top: 9px;
}

.brand-wordmark-footer {
  height: 26px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.main-nav-header {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav ul .hidden-nav-cta {
  display: none;
}


.main-nav a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--steel);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--cobalt);
  color: var(--white) !important;
  padding: 0.85rem 1.7rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem !important;
  letter-spacing: 0.02em;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background: var(--steel);
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.6rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ============ HERO ============ */
.hero {
  /* background: linear-gradient(135deg, var(--navy) 0%, var(--cobalt-deep) 55%, var(--cobalt) 100%); */
  background: url(../images/home/hero.webp) no-repeat;
  background-size: cover;
  background-position: center;
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-facets {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 1.2rem;
  color: var(--steel-light);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 4.2vw, 3.7rem);
  margin-bottom: 1.3rem;
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  font-family: var(--font-script);
  color: var(--steel-light);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(250, 251, 252, 0.82);
  max-width: 40ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--steel);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--steel-light);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(250, 251, 252, 0.4);
  color: var(--paper);
}

.btn-outline:hover {
  border-color: var(--steel-light);
  color: var(--steel-light);
}

.btn-dark {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}

.btn-dark:hover {
  background: var(--cobalt-deep);
}

/* hero stone visual */
.hero-stone {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stone svg {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 30px 60px rgba(124, 165, 202, 0.28));
}

/* ============ STATS STRIP ============ */
.stats-strip {
  background: var(--paper-dim);
  border-bottom: 1px solid var(--silver-pale);
  padding: var(--space-md) 0;
}

.stats-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat {
  text-align: left;
  border-left: 2px solid var(--steel);
  padding-left: 1rem;
}

.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  color: var(--cobalt);
  display: block;
  white-space: nowrap;
}

.stat .label {
  font-size: 0.82rem;
  color: var(--graphite);
  margin-top: 0.2rem;
}

/* ============ SECTION SCAFFOLD ============ */
.section {
  padding: var(--space-xl) 0;
}

.section-ivory {
  background-color: var(--paper);
  background-image: var(--grain);
}

.section-dim {
  background-color: var(--paper-dim);
  background-image: var(--grain);
}

.section-ink {
  background: var(--navy);
  color: var(--paper);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin: 0.6rem 0 1rem;
  color: var(--navy);
}

.section-head p {
  color: var(--graphite);
  font-size: 1.05rem;
}

.section-ink .section-head h2 {
  color: var(--white);
}

.section-ink .section-head p {
  color: rgba(250, 251, 252, 0.72);
}

/* ============ ABOUT / SPLIT ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.split-media {
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--paper-dim), var(--silver-pale));
  border: 1px solid var(--silver-pale);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-page.split-media {
  aspect-ratio: 4/4;
}

.home-page.split-media img,
.about-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page img {
  object-position: center;
}

.split-media svg {
  width: 55%;
  opacity: 0.95;
}

.split-media .media-tag {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  color: var(--graphite);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.split-text h3 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.split-text p {
  color: var(--graphite);
  margin-bottom: 1.2rem;
}

.split-text p:last-of-type {
  margin-bottom: 1.6rem;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.checklist li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--steel);
}

/* ============ PRODUCT GRID ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--silver-pale);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(14, 27, 43, 0.1);
  border-color: var(--steel-light);
}

.product-media {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--paper-dim), var(--silver-pale));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media svg {
  width: 38%;
}

.home-product-section .product-media img {
  max-height: 283px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.product-body {
  padding: 1.5rem;
}

.product-body .tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 700;
}

.product-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0.5rem 0 0.5rem;
  color: var(--navy);
}

.product-body p {
  color: var(--graphite);
  font-size: 0.92rem;
}

/* ============ PROCESS (loupe / inspection motif) ============ */
.process-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.process-step {
  position: relative;
  padding: 1.9rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--silver-pale);
  border-top: 3px solid var(--steel);
}

.loupe {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--cobalt);
}

.process-step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.process-step p {
  font-size: 0.88rem;
  color: var(--graphite);
}

/* ============ BROKER CALLOUT ============ */
.broker-callout {
  background: linear-gradient(135deg, var(--navy), var(--cobalt-deep));
  color: var(--paper);
  border-radius: 3px;
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-md);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.broker-callout::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(124, 165, 202, 0.22), transparent 70%);
}

.broker-callout h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
  position: relative;
  color: var(--white);
}

.broker-callout p {
  color: rgba(250, 251, 252, 0.78);
  margin-bottom: 1.5rem;
  max-width: 50ch;
  position: relative;
}

.broker-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.broker-note {
  font-size: 0.78rem;
  color: rgba(250, 251, 252, 0.55);
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

/* ============ BLOG PREVIEW ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.blog-card {
  display: block;
}

.blog-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--paper-dim), var(--silver-pale));
  border: 1px solid var(--silver-pale);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--graphite);
}

.home-blog-section .blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-card .date {
  font-size: 0.78rem;
  color: var(--steel);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-card h4 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.4rem;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--stone);
}

/* ============ CONTACT / INQUIRY FORM ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-lg);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
  align-items: flex-start;
}

.contact-detail svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--stone);
}

.contact-detail .value {
  font-size: 0.98rem;
  color: var(--ink);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--silver-pale);
  border-top: 3px solid var(--steel);
  padding: 2.2rem;
  border-radius: 3px;
  box-shadow: 0 20px 50px rgba(14, 27, 43, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--silver);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--navy);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--steel);
  background: var(--white);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.88rem;
  display: none;
}

.form-status.success {
  display: block;
  color: #2f6f4f;
}

.form-status.error {
  display: block;
  color: #b3432b;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  color: rgba(250, 251, 252, 0.7);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 32ch;
  color: rgba(250, 251, 252, 0.55);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 1rem;
}

.footer-col li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--steel-light);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 251, 252, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(250, 251, 252, 0.45);
}

/* ============ PAGE HEADER (for inner pages) ============ */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--cobalt-deep));
  color: var(--paper);
  padding: var(--space-lg) 0 var(--space-md);
}

.page-header .eyebrow {
  margin-bottom: 0.8rem;
  color: var(--steel-light);
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.5vw, 2.9rem);
  color: var(--white);
}

.page-header p {
  color: rgba(250, 251, 252, 0.75);
  max-width: 50ch;
  margin-top: 1rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--stone);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--steel);
}

/* ============ NAVIGATION BACKDROP ============ */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(14, 27, 43, 0.6);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ============ RESPONSIVE ============ */

html,
body {
  /* overflow-x: hidden; */
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 980px) {
  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-wordmark-header {
    height: 35px;
    margin-top: 9px;
  }

  .main-nav {
    gap: 15px;
  }

  .main-nav ul {
    gap: 1.2rem;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-stone {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }

  .wrap {
    padding: 0 0.9375rem;
  }

  .stats-strip .wrap {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.5rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split-media {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .home-page.split-media {
    aspect-ratio: 4 / 4;
    max-width: 100%;
    max-height: 400px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .broker-callout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767.98px) {
  .brand-wordmark-header {
    height: 18px;
    display: none;
    width: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --space-lg: 2.6rem;
    --space-xl: 3.6rem;
  }

  .wrap {
    padding: 0 0.9375rem;
  }

  .site-header .wrap {
    height: 72px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-wordmark-header {
    height: 35px;
    display: block;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
    padding: 0.4rem 0.5rem;
    min-width: 44px;
    min-height: 44px;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .menu-toggle:hover {
    opacity: 0.85;
  }

  .menu-toggle:active {
    transform: scale(0.95);
  }

  .main-nav-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid rgba(250, 251, 252, 0.1);
    padding: 0 1.5rem 1rem;
    margin: 0 -1.5rem;
  }

  .main-nav-header .brand-mark {
    max-width: 50px;
    max-height: 50px;
  }

  .main-nav-header .menu-toggle {
    color: var(--white);
    padding: 0;
    min-width: 30px;
    min-height: 30px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1020;
    box-shadow: -10px 0px 30px rgba(14, 27, 43, 0.25);
  }

  .main-nav ul .hidden-nav-cta {
    display: list-item;
  }

  .main-nav .nav-cta.hidden-nav-cta {
    display: none;
  }

  .main-nav.open {
    transform: translateX(0);
    box-shadow: -6px 0 49px 7px #ffffff21;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.3rem;
  }

  .main-nav a {
    color: var(--paper);
    font-size: 1.05rem;
    padding: 0.85rem 0.2rem;
    display: block;
    border-bottom: 1px solid rgba(250, 251, 252, 0.1);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--steel-light);
  }

  .nav-cta {
    text-align: center;
    padding: 0.95rem 1.4rem;
    margin-top: 0.5rem;
  }

  .hero {
    padding: 2.6rem 0 2.2rem;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .hero p {
    font-size: 1rem;
    max-width: none;
  }

  .hero-stone {
    max-width: 190px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .home-product-section .product-media {
    aspect-ratio: unset;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .process-rail {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .home-blog-section .blog-grid {
    gap: 2.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-strip .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .broker-callout {
    padding: 2rem 1.5rem;
  }

  .broker-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .form-card {
    padding: 1.5rem;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .btn {
    padding: 0.95rem 1.5rem;
    min-height: 44px;
  }
}

@media (max-width: 400px) {
  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-wordmark-header {
    height: 30px;
  }

  .stats-strip .wrap {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 349.98px) {
  .main-nav {
    width: 100%;
  }
}