/* Huidlab website kit styles. Pulls design tokens from tokens.css */
@import url('tokens.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* Sticky footer — keeps the footer pinned to the bottom of the viewport on short
   pages (e.g. Contact when zoomed out); no effect when content is taller. */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.app-shell > main { flex: 1 0 auto; }

/* ---------- Layout ---------- */
.container { max-width: 1208px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--peach { background: var(--peach-50); }
.section--surface { background: var(--surface); }

/* Watercolor banner — CSS-only wash (no baked-in logo) */
.watercolor-bg {
  position: relative;
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse 60% 70% at 12% 28%, rgba(232, 148, 120, 0.42), transparent 60%),
    radial-gradient(ellipse 55% 65% at 88% 18%, rgba(246, 211, 188, 0.65), transparent 65%),
    radial-gradient(ellipse 70% 55% at 35% 78%, rgba(216, 117, 87, 0.30), transparent 60%),
    radial-gradient(ellipse 50% 50% at 78% 80%, rgba(251, 233, 219, 0.85), transparent 60%),
    linear-gradient(135deg, #FBE9DB 0%, #F7F1EA 100%);
  overflow: hidden;
}
.watercolor-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* paper-grain noise */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.16  0 0 0 0 0.12  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.watercolor-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 65%, var(--canvas) 100%);
}
.watercolor-bg > * { position: relative; z-index: 2; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background-image: url('assets/backgrounds/nav-watercolor.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--hairline-soft);
}
.nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(247,241,234,0.20) 100%);
  pointer-events: none;
}
.nav__inner {
  max-width: 1208px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative;
  z-index: 2;
}
.nav__brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink-700);
  font-weight: 500;
  letter-spacing: 0.005em;
}
.nav__sub {
  font-size: 11px; letter-spacing: 0.12em; color: var(--ink-500);
  text-transform: lowercase; margin-top: 2px;
  display: block;
}
.nav__links { display: flex; gap: 24px; align-items: center; }
.nav__link {
  font-size: 14px;
  color: var(--ink-700);
  cursor: pointer;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--dur-sm) var(--ease);
}
.nav__link:hover, .nav__link--active { color: var(--coral-400); }
.nav__link--active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--coral-400);
}

/* Dropdown */
.nav__dropdown { position: relative; display: flex; align-items: center; }
.nav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 248px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.nav__menu::before {
  /* hover bridge so the menu doesn't close in the gap */
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
.nav__menu-item {
  font-size: 14px;
  color: var(--ink-700);
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease);
}
.nav__menu-item:hover {
  background: var(--peach-50);
  color: var(--salmon-600);
}

/* ---------- Buttons (in-kit) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 13px 24px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  transition: all var(--dur-sm) var(--ease);
  letter-spacing: 0.01em; text-decoration: none;
}
.btn--primary { background: var(--ink-900); color: var(--surface); border-color: var(--ink-900); }
.btn--primary:hover { background: var(--ink-700); border-color: var(--ink-700); color: var(--surface); }
.btn--secondary { background: transparent; color: var(--ink-900); border-color: var(--ink-700); }
.btn--secondary:hover { background: var(--peach-50); }
.btn--accent { background: var(--coral-400); color: var(--ink-900); border-color: var(--coral-400); }
.btn--accent:hover { background: var(--salmon-500); color: var(--surface); border-color: var(--salmon-500); }
.btn--lg { padding: 16px 30px; font-size: 15px; }

/* ---------- Diamond mark ---------- */
.diamond {
  display: inline-block;
  width: 10px; height: 10px;
  border: 1px solid var(--coral-400);
  transform: rotate(45deg);
}
.diamond--lg { width: 14px; height: 14px; border-color: var(--ink-700); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-700); display: inline-flex; gap: 10px; align-items: center;
}

/* ---------- Headings + text ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink-900); font-weight: 500; }
h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.015em; font-weight: 400; }
h2 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; font-weight: 500; }
h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
h4 { font-family: var(--font-body); font-size: 15px; font-weight: 500; }
p { margin: 0; color: var(--ink-900); }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-700); max-width: 640px; }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow var(--dur-md) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: #E4D3C5;
  padding: 64px 0 32px;
}
.footer h4 { color: var(--surface); margin-bottom: 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer a { color: #E4D3C5; font-size: 14px; display: block; padding: 4px 0; }
.footer a:hover { color: var(--coral-400); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__bottom { border-top: 1px solid rgba(228,211,197,0.15); padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-500); }

/* ---------- Inputs ---------- */
.field { display: block; margin-bottom: 18px; }
.field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-700); font-weight: 500; display: block; margin-bottom: 6px; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 6px;
  width: 100%; color: var(--ink-900); transition: border-color var(--dur-sm), box-shadow var(--dur-sm);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--coral-400); box-shadow: 0 0 0 3px rgba(232,148,120,0.18); }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; border-radius: 999px;
}
.tag--peach { background: var(--peach-50); color: var(--salmon-700); border: 1px solid var(--peach-100); }
.tag--outline { background: transparent; color: var(--ink-700); border: 1px solid var(--hairline); }

/* ---------- Lucide icons ---------- */
.icon { width: 18px; height: 18px; stroke-width: 1.5; }

/* ---------- Anim ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp var(--dur-lg) var(--ease) both; }

/* ============================================================
   Mobile navigation (hamburger)
   ============================================================ */
.nav__toggle {
  /* Visibility is driven purely by CSS media queries (robust across browsers). */
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--hairline-soft);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  z-index: 3;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink-700);
  border-radius: 2px;
  transition: transform var(--dur-sm) var(--ease), opacity var(--dur-sm) var(--ease);
}
.nav__toggle--open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle--open span:nth-child(2) { opacity: 0; }
.nav__toggle--open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
  padding: 12px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 2;
  animation: fadeUp var(--dur-md) var(--ease) both;
}
.nav__mobile-link {
  font-size: 17px;
  font-family: var(--font-body);
  color: var(--ink-900);
  cursor: pointer;
  padding: 13px 4px;
  border-bottom: 1px solid var(--hairline-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__mobile-link--active { color: var(--coral-400); }
.nav__mobile-subtitle {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-500); padding: 16px 4px 6px; font-weight: 500;
}
.nav__mobile-sub {
  font-size: 15px;
  color: var(--ink-700);
  cursor: pointer;
  padding: 10px 4px 10px 16px;
}
.nav__mobile-sub:hover, .nav__mobile-link:hover { color: var(--coral-400); }
.nav__mobile .btn { margin-top: 18px; justify-content: center; width: 100%; }

/* Nav visibility: desktop links above 880px, hamburger below */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}
@media (min-width: 881px) {
  .nav__mobile { display: none; }
}

/* ============================================================
   Responsive layout helpers
   These override inline grid styles only at smaller breakpoints,
   so the desktop layout (set inline in JSX) is preserved.
   ============================================================ */

/* Two-column "text + media" splits */
@media (max-width: 900px) {
  .r-split { grid-template-columns: 1fr !important; gap: 40px !important; }
  .r-split--media-first > .r-media { order: -1; }
}

/* Generic 2-up card grids */
@media (max-width: 760px) {
  .r-cards-2 { grid-template-columns: 1fr !important; }
}

/* 3-up card grids: 2 across on tablet, 1 on phone */
@media (max-width: 960px) {
  .r-cards-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 620px) {
  .r-cards-3 { grid-template-columns: 1fr !important; }
}

/* Form rows that split into two fields */
@media (max-width: 560px) {
  .r-form-row { grid-template-columns: 1fr !important; }
}

/* ---------- Seasonal highlight (home) ---------- */
.seasonal-copy { padding: 56px; }
.seasonal-media { position: relative; min-height: 340px; }
.seasonal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .seasonal-copy { padding: 40px 32px; }
  .seasonal-media { min-height: 300px; }
}
@media (max-width: 480px) {
  .seasonal-copy { padding: 32px 22px; }
  .seasonal-media { min-height: 240px; }
}

/* ---------- Over / Contact asides become non-sticky when stacked ---------- */
@media (max-width: 900px) {
  .over-aside { position: static !important; }
  .contact-form-card { position: static !important; }
}

/* ---------- Contact map (Google Maps embed, warm-styled) ---------- */
.contact-map {
  position: relative;
  height: 440px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--peach-50);
  box-shadow: var(--shadow-md);
}
.contact-map__frame {
  width: 100%; height: 100%;
  border: 0; display: block;
  /* gentle warm tint so the map sits in the brand palette */
  filter: saturate(0.9) sepia(0.08) brightness(1.02) contrast(0.98);
}
.contact-map__route {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
  transition: background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease);
}
.contact-map__route:hover { background: var(--coral-400); color: var(--ink-900); border-color: var(--coral-400); }
.contact-map__route .icon { stroke-width: 1.8; }
@media (max-width: 760px) { .contact-map { height: 340px; } }
@media (max-width: 480px) {
  .contact-map { height: 280px; }
  .contact-map__route { top: 12px; right: 12px; font-size: 12px; padding: 8px 12px; }
}

/* ---------- Price list ---------- */
.price-row__meta {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-500); white-space: nowrap;
}
.price-row__price {
  font-family: var(--font-display); font-size: 21px; color: var(--ink-900);
  text-align: right; white-space: nowrap; justify-self: end;
}
.price-group-title {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-700);
  padding: 18px 0 4px;
}
.price-note {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: 16px; color: var(--salmon-600);
  margin-top: 14px;
}
@media (max-width: 480px) {
  .price-row { gap: 4px 16px !important; padding: 16px 0 !important; }
  .price-row__price { font-size: 19px; }
}

/* ---------- Footer ---------- */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Legal pages indent ---------- */
@media (max-width: 560px) {
  .legal-body { padding-left: 0 !important; }
}

/* ---------- Home hero ---------- */
/* Home hero padding lives on the section so it doesn't double up with the
   shared .watercolor-bg mobile padding override. */
.home-hero { padding-top: 96px; padding-bottom: 112px; }
@media (max-width: 900px) { .home-hero { padding-top: 72px; padding-bottom: 84px; } }
/* below 640px the shared .watercolor-bg rule (56/64) takes over */

/* ============================================================
   Global responsive type & spacing
   ============================================================ */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .section--tight { padding: 52px 0; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 44px 0; }
  .nav__inner { padding: 8px 20px; }
  /* hero/watercolor openers breathe less on small screens */
  .watercolor-bg { padding-top: 56px !important; padding-bottom: 64px !important; }
  .lead { font-size: 16.5px; }
  .card { padding: 22px; }
  .nav__brand img { height: 58px !important; }
}
@media (max-width: 380px) {
  .nav__brand img { height: 50px !important; }
  .nav__inner { padding: 8px 16px; }
  .container { padding: 0 16px; }
}
