:root {
  --ink: #111711;
  --muted: #5f665f;
  --line: #dfe5dc;
  --paper: #fbfaf6;
  --white: #ffffff;
  --green: #347b23;
  --green-deep: #153f21;
  --sage: #e5eddf;
  --gold: #b98b32;
  --clay: #b96d4b;
  --shadow: 0 18px 42px rgba(17, 23, 17, 0.12);
}

* {
  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;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 38px;
  padding: 8px clamp(18px, 5vw, 70px);
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.top-bar a {
  color: #d7f4bd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px clamp(18px, 5vw, 70px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(17, 23, 17, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-img {
  width: 154px;
  height: auto;
  border-radius: 6px;
  background: #000000;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: #68a51f;
  font-size: 24px;
  font-weight: 900;
}

.brand-name {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand-name strong {
  font-size: 22px;
  font-weight: 900;
}

.brand-name span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #273027;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a[aria-current="page"],
.nav-group:hover > a,
.nav-group:focus-within > a {
  color: var(--green);
}

.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-group > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 40;
  display: grid;
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: var(--sage);
  color: var(--green-deep);
  outline: 0;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  padding: clamp(34px, 7vw, 88px) clamp(18px, 5vw, 70px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 18, 12, 0.88) 0%, rgba(12, 18, 12, 0.64) 44%, rgba(12, 18, 12, 0.16) 100%),
    url("assets/products/hair-color-cream-developer.jpg") center right / cover no-repeat;
}

.hero-inner {
  width: min(760px, 100%);
  padding-bottom: min(10vh, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: #b8d49d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
}

.btn.light {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.14);
}

.btn.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 70px);
}

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

.section.sage {
  background: var(--sage);
}

.section.clay {
  background: #f4ebe4;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.section-header h2,
.copy-block h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-header p,
.copy-block p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-item {
  display: block;
  padding: 24px clamp(18px, 4vw, 44px);
  border-right: 1px solid var(--line);
  transition: background 160ms ease;
}

.trust-item:hover,
.trust-item:focus-visible {
  background: #f4f8f0;
  outline: 0;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  font-size: 20px;
}

.trust-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(2, minmax(0, 0.85fr));
  grid-auto-rows: minmax(230px, auto);
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.category-grid.compact-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
  margin-bottom: 34px;
}

.category-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: 230px;
  padding: 22px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.category-card.large {
  grid-row: span 2;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 18, 13, 0.04), rgba(13, 18, 13, 0.74));
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.category-card:hover img,
.category-card:focus-visible img {
  transform: scale(1.04);
}

.category-card:focus-visible {
  outline: 3px solid #d7f4bd;
  outline-offset: 3px;
}

.category-card span {
  color: #d7f4bd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-card strong {
  display: block;
  max-width: 310px;
  margin-top: 7px;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.08;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(17, 23, 17, 0.04);
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(52, 123, 35, 0.5);
  box-shadow: 0 12px 30px rgba(17, 23, 17, 0.1);
  transform: translateY(-2px);
  outline: 0;
}

.product-card[hidden] {
  display: none;
}

.product-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-body {
  padding: 20px;
}

.product-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 8px 0 8px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: 0;
}

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

.product-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.center-actions {
  display: flex;
  justify-content: center;
  width: min(1180px, 100%);
  margin: 30px auto 0;
}

.product-grid.compact .product-card h3 {
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1180px, 100%);
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--green-deep);
}

.product-detail-section {
  padding-top: clamp(34px, 6vw, 72px);
}

.product-detail-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.product-detail-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-copy h1,
.empty-state h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.detail-meta {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-meta strong {
  font-size: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.detail-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 6vw, 72px);
}

.detail-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.detail-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.15;
}

.detail-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.empty-state,
.detail-loading {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.empty-state p {
  max-width: 620px;
  color: var(--muted);
}

.feature-layout,
.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
}

.feature-media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.facts {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid rgba(17, 23, 17, 0.16);
}

.fact {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(17, 23, 17, 0.16);
}

.fact dt {
  color: var(--muted);
  font-weight: 800;
}

.fact dd {
  margin: 0;
  font-weight: 800;
}

.page-hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: clamp(44px, 7vw, 82px) clamp(18px, 5vw, 70px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 18, 12, 0.88), rgba(12, 18, 12, 0.36)),
    url("assets/products/cocoa-butter-shampoo-conditioner.jpg") center / cover no-repeat;
}

.page-hero.products {
  background:
    linear-gradient(90deg, rgba(12, 18, 12, 0.9), rgba(12, 18, 12, 0.28)),
    url("assets/products/keratin-silky-straight-rebonding.jpg") center / cover no-repeat;
}

.page-hero.about {
  background:
    linear-gradient(90deg, rgba(12, 18, 12, 0.88), rgba(12, 18, 12, 0.28)),
    url("assets/products/moroccan-argan-oil-treatment.jpg") center / cover no-repeat;
}

.page-hero.contact {
  background:
    linear-gradient(90deg, rgba(12, 18, 12, 0.88), rgba(12, 18, 12, 0.34)),
    url("assets/products/fragrance-care-shampoo-conditioner.jpg") center / cover no-repeat;
}

.page-hero-inner {
  width: min(900px, 100%);
}

.page-hero p {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1180px, 100%);
  margin: 0 auto 28px;
  padding-top: 4px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
}

.filter-btn.is-active {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: var(--white);
}

.shade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(1180px, 100%);
  margin: 28px auto 0;
}

.shade {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.contact-panel {
  display: grid;
  gap: 18px;
}

.contact-link {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-link span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-link strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

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

.legal-copy {
  width: min(900px, 100%);
  margin: 0 auto;
}

.legal-copy h2 {
  margin: 34px 0 10px;
  font-size: 26px;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.faq-item {
  padding: 24px;
  border: 1px solid rgba(17, 23, 17, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.18;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 46px clamp(18px, 5vw, 70px);
  background: #101410;
  color: rgba(255, 255, 255, 0.84);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr 1fr;
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    position: static;
    display: flex;
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 2px 0 0;
    background: var(--paper);
  }

  .nav-menu {
    left: 0;
    transform: translate(0, 6px);
  }

  .nav-group:hover .nav-menu,
  .nav-group:focus-within .nav-menu {
    transform: translate(0, 0);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 4px 0;
    border-bottom: 0;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    min-height: 690px;
    background:
      linear-gradient(180deg, rgba(12, 18, 12, 0.86), rgba(12, 18, 12, 0.56)),
      url("assets/products/hair-color-cream-developer.jpg") center / cover no-repeat;
  }

  .trust-strip,
  .product-grid,
  .category-grid,
  .category-grid.compact-categories,
  .faq-grid,
  .shade-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .category-card.large {
    grid-row: span 1;
  }

  .feature-layout,
  .about-layout,
  .contact-layout,
  .product-detail,
  .detail-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-name strong {
    font-size: 18px;
  }

  .brand-name span {
    font-size: 11px;
  }

  .top-bar {
    display: grid;
    gap: 4px;
    font-size: 12px;
  }

  .site-header {
    min-height: 66px;
  }

  .brand-logo-img {
    width: 138px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 4px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 9px 0;
  }

  .nav-group {
    display: grid;
  }

  .nav-group > a::after {
    display: none;
  }

  .nav-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0 0 8px 14px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu a {
    padding: 7px 0;
    background: transparent;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
    line-height: 1.04;
    white-space: normal;
  }

  .hero h1 {
    max-width: 330px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
    max-width: 330px;
  }

  .section-header {
    display: block;
  }

  .trust-strip,
  .product-grid,
  .category-grid,
  .category-grid.compact-categories,
  .faq-grid,
  .shade-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-auto-rows: auto;
  }

  .category-card {
    min-height: 220px;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-detail-media {
    min-height: 300px;
  }

  .detail-panel,
  .empty-state,
  .detail-loading {
    padding: 20px;
  }
}
