/* ==========================================================================
   Dermascience — styles
   Brand colors come from the Dermascience logo (green) and the Sazian clinic (grey, navy).
   Change them here and the whole site follows.
   ========================================================================== */
:root {
  --ink: #111722;          /* deep navy-ink: headings, dark sections */
  --ink-soft: #2a3140;
  --green: #4fc14f;        /* Dermascience logo green: accents */
  --green-deep: #2e7d32;   /* darker green for text on light backgrounds */
  --green-mist: #eaf5e8;   /* pale green tint for panels */
  --grey: #a6a6a6;         /* Sazian logo grey */
  --stone: #5f646d;        /* body text */
  --line: #e4e4dc;
  --ivory: #f8f7f2;        /* page background */
  --white: #ffffff;
  --whatsapp: #25d366;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -24px rgba(17, 23, 34, .25);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--stone);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
p { margin: 0 0 1em; }
em.accent { font-style: italic; color: var(--green-deep); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tint { background: var(--green-mist); }
.section--dark { background: var(--ink); color: #c9ccd2; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--green); }
.lead { font-size: 1.08rem; max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: var(--white); }
.btn--whatsapp { background: var(--whatsapp); color: #06331a; }
.btn--whatsapp:hover { background: #1fb457; color: var(--white); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(248, 247, 242, .86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--sans); font-weight: 500; font-size: 1.12rem; letter-spacing: .32em; color: var(--ink); }
.brand__name b { font-weight: 600; color: var(--green-deep); }
.brand__by { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--grey); margin-top: 6px; }
.brand--light .brand__name { color: var(--white); }
.brand--light .brand__name b { color: var(--green); }

.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--green-deep); transition: width .3s ease; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { padding: 11px 20px; }

.nav__toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .3s ease, opacity .3s ease; }
.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { border: 0; padding-top: 18px; }
  .nav__links a { display: block; padding: 16px 0; font-size: .85rem; }
  .nav__links a::after { display: none; }
  .nav__cta { width: 100%; }
}

/* Media slots: placeholders for photos and videos you will add later */
.media-slot {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(79, 193, 79, .22), transparent 60%),
    radial-gradient(90% 80% at 90% 100%, rgba(166, 166, 166, .28), transparent 60%),
    linear-gradient(160deg, #fbfbf7, #ecefe4);
  display: grid; place-items: center;
}
.media-slot img, .media-slot video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.media-slot__label {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #8b9078;
}
.media-slot__label svg { width: 30px; height: 30px; opacity: .7; }
.media-slot.has-media .media-slot__label { display: none; }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--green-deep); }
.hero .lead { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__meta div { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.hero__meta strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.2; }
.hero__visual { position: relative; }
.hero__visual .media-slot { aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero__badge {
  position: absolute; left: -24px; bottom: 40px; background: var(--white); border-radius: var(--radius-sm);
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 260px;
}
.hero__badge .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--green-mist); display: grid; place-items: center; flex: none; }
.hero__badge .dot svg { width: 20px; height: 20px; color: var(--green-deep); }
.hero__badge p { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--ink); }
.hero__badge small { display: block; color: var(--stone); font-size: .7rem; }
.hero__ring { position: absolute; right: -180px; top: -140px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(79,193,79,.25); pointer-events: none; }
.hero__ring::after { content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 1px dashed rgba(166,166,166,.4); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero__badge { left: 12px; bottom: 16px; }
}

/* Marquee strip */
.strip { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; }
.strip__track { display: flex; gap: 56px; padding: 20px 0; width: max-content; animation: marquee 38s linear infinite; }
.strip__track span { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.strip__track span::after { content: "✦"; font-style: normal; font-size: .8rem; color: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Product cards */
.products-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.product-card { grid-column: span 2; background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease; }
.product-card:nth-child(4), .product-card:nth-child(5) { grid-column: span 3; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .media-slot { aspect-ratio: 1 / 1; border-radius: 0; }
.product-card:nth-child(4) .media-slot, .product-card:nth-child(5) .media-slot { aspect-ratio: 16 / 10; }
.product-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.product-card__tag { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green-deep); font-weight: 600; margin-bottom: 10px; }
.product-card h3 { margin-bottom: 10px; }
.product-card p { font-size: .92rem; flex: 1; }
.product-card__link { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; }
.product-card__link span { transition: transform .25s ease; }
.product-card:hover .product-card__link span { transform: translateX(4px); }

@media (max-width: 960px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card, .product-card:nth-child(4), .product-card:nth-child(5) { grid-column: span 1; }
  .product-card:nth-child(5) { grid-column: span 2; }
  .product-card:nth-child(4) .media-slot { aspect-ratio: 1 / 1; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card:nth-child(5) { grid-column: span 1; }
  .product-card .media-slot, .product-card:nth-child(n) .media-slot { aspect-ratio: 4 / 3; }
}

/* Routine */
.routine-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px; margin-bottom: 48px; }
.routine-toggle button {
  border: 0; background: none; padding: 12px 26px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
  display: inline-flex; align-items: center; gap: 8px; transition: background .25s ease, color .25s ease;
}
.routine-toggle button svg { width: 16px; height: 16px; }
.routine-toggle button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.routine-panel { display: none; }
.routine-panel.active { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.routine-panel .media-slot { aspect-ratio: 4 / 5; position: sticky; top: 110px; }
.routine-intro h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(17,23,34,.1); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.6rem; color: var(--green-deep);
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(46,125,50,.35); display: grid; place-items: center;
}
.step h4 { font-size: 1.35rem; margin-bottom: 4px; }
.step h4 small { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; font-weight: 600; }
.step p { font-size: .92rem; margin: 0; }
.routine-note { margin-top: 24px; padding: 18px 22px; border-radius: var(--radius-sm); background: rgba(255,255,255,.7); font-size: .88rem; border-left: 3px solid var(--green); }
@media (max-width: 860px) {
  .routine-panel.active { grid-template-columns: 1fr; }
  .routine-panel .media-slot { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .routine-toggle { display: flex; width: 100%; }
  .routine-toggle button { flex: 1; justify-content: center; padding: 12px 10px; }
}

/* About section (dark) */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.about__photo { position: relative; }
.about__photo .media-slot { aspect-ratio: 4 / 5; }
.about__photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid rgba(79,193,79,.5); border-radius: var(--radius); z-index: -1; }
.about__sig { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--white); margin: 28px 0 2px; }
.about__role { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.pillar { padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); }
.pillar strong { display: block; color: var(--white); font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 4px; }
.pillar span { font-size: .82rem; line-height: 1.5; }
.parent-brand { display: flex; align-items: center; gap: 18px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.parent-brand img { height: 56px; width: auto; background: var(--white); border-radius: 8px; padding: 6px 10px; }
.parent-brand p { margin: 0; font-size: .82rem; line-height: 1.5; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 440px; margin-right: 24px; }
  .pillars { grid-template-columns: 1fr; }
}

/* Video feature */
.video-feature .media-slot { aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.play { width: 74px; height: 74px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); }
.play svg { width: 22px; height: 22px; margin-left: 4px; color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: stretch; }
.contact__card { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); }
.contact__card h2 { margin-bottom: 16px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 8px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__list li:last-child { border: 0; }
.contact__list .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--green-mist); display: grid; place-items: center; }
.contact__list .ic svg { width: 18px; height: 18px; color: var(--green-deep); }
.contact__list small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.contact__list a, .contact__list span { color: var(--ink); font-weight: 500; }
.contact__list a:hover { color: var(--green-deep); }
.wa-form { display: grid; gap: 12px; margin-top: 24px; }
.wa-form label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.wa-form input, .wa-form select, .wa-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; outline: none; transition: border-color .2s ease;
}
.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus { border-color: var(--green-deep); }
.wa-form textarea { min-height: 110px; resize: vertical; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--ink); border-radius: var(--radius); padding: clamp(40px, 7vw, 80px); text-align: center; color: #c9ccd2; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 54ch; margin: 0 auto 28px; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(79,193,79,.25); right: -120px; top: -160px; }

/* Footer */
.site-footer { background: var(--ink); color: #9ea3ab; padding: 72px 0 32px; font-size: .88rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white); font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--green); }
.footer__about p { margin-top: 18px; max-width: 34ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .76rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* Hero entrance (once, on load) */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.enter { animation: enter .8s cubic-bezier(.2,.7,.2,1) both; }
.enter--2 { animation-delay: .12s; }
.btn:active { transform: translateY(0) scale(.98); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter { animation: none; }
  .strip__track { animation: none; }
}
:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }
.media-slot:has(> img, > video) .media-slot__label { display: none; }
.btn--light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.nav__links a.btn { color: var(--white); padding: 11px 20px; }
.nav__links a.btn::after { display: none; }
.section--dark .media-slot {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(79, 193, 79, .18), transparent 60%),
    linear-gradient(160deg, #1d2431, #151b26);
}
.section--dark .media-slot__label { color: #7d8594; }

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.how .steps { margin-top: 0; }
.how .step:first-child { border-top: 0; padding-top: 0; }
.how .media-slot { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } .how .media-slot { aspect-ratio: 16 / 10; } }

.range-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 16px; border-radius: 999px; background: var(--green-mist); color: var(--green-deep); font-size: .8rem; font-weight: 600; }
.range-note svg { width: 16px; height: 16px; }
.product-card { cursor: default; }
.product-card:hover { transform: translateY(-2px); }
.product-card .media-slot img { transition: transform .5s ease; }
.product-card:hover .media-slot img { transform: scale(1.03); }
.product-card__use { font-size: .82rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; margin: 6px 0 0; }
.product-card__use b { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green-deep); display: block; margin-bottom: 2px; }
.wa-form .btn { margin-top: 6px; }
.parent-brand strong { color: var(--white); }
.contact { align-items: start; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery .g1 { grid-column: span 2; grid-row: span 2; }
.gallery .media-slot img { transition: transform .5s ease; }
.gallery .media-slot:hover img { transform: scale(1.03); }
#gallery .parent-brand { margin-top: 48px; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery .g1 { grid-column: 1 / -1; }
}

/* Dermascience logo in header */
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { color: var(--green-deep); font-weight: 600; letter-spacing: .3em; font-size: 1.02rem; }
.brand__by { color: var(--green-deep); opacity: .8; margin-top: 6px; letter-spacing: .32em; }
.footer__logo img { width: 180px; height: auto; }

.hero__badge .dot img { width: 22px; height: 22px; object-fit: contain; }
.media-slot--brand .media-slot__label img { width: 44px; height: 44px; position: static; opacity: .9; }
.media-slot--brand { background: linear-gradient(160deg, #eef6ec, #dfeedd); }
.media-slot > img { background: #e6e4e2; }

/* Range: 13 products grouped by step */
.range-group { margin-top: 48px; }
.range-group:first-of-type { margin-top: 8px; }
.range-group__title { font-size: 1.5rem; display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.range-group__title::after { content: ""; flex: 1; height: 1px; background: rgba(46,125,50,.25); }
.range-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.pc { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: transform .3s ease, box-shadow .3s ease; }
.pc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pc__img { position: relative; width: 112px; height: 112px; border-radius: 12px; overflow: hidden; background: #e6e4e2; }
.pc__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transition: transform .5s ease; }
.pc:hover .pc__img img { transform: scale(calc(var(--z, 1) * 1.04)); }
.pc__img--empty { background: linear-gradient(160deg, #eef6ec, #dfeedd); display: grid; place-items: center; }
.pc__img--empty .pc__mark { width: 40px; height: 40px; object-fit: contain; opacity: .85; }
.pc__body { min-width: 0; padding-right: 6px; }
.pc h4 { font-size: 1.2rem; margin-bottom: 4px; }
.pc p { font-size: .86rem; line-height: 1.5; margin: 0 0 8px; }
.pc__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pc__when { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pc__when--am { background: #fff4d6; color: #7a5a00; }
.pc__when--pm { background: var(--ink); color: var(--white); }
@media (max-width: 480px) { .pc { grid-template-columns: 92px 1fr; gap: 14px; } .pc__img { width: 92px; height: 92px; } }

/* ==========================================================================
   Polish pass: taste-skill + design-motion-principles (Jakub Krehel lens)
   ========================================================================== */
:root {
  --sage: #6f9160;            /* Dermascience packaging green */
  --sage-deep: #4f6b43;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-sm: 0 1px 2px rgba(17,23,34,.04), 0 8px 24px -12px rgba(17,23,34,.12);
  --shadow-md: 0 2px 4px rgba(17,23,34,.04), 0 18px 40px -18px rgba(17,23,34,.22);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.015em; text-wrap: balance; }
h2 { text-wrap: balance; }
.lead { text-wrap: pretty; }

/* Eyebrows: drop the decorative rule, keep the label */
.eyebrow::before, .section-head.center .eyebrow::after { display: none; }
.eyebrow { letter-spacing: .2em; }

/* Hero entrance: opacity + small rise + blur, staggered, once */
@keyframes materialize { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.enter { animation: materialize .7s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.enter--img { animation-duration: .9s; }
.hero { padding-top: clamp(32px, 6vw, 80px); }
.hero__visual .media-slot { border-radius: 260px 260px 20px 20px; box-shadow: var(--shadow-md); }

/* Buttons: quick, custom-curve hover; press on click */
.btn { transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn--primary:hover { background: var(--sage-deep); }

/* Cards: shadows instead of borders, 2px lift */
.pc, .contact__card { border: 0; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.pc:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pc__img img, .gallery .media-slot img, .product-card .media-slot img { transition: transform .6s var(--ease-out); }
.gallery .media-slot:hover img { transform: scale(1.025); }
.routine-panel .media-slot, .how .media-slot { box-shadow: var(--shadow-md); }

/* Range group titles in the serif, quieter rule */
.range-group__title::after { background: rgba(79,107,67,.22); }

/* Routine tab switch: short crossfade with blur, not a slide */
.routine-panel.active { animation: panelIn .45s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }
.routine-toggle button { transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }

/* Sage brand band for booking */
.section--sage { background: var(--sage); }
.section--sage .contact__card { box-shadow: 0 30px 60px -30px rgba(30,45,25,.45); }

/* Header: hairline only after scrolling */
.site-header.scrolled { border-color: transparent; box-shadow: 0 1px 0 rgba(17,23,34,.06); }

@media (prefers-reduced-motion: reduce) {
  .enter, .routine-panel.active { animation: none; }
  .btn, .pc, .pc__img img, .gallery .media-slot img { transition: none; }
  .btn:hover, .pc:hover { transform: none; }
}

/* Phones: headline and booking button on the first screen, photo after */
@media (max-width: 900px) {
  .hero__visual { order: 0; max-width: 520px; }
  .hero__visual .media-slot { aspect-ratio: 4 / 4.4; border-radius: 200px 200px 20px 20px; }
  .hero__grid { gap: 36px; }
}
@media (max-width: 600px) {
  .hero__actions .btn { width: 100%; }
  .hero__meta { gap: 20px 28px; margin-top: 32px; padding-top: 22px; }
  .hero__meta strong { font-size: 1.45rem; }
}

/* The science */
#science { background: var(--white); }
.science { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.science .section-head { margin-bottom: 32px; }
.science__made { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--radius); background: var(--green-mist); }
.science__made img { width: 44px; height: 44px; object-fit: contain; }
.science__made p { margin: 0; font-size: .95rem; color: var(--ink); }
.ingredients { list-style: none; margin: 0; padding: 8px 0; display: grid; gap: 0; }
.ingredient { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(79,107,67,.18); }
.ingredient:first-child { border-top: 0; }
.ingredient__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--white); }
.ingredient__ic svg { width: 26px; height: 26px; }
.ingredient h3 { font-size: 1.6rem; margin-bottom: 6px; }
.ingredient p { margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .science { grid-template-columns: 1fr; } }

/* Nav breathing room with six items */
@media (min-width: 901px) and (max-width: 1280px) {
  .nav__links { gap: 22px; }
  .nav__links a { font-size: .72rem; letter-spacing: .12em; }
  .nav__cta { padding: 10px 16px; }
}
.nav { gap: 24px; }
.nav__links a { white-space: nowrap; }
.brand { flex-shrink: 0; }
@media (min-width: 901px) and (max-width: 1280px) { .nav__links { gap: 18px; } .brand__name { font-size: .92rem; letter-spacing: .26em; } }

/* Consultation-first notice in the range */
.notice { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; margin-top: 28px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #c9ccd2; max-width: 820px; }
.notice h3 { color: var(--white); font-size: 1.7rem; margin-bottom: 8px; }
.notice p { margin: 0 0 18px; font-size: .95rem; }
.notice__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--sage); color: var(--white); display: grid; place-items: center; }
.notice__ic svg { width: 26px; height: 26px; }
.notice .btn--primary { background: var(--white); color: var(--ink); }
.notice .btn--primary:hover { background: var(--green); color: var(--ink); }
@media (max-width: 600px) { .notice { grid-template-columns: 1fr; padding: 24px 20px; } .notice .btn { width: 100%; } }

/* Gallery: third row of two wide tiles */
.gallery .g6, .gallery .g7 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .gallery .g6, .gallery .g7 { grid-column: span 1; grid-row: span 2; } }

/* Science photo and extra gallery row */
.science__photo { aspect-ratio: 5 / 4; margin-top: 24px; box-shadow: var(--shadow-md); }
.science { align-items: start; }
.gallery .g8 { grid-column: span 2; grid-row: span 2; }
.gallery .g9, .gallery .g10 { grid-row: span 2; }
@media (max-width: 860px) {
  .gallery .g8 { grid-column: 1 / -1; grid-row: span 2; }
}

/* Full-bleed photo band */
.photo-band { position: relative; height: clamp(300px, 52vw, 680px); overflow: hidden; background: #d9d7d3; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) { .photo-band { height: 340px; } .photo-band img { object-position: 30% 50% !important; } }

/* Opening hours */
.hours { margin: 24px 0; display: grid; gap: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; background: var(--ivory); }
.hours div + div { border-top: 1px solid var(--line); }
.hours dt { font-weight: 600; color: var(--ink); }
.hours dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours__closed dt, .hours__closed dd { color: var(--stone); font-weight: 500; }
.hours__wa { width: 100%; }

/* ==========================================================================
   Brief pass: clean clinical type (The Ordinary), education (Paula's Choice),
   soft calm layout (True Kind). Brand colours unchanged.
   ========================================================================== */
:root { --sans: "Manrope", "Helvetica Neue", Arial, sans-serif; --display: "Manrope", "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h1 em, h2 em, .accent { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; color: var(--green-deep); }
h1 em { font-size: 1.08em; }
.range-group__title { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.pc h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.step h4, .ingredient h3 { font-weight: 600; letter-spacing: -.015em; }
.ingredient h3 { font-size: 1.35rem; }
.step h4 { font-size: 1.1rem; }
.notice h3 { font-size: 1.45rem; font-weight: 600; }
.hero__meta strong { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.02em; }

/* Ingredient-led product labels */
.pc { align-items: start; }
.pc__active { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 4px; }
.pc__target { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--green-mist); color: var(--green-deep); }
.pc__why { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.pc__why summary { cursor: pointer; font-size: .74rem; font-weight: 600; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.pc__why summary::-webkit-details-marker { display: none; }
.pc__why summary::after { content: "+"; font-size: 1rem; color: var(--green-deep); transition: transform .2s var(--ease-out); }
.pc__why[open] summary::after { transform: rotate(45deg); }
.pc__why p { margin: 4px 0 2px; font-size: .84rem; }

/* Signature tag + key actives library */
.ingredient__tag { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 2px; }
.actives { margin-top: clamp(48px, 7vw, 80px); }
.actives__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.actives__title::after { content: ""; flex: 1; height: 1px; background: rgba(79,107,67,.22); }
.actives__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.active { background: var(--ivory); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.active h4 { font-size: 1.02rem; font-weight: 600; margin: 0; }
.active p { margin: 0; font-size: .86rem; line-height: 1.55; flex: 1; }
.active__in { font-size: .72rem; font-weight: 600; color: var(--green-deep); }
@media (max-width: 1000px) { .actives__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .actives__grid { grid-template-columns: 1fr; } }

/* Expert advice */
.advice { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faqs { display: grid; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-mist); color: var(--green-deep); display: grid; place-items: center; font-size: 1.1rem; transition: transform .25s var(--ease-out); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; max-width: 62ch; }
@media (max-width: 860px) { .advice { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .pc__why summary::after { transition: none; } }

/* Product details list */
.pc__dl { margin: 6px 0 2px; display: grid; gap: 8px; }
.pc__dl div { display: grid; gap: 1px; }
.pc__dl dt { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); }
.pc__dl dd { margin: 0; font-size: .84rem; line-height: 1.5; }

/* Approach (navy brand band) */
#approach .lead { color: #c9ccd2; }
.pillars4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.pillars4 li { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; }
.pillars4 span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage); color: var(--white); font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-bottom: 14px; }
.pillars4 h3 { color: var(--white); font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.pillars4 p { margin: 0; font-size: .9rem; color: #c9ccd2; }
.approach__foot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid rgba(255,255,255,.12); }
.approach__foot h3 { color: var(--white); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.approach__foot p { margin: 0; color: #c9ccd2; }
@media (max-width: 960px) { .pillars4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillars4, .approach__foot { grid-template-columns: 1fr; } }

/* Concerns */
.concerns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.concern { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.concern h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.concern p { margin: 0; font-size: .86rem; line-height: 1.55; }
.concern .concern__why { color: var(--green-deep); font-weight: 600; font-size: .78rem; margin-bottom: 8px; }
#concerns { background: var(--green-mist); }
@media (max-width: 1000px) { .concerns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .concerns { grid-template-columns: 1fr; } }

/* Footer note */
.footer__note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .74rem; line-height: 1.6; color: #8a8f98; max-width: 90ch; }
.range-list { align-items: start; }

/* Hero: two photos, calm overlap */
.hero__visual { padding-left: 14%; padding-bottom: 12%; }
.hero__visual .media-slot { aspect-ratio: 4 / 5; }
.hero__second { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 6px solid var(--ivory); box-shadow: var(--shadow-md); background: #d9d4cc; }
.hero__second img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .hero__visual { padding-left: 18%; padding-bottom: 16%; max-width: 480px; }
  .hero__second { width: 44%; border-width: 5px; }
}
@media (prefers-reduced-motion: no-preference) { .hero__second { animation: materialize .9s var(--ease-out) .35s both; } }

/* Hero: both photos as matching rounded rectangles */
.hero__visual .media-slot, .hero__visual .media-slot { border-radius: 18px; }
@media (max-width: 900px) { .hero__visual .media-slot { border-radius: 18px; } }

/* Hero: second photo on the right so the cream jar stays visible */
.hero__visual { padding-left: 0; padding-right: 14%; }
.hero__second { left: auto; right: 0; }
@media (max-width: 900px) { .hero__visual { padding-left: 0; padding-right: 18%; } }

/* Hero: centre the photo pair in its column */
.hero__visual { padding-left: 8%; padding-right: 8%; max-width: 520px; width: 100%; margin-inline: auto; justify-self: center; }
@media (max-width: 900px) { .hero__visual { padding-left: 9%; padding-right: 9%; max-width: 460px; } }

/* Phones: hero photos first, then the headline */
@media (max-width: 900px) {
  .hero__visual { order: -1; max-width: 400px; padding-bottom: 14%; }
  .hero__visual .media-slot { aspect-ratio: 1 / 1; }
  .hero__second { width: 38%; }
  .hero { padding-top: 20px; }
}
