:root {
  --ink: #151a2e;
  --text: #34384c;
  --muted: #6c6f80;
  --paper: #f7f4f1;
  --white: #fffdfa;
  --line: #ded8d1;
  --navy: #111936;
  --blue: #223b72;
  --red: #b51f2c;
  --gold: #c49a57;
  --champagne: #e7dccb;
  --shadow: 0 22px 60px rgba(17, 25, 54, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(248, 245, 238, 0.92);
  border-bottom: 1px solid rgba(17, 25, 54, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  width: fit-content;
  gap: 4px;
}

.brand-logo {
  width: clamp(132px, 13vw, 188px);
  height: auto;
  object-fit: contain;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text);
  font-size: 14px;
}

.nav a:hover {
  color: var(--gold);
}

.menu {
  position: relative;
}

.menu-trigger {
  list-style: none;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 10px 0;
}

.menu-trigger::-webkit-details-marker {
  display: none;
}

.menu-trigger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-2px) rotate(45deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: -264px;
  width: min(1180px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 30px;
  padding: 34px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.menu:hover .mega-menu,
.menu:focus-within .mega-menu,
.menu[open] .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-kicker {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.mega-menu h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
  text-transform: uppercase;
}

.mega-menu a {
  display: block;
  padding: 4px 0;
  color: var(--text);
  font-size: 14px;
}

.mega-menu a:hover {
  color: var(--gold);
}

.mega-group.exterior {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.mega-group.exterior h3 {
  margin-top: 18px;
}

.mega-group.exterior .mega-kicker + h3 {
  margin-top: 0;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
}

.quote-button {
  color: var(--navy);
}

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(17, 25, 54, 0.86), rgba(17, 25, 54, 0.48) 45%, rgba(17, 25, 54, 0.04)),
    url("/images/hero-curtains-showroom.png") center / cover no-repeat;
}

.hero-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(96px, 14vh, 150px) 0 clamp(34px, 6vh, 64px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin-bottom: 16px;
  color: rgba(255, 253, 250, 0.88);
  font-size: 19px;
}

.hero .hero-support {
  max-width: 700px;
  margin-bottom: 24px;
  color: rgba(255, 253, 250, 0.78);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
  margin: 0 0 26px;
}

.hero-keywords span {
  padding: 7px 11px;
  border: 1px solid rgba(231, 220, 203, 0.55);
  background: rgba(17, 25, 54, 0.35);
  color: var(--champagne);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions .secondary {
  border-color: rgba(255, 253, 250, 0.72);
  color: var(--white);
}

.section {
  padding: clamp(58px, 8vw, 98px) clamp(18px, 4vw, 64px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.04;
}

.section-head p,
.muted {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.product:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

a.product:hover .product-more {
  color: var(--gold);
}

.product-more {
  margin-top: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.product-thumb {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-bottom: 1px solid var(--line);
}

.product-body {
  padding: 18px 18px 22px;
  display: grid;
  gap: 8px;
}

.product h3 {
  margin-bottom: 0;
  font-size: 19px;
}

.product p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 14px;
}

.tag {
  width: fit-content;
  padding: 5px 9px;
  background: #edf1ed;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.section-media {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.section-media img {
  width: 100%;
  height: clamp(200px, 30vw, 340px);
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.project-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 253, 250, 0.18);
  background: rgba(255, 253, 250, 0.18);
}

.project-copy article {
  padding: 28px;
  background: var(--navy);
}

.project-copy article.wide {
  grid-column: 1 / -1;
}

.project-copy h3 {
  margin-bottom: 10px;
  color: var(--champagne);
  font-size: 22px;
}

.project-copy p {
  margin-bottom: 0;
  color: rgba(255, 253, 250, 0.78);
}

.outdoor {
  background: var(--white);
}

.outdoor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.outdoor-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.outdoor-grid article,
.outdoor-card {
  display: block;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.outdoor-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.outdoor-card:hover .product-more {
  color: var(--gold);
}

.outdoor-grid h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.outdoor-grid p {
  margin-bottom: 8px;
  color: var(--text);
}

.band {
  background: var(--navy);
  color: var(--white);
}

.band .section-head p,
.band .muted {
  color: rgba(255, 253, 250, 0.72);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 253, 250, 0.2);
  border: 1px solid rgba(255, 253, 250, 0.2);
}

.step {
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 253, 250, 0.06);
}

.step strong {
  display: block;
  color: #e8d6b6;
  margin-bottom: 38px;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.92fr);
  gap: 44px;
  align-items: start;
}

.quote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

form {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

.hidden {
  display: none;
}

.form-note {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 56px clamp(18px, 4vw, 64px) 24px;
  background: var(--navy);
  color: rgba(255, 253, 250, 0.7);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand p {
  margin-bottom: 0;
  max-width: 360px;
  font-size: 14px;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 253, 250, 0.78);
  font-size: 14px;
}

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

.footer-note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 253, 250, 0.55);
}

.footer-base {
  width: min(1120px, 100%);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 253, 250, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* Product detail page */
.pdp-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.pdp-back:hover {
  color: var(--gold);
}

.pdp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.pdp-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.pdp-media img {
  width: 100%;
  height: clamp(260px, 38vw, 440px);
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.pdp-intro h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 18px;
}

.pdp-intro > p {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 24px;
}

.pdp-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.pdp-block {
  padding: 28px;
  background: var(--white);
}

.pdp-block h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.pdp-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
}

.pdp-note {
  margin: 16px 0 0;
  font-size: 13px;
}

.pdp-cta {
  text-align: center;
}

.pdp-cta h2 {
  margin-bottom: 12px;
}

.pdp-cta p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: rgba(255, 253, 250, 0.78);
}

/* Fabric swatches */
.fabrics {
  background: var(--white);
}

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.swatch {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.swatch img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--champagne), #cdbfa6);
}

.swatch figcaption {
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--line);
}

@media (max-width: 840px) {
  .site-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .nav {
    width: 100%;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mega-menu {
    position: fixed;
    top: 118px;
    left: 18px;
    right: 18px;
    width: auto;
    max-height: calc(100vh - 150px);
    overflow: auto;
    grid-template-columns: 1fr;
    padding: 24px;
  }

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

  .mega-group.exterior {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }

  .hero {
    min-height: 760px;
    background-position: 58% center;
  }

  .section-head,
  .project-copy,
  .outdoor-grid,
  .process,
  .quote-layout,
  .field-row,
  .pdp-hero,
  .pdp-cols {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 841px) and (max-width: 1180px) {
  .fabric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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