/* =============================================================
   Carpet Malaysia — design system
   Single source of truth for the global shell + pages.
   Palette derived from the brand logo (confirm exact hex vs source).
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette — exact hex sampled from the logo (CLAUDE.md §4) */
  --navy:        #042044;   /* deep navy — headings, primary brand, button bg */
  --navy-900:    #02162F;   /* darker navy — footer / hero base */
  --navy-700:    #103663;   /* lifted navy — hovers on dark */
  --green:       #01493D;   /* forest/emerald green — primary accent, CTA fills (AA white-on-green) */
  --green-700:   #013930;   /* deeper green — hover */
  --gold:        #A27F40;   /* antique khaki gold — DECORATIVE ONLY (borders, dividers, large display, accents on dark) */
  --gold-700:    #7C5F30;   /* deeper gold — AA-safe gold text on light if ever needed */
  --bg:          #F4F4F2;   /* page background */
  --surface:     #FFFFFF;   /* cards / raised surfaces */
  --surface-2:   #ECECE8;   /* sunken / alt band */
  --ink:         #042044;   /* primary text / headings */
  --muted:       #5A6472;   /* body / secondary text (AA on white & bg) */
  --line:        #E3E2DD;   /* hairline borders on light */

  /* On-dark text */
  --on-dark:        #F4F4F2;
  --on-dark-muted:  #B7C0CE;
  --on-dark-line:   rgba(255,255,255,.14);

  /* Type (locked — CLAUDE.md §4) */
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Fluid type scale */
  --fs-300: clamp(.8125rem, .78rem + .15vw, .875rem);
  --fs-400: clamp(.9375rem, .9rem + .2vw, 1rem);
  --fs-500: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-600: clamp(1.25rem, 1.12rem + .6vw, 1.5rem);
  --fs-700: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --fs-800: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-900: clamp(2.5rem, 1.8rem + 3.4vw, 4.25rem);

  /* Spacing / layout */
  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(2,22,47,.06), 0 2px 8px rgba(2,22,47,.05);
  --shadow-md: 0 4px 16px rgba(2,22,47,.08), 0 12px 32px rgba(2,22,47,.07);
  --shadow-lg: 0 18px 50px rgba(2,22,47,.14);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; 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 {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-color: rgba(1,73,61,.35); text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -.01em; }
strong { font-weight: 700; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: .65rem 1rem; border-radius: 8px;
  transition: top .2s var(--ease); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.75rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-300);
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; border-radius: 2px; }
.section__head { max-width: 720px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head h2 { font-size: var(--fs-800); margin-top: .7rem; }
.section__head p { color: var(--muted); font-size: var(--fs-500); margin-top: .9rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.lede { font-size: var(--fs-500); color: var(--muted); }

/* Songket motif — thin woven band used as a divider accent */
.songket-band {
  height: 8px;
  background:
    repeating-linear-gradient(135deg, var(--gold) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(45deg, rgba(1,73,61,.55) 0 6px, transparent 6px 12px);
  opacity: .55;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-400);
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: .95rem 1.6rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--green); }
.btn--primary:hover { background: var(--green-700); }
.btn--navy { --btn-bg: var(--navy); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: rgba(4,32,68,.25); box-shadow: none; }
.btn--ghost:hover { --btn-fg: var(--navy); background: rgba(4,32,68,.05); border-color: rgba(4,32,68,.4); }
.btn--on-dark.btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.btn--on-dark.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--fs-500); }
.btn .ico { width: 1.15em; height: 1.15em; }

/* WhatsApp pill — darkened green so white label clears WCAG AA (5.16:1) */
.btn--whatsapp { --btn-bg: #0E7E3B; }
.btn--whatsapp:hover { background: #0B6A32; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,244,242,.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 1.25rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: 0 0 auto; }
.brand__mark { width: 46px; height: 46px; }
.brand__wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; color: var(--navy); letter-spacing: -.01em; }
.brand__name strong { color: var(--green); font-weight: 600; }
.brand__tag { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: .28rem; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: .35rem; }
.primary-nav a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none;
  padding: .6rem .85rem; border-radius: 9px; transition: background .15s var(--ease), color .15s var(--ease);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: rgba(4,32,68,.06); color: var(--green); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; width: .42em; height: .42em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .6; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: .5rem; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { padding: .6rem .8rem; border-radius: 9px; font-size: .92rem; }
.submenu a small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }

.header-cta { margin-left: .5rem; flex: 0 0 auto; }
.nav-toggle { display: none; }

/* Mobile nav */
.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 21px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .header-cta.header-cta--desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: 74px 0 auto 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden;
    visibility: hidden; /* keep collapsed links out of the tab order (WCAG 2.4.3) */
    transition: max-height .28s var(--ease), visibility 0s linear .28s;
  }
  body.nav-open .primary-nav { max-height: calc(100vh - 74px); overflow-y: auto; visibility: visible; transition: max-height .28s var(--ease), visibility 0s; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem var(--gutter) 1.4rem; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line); }
  .primary-nav a { padding: .95rem .4rem; font-size: 1.05rem; border-radius: 0; }
  .has-sub > a::after { margin-left: auto; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 .6rem .6rem; min-width: 0;
  }
  .primary-nav .mobile-cta { margin-top: 1rem; display: flex; }
}
@media (min-width: 961px) { .primary-nav .mobile-cta { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  background: var(--navy-900);
  color: var(--on-dark);
  isolation: isolate;
}
/* Mosque photo background */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* Left-weighted dark overlay so hero text stays readable */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(4,32,68,0.92) 0%, rgba(4,32,68,0.78) 45%, rgba(4,32,68,0.55) 100%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.25rem, 8vw, 6rem); }
.hero__eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: var(--fs-300); display: inline-flex; gap: .6rem; align-items: center; }
.hero__eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { font-size: var(--fs-900); color: #fff; margin-top: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__sub { font-size: var(--fs-500); color: var(--on-dark-muted); max-width: 46ch; margin-top: 1.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2.1rem; margin-top: 2.4rem; padding-top: 1.7rem; border-top: 1px solid var(--on-dark-line); }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-family: var(--font-display); font-size: var(--fs-600); color: #fff; font-weight: 600; }
.hero__trust span { font-size: var(--fs-300); color: var(--on-dark-muted); letter-spacing: .02em; }

/* Hero logo card */
.hero__art { position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid rgba(4,32,68,.08); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; padding-block: 24px; }
.hero__art picture { display: contents; }
.hero-logo-card { width: 88%; height: auto; }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  /* Decorative hero card is hidden on phones for a tighter, conversion-focused
     hero (the songket band below already provides visual texture). */
  .hero__art { display: none; }
}

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.cat-card {
  position: relative; display: flex; flex-direction: column; min-height: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(1,73,61,.4); color: var(--ink); }
.cat-card__swatch { width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.cat-card__swatch svg { width: 30px; height: 30px; }
.cat-card h3 { font-size: var(--fs-600); margin-top: 1.1rem; }
.cat-card p { color: var(--muted); font-size: var(--fs-400); margin-top: .4rem; }
.cat-card__more { margin-top: auto; padding-top: 1rem; font-weight: 700; font-size: .9rem; color: var(--green); display: inline-flex; align-items: center; gap: .4rem; }
.cat-card__more svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.cat-card:hover .cat-card__more svg { transform: translateX(4px); }
.cat-card__tag { position: absolute; top: 1.1rem; right: 1.1rem; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6F5230; background: rgba(183,148,106,.14); border: 1px solid rgba(183,148,106,.5); padding: .25rem .5rem; border-radius: 999px; }

/* ---------- Why us ---------- */
.why { background: var(--surface); }
.why__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why__points { display: grid; gap: 1.1rem; }
.why-point { display: flex; gap: 1rem; }
.why-point__ic { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 13px; background: rgba(1,73,61,.1); color: var(--green); display: grid; place-items: center; }
.why-point__ic svg { width: 25px; height: 25px; }
.why-point h3 { font-size: var(--fs-500); font-family: var(--font-body); font-weight: 700; }
.why-point p { color: var(--muted); font-size: var(--fs-400); margin-top: .25rem; }
.why__aside { position: relative; background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); overflow: hidden; box-shadow: var(--shadow-md); }
.why__aside::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M32 2 L62 32 L32 62 L2 32 Z' stroke='%23A27F40' stroke-opacity='0.4'/%3E%3Cpath d='M32 14 L50 32 L32 50 L14 32 Z' stroke='%2301493D' stroke-opacity='0.6'/%3E%3C/svg%3E"); background-size: contain; opacity: .7; }
.why__aside .eyebrow { color: var(--gold); }
.why__aside h3 { color: #fff; font-size: var(--fs-700); margin-top: .6rem; }
.why__aside p { color: var(--on-dark-muted); margin-top: .9rem; }
.why__aside .btn { margin-top: 1.5rem; }

/* ---------- Featured ranges ---------- */
.ranges { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.range-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; padding: 1.5rem; box-shadow: var(--shadow-sm); isolation: isolate; border: 1px solid var(--line); }
.range-card__bg { position: absolute; inset: 0; z-index: -2; }
.range-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,16,32,.86) 8%, rgba(8,16,32,.28) 55%, rgba(8,16,32,.12) 100%); }
.range-card__kicker { font-size: var(--fs-300); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.range-card h3 { color: #fff; font-size: var(--fs-700); margin-top: .4rem; }
.range-card p { color: rgba(255,255,255,.86); font-size: var(--fs-400); margin-top: .55rem; max-width: 34ch; }
.range-card__more { margin-top: 1.1rem; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.range-card__more svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.range-card:hover .range-card__more svg { transform: translateX(4px); }
@media (max-width: 880px) { .ranges { grid-template-columns: 1fr; } .why__grid { grid-template-columns: 1fr; } }

/* ---------- Projects teaser ---------- */
.projects { background: var(--surface-2); }
.projects__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.proj-tile { aspect-ratio: 1; border-radius: var(--radius-sm); border: 1px dashed rgba(4,32,68,.22); background: var(--surface); display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); }
.proj-tile svg { width: 34px; height: 34px; color: var(--gold-700); opacity: .8; }
.proj-tile span { display: block; font-size: var(--fs-300); margin-top: .6rem; font-weight: 600; letter-spacing: .02em; }
.projects__note { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.projects__note p { color: var(--muted); font-size: var(--fs-400); margin: 0; }
@media (max-width: 720px) { .projects__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- WhatsApp CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E"); background-size: 42px 42px; }
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.cta-band h2 { color: #fff; font-size: var(--fs-700); max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: .55rem; font-size: var(--fs-500); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.cta-band .btn--whatsapp { --btn-bg: #fff; --btn-fg: #013930; }
.cta-band .btn--whatsapp:hover { --btn-bg: #f0fff6; background: #f0fff6; }
.cta-band .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); box-shadow: none; }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Newsletter ---------- */
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.newsletter h2 { font-size: var(--fs-700); }
.newsletter p { color: var(--muted); margin-top: .6rem; }
.newsletter form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter input[type="email"] { flex: 1 1 220px; min-width: 0; padding: .95rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; color: var(--ink); background: var(--bg); }
.newsletter input:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.newsletter small { display: block; margin-top: .8rem; color: var(--muted); font-size: var(--fs-300); }
@media (max-width: 720px) { .newsletter__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(1.6rem, 4vw, 3rem); padding-block: clamp(2.75rem, 6vw, 4rem); }
.footer__brand .brand__mark { width: 50px; height: 50px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name strong { color: var(--gold); }
.footer__about { margin-top: 1.1rem; font-size: var(--fs-400); max-width: 34ch; }
.footer__sister { margin-top: 1.1rem; font-size: var(--fs-300); color: var(--on-dark-muted); }
.footer__sister a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.footer-col h3 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { font-size: var(--fs-400); }
.footer__contact li { display: flex; gap: .65rem; margin-bottom: .9rem; font-size: var(--fs-400); align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--gold); margin-top: .2rem; }
.footer__contact a, .footer__contact span { color: var(--on-dark-muted); }
.footer__bottom { border-top: 1px solid var(--on-dark-line); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; font-size: var(--fs-300); }
.footer__bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__socials { display: flex; gap: .6rem; }
.footer__socials a { width: 38px; height: 38px; border: 1px solid var(--on-dark-line); border-radius: 10px; display: grid; place-items: center; transition: background .15s var(--ease), border-color .15s; }
.footer__socials a:hover { background: rgba(255,255,255,.08); border-color: var(--gold); }
.footer__socials svg { width: 18px; height: 18px; }
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #0E7E3B; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(14,126,59,.45); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =============================================================
   Category / hub / inner pages
   ============================================================= */

/* Breadcrumb */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-block: .8rem; font-size: var(--fs-300); color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--gold); opacity: .8; }
.breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* Compact page hero */
.page-hero {
  position: relative; overflow: clip; color: var(--on-dark);
  background:
    radial-gradient(110% 90% at 88% 0%, rgba(1,73,61,.32) 0%, transparent 55%),
    radial-gradient(80% 90% at 0% 100%, rgba(183,148,106,.18) 0%, transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23A27F40' stroke-opacity='0.14' stroke-width='1.2'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Cpath d='M40 16 L64 40 L40 64 L16 40 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
}
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4.25rem); max-width: 760px; }
.page-hero__eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: var(--fs-300); display: inline-flex; gap: .55rem; align-items: center; }
.page-hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.page-hero h1 { color: #fff; font-size: var(--fs-800); margin-top: 1rem; }
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero__sub { color: var(--on-dark-muted); font-size: var(--fs-500); margin-top: 1.1rem; max-width: 60ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.page-hero__chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.7rem; }
.page-hero__chips span { font-size: var(--fs-300); font-weight: 600; color: var(--on-dark); border: 1px solid var(--on-dark-line); background: rgba(255,255,255,.05); padding: .4rem .8rem; border-radius: 999px; }

/* Lead grid: prose + aside quote card */
.lead-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--muted); font-size: var(--fs-500); }
.prose h2 { font-size: var(--fs-700); margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul.checklist { display: grid; gap: .7rem; margin-top: 1.2rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); font-size: var(--fs-400); }
.checklist li svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--green); margin-top: .1rem; }
.quote-card { position: sticky; top: 96px; background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-md); overflow: hidden; }
.quote-card .eyebrow { color: var(--gold); }
.quote-card h3 { color: #fff; font-size: var(--fs-600); margin-top: .5rem; }
.quote-card p { color: var(--on-dark-muted); margin-top: .7rem; font-size: var(--fs-400); }
.quote-card .btn { margin-top: 1.2rem; width: 100%; }
.quote-card__list { margin-top: 1.3rem; display: grid; gap: .7rem; border-top: 1px solid var(--on-dark-line); padding-top: 1.2rem; }
.quote-card__list li { display: flex; gap: .6rem; font-size: var(--fs-300); color: var(--on-dark-muted); align-items: flex-start; }
.quote-card__list svg { width: 17px; height: 17px; color: var(--gold); flex: 0 0 auto; margin-top: .15rem; }
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; } .quote-card { position: static; } }

/* Options grid (variations / types) */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.option-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; border-top: 3px solid var(--green); }
.option-card h3 { font-size: var(--fs-500); font-family: var(--font-body); font-weight: 700; }
.option-card p { color: var(--muted); font-size: var(--fs-400); margin-top: .45rem; }
.option-card .tagline { display: inline-block; margin-top: .9rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }

/* Use-cases */
.usecases { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.usecase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
.usecase__ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(1,73,61,.1); color: var(--green); display: grid; place-items: center; }
.usecase__ic svg { width: 23px; height: 23px; }
.usecase h3 { font-size: var(--fs-500); font-family: var(--font-body); font-weight: 700; }
.usecase p { color: var(--muted); font-size: var(--fs-400); }

/* FAQ accordion */
.faq { display: grid; gap: .8rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.2rem; transition: box-shadow .2s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(1,73,61,.35); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 700; font-size: var(--fs-500); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: .55rem; height: .55rem; flex: 0 0 auto; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > p { color: var(--muted); font-size: var(--fs-400); padding: 0 0 1.1rem; margin: 0; max-width: 70ch; }

/* Related ranges (reuses cat-grid/cat-card) */
.related { background: var(--surface-2); }

/* =============================================================
   Articles + Contact + Projects
   ============================================================= */

/* Article hero meta line */
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.4rem; color: var(--on-dark-muted); font-size: var(--fs-300); }
.page-hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.page-hero__meta svg { width: 16px; height: 16px; color: var(--gold); }

/* Article body */
.article-body { max-width: 760px; margin-inline: auto; }
.article-body h2 { font-size: var(--fs-700); margin-top: 2.6rem; margin-bottom: .2rem; scroll-margin-top: 90px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--ink); font-size: var(--fs-500); line-height: 1.78; margin-top: 1rem; }
.article-body ul, .article-body ol { margin: 1.1rem 0; padding-left: 1.4rem; display: grid; gap: .55rem; color: var(--ink); font-size: var(--fs-500); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { padding-left: .25rem; line-height: 1.7; }
.article-body li::marker { color: var(--green); }

/* Key takeaways box */
.key-takeaways { max-width: 760px; margin: 0 auto 2.4rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 1.5rem 1.7rem; }
.key-takeaways h2 { font-family: var(--font-body); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.key-takeaways ul { list-style: none; display: grid; gap: .65rem; margin-top: 1rem; padding: 0; }
.key-takeaways li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); font-size: var(--fs-400); }
.key-takeaways li svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--green); margin-top: .15rem; }

/* Article cards (index + related articles) */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(1,73,61,.4); color: var(--ink); }
.article-card__cat { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
.article-card h3 { font-size: var(--fs-600); margin-top: .55rem; }
.article-card p { color: var(--muted); font-size: var(--fs-400); margin-top: .55rem; flex: 1; }
.article-card__foot { margin-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; }
.article-card__meta { font-size: var(--fs-300); color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.article-card__meta svg { width: 15px; height: 15px; color: var(--gold); }
.article-card__more { font-weight: 700; font-size: .9rem; color: var(--green); display: inline-flex; align-items: center; gap: .4rem; }
.article-card__more svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.article-card:hover .article-card__more svg { transform: translateX(4px); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.contact-details { display: grid; gap: 1.2rem; }
.contact-detail { display: flex; gap: .95rem; }
.contact-detail__ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; background: rgba(1,73,61,.1); color: var(--green); display: grid; place-items: center; }
.contact-detail__ic svg { width: 23px; height: 23px; }
.contact-detail h3 { font-family: var(--font-body); font-size: var(--fs-400); font-weight: 700; }
.contact-detail p, .contact-detail a { color: var(--muted); font-size: var(--fs-400); margin-top: .2rem; text-decoration: none; display: block; }
.contact-detail a:hover { color: var(--green); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3.4; background: var(--surface-2); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .contact-map { aspect-ratio: 16/10; } }

/* Contact form */
.contact-form { display: grid; gap: .9rem; }
.contact-form label { font-weight: 600; font-size: var(--fs-300); color: var(--ink); display: block; margin-bottom: .3rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: var(--bg); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }

