/* ==========================================================================
   QAS Aura — shared styles
   ========================================================================== */

:root {
  --burgundy: #650D16;
  --burgundy-deep: #4A0A10;
  --burgundy-ink: #33080C;
  --gold: #C6A15B;
  --gold-light: #E0C99A;
  --cream: #F6F0E7;
  --cream-deep: #EFE5D6;
  --white: #FFFFFF;
  --ink: #2A1E1B;
  --muted: #6E615B;
  --line: rgba(101, 13, 22, 0.16);
  --line-gold: rgba(198, 161, 91, 0.5);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 116px);
  --radius: 3px;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
}

/* ---------- reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.45vw + 14px, 17px);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--burgundy);
}

button {
  font: inherit;
}

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

section[id],
div[id] {
  scroll-margin-top: 96px;
}

/* ---------- layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

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

.section--deep {
  background: var(--cream-deep);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: clamp(32px, 4.5vw, 60px);
}

.section-head h2 {
  font-size: clamp(1.95rem, 3.8vw, 3rem);
}

.section-head p {
  margin-top: 12px;
  max-width: 56ch;
  color: var(--muted);
}

.section-head--center {
  display: block;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.section-head--center p {
  margin-inline: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--burgundy-ink);
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(246, 240, 231, 0.5);
  color: var(--cream);
}

.btn--ghost:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--burgundy);
}

.btn--dark {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
}

.btn--outline {
  background: transparent;
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.btn--outline:hover {
  background: var(--burgundy);
  color: var(--cream);
}

/* ---------- announcement bar ---------- */

.kreebi-announce {
  background: var(--burgundy-deep);
  color: var(--cream);
  text-align: center;
  padding: 11px var(--gutter);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
}

.kreebi-announce p {
  margin: 0;
}

.kreebi-announce a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 1px;
}

.kreebi-announce a:hover {
  color: var(--gold-light);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: clamp(12px, 1.6vw, 18px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--burgundy);
}

.brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand__logo {
  display: block;
  height: clamp(46px, 5.6vw, 58px);
  width: auto;
  border-radius: 2px;
}

.footer__logo {
  display: block;
  height: clamp(56px, 7vw, 72px);
  width: auto;
  border-radius: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.nav ul a {
  display: inline-block;
  padding: 6px 0;
  font-size: 0.75rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav ul a:hover {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}

body[data-page="home"] .nav ul a[data-nav="home"] {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}

.nav__cta {
  padding: 12px 22px;
  min-height: 44px;
  font-size: 0.7rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--burgundy);
  cursor: pointer;
}

.nav-toggle__lines {
  display: block;
  width: 20px;
  height: 12px;
  position: relative;
}

.nav-toggle__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__lines span:nth-child(1) {
  top: 0;
}

.nav-toggle__lines span:nth-child(2) {
  top: 5px;
}

.nav-toggle__lines span:nth-child(3) {
  top: 10px;
}

.site-header[data-menu="open"] .nav-toggle__lines span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-menu="open"] .nav-toggle__lines span:nth-child(2) {
  opacity: 0;
}

.site-header[data-menu="open"] .nav-toggle__lines span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  background: var(--cream);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
  max-width: var(--container);
  margin-inline: auto;
}

.hero__panel {
  background: var(--burgundy);
  color: var(--cream);
  padding: clamp(40px, 6vw, 82px) clamp(24px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.3rem, 5.6vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  max-width: 16ch;
}

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

.hero__lead {
  margin-top: clamp(18px, 2.4vw, 26px);
  max-width: 46ch;
  color: rgba(246, 240, 231, 0.84);
  font-size: clamp(0.96rem, 1vw + 0.6rem, 1.06rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 40px);
}

.hero__note {
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 20px;
  border-top: 1px solid rgba(246, 240, 231, 0.2);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 240, 231, 0.7);
}

.hero__media {
  position: relative;
  background: var(--cream-deep);
  min-height: clamp(340px, 46vw, 620px);
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ---------- categories ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease);
}

.cat-card:hover {
  border-color: var(--line-gold);
}

.cat-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-deep);
}

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.cat-card:hover .cat-card__media img {
  transform: scale(1.04);
}

.cat-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
}

.cat-card__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--ink);
}

.cat-card__arrow {
  color: var(--burgundy);
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease);
}

.cat-card:hover .cat-card__arrow {
  transform: translateX(3px);
}

/* ---------- skin concerns ---------- */

.concern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}

.concern-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--cream);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.concern-card:hover {
  background: var(--white);
  border-color: var(--line-gold);
}

.concern-card h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.42rem);
}

.concern-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.concern-card__link {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
}

/* ---------- brands ---------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.brand-tile {
  background: var(--white);
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
}

.brand-tile span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  letter-spacing: 0.07em;
  color: var(--burgundy);
}

.brands__foot {
  margin-top: clamp(26px, 3.4vw, 40px);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}

.product-card:hover {
  border-color: var(--line-gold);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream-deep);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 18px 22px;
}

.product-card__brand {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.28;
  color: var(--ink);
}

.product-card__link {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 4px;
}

.product-card__link:hover {
  color: var(--burgundy-deep);
  border-bottom-color: var(--burgundy);
}

/* ---------- why choose ---------- */

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-deep);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split h2 {
  font-size: clamp(1.95rem, 3.8vw, 3rem);
}

.split__lead {
  margin-top: 14px;
  color: var(--muted);
  max-width: 52ch;
}

.reason-list {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  margin-top: clamp(26px, 3.4vw, 38px);
}

.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.reason__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--burgundy);
}

.reason h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.reason p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- testimonials ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--cream);
  border: 1px solid var(--line);
}

.quote-card__mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.5;
  color: var(--gold);
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.08rem, 1.3vw, 1.24rem);
  line-height: 1.55;
  color: var(--ink);
}

.quote-card figcaption {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.quotes__note {
  margin-top: clamp(22px, 3vw, 32px);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- newsletter ---------- */

.newsletter {
  background: var(--burgundy);
  color: var(--cream);
  padding-block: var(--section-y);
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.newsletter h2 {
  color: var(--cream);
  font-size: clamp(1.95rem, 3.8vw, 3rem);
}

.newsletter p {
  margin-top: 14px;
  max-width: 46ch;
  color: rgba(246, 240, 231, 0.82);
}

.newsletter__rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 22px;
}

.newsletter__note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(246, 240, 231, 0.62);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--burgundy-ink);
  color: rgba(246, 240, 231, 0.76);
  padding-top: clamp(48px, 7vw, 84px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(36px, 5vw, 60px);
}

.footer__brand .brand__name {
  color: var(--cream);
}

.footer__brand p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 0.94rem;
}

.footer__title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer__links li + li {
  margin-top: 10px;
}

.footer__links a {
  color: rgba(246, 240, 231, 0.78);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s var(--ease);
}

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

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid rgba(246, 240, 231, 0.16);
  font-size: 0.78rem;
}

.footer__credit {
  color: rgba(246, 240, 231, 0.6);
}

.footer__credit a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 201, 154, 0.4);
}

.footer__credit a:hover {
  color: var(--cream);
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header__inner {
    position: relative;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 4px var(--gutter) 26px;
  }

  .site-header[data-menu="open"] .nav {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav ul li + li {
    border-top: 1px solid var(--line);
  }

  .nav ul a {
    display: block;
    padding: 15px 2px;
    font-size: 0.82rem;
    border-bottom: 0;
  }

  .nav ul a:hover {
    border-bottom: 0;
  }

  .nav__cta {
    margin-top: 20px;
    width: 100%;
  }

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

  .hero__media {
    order: -1;
    min-height: clamp(320px, 62vw, 480px);
  }

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

  .split__media {
    aspect-ratio: 16 / 11;
    order: 2;
  }

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 700px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }

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

  .kreebi-announce {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    padding: 10px 16px;
    line-height: 1.5;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .product-card__body {
    padding: 14px 13px 18px;
  }

  .product-card__brand {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }

  .cat-card__body {
    padding: 13px 14px 15px;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
