/* ==========================================================================
   ScentCity — design tokens
   Palette drawn directly from the brand mark: deep plum + white, with a
   single warm brass hairline used sparingly for texture (never as a base
   colour). Fraunces carries headline personality; Plus Jakarta Sans (a
   rounded geometric sans) echoes the rounded terminals of the logotype.
   ========================================================================== */

:root {
  --plum-950: #201436;
  --plum-900: #492F78;   /* sampled from the mark's background */
  --plum-700: #6A48A8;
  --plum-300: #B7A3D9;
  --plum-100: #F1ECF9;
  --plum-050: #F8F5FC;
  --white: #FFFFFF;
  --brass: #B8935B;

  --ink: #241A3B;
  --ink-soft: #5B5270;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; } /* brand is intentionally light-based; keep it consistent */
}

* { box-sizing: border-box; }
/* The hidden attribute must always win over any element's display style. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
/* Off-canvas UI (mobile nav) must never expand the page horizontally.
   `clip` on the root prevents viewport scrolling (user AND script) without
   turning <body> into a scroll container (keeps the sticky header working). */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--plum-950);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 4.2vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Focus states — always visible, never suppressed */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--plum-700);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--plum-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--plum-950); }

.btn-ghost {
  background: transparent;
  color: var(--plum-950);
  border-color: var(--plum-950);
}
.btn-ghost:hover { background: var(--plum-950); color: var(--white); }

.btn-on-dark {
  background: var(--white);
  color: var(--plum-950);
}
.btn-on-dark:hover { background: var(--plum-100); }

.btn-ghost-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-on-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 26, 59, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 34px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--plum-950);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
}
.main-nav ul a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--plum-900);
  transition: right 0.28s var(--ease);
}
.main-nav ul a:hover::after,
.main-nav ul a[aria-current="page"]::after { right: 0; }
.main-nav ul a[aria-current="page"] { color: var(--plum-900); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--plum-950);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    /* The header's backdrop-filter turns it into the fixed element's
       containing block, so `inset` bottom collapses the panel. Give it an
       explicit height instead of relying on top+bottom. */
    top: 78px;
    left: 0;
    right: 0;
    height: calc(100vh - 78px);
    height: calc(100dvh - 78px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 20px 2rem;
    transform: translateX(100%);
    transition: transform 0.32s var(--ease), visibility 0.32s;
    overflow-y: auto;
    visibility: hidden;      /* keep the closed off-canvas nav out of the scrollable area */
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul {
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }
  .main-nav ul a {
    font-size: 1.2rem;
    display: block;
    padding: 12px 0;         /* proper thumb-size tap targets */
  }
  .main-nav .btn { margin-top: 1.4rem; width: 100%; justify-content: center; padding: 14px 1.4em; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 4.5rem 0 5rem;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 0.45em; }
.hero-copy .lede { margin-bottom: 2rem; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

.hero-notes {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(36,26,59,0.12);
}
.hero-notes div { font-size: 0.94rem; color: var(--ink-soft); }
.hero-notes strong { display: block; color: var(--plum-950); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }

.hero-art {
  position: relative;
  background: var(--plum-900);
  border-radius: var(--radius-l);
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(73, 47, 120, 0.45);
}
.hero-art img.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: settle 1.2s var(--ease) both;
}
.hero-art .veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(28, 15, 46, 0.42), transparent 42%),
    radial-gradient(120% 90% at 20% 100%, rgba(184, 147, 91, 0.22), transparent 60%),
    linear-gradient(to right, rgba(28, 15, 46, 0.18), transparent 45%);
}

@keyframes settle {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-art { max-width: 420px; margin: 0 auto; }
}

/* ==========================================================================
   Sections, generic
   ========================================================================== */

section { padding: 5.5rem 0; }
.section-tinted { background: var(--plum-050); }
.section-dark {
  background: var(--plum-950);
  color: rgba(255,255,255,0.86);
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.section-head p { margin: 0; }

/* ==========================================================================
   Collections (category) grid
   ========================================================================== */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.collection-card {
  border: 1px solid rgba(36,26,59,0.1);
  border-radius: var(--radius-m);
  padding: 2rem 1.6rem 1.8rem;
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.collection-card:hover { border-color: var(--plum-700); transform: translateY(-3px); }
.collection-card svg { color: var(--plum-900); width: 46px; height: auto; margin-bottom: 1.2rem; }
.collection-card h3 { margin-bottom: 0.4em; }
.collection-card p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0; }

@media (max-width: 980px) {
  .collections-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .collections-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Why us — three column
   ========================================================================== */

.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem;
}
.value-row h3 { margin-bottom: 0.5em; }
.value-row p { font-size: 0.96rem; color: var(--ink-soft); }
.value-divider {
  width: 40px; height: 2px;
  background: var(--brass);
  margin-bottom: 1.4rem;
}
@media (max-width: 820px) {
  .value-row { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ==========================================================================
   Testimonial teaser (home)
   ========================================================================== */

.quote-block {
  max-width: 760px;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
  color: var(--plum-950);
  margin: 0 0 1.2rem;
  line-height: 1.4;
}
.quote-block cite {
  font-style: normal;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--plum-900);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 3.4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 0; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   Product catalog
   ========================================================================== */

.catalog-intro {
  max-width: 700px;
  margin-bottom: 3rem;
}

.category-block + .category-block { margin-top: 4.4rem; }
.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(36,26,59,0.12);
  padding-bottom: 1rem;
  margin-bottom: 2.2rem;
}
.category-head h2 { margin-bottom: 0.15em; }
.category-head .cat-note { color: var(--ink-soft); font-size: 0.94rem; margin: 0; max-width: 40ch; text-align: right; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.product-card {
  border: 1px solid rgba(36,26,59,0.1);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -22px rgba(36,26,59,0.35); }
.product-art {
  background: var(--plum-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 0;
}
.product-art svg { color: var(--plum-900); width: 64px; height: auto; }
.product-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.product-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 0.6em;
}
.product-body h3 { margin-bottom: 0.3em; font-size: 1.12rem; }
.product-body p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.product-price {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--plum-950);
  font-size: 1.05rem;
}
.product-price a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--plum-900);
  border-bottom: 1px solid var(--plum-900);
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .category-head { flex-direction: column; align-items: flex-start; }
  .category-head .cat-note { text-align: left; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-hero .panel {
  background: var(--plum-900);
  border-radius: var(--radius-l);
  padding: 3rem;
  color: var(--white);
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.about-hero .panel svg { position: absolute; color: rgba(255,255,255,0.9); }
.about-hero .panel .a1 { width: 40%; bottom: -6%; right: -4%; opacity: 0.9; }
.about-hero .panel .a2 { width: 26%; top: 10%; left: 8%; opacity: 0.45; }
.about-hero .panel blockquote {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.pillar {
  padding: 1.8rem;
  border-radius: var(--radius-m);
  background: var(--white);
  border: 1px solid rgba(36,26,59,0.1);
}
.pillar h3 { font-size: 1.05rem; }
.pillar p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Testimonials page
   ========================================================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(36,26,59,0.1);
  border-radius: var(--radius-m);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--brass); font-size: 0.95rem; margin-bottom: 1rem; letter-spacing: 0.12em; }
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--plum-950);
  margin: 0 0 1.4rem;
  line-height: 1.5;
}
.testimonial-card cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: auto;
}
@media (max-width: 980px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-methods { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 2rem; }
.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(36,26,59,0.12);
}
.contact-method:first-child { border-top: none; padding-top: 0; }
.contact-method svg { width: 22px; height: 22px; color: var(--plum-900); flex-shrink: 0; margin-top: 3px; }
.contact-method h3 { font-size: 1rem; margin-bottom: 0.2em; }
.contact-method a, .contact-method p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.contact-method a:hover { color: var(--plum-900); }

.form-card {
  background: var(--plum-050);
  border-radius: var(--radius-l);
  padding: 2.6rem;
}
.form-row { margin-bottom: 1.3rem; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plum-950);
  margin-bottom: 0.5em;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.8em 1em;
  border: 1px solid rgba(36,26,59,0.18);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; margin-bottom: 0; }
.form-success {
  display: none;
  background: var(--plum-100);
  border-radius: var(--radius-s);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--plum-950);
  margin-top: 1.2rem;
}
.form-success.is-visible { display: block; }

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--plum-950);
  color: rgba(255,255,255,0.72);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand span { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 0.92rem; margin-top: 1rem; }
.footer-col h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ==========================================================================
   Page intro banner (used on About / Products / Testimonials / Contact)
   ========================================================================== */

.page-intro {
  padding: 3.6rem 0 1rem;
}
.page-intro .eyebrow-free-label {
  color: var(--brass);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}
.page-intro h1 { max-width: 16ch; }

/* ==========================================================================
   Mobile refinements
   ========================================================================== */

@media (max-width: 640px) {
  section { padding: 3.6rem 0; }
  .container { padding: 0 20px; }
  .page-intro { padding: 2.6rem 0 0.8rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.8rem; margin-bottom: 2rem; }
  .hero { padding: 2.8rem 0 3.2rem; }
  h1 { font-size: clamp(2.15rem, 8vw, 2.7rem); }
  p.lede { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-notes { gap: 1.1rem; padding-top: 1.2rem; }
  .cta-band { padding: 2.1rem 1.4rem; flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; justify-content: center; }
  .form-card { padding: 1.6rem; }
  .about-hero .panel { padding: 2.2rem; min-height: 300px; }
  /* Prevent iOS Safari from zooming into inputs when tapped */
  input, select, textarea { font-size: 16px; }
}
