/* GoodScent — luxury-understated, mobile-first */

:root {
  --bg: #f9f6f7;
  --bg-elevated: #fffcfb;
  --brand: #665c61;
  --accent: #ff9787;
  --accent-hover: #e87362;
  --accent-soft: rgba(255, 151, 135, 0.22);
  --text: #342f33;
  --text-muted: rgba(102, 92, 97, 0.78);
  --line: rgba(102, 92, 97, 0.14);
  --shadow: rgba(52, 47, 51, 0.08);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Figtree", system-ui, -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --max: 72rem;
  --ease: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--ease), opacity var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

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

.wrap {
  width: min(100% - var(--space-md) * 2, var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 246, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo__img {
  height: 2.125rem;
  width: auto;
  max-width: min(200px, 52vw);
  transition: opacity var(--ease);
}

.logo:hover .logo__img {
  opacity: 0.88;
}

@media (min-width: 48rem) {
  .logo__img {
    height: 2.5rem;
    max-width: 220px;
  }
}

.nav {
  display: none;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (min-width: 48rem) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

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

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}

.nav-cta:hover {
  border-color: rgba(255, 151, 135, 0.55);
  color: var(--accent-hover);
  background: #fff;
}

/* Hero */

.hero {
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero-inner {
  max-width: 40rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  color: var(--brand);
}

.hero-lead {
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.hero-trust {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 28rem;
}

.hero-trust__text {
  line-height: 1.45;
}

.paypal-mark {
  flex-shrink: 0;
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.paypal-mark--hero {
  width: 2rem;
  height: auto;
  aspect-ratio: 1;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 151, 135, 0.35);
}

.btn-paypal {
  width: 100%;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(255, 151, 135, 0.4);
  margin-top: 0;
  text-align: center;
}

.btn-paypal:hover {
  background: rgba(255, 151, 135, 0.32);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

/* Sections shared */

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--brand);
}

.section-intro {
  color: var(--text-muted);
  font-weight: 300;
  margin: 0 0 var(--space-lg);
  max-width: 36rem;
}

.section-intro--narrow {
  max-width: 32rem;
}

.section-intro--tight {
  margin-bottom: var(--space-md);
}

.section-head {
  margin-bottom: var(--space-lg);
}

/* Products section header: copy left, highlight boxes right */

.products-head__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 47.99rem) {
  .products-head__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: start;
  }
}

.products-head__main {
  max-width: 28rem;
}

.products-head__title {
  margin: 0 0 var(--space-sm);
}

.products-head__main .section-intro--narrow {
  max-width: none;
}

.products-head__intro {
  margin-bottom: 0;
}

.products-highlight-boxes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--space-sm);
}

.products-highlight-box {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 2px 14px var(--shadow);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.products-highlight-box:hover {
  border-color: rgba(255, 151, 135, 0.35);
  box-shadow: 0 4px 20px var(--shadow);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}

.text-link:hover {
  color: var(--accent-hover);
}

/* About */

.about {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--line);
}

.icon-grid-block {
  margin-bottom: 0;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

.icon-grid__item {
  text-align: center;
}

.icon-grid__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand);
}

.icon-grid__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.icon-grid__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 var(--space-xs);
  color: var(--brand);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.icon-grid__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-muted);
}

.about-cta {
  margin: var(--space-lg) 0 0;
}

.about-inner {
  max-width: 38rem;
}

.about-wide {
  max-width: min(100% - var(--space-md) * 2, var(--max));
  margin-inline: auto;
}

.about-layout {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
  max-width: 52rem;
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .about-layout {
    grid-template-columns: min(200px, 34%) 1fr;
    gap: var(--space-xl);
  }
}

.about-figure {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .about-figure {
    justify-self: start;
    width: auto;
    max-width: none;
    margin-inline: 0;
    position: sticky;
    top: calc(var(--space-lg) + 3rem);
  }
}

.about-avatar {
  width: min(280px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px var(--shadow);
  background: #ebe8ea;
}

.about-copy {
  text-align: center;
}

@media (min-width: 48rem) {
  .about-copy {
    text-align: left;
  }
}

.about-copy p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-weight: 300;
}

.about-copy p strong {
  color: var(--text);
  font-weight: 600;
}

/* Products */

.products {
  padding-block: var(--space-xl) var(--space-2xl);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 151, 135, 0.06) 50%, var(--bg) 100%);
}

.products-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 56rem) {
  .products-layout {
    gap: var(--space-lg);
  }
}

.products-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 48rem) {
  .products-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.products-featured--single {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 48rem) {
  .products-featured--single {
    max-width: min(100%, 28rem);
    margin-inline: auto;
  }
}

@media (min-width: 56rem) {
  .products-featured {
    gap: var(--space-md);
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

@media (min-width: 56rem) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.product-card:hover {
  border-color: rgba(255, 151, 135, 0.45);
  box-shadow: 0 12px 40px var(--shadow);
  transform: translateY(-2px);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #ebe8ea;
  overflow: hidden;
}

.product-card__featured-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem;
  background: rgba(52, 47, 51, 0.92);
  color: #fff;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(52, 47, 51, 0.2);
}

.product-card__pct-off {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem;
  background: var(--brand);
  color: #fff;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(52, 47, 51, 0.2);
}

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

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

.product-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-xs);
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.25;
  color: var(--brand);
}

.product-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 300;
  flex: 1;
}

.product-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.5rem 0.75rem;
  margin-top: var(--space-xs);
}

.product-card__prices .rrp {
  margin-left: auto;
}

.product-card__prices--sale {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.product-card__prices--sale .rrp {
  margin-left: 0;
}

.product-card__price-was {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.product-card__price-was .rrp {
  text-decoration: line-through;
}

.price-goodscent-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
}

.price-goodscent-was {
  text-decoration: line-through;
  color: var(--text-muted);
}

.price-goodscent-label {
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0.9;
}

.product-card__price-sale-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.6rem;
}

.price-sale-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--brand);
  color: var(--brand);
  line-height: 1;
}

.price-now {
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.rrp {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__buy {
  margin-top: auto;
  padding-top: var(--space-sm);
}

.product-card__secure {
  margin: 0.45rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  line-height: 1.3;
}

.product-card__lock {
  flex-shrink: 0;
  display: flex;
  color: var(--text-muted);
  opacity: 0.75;
}

.product-card__lock svg {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
}

.products-footnote {
  margin: var(--space-lg) 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.products-footnote a {
  font-weight: 600;
}

/* Contact */

.contact {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--line);
}

.contact-inner {
  max-width: 32rem;
}

.contact-name {
  margin-bottom: var(--space-md);
}

.contact-social a {
  display: inline-block;
  margin-top: 0.25rem;
}

.contact-social a:first-of-type {
  margin-top: 0;
}

.contact-card {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.contact-card p {
  margin: 0 0 var(--space-sm);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-intro-follow {
  margin-top: calc(-0.35 * var(--space-lg));
  margin-bottom: var(--space-lg);
}

.contact-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* FAQ */

.faq {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.faq-inner {
  max-width: 40rem;
  margin-inline: auto;
}

.faq-title {
  margin-bottom: var(--space-md);
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-item__heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-align: left;
  transition: color var(--ease);
}

.faq-item__trigger:hover {
  color: var(--brand);
}

.faq-item__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-item__question {
  flex: 1;
  font-weight: 600;
  line-height: 1.45;
}

.faq-item__chevron {
  flex-shrink: 0;
  display: flex;
  color: var(--text-muted);
  transition: transform 0.28s ease, color var(--ease);
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item__answer {
  margin: 0;
  padding: 0 2.25rem var(--space-md) 0;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--line);
  background: #f2edee;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 var(--space-sm);
}

.footer-logo {
  height: 2rem;
  width: auto;
  max-width: 180px;
  margin-inline: auto;
}

.footer-tagline {
  margin: 0 0 var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-mid {
  margin: 0 0 var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-social {
  margin: 0 0 var(--space-sm);
  font-size: 0.9375rem;
}

.footer-social a {
  text-decoration: none;
  font-weight: 600;
}

.footer-dot {
  margin-inline: 0.35rem;
  color: var(--text-muted);
}

.footer-small {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Mobile: smaller type, tighter product cards, centred about portrait */

@media (max-width: 47.99rem) {
  body {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .logo__img {
    height: 1.875rem;
  }

  .nav-cta {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.05em;
  }

  .hero {
    padding-block: var(--space-xl) var(--space-lg);
  }

  .hero-title {
    font-size: clamp(1.6rem, 7.5vw, 2.25rem);
  }

  .hero-trust {
    font-size: 0.8125rem;
    gap: 0.5rem;
  }

  .paypal-mark--hero {
    width: 1.75rem;
  }

  .btn {
    font-size: 0.75rem;
    padding: 0.8rem 1.35rem;
    letter-spacing: 0.06em;
  }

  .section-title {
    font-size: clamp(1.45rem, 5vw, 1.85rem);
  }

  .section-intro,
  .section-intro--narrow,
  .section-intro--tight {
    font-size: 0.875rem;
  }

  .icon-grid {
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .icon-grid__icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .icon-grid__icon svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .icon-grid__title {
    font-size: 1.25rem;
  }

  .icon-grid__text {
    font-size: 0.75rem;
  }

  .products-highlight-box {
    font-size: 0.875rem;
    padding: var(--space-sm);
  }

  .product-card__body {
    padding: var(--space-xs) var(--space-sm);
    gap: 0.35rem;
  }

  .product-card__name {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .product-card__desc {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .price-now {
    font-size: 1.1rem;
  }

  .rrp {
    font-size: 0.75rem;
  }

  .product-card__price-was {
    font-size: 0.75rem;
    gap: 0.25rem 0.45rem;
  }

  .price-goodscent-label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .price-sale-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
  }

  .product-card__featured-tag {
    padding: 0.28rem 0.4rem;
    top: 0.4rem;
    left: 0.4rem;
    letter-spacing: 0.06em;
  }

  .product-card__pct-off {
    padding: 0.28rem 0.4rem;
    top: 0.4rem;
    right: 0.4rem;
    letter-spacing: 0.06em;
  }

  .product-card__buy {
    padding-top: var(--space-xs);
  }

  .product-card__secure {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .products-footnote {
    font-size: 0.8125rem;
  }

  .contact-card {
    padding: var(--space-sm);
  }

  .contact-note {
    font-size: 0.8125rem;
  }

  .footer-logo {
    height: 1.75rem;
  }

  .footer-tagline,
  .footer-mid,
  .footer-social {
    font-size: 0.8125rem;
  }

  .footer-small {
    font-size: 0.75rem;
  }

  .faq {
    padding-block: var(--space-lg);
  }

  .faq-item__trigger {
    padding: var(--space-sm) 0;
  }

  .faq-item__answer {
    font-size: 0.875rem;
    padding-right: 1.5rem;
  }
}
