/* ==========================================================================
   Shalimar Blinds & Curtains, shalimarcurtains.com
   House style: terracotta & ivory
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Buttons & links
   6.  Header / navigation
   7.  Hero
   8.  Sections & cards
   9.  Product / spec tables
   10. Projects & testimonials
   11. Forms
   12. Footer
   13. Utilities & motion
   14. Responsive
   ========================================================================== */

/* 1. TOKENS ============================================================== */
:root {
  /* Brand: do not change without approval */
  --terra:        #E48056;
  --terra-dark:   #C4623B;
  --terra-deep:   #A24E2D;
  --terra-tint:   #F6DDD0;
  --terra-wash:   #FBEFE7;

  --ivory:        #EEECE4;
  --ivory-2:      #F7F5EF;
  --paper:        #FFFFFF;

  --ink:          #3A2A22;
  --ink-soft:     #554035;
  --muted:        #7A6559;
  --muted-2:      #9C8A7E;

  --line:         #E2DBD0;
  --line-2:       #D8CFBE;

  /* Type */
  --display: "Fraunces", "Georgia", "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space (8px scale) */
  --s1: .5rem;   --s2: 1rem;    --s3: 1.5rem;  --s4: 2rem;
  --s5: 3rem;    --s6: 4rem;    --s7: 6rem;    --s8: 8rem;

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --radius: 2px;
  --shadow-sm: 0 1px 3px rgba(90, 60, 40, .06), 0 4px 14px rgba(90, 60, 40, .05);
  --shadow-md: 0 4px 12px rgba(90, 60, 40, .08), 0 18px 40px rgba(90, 60, 40, .08);
  --shadow-lg: 0 10px 30px rgba(90, 60, 40, .10), 0 30px 70px rgba(90, 60, 40, .12);
  --ease: cubic-bezier(.4, 0, .2, 1);

  --header-h: 88px;
}

/* 2. RESET & BASE ======================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 44px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--terra); color: var(--ivory-2); }

:focus-visible {
  outline: 2px solid var(--terra-dark);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--ivory-2);
  padding: .75rem 1.25rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* 3. LAYOUT PRIMITIVES =================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s3); }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; }

.section { padding-block: var(--s7); }
.section--tight { padding-block: var(--s6); }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--terra { background: var(--terra); color: var(--ivory-2); }

.grid { display: grid; gap: var(--s4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 1.15fr; }

/* 4. TYPOGRAPHY ========================================================== */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; }

.h-display { font-size: clamp(2.75rem, 6.5vw, 5rem); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; }
.h1 { font-size: clamp(2.25rem, 4.8vw, 3.5rem); letter-spacing: -.025em; }
.h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -.02em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.h4 { font-size: 1.1rem; }

/* the light terracotta half of a headline, matches the datasheet masthead */
.thin { font-weight: 300; color: var(--terra-dark); font-style: italic; }
.section--ink .thin, .section--terra .thin { color: var(--terra-tint); }

.kicker {
  font-family: var(--body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terra-dark);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: var(--s2);
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--terra);
  flex: 0 0 26px;
}
.kicker--center { justify-content: center; }
.section--ink .kicker, .section--terra .kicker { color: var(--terra-tint); }
.section--ink .kicker::before, .section--terra .kicker::before { background: var(--terra-tint); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}
.section--ink .lede, .section--terra .lede { color: rgba(238, 236, 228, .82); }

p + p { margin-top: var(--s2); }
.prose p { color: var(--muted); }
.prose p + p { margin-top: var(--s2); }

.section-head { max-width: 700px; margin-bottom: var(--s5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head .lede { margin-top: var(--s2); }

/* 5. BUTTONS & LINKS ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn--primary:hover { background: var(--terra-dark); border-color: var(--terra-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--terra); color: var(--terra-dark); background: var(--terra-wash); }

.btn--ghost-light { background: transparent; color: var(--ivory); border-color: rgba(238, 236, 228, .4); }
.btn--ghost-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.btn--light { background: var(--ivory-2); color: var(--ink); border-color: var(--ivory-2); }
.btn--light:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terra-dark); text-decoration: none;
  border-bottom: 1.5px solid var(--terra-tint);
  padding-bottom: .35rem;
  transition: all .25s var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-arrow:hover { border-bottom-color: var(--terra); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 6. HEADER / NAVIGATION ================================================= */
.topbar {
  background: var(--ink);
  color: rgba(238, 236, 228, .78);
  font-size: .74rem;
  letter-spacing: .06em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2); min-height: 38px;
}
.topbar a { color: inherit; text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--terra); }
.topbar-list { display: flex; gap: var(--s3); align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-item svg { width: 13px; height: 13px; opacity: .7; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 239, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); background: rgba(247, 245, 239, .97); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); min-height: var(--header-h);
}

/* Wordmark: Shalimar over BLINDS & CURTAINS, per the datasheet */
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px;
  background: var(--terra);
  display: grid; place-items: center;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: block; }
.brand-text .name {
  display: block;
  font-family: var(--display); font-size: 1.5rem; font-weight: 600;
  color: var(--ink); line-height: 1; letter-spacing: -.02em;
}
.brand-text .sub {
  display: block;
  font-size: .56rem; letter-spacing: .34em; color: var(--muted);
  margin-top: 5px; font-weight: 500; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: var(--s1); }
.nav a {
  position: relative;
  padding: .6rem .7rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .02em;
  color: var(--ink-soft); text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color .22s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .28rem;
  height: 1.5px; background: var(--terra);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--terra-dark); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--terra-dark); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }
.header-cta .btn { padding: .8rem 1.4rem; font-size: .72rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-2); border-radius: var(--radius);
  cursor: pointer; place-items: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  position: relative; transition: background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* 7. HERO ================================================================ */
.hero {
  position: relative;
  min-height: min(84vh, 760px);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: stretch;
  background: var(--ivory);
  overflow: hidden;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s7) var(--s5) var(--s7) max(var(--s3), calc((100vw - var(--wrap)) / 2 + var(--s3)));
  position: relative;
  z-index: 2;
}
.hero-copy .h-display { margin-bottom: var(--s3); }
.hero-copy .lede { margin-bottom: var(--s4); }
.hero-media { position: relative; overflow: hidden; background: var(--terra-wash); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--ivory) 0%, rgba(238, 236, 228, .25) 22%, transparent 55%);
  pointer-events: none;
}

.hero-stats {
  display: flex; gap: var(--s5); flex-wrap: wrap;
  margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px solid var(--line-2);
}
.hero-stat .n {
  font-family: var(--display); font-size: 2.1rem; font-weight: 600;
  color: var(--terra-dark); line-height: 1;
}
.hero-stat .l {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-top: .45rem;
}

/* Compact page banner for interior pages */
.page-hero {
  background: var(--ink);
  color: var(--ivory);
  padding-block: var(--s7) var(--s6);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(228,128,86,.09) 0 2px,
      transparent 2px 46px);
  opacity: .9;
}
.page-hero::after {
  content: ""; position: absolute; right: -8%; top: -30%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,128,86,.22), transparent 68%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .h1 { color: var(--ivory); max-width: 18ch; }
.page-hero .lede { color: rgba(238, 236, 228, .78); margin-top: var(--s3); }
.page-hero .kicker { color: var(--terra); }
.page-hero .kicker::before { background: var(--terra); }

.breadcrumb {
  display: flex; gap: .5rem; align-items: center;
  font-size: .74rem; letter-spacing: .08em; color: rgba(238,236,228,.55);
  margin-bottom: var(--s3);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb span { opacity: .5; }

/* 8. SECTIONS & CARDS ==================================================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-2); }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
/* Technical drawings and products shot on white: show the whole item rather
   than filling the frame, on the ivory card colour. */
.card-media img.contain,
.showcase-media img.contain { object-fit: contain; background: var(--ivory-2); }
.card:hover .card-media img.contain { transform: none; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .tag {
  position: absolute; left: var(--s2); top: var(--s2);
  background: rgba(58, 42, 34, .82); color: var(--ivory-2);
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .38rem .7rem; border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.card-body { padding: var(--s3); display: flex; flex-direction: column; flex: 1; gap: .75rem; }
.card-body h3 { color: var(--ink); }
.card-body p { font-size: .93rem; color: var(--muted); line-height: 1.6; }
.card-body .link-arrow { margin-top: auto; align-self: flex-start; }

/* index-numbered feature card, echoes the datasheet component grid */
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  padding: var(--s3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature .idx {
  font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  color: var(--terra-dark); margin-bottom: .6rem;
}
.feature h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

.icon-badge {
  width: 46px; height: 46px;
  background: var(--terra-wash);
  border: 1px solid var(--terra-tint);
  border-radius: var(--radius);
  display: grid; place-items: center;
  margin-bottom: var(--s2);
}
.icon-badge svg { width: 22px; height: 22px; stroke: var(--terra-dark); }

/* Alternating image + copy rows */
.showcase { display: grid; gap: var(--s7); }
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.showcase-row:nth-child(even) .showcase-media { order: 2; }
.showcase-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--ivory);
  border-radius: var(--radius);
}
.showcase-media img { width: 100%; height: 100%; object-fit: cover; }
.showcase-media::before {
  content: ""; position: absolute; z-index: 1;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  pointer-events: none;
}
.showcase-copy h2 { margin-bottom: var(--s2); }

/* Bulleted spec list */
.tick-list { display: grid; gap: .7rem; margin-top: var(--s3); }
.tick-list li {
  position: relative; padding-left: 1.6rem;
  font-size: .95rem; color: var(--ink-soft); line-height: 1.55;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: 7px; height: 7px; background: var(--terra); transform: rotate(45deg);
}
.tick-list strong { color: var(--ink); font-weight: 600; }

/* Terracotta stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.stat-band .stat { text-align: center; }
.stat-band .n {
  font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600; line-height: 1;
}
.stat-band .l {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  margin-top: .6rem; opacity: .85;
}

/* Logo / brand strip */
.brand-strip {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  justify-content: center; align-items: center;
}
.brand-chip {
  border: 1px solid var(--line-2);
  background: var(--paper);
  padding: .8rem 1.5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  border-radius: var(--radius);
}

/* 9. PRODUCT / SPEC TABLES =============================================== */
.spec-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.spec-table caption {
  text-align: left; font-family: var(--display); font-size: 1.3rem; font-weight: 600;
  padding-bottom: var(--s2); color: var(--ink);
}
.spec-table thead th {
  background: var(--terra);
  color: #fff;
  font-family: var(--body);
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-align: left; padding: .95rem 1.1rem;
}
.spec-table td {
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  vertical-align: top;
}
.spec-table tbody tr:nth-child(even) { background: var(--ivory-2); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 600; color: var(--ink); width: 34%; }
.spec-table td:not(:first-child) { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* Small pill for openness factors, widths, etc. */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s2); }
.pill {
  background: var(--terra-wash);
  border: 1px solid var(--terra-tint);
  color: var(--terra-deep);
  font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  padding: .35rem .8rem; border-radius: 100px;
}
.pill--ink { background: var(--ivory); border-color: var(--line-2); color: var(--muted); }

/* 10. PROJECTS & TESTIMONIALS ============================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); grid-auto-flow: dense; }
.gallery-item {
  position: relative; overflow: hidden; aspect-ratio: 1; background: var(--ivory);
  border-radius: var(--radius); cursor: pointer;
}
.gallery-item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-item--tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(58, 42, 34, .88), transparent);
  color: var(--ivory-2);
  padding: var(--s4) var(--s2) var(--s2);
  font-size: .82rem;
  opacity: 0; transform: translateY(8px);
  transition: all .35s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery-item figcaption .loc {
  display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terra-tint); margin-bottom: .2rem;
}

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--s4) var(--s3) var(--s3);
  position: relative;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.quote::before {
  content: "\201C";
  position: absolute; top: -.35rem; left: var(--s3);
  font-family: var(--display); font-size: 4.5rem; line-height: 1;
  color: var(--terra-tint);
}
.quote blockquote {
  position: relative; z-index: 1;
  font-size: .98rem; line-height: 1.7; color: var(--ink-soft);
  flex: 1;
}
.quote figcaption {
  margin-top: var(--s3); padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: .82rem;
}
.quote figcaption .who { font-weight: 600; color: var(--ink); }
.quote figcaption .role { color: var(--muted-2); font-size: .76rem; margin-top: .15rem; }
.stars { color: var(--terra); letter-spacing: .12em; font-size: .82rem; margin-bottom: .8rem; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); counter-reset: step; }
.step { position: relative; padding-top: var(--s4); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--display); font-size: 2.4rem; font-weight: 600;
  color: var(--terra-tint); line-height: 1;
}
.step::after {
  content: ""; position: absolute; top: 1.3rem; left: 3.6rem; right: -.75rem;
  height: 1px; background: var(--line-2);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; margin-top: var(--s2); }
.step p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.section--ink .step::before { color: rgba(228, 128, 86, .5); }
.section--ink .step::after { background: rgba(238, 236, 228, .18); }
.section--ink .step p { color: rgba(238, 236, 228, .7); }
.section--ink h2, .section--ink h3 { color: var(--ivory); }

/* CTA band */
.cta-band {
  background: var(--terra);
  color: #fff;
  padding-block: var(--s6);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; left: -6%; bottom: -60%;
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.cta-band .wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255, 255, 255, .88); margin-top: .6rem; max-width: 46ch; }

/* 11. FORMS ============================================================== */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terra);
  padding: var(--s4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: var(--s3); }
.field label {
  display: block;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem;
}
.field label .req { color: var(--terra-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--ivory-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: .95rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--terra-wash);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.form-note { font-size: .78rem; color: var(--muted-2); margin-top: var(--s2); line-height: 1.5; }
.form-status {
  margin-top: var(--s2); padding: .8rem 1rem; border-radius: var(--radius);
  font-size: .88rem; display: none;
}
.form-status.is-ok { display: block; background: var(--terra-wash); border: 1px solid var(--terra-tint); color: var(--terra-deep); }

/* Contact detail blocks */
.contact-list { display: grid; gap: var(--s3); }
.contact-item { display: flex; gap: var(--s2); align-items: flex-start; }
.contact-item .icon-badge { margin-bottom: 0; flex-shrink: 0; width: 42px; height: 42px; }
.contact-item .k {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: .2rem;
}
.contact-item .v { font-size: 1rem; color: var(--ink); font-weight: 500; }
.contact-item a { color: inherit; text-decoration: none; }
.contact-item a:hover { color: var(--terra-dark); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ivory);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 12. FOOTER ============================================================= */
.site-footer { background: var(--ink); color: rgba(238, 236, 228, .72); padding-top: var(--s6); }
.site-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--terra); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--s4);
  padding-bottom: var(--s5);
}
.footer-brand .brand-text .name { color: var(--ivory); }
.footer-brand .brand-text .sub { color: rgba(238, 236, 228, .55); }
.footer-brand p { font-size: .9rem; line-height: 1.65; margin-top: var(--s2); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--body);
  font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra); margin-bottom: var(--s2);
}
.footer-col ul { display: grid; gap: .65rem; }
.footer-col li { font-size: .9rem; }
.social { display: flex; gap: .6rem; margin-top: var(--s3); }
.social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(238, 236, 228, .2);
  border-radius: var(--radius);
  display: grid; place-items: center;
  transition: all .25s var(--ease);
}
.social a:hover { background: var(--terra); border-color: var(--terra); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(238, 236, 228, .12);
  padding-block: var(--s3);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s2); flex-wrap: wrap;
  font-size: .8rem; color: rgba(238, 236, 228, .5);
}
.footer-bottom .legal { display: flex; gap: var(--s3); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* 13. UTILITIES & MOTION ================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 14. RESPONSIVE ========================================================= */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: var(--s6) var(--s3); max-width: var(--wrap); margin-inline: auto; width: 100%; }
  .hero-media { aspect-ratio: 16 / 10; order: -1; }
  .hero-media::after { background: linear-gradient(to top, var(--ivory) 0%, transparent 42%); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .step::after { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 74px; }
  .topbar-list .topbar-item:not(:first-child) { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--ivory-2);
    border-bottom: 1px solid var(--line);
    padding: var(--s2) var(--s3) var(--s4);
    gap: 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: all .28s var(--ease);
    max-height: calc(100vh - var(--header-h) - 38px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .95rem .25rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav a::after { display: none; }
  .nav-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .grid--3, .grid--4, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-left, .split--wide-right, .showcase-row { grid-template-columns: 1fr; gap: var(--s4); }
  .showcase-row:nth-child(even) .showcase-media { order: -1; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--tall { grid-row: span 1; aspect-ratio: 1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --s7: 4rem; --s6: 3rem; }
  .grid--2, .grid--3, .grid--4, .quote-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .hero-stats { gap: var(--s4); }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-text .name { font-size: 1.25rem; }
  .wa-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
}

/* Print */
@media print {
  .site-header, .topbar, .wa-float, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 1rem; }
}

/* ==========================================================================
   15. DROPDOWN NAVIGATION
   ========================================================================== */
.nav-item { position: relative; display: flex; align-items: center; }

.nav-sub-toggle {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  margin-left: -.45rem;
  background: none; border: 0; cursor: pointer;
  color: var(--muted);
  border-radius: 2px;
  transition: color .2s var(--ease), transform .25s var(--ease);
}
.nav-sub-toggle svg { width: 10px; height: 10px; pointer-events: none; }
.nav-item:hover .nav-sub-toggle,
.nav-sub-toggle[aria-expanded="true"] { color: var(--terra-dark); }
.nav-sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: 100%; left: -.5rem; z-index: 120;
  min-width: 268px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--terra);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
/* Opening must make the menu visible IMMEDIATELY, not after the transition,
   otherwise a keyboard user cannot focus the first link. */
.nav-menu.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s;
}
@media (min-width: 901px) {
  .nav-item:hover > .nav-menu,
  .nav-item:focus-within > .nav-menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s;
  }
}

.nav-menu a {
  display: block;
  padding: .58rem .8rem;
  font-size: .84rem; font-weight: 500; letter-spacing: 0;
  color: var(--ink-soft);
  white-space: nowrap;
  border-radius: var(--radius);
}
.nav-menu a::after { display: none; }
.nav-menu a:hover,
.nav-menu a:focus-visible { background: var(--terra-wash); color: var(--terra-dark); }
.nav-menu a .meta {
  display: block;
  font-size: .68rem; color: var(--muted-2); font-weight: 400;
  letter-spacing: .04em; margin-top: .1rem;
}
.nav-menu-head {
  font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra-dark);
  padding: .7rem .8rem .35rem;
  border-top: 1px solid var(--line);
  margin-top: .35rem;
}
.nav-menu-head:first-child { border-top: 0; margin-top: 0; padding-top: .45rem; }

/* ==========================================================================
   16. FABRIC LIBRARY
   ========================================================================== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s4);
}
.filter-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); margin-right: .4rem;
}
.chip {
  background: var(--paper);
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
  font-size: .78rem; font-weight: 500;
  padding: .45rem .9rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s var(--ease);
  display: inline-flex; align-items: center; gap: .45rem;
}
.chip:hover { border-color: var(--terra); color: var(--terra-dark); }
.chip.is-active { background: var(--terra); border-color: var(--terra); color: #fff; }
.chip .dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(58,42,34,.18);
  flex: 0 0 12px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--s2);
}
.swatch {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.swatch:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.swatch .meta { padding: .7rem .8rem .85rem; }
.swatch .code {
  font-size: .88rem; font-weight: 600; color: var(--ink);
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.swatch .attr {
  font-size: .72rem; color: var(--muted); margin-top: .25rem;
  display: flex; flex-wrap: wrap; gap: .35rem .6rem;
}
.swatch .attr b { font-weight: 600; color: var(--ink-soft); }
.swatch-count {
  font-size: .8rem; color: var(--muted-2);
  margin-bottom: var(--s3);
}
.swatch-empty {
  padding: var(--s5); text-align: center; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
}

@media (max-width: 900px) {
  .nav-item { flex-wrap: wrap; }
  .nav-item > a { flex: 1; }
  .nav-sub-toggle {
    width: 44px; height: 44px; margin: 0;
    border-left: 1px solid var(--line);
  }
  .nav-sub-toggle svg { width: 12px; height: 12px; }
  .nav-item > .nav-menu {
    position: static; width: 100%;
    opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent;
    padding: 0 0 .5rem .8rem;
    display: none; min-width: 0;
  }
  .nav-item > .nav-menu.is-open { display: block; }
  .nav-menu a { padding: .7rem .4rem; font-size: .88rem; border-bottom: 1px solid var(--line); white-space: normal; }
  .nav-menu-head { padding-left: .4rem; }
  .swatch-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ==========================================================================
   17. BRAND LOGO, CTA STRIPS, ISO BADGE, LIVE CHAT
   ========================================================================== */

/* The supplied logo, used unmodified. Its own wordmark is not legible at this
   size, so the company name sits beside it in type. */
.brand-logo {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: block;
}
.footer-brand .brand-logo { width: 72px; height: 72px; }

.btn--wa svg { width: 17px; height: 17px; fill: currentColor; }
.btn--wa:hover { border-color: #25D366; color: #128C4B; background: #EAFBF0; }
.btn--ghost-light.btn--wa svg { fill: currentColor; }

/* Slim between-section prompt */
.cta-strip { padding-block: var(--s5); }
.cta-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--terra);
  border-radius: var(--radius);
  background: var(--paper);
  padding: var(--s3);
}
.section--paper .cta-strip-inner { background: var(--ivory-2); }
.cta-strip-text {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 600; line-height: 1.25; color: var(--ink);
  margin: 0; max-width: 38ch;
}
.cta-strip .btn-row { margin: 0; flex-shrink: 0; }

/* ISO 9001 credential: legacy badge styles, superseded by .cert-strip */
.iso-badge {
  display: flex; gap: var(--s4); align-items: center;
  background: var(--ivory-2);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--terra);
  border-radius: var(--radius);
  padding: var(--s3) var(--s4);
}
.section--paper .iso-badge { background: var(--ivory); }
.section--ink .iso-badge { background: rgba(247,245,239,.96); border-color: rgba(238,236,228,.2); }
.iso-mark { flex: 0 0 auto; width: auto; height: 92px; }
.iso-title {
  font-family: var(--display); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); margin-bottom: .45rem;
}
.iso-text { font-size: .92rem; line-height: 1.6; color: var(--muted); margin: 0; }
.iso-text b { color: var(--ink-soft); font-weight: 600; }
.iso-logos {
  display: flex; align-items: center; gap: var(--s3);
  margin-top: var(--s2); padding-top: var(--s2);
  border-top: 1px solid var(--line);
}
.iso-logos img { height: 34px; width: auto; }
.footer-iso {
  display: inline-block;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terra);
  border: 1px solid rgba(228,128,86,.4);
  padding: .3rem .6rem; border-radius: var(--radius);
}

/* Manufacturer logo plates on the automation page */
.feature--brand { display: flex; flex-direction: column; }
.brand-logo-plate {
  height: 118px;
  display: grid; place-items: center;
  background: var(--ivory-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--s3);
  padding: var(--s2);
}
.brand-logo-plate img { max-height: 84px; max-width: 78%; width: auto; object-fit: contain; }

/* Live chat: the WhatsApp button hides itself once the chat widget loads */
.wa-float.is-hidden { display: none; }

@media (max-width: 900px) {
  .cta-strip-inner { flex-direction: column; align-items: flex-start; }
  .cta-strip .btn-row { width: 100%; }
  .iso-badge { flex-direction: column; align-items: flex-start; text-align: left; }
  .iso-mark { height: 74px; }
  .iso-logos { flex-wrap: wrap; gap: var(--s2); }
  .iso-logos img { height: 28px; }
  .brand-logo { width: 54px; height: 54px; }
}

/* Light-control tag on each fabric swatch */
.swatch-kind {
  display: inline-block; margin-top: .45rem;
  font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .18rem .45rem; border-radius: 2px;
}
.swatch-kind--blackout { background: var(--ink); color: var(--ivory-2); }
.swatch-kind--sunscreen { background: var(--terra-wash); color: var(--terra-deep); border: 1px solid var(--terra-tint); }
.swatch-kind--fire { background: #FBEAE7; color: #A8321E; border: 1px solid #F3C9C1; }

/* 16. UPDATE PASS ======================================================== */

/* Ampersands in the display serif render as a calligraphic glyph.
   Render them in the body face so they read as a normal ampersand. */
.amp {
  font-family: var(--body);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}

/* Certification marks, logos only */
.cert-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: var(--s4) var(--s5);
  padding: var(--s3) var(--s4);
}
.cert-strip img { height: 72px; width: auto; }
/* keep the certifier marks legible on dark and coloured sections */
.section--ink .cert-strip, .section--terra .cert-strip {
  background: var(--ivory-2);
  border-radius: var(--radius);
  max-width: 760px; margin-inline: auto;
  padding: var(--s3) var(--s4);
}
@media (max-width: 720px) {
  .cert-strip { gap: var(--s3) var(--s4); }
  .cert-strip img { height: 52px; }
}

/* Two-up testimonial grid */
.quote-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px; margin-inline: auto;
}
@media (max-width: 860px) { .quote-grid--two { grid-template-columns: 1fr; } }

/* Keep the long hero stat label from stretching the row */
.hero-stat .l { max-width: 22ch; }
