/* =====================================================================
   AESTH — base.css
   Design tokens, reset, typography, layout helpers, buttons.
   ===================================================================== */

:root {
  /* Colour — drawn from the Aesth watercolour logo */
  --white:      #FFFFFF;
  --paper:      #FFF9F8;   /* off-white section background */
  --blush-100:  #FCEFEE;
  --blush-200:  #F6E1DF;   /* the logo's wash */
  --blush-300:  #ECC9C7;
  --blush-400:  #DFA9AA;
  --rose-600:   #B65F6E;
  --rose-700:   #A04F5E;   /* buttons, links, prices — AA on white */
  --rose-800:   #873F4D;
  --sage-200:   #E3E7DB;
  --sage-300:   #C5CAB8;   /* the logo's speckles */
  --sage-500:   #93A083;
  --sage-700:   #5A6B4C;   /* savings text — AA on white */
  --ink:        #2A2023;   /* logo ink */
  --ink-soft:   #6E5D61;
  --line:       #F0DFDD;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script:  "Mrs Saint Delafield", "Brush Script MT", cursive;

  --fs-xs:   0.8125rem;  /* 13 */
  --fs-sm:   0.9375rem;  /* 15 */
  --fs-base: 1rem;       /* 16 */
  --fs-md:   1.125rem;   /* 18 */
  --fs-lg:   1.375rem;   /* 22 */
  --fs-xl:   clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --fs-2xl:  clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* Shape — soft, but not one radius for everything */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --r-arch: 999px 999px var(--r-md) var(--r-md);

  --shadow-soft: 0 18px 40px -22px rgba(160, 79, 94, 0.45);
  --shadow-panel: 0 24px 60px -24px rgba(42, 32, 35, 0.28);

  --container: 1240px;
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --header-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; } /* zero specificity so .container padding wins */
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-8); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.section-title { font-size: var(--fs-xl); }
.section-sub {
  margin-top: var(--space-2);
  color: var(--ink-soft);
  max-width: 52ch;
}
.section-foot { margin-top: var(--space-5); text-align: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--rose-700);
  border-bottom: 1.5px solid var(--blush-300);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.link-arrow:hover { border-color: var(--rose-700); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .7rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn .icon { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn--lg { min-height: 54px; padding-inline: 1.8rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn--primary { --btn-bg: var(--rose-700); --btn-fg: #fff; --btn-bd: var(--rose-700); }
.btn--primary:hover { --btn-bg: var(--rose-800); --btn-bd: var(--rose-800); }

.btn--ghost { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--blush-300); }
.btn--ghost:hover { --btn-bd: var(--ink); }

.btn--whatsapp { --btn-bg: #1F8F55; --btn-fg: #fff; --btn-bd: #1F8F55; }
.btn--whatsapp:hover { --btn-bg: #18774A; --btn-bd: #18774A; }

/* ---------- Icon buttons ---------- */
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--ink);
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--blush-100); }
.icon-btn--soft { background: var(--white); border: 1px solid var(--line); }
.icon-btn__count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--rose-700);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 1rem; }
:focus-visible {
  outline: 2.5px solid var(--rose-700);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
