/* =============================================================
   global.css — Adrian | Mobile Deep Tissue Therapist
   Design system: variables, reset, typography, nav, footer, buttons
   ============================================================= */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500&family=DM+Sans:wght@400;500&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Colour palette */
  --green-50:  #E1F5EE;
  --green-100: #9FE1CB;
  --green-400: #1D9E75;
  --green-600: #0F6E56;
  --green-900: #04342C;

  --stone-50:  #FAF9F7;
  --stone-100: #F2EFE9;
  --stone-400: #A09890;
  --stone-800: #3A3530;

  --text-primary:   #1C1C1A;
  --text-secondary: #6B6560;
  --text-muted:     #A09890;
  --bg-page:        #FAF9F7;
  --bg-card:        #FFFFFF;
  --accent:         #1D9E75;
  --accent-light:   #E1F5EE;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Layout */
  --container-max: 1140px;
  --nav-height: 68px;
  --radius: 4px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  min-height: 100vh;
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ─── Typography ─────────────────────────────────────────────── */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

/* ─── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary,
.btn-ghost,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base),
              border-color var(--transition-base), opacity var(--transition-base);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--green-600);
  border-color: var(--green-600);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-light);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--stone-400);
}

.btn-outline:hover {
  border-color: var(--text-primary);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.nav--scrolled {
  border-bottom-color: var(--stone-100);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav__logo span {
  color: var(--accent);
}

.nav__list {
  display: none;
  gap: var(--space-8);
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--text-primary);
}

.nav__cta {
  display: none;
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: background var(--transition-fast);
}

.nav__toggle:hover {
  background: var(--stone-100);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

/* Hamburger → X animation */
.nav--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu drawer */
.nav__drawer {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--stone-100);
  padding: var(--space-4) var(--space-6) var(--space-6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav--open .nav__drawer {
  display: block;
}

.nav__drawer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.nav__drawer-link {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--stone-100);
  transition: color var(--transition-fast);
}

.nav__drawer-link:hover,
.nav__drawer-link--active {
  color: var(--accent);
}

.nav__drawer-cta {
  width: 100%;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav__list {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle {
    display: none;
  }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--stone-800);
  color: rgba(255, 255, 255, 0.8);
  padding-block: var(--space-12) var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--space-3);
}

.footer__brand-logo span {
  color: var(--green-100);
}

.footer__tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-100);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: #fff;
}

.footer__link:focus-visible {
  outline: 2px solid var(--green-100);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer__contact-item {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green-100);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}
