/* =========================================================
   Biopena — Design System
   ========================================================= */

:root {
  /* Paletă */
  --cream:       #FAF7F2;
  --cream-warm:  #F2EDE3;
  --paper:       #FFFFFF;
  --navy:        #0E2A47;
  --navy-deep:   #081C32;
  --navy-soft:   #1B3A5C;
  --azure:       #2A6FB0;
  --azure-deep:  #1E5894;
  --azure-light: #5A95C9;
  --sky:         #BFDBE9;
  --sky-soft:    #E5EEF5;
  --ink:         #1A2A3A;
  --muted:       #5E7184;
  --line:        #DDE5EC;
  --line-warm:   #E4DCC9;
  --accent:      #C99A4A;

  /* Tipografie */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spațiere */
  --container:    1200px;
  --container-sm: 880px;
  --radius:       4px;
  --radius-lg:    14px;

  /* Tranziții */
  --t-fast: 180ms ease;
  --t-med:  320ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 600ms cubic-bezier(.4, 0, .2, 1);

  /* Umbre */
  --shadow-sm: 0 1px 2px rgba(14, 42, 71, .06), 0 1px 1px rgba(14, 42, 71, .04);
  --shadow-md: 0 6px 24px -8px rgba(14, 42, 71, .12), 0 2px 6px rgba(14, 42, 71, .05);
  --shadow-lg: 0 24px 48px -16px rgba(14, 42, 71, .18), 0 4px 12px rgba(14, 42, 71, .06);
}

/* =========================================================
   Reset & Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--azure-deep);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -.005em; }

p { margin: 0 0 1em; }

p, li {
  hyphens: auto;
  -webkit-hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

::selection { background: var(--navy); color: var(--cream); }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-sm); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }
.section--cream { background: var(--cream-warm); }
.section--paper { background: var(--paper); }
.section--navy  { background: var(--navy-deep); color: var(--cream); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--cream); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--azure-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
.section--navy .eyebrow { color: var(--sky); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 60ch;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--azure);
  border: none;
  margin: 0 0 28px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-med);
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--navy);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--azure-deep);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--cream);
}
.btn--light {
  background: var(--cream);
  color: var(--navy);
}
.btn--light:hover {
  background: var(--paper);
  color: var(--azure-deep);
}
.btn .arrow {
  display: inline-block;
  transition: transform var(--t-med);
}
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -.01em;
}
.brand:hover { color: var(--azure-deep); }
.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--cream);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  display: inline-block;
  padding: 10px 14px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius);
  position: relative;
}
.nav__menu a:hover { color: var(--azure-deep); }
.nav__menu a.is-active {
  color: var(--azure-deep);
}
.nav__menu a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--azure);
}

.nav__cta { margin-left: 14px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--navy);
  position: relative;
  transition: transform var(--t-med);
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top:  6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    top: 73px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    padding: 8px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med);
  }
  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__menu a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav__menu a.is-active::after { display: none; }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 10vw, 130px);
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(191, 219, 233, .55), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--sky-soft) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(14, 42, 71, .04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
}

.hero__title {
  margin: 22px 0 24px;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
}
.hero__title em {
  font-style: italic;
  color: var(--azure-deep);
  font-weight: 400;
}
.hero__text {
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.hero__visual:hover img { transform: scale(1.03); }
.hero__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 42, 71, .25) 100%);
}

.hero__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  z-index: 2;
  color: var(--navy-deep);
  font-size: .88rem;
}
.hero__badge strong { font-weight: 700; }

/* stats strip beneath hero */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.hero__stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.hero__stat p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) {
  .hero__stats { grid-template-columns: 1fr; gap: 22px; }
}

/* =========================================================
   Section: split / philosophy
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse > :first-child { order: 0; }
}

.split__image {
  position: relative;
  aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split__image img { width: 100%; height: 100%; object-fit: cover; }

.split__image::before {
  content: "";
  position: absolute;
  width: 80px; height: 80px;
  top: -16px; left: -16px;
  border: 1px solid var(--azure);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.split__bullets {
  list-style: none;
  padding: 0; margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.split__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.split__bullets li:last-child { border-bottom: none; }
.split__bullets li::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin-top: 9px;
  background: var(--azure);
  border-radius: 50%;
}

/* =========================================================
   Product section (asymmetric)
   ========================================================= */
.product-feature {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}
.product-feature::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(42, 111, 176, .12), transparent 70%);
  border-radius: 50%;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
}
.product-visual::before {
  content: "";
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(ellipse at center, rgba(14, 42, 71, .12), transparent 65%);
  filter: blur(40px);
  z-index: 0;
}
.product-visual img {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 100%;
  filter: drop-shadow(0 28px 40px rgba(14, 42, 71, .25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.product-info h2 { margin-bottom: 12px; }
.product-info .lead { margin-bottom: 24px; }

.product-specs {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
.product-specs li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: .94rem;
}
.product-specs li strong {
  color: var(--navy);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.product-specs li span { color: var(--muted); }
@media (max-width: 480px) {
  .product-specs { grid-template-columns: 1fr; }
}

/* =========================================================
   Ingredients / Cards grid
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 880px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}
.card__icon {
  width: 44px; height: 44px;
  background: var(--sky-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--azure-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
  font-size: .94rem;
  margin: 0;
  flex: 1;
}
.card__meta {
  margin-top: 18px;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--azure);
}

/* Pillar cards (alternative pattern) */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar {
  padding: 32px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background var(--t-med);
}
.pillar:hover { background: var(--sky-soft); }
.pillar__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--azure);
  letter-spacing: .05em;
}
.pillar h3 {
  font-size: 1.18rem;
  margin: 14px 0 10px;
}
.pillar p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}
@media (max-width: 880px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

/* =========================================================
   FAQ Accordion
   ========================================================= */
.faq {
  max-width: 820px;
  margin: 48px auto 0;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  text-align: left;
  color: var(--navy-deep);
  transition: color var(--t-fast);
}
.faq__q:hover { color: var(--azure-deep); }

.faq__q .icon {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  position: relative;
}
.faq__q .icon::before,
.faq__q .icon::after {
  content: "";
  position: absolute;
  background: var(--azure-deep);
  transition: transform var(--t-med);
}
.faq__q .icon::before {
  top: 50%; left: 0; right: 0;
  height: 1.5px; transform: translateY(-50%);
}
.faq__q .icon::after {
  left: 50%; top: 0; bottom: 0;
  width: 1.5px; transform: translateX(-50%);
}
.faq__item.is-open .faq__q .icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med);
}
.faq__a-inner {
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 65ch;
}
.faq__a-inner p { margin: 0 0 .8em; }
.faq__a-inner p:last-child { margin-bottom: 0; }

/* =========================================================
   Lifestyle section (overlap layout)
   ========================================================= */
.lifestyle {
  position: relative;
  background: var(--navy-deep);
  color: var(--cream);
  overflow: hidden;
}
.lifestyle::before {
  content: "";
  position: absolute;
  bottom: -100px; left: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(90, 149, 201, .25), transparent 70%);
  border-radius: 50%;
}

.lifestyle__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) { .lifestyle__grid { grid-template-columns: 1fr; } }

.lifestyle h2 { color: var(--cream); }
.lifestyle p { color: rgba(250, 247, 242, .82); }

.lifestyle__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lifestyle__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.lifestyle__image:hover img { transform: scale(1.05); }

.routine-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  counter-reset: routine;
}
.routine-list li {
  position: relative;
  padding: 18px 0 18px 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  counter-increment: routine;
}
.routine-list li:last-child { border-bottom: none; }
.routine-list li::before {
  content: counter(routine, decimal-leading-zero);
  position: absolute;
  left: 0; top: 22px;
  font-family: var(--font-display);
  color: var(--sky);
  font-size: 1rem;
  letter-spacing: .05em;
}
.routine-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.routine-list p { margin: 0; font-size: .94rem; }

/* =========================================================
   CTA / banner
   ========================================================= */
.cta-banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: var(--cream-warm);
}
.cta-banner h2 {
  max-width: 22ch;
  margin: 0 auto 16px;
}
.cta-banner p {
  max-width: 50ch;
  margin: 0 auto 28px;
  color: var(--muted);
}

/* =========================================================
   Page header (interior pages)
   ========================================================= */
.page-header {
  background: var(--sky-soft);
  padding: clamp(60px, 8vw, 100px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-header__inner {
  max-width: 760px;
}
.page-header .eyebrow { margin-bottom: 14px; }
.page-header h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}
.page-header p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

/* breadcrumb */
.crumbs {
  margin-bottom: 16px;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .03em;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--azure-deep); }
.crumbs span { margin: 0 8px; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__group { margin-bottom: 18px; }
.form__group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--azure);
  background: var(--paper);
}
.form__group textarea { resize: vertical; min-height: 140px; }
.form__group .err {
  display: none;
  margin-top: 6px;
  font-size: .82rem;
  color: #b54c2e;
}
.form__group.has-error .err { display: block; }
.form__group.has-error input,
.form__group.has-error textarea { border-color: #b54c2e; }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.form__check input { margin-top: 4px; }

.contact-info {
  display: grid;
  gap: 22px;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.contact-card h4 {
  margin: 0 0 6px;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--azure-deep);
}
.contact-card p { margin: 0; font-size: 1rem; color: var(--ink); }
.contact-card a { color: var(--ink); }
.contact-card a:hover { color: var(--azure-deep); }

.map-block {
  margin-top: 24px;
  background: linear-gradient(135deg, var(--sky-soft), var(--cream-warm));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.map-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 42, 71, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 42, 71, .06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin {
  position: relative;
  text-align: center;
  z-index: 1;
}
.map-pin .pin {
  width: 18px; height: 18px;
  background: var(--azure-deep);
  border-radius: 50%;
  margin: 0 auto 8px;
  box-shadow: 0 0 0 6px rgba(42, 111, 176, .2), 0 0 0 14px rgba(42, 111, 176, .08);
}
.map-pin p { margin: 0; font-size: .92rem; color: var(--navy); }

/* =========================================================
   Success page
   ========================================================= */
.success-screen {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--cream);
  text-align: center;
}
.success-mark {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--azure);
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  animation: pop .6s cubic-bezier(.34, 1.6, .64, 1) both;
}
@keyframes pop {
  0%   { transform: scale(.5); opacity: 0; }
  100% { transform: scale(1);  opacity: 1; }
}
.success-mark svg { width: 36px; height: 36px; }
.success-screen h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.success-screen p {
  max-width: 50ch;
  margin: 0 auto 32px;
  color: var(--muted);
}

/* =========================================================
   Legal pages — long form prose
   ========================================================= */
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  font-family: var(--font-display);
  font-weight: 500;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy-deep);
}
.prose p, .prose li { color: #2d3f54; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}
.prose .meta {
  font-size: .88rem;
  color: var(--muted);
  border-left: 3px solid var(--azure);
  padding: 4px 0 4px 14px;
  margin-bottom: 24px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 247, 242, .78);
  padding: 72px 0 28px;
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 14px;
}
.site-footer h5 {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer__list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 10px;
}
.footer__list a { color: rgba(250, 247, 242, .78); }
.footer__list a:hover { color: var(--cream); }

.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .82rem;
  color: rgba(250, 247, 242, .55);
}
.footer__bottom p { margin: 0; }
.footer__legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__legal a { color: rgba(250, 247, 242, .65); }
.footer__legal a:hover { color: var(--cream); }

/* =========================================================
   Cookie banner
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: none;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: cookie-in .4s ease both .8s;
}
@keyframes cookie-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner__text {
  flex: 1; min-width: 220px;
  font-size: .9rem;
  color: var(--ink);
  margin: 0;
}
.cookie-banner__text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
}
.cookie-banner__actions .btn { padding: 10px 18px; font-size: .85rem; }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.4, 0, .2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Utilities
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.no-wrap { white-space: nowrap; }

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