/* ============================================================
   BreathWellPath — clean clinical-modern DTC
   Palette: white / emerald / navy, gold accent
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --ink: #12263A;
  --muted: #4E6377;
  --primary: #0E6E4E;
  --primary-dark: #0A5A40;
  --tint: #EDF6F1;
  --tint-deep: #DCEBE2;
  --accent: #E8B04B;
  --line: #E3EAE5;
  --navy: #12263A;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(18, 38, 58, .06);
  --shadow-md: 0 14px 34px rgba(18, 38, 58, .12);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1180px, 92%); margin-inline: auto; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.15; letter-spacing: -.01em; }

h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-solid { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(14, 110, 78, .28); }
.btn-solid:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 110, 78, .34); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: .55rem 1rem;
  font-size: .82rem;
  letter-spacing: .04em;
  position: relative;
  min-height: 2.4rem;
}
.announce-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.announce-msg.is-active { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}
.logo span { color: var(--primary); }
.main-nav { display: flex; gap: 1.8rem; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  position: relative;
  background: none;
  border: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  transition: background .18s ease;
}
.icon-btn:hover { background: var(--tint); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}
.cart-count.bump { transform: scale(1.35); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 5.5rem;
  background:
    radial-gradient(52rem 30rem at 88% 8%, var(--tint) 0%, transparent 62%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--primary); font-style: italic; }
.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }
.trust-line { font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.trust-line strong { color: var(--ink); }

.stars { color: var(--accent); letter-spacing: .12em; font-size: .95em; }

.hero-visual {
  position: relative;
  min-height: 480px;
}
.hero-photo {
  margin: 0 auto;
  width: min(400px, 88%);
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 22px 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--tint-deep);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.hero-photo:hover img { transform: scale(1.04); }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(18, 38, 58, .08);
  pointer-events: none;
}
.chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  animation: floaty 6s ease-in-out infinite;
  z-index: 2;
}
.chip-1 { top: 10%; left: 2%; }
.chip-2 { top: 2%; right: 6%; animation-delay: .8s; }
.chip-3 { bottom: 8%; right: 0; animation-delay: 1.6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy); color: #fff; padding: 1.6rem 0; }
.trustbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-item { display: flex; align-items: center; gap: .9rem; }
.trust-item svg { width: 30px; height: 30px; flex: none; color: var(--accent); }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { font-size: .8rem; color: rgba(255, 255, 255, .65); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.8rem;
}
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.view-all {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.view-all:hover { text-decoration: underline; }

/* ---------- Product grid ---------- */
.products { background: linear-gradient(180deg, var(--bg) 0%, #FBFDFC 100%); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
}
.badge-best { background: var(--primary); color: #fff; }
.badge-new { background: var(--accent); color: var(--ink); }
.product-media {
  background: var(--tint);
  padding: 0;
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transition: transform .45s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-info { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.product-sub { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.rating { font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.rating-count { color: var(--muted); font-weight: 400; }
.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.price-now { font-weight: 700; font-size: 1.15rem; }
.price s { color: var(--muted); font-size: .88rem; margin-left: .3rem; }
.btn-add { padding: .6rem 1.2rem; font-size: .85rem; box-shadow: none; }
.btn-add.added { background: var(--primary-dark); }

/* ---------- How it works ---------- */
.how { background: var(--tint); }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: .8rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Ingredients ---------- */
.ingredient-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ingredient-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ingredient-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ingredient-icon {
  width: 46px; height: 46px;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.ingredient-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.ingredient-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--tint); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote {
  font-size: .98rem;
  color: var(--ink);
  margin: .8rem 0 1.2rem;
  line-height: 1.65;
}
.testimonial figcaption strong { display: block; font-size: .92rem; }
.testimonial figcaption span {
  font-size: .78rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Edit band ---------- */
.edit-band {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}
.edit-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edit-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 52, 36, .88) 0%, rgba(9, 52, 36, .58) 52%, rgba(9, 52, 36, .18) 100%);
}
.edit-overlay {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin-inline: auto;
  color: #fff;
  max-width: 430px;
}
.edit-overlay h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-bottom: .7rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.edit-overlay p { opacity: .95; margin-bottom: 1.6rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.eyebrow-light { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(40rem 20rem at 20% 0%, rgba(255, 255, 255, .12) 0%, transparent 60%),
    linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: .6rem; }
.cta-inner p { opacity: .85; margin-bottom: 1.8rem; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 4.5rem 0; }
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.newsletter h2 { font-size: 1.7rem; margin-bottom: .5rem; }
.newsletter p { color: var(--muted); font-size: .95rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; }
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: .9rem 1.3rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.newsletter-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14, 110, 78, .12); }
.form-msg {
  width: 100%;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  min-height: 1.3em;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.logo-light { color: #fff; }
.logo-light span { color: var(--accent); }
.footer-brand p { font-size: .92rem; margin-top: 1rem; max-width: 24rem; color: rgba(255, 255, 255, .6); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: .92rem;
  padding: .28rem 0;
  transition: color .18s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-hours { font-size: .85rem; color: rgba(255, 255, 255, .5); margin-top: .5rem; }
.pay-badges { display: flex; gap: .5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.pay-badges span {
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  padding: .28rem .6rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .75);
}
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.5rem;
}
.footer-disclaimer p { font-size: .78rem; color: rgba(255, 255, 255, .45); line-height: 1.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.2rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 200%);
  background: var(--ink);
  color: #fff;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
  z-index: 100;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal animations ---------- */
.hero-el {
  opacity: 0;
  transform: translateY(22px);
  animation: rise .7s cubic-bezier(.2, .7, .3, 1) forwards;
}
.hero-el:nth-child(1) { animation-delay: .05s; }
.hero-el:nth-child(2) { animation-delay: .15s; }
.hero-el:nth-child(3) { animation-delay: .25s; }
.hero-el:nth-child(4) { animation-delay: .35s; }
.hero-el:nth-child(5) { animation-delay: .45s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: .5rem 4%;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .steps, .ingredient-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .product-grid, .steps, .ingredient-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .trustbar-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero { padding: 3rem 0 4rem; }
  .hero-visual { min-height: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
  .product-foot { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ============================================================
   Footer redesign — "service strip + giant watermark"
   ============================================================ */

.site-footer { padding: 0; }

.svc-strip { background: var(--primary); color: #fff; }

.svc-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.svc-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.svc-item + .svc-item { border-left: 1px solid rgba(255, 255, 255, 0.22); }

.svc-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

.ft-dark { background: var(--navy); overflow: hidden; }

.ft-main {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.1fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.ft-brand p {
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.6);
}

.ft-mail {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.ft-mail:hover { color: var(--accent); }

.ft-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.ft-col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  padding: 0.28rem 0;
  transition: color 0.18s ease;
}

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

.ft-pays {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.7rem;
}

.ft-pays span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.28rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
}

.ft-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.1rem;
}

.ft-legal p { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }

.ft-watermark { overflow: hidden; margin-top: 0.6rem; }

.ft-watermark span {
  display: block;
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 9.5vw, 11rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.06);
  transform: translateY(30%);
  user-select: none;
  pointer-events: none;
}

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

@media (max-width: 640px) {
  .svc-inner { grid-template-columns: 1fr; }
  .svc-item { justify-content: flex-start; padding: 0.8rem 1.2rem; }
  .svc-item + .svc-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
  .ft-main { grid-template-columns: 1fr; gap: 1.8rem; padding-top: 2.5rem; }
}
