/* ============================================================
   AMATEUR BUDDHA — DESIGN SYSTEM
   Project 3.1 | May 2026
   "Walking, not arriving."
   ============================================================ */


/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');


/* ============================================================
   2. CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ============================================================ */

:root {

  /* --- Colour Palette (pixel-sampled from Lovable screenshots May 2026) --- */
  --colour-bg:           #f7f4ed;   /* Warm parchment — confirmed from screenshots */
  --colour-bg-card:      #fbf8f3;   /* Card / panel background */
  --colour-bg-muted:     #f3eee8;   /* Footer + alternate sections */
  --colour-bg-overlay:   rgba(247, 244, 237, 0.94);

  --colour-text-primary: #3a281e;   /* Dark warm brown — headings */
  --colour-text-mid:     #7a5c42;   /* Mid brown — body, secondary text */
  --colour-text-muted:   #b09a80;   /* Placeholders, hints */
  --colour-text-inverse: #f7f4ed;   /* Light text on dark backgrounds */

  --colour-accent:       #c8aa6c;   /* Gold — pixel-sampled from button */
  --colour-accent-hover: #b89450;   /* Deeper gold on hover */
  --colour-accent-light: #e5ddd0;   /* Pale gold — subtle fills */
  --colour-accent-glow:  rgba(200, 170, 108, 0.18);

  --colour-divider:      #e2dfd8;   /* Pixel-sampled from nav border */
  --colour-border:       #d8d2c8;   /* Input underlines, card edges */
  --colour-border-focus: #c8aa6c;   /* Gold on focus */

  --colour-shadow-warm:  rgba(58, 42, 26, 0.08);   /* Warm dark-brown shadow */
  --colour-shadow-deep:  rgba(58, 42, 26, 0.18);   /* Deeper shadow */

  --colour-espresso:     #3f3323;   /* Near-black brown — pixel-sampled from dark button */
  --colour-success:      #7a9e7e;   /* Sage green — success states */
  --colour-error:        #c0614a;   /* Warm rust — error states */

  /* --- Typography --- */
  --font-heading:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:      'Lora', Georgia, 'Times New Roman', serif;
  --font-mono:      'Courier New', Courier, monospace;

  /* Type scale — fluid between 375px and 1440px viewports */
  --text-xs:        0.75rem;      /* 12px — labels, fine print */
  --text-sm:        0.875rem;     /* 14px — captions, meta */
  --text-base:      1rem;         /* 16px — body copy */
  --text-md:        1.125rem;     /* 18px — lead paragraphs */
  --text-lg:        1.25rem;      /* 20px — sub-headings */
  --text-xl:        1.5rem;       /* 24px — section headings */
  --text-2xl:       1.875rem;     /* 30px — page headings */
  --text-3xl:       2.375rem;     /* 38px — hero sub */
  --text-4xl:       3rem;         /* 48px — hero headline desktop */
  --text-hero:      clamp(2.25rem, 5vw + 0.5rem, 3.75rem); /* Fluid hero */
  --text-display:   clamp(1.75rem, 3vw + 0.5rem, 2.5rem);   /* Fluid display */

  /* Line heights */
  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-loose:  1.8;
  --leading-prose:  1.75;

  /* Letter spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.08em;
  --tracking-widest:  0.14em;

  /* Font weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* --- Spacing Scale --- */
  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */

  /* Section vertical padding */
  --section-padding-y: clamp(3rem, 7vw, 6rem);

  /* --- Layout --- */
  --container-max:    1100px;
  --container-narrow: 720px;
  --container-prose:  680px;
  --container-pad:    clamp(1.25rem, 5vw, 3rem);

  /* --- Border Radius --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  /* --- Shadows --- */
  --shadow-sm:   0 1px 4px var(--colour-shadow-warm);
  --shadow-md:   0 4px 18px var(--colour-shadow-warm), 0 1px 4px var(--colour-shadow-warm);
  --shadow-lg:   0 8px 40px var(--colour-shadow-deep), 0 2px 8px var(--colour-shadow-warm);
  --shadow-glow: 0 0 24px var(--colour-accent-glow);
  --shadow-card: 0 2px 20px var(--colour-shadow-warm);

  /* --- Transitions --- */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
  --transition-bounce:  350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Z-Index Stack --- */
  --z-below:      -1;
  --z-base:        0;
  --z-raised:      10;
  --z-dropdown:    100;
  --z-sticky:      200;
  --z-overlay:     300;
  --z-modal:       400;
  --z-toast:       500;

  /* --- Decorative --- */
  --ornament-divider: '✦';
}


/* ============================================================
   3. RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--colour-bg);
  color: var(--colour-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-prose);
  font-weight: var(--weight-regular);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle parchment texture via CSS */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-below);
  opacity: 0.6;
}

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

a {
  color: var(--colour-accent);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--colour-accent-hover);
}

p {
  max-width: var(--container-prose);
  margin-bottom: var(--space-5);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
}

strong, b {
  font-weight: var(--weight-semibold);
  color: var(--colour-text-primary);
}

em, i {
  font-style: italic;
  font-family: var(--font-heading);
}

blockquote {
  border-left: 3px solid var(--colour-accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--colour-bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--colour-text-mid);
  line-height: var(--leading-normal);
  margin: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--colour-divider);
  margin: var(--space-12) 0;
}

::selection {
  background: var(--colour-accent-light);
  color: var(--colour-text-primary);
}


/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--colour-text-primary);
  margin-bottom: var(--space-5);
}

h1 {
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-display);
  font-weight: var(--weight-semibold);
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
}

h5 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

h6 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--colour-text-mid);
}

/* Eyebrow label above headings */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--colour-accent);
  margin-bottom: var(--space-3);
}

/* Decorative italic quote — large pull-quote */
.pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  color: var(--colour-text-mid);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

/* Lead paragraph */
.lead {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--colour-text-mid);
  font-style: italic;
}

/* Small caption text */
.caption {
  font-size: var(--text-sm);
  color: var(--colour-text-muted);
  line-height: var(--leading-normal);
}

/* Ornamental divider text */
.ornament {
  text-align: center;
  color: var(--colour-accent);
  font-size: var(--text-lg);
  letter-spacing: var(--space-6);
  display: block;
  margin: var(--space-10) 0;
  opacity: 0.6;
}

/* Prose text block */
.prose p {
  margin-bottom: var(--space-5);
  line-height: var(--leading-prose);
}

.prose p:last-child {
  margin-bottom: 0;
}


/* ============================================================
   5. LAYOUT — CONTAINER & GRID
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--prose {
  max-width: var(--container-prose);
}

.section {
  padding-block: var(--section-padding-y);
}

.section--muted {
  background-color: var(--colour-bg-muted);
}

/* Flex layouts */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Text alignment utilities */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Spacing utilities */
.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }


/* ============================================================
   6. NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--colour-bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--colour-divider);
  transition: box-shadow var(--transition-base);
}

.nav.is-scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--colour-text-primary);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--colour-text-mid);
  text-decoration: none;
  letter-spacing: var(--tracking-wide);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--colour-accent);
  transition: width var(--transition-base);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--colour-text-primary);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%;
}

.nav__links a[target="_blank"]::after {
  display: none;
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--colour-text-primary);
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  margin: 5px 0;
}

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

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

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

@media (max-width: 820px) {
  .nav__toggle {
    display: block;
    z-index: var(--z-raised);
  }

  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--colour-bg);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-8);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
  }

  .nav.is-open .nav__links {
    opacity: 1;
    pointer-events: all;
  }

  .nav__links a {
    font-size: var(--text-xl);
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
  }

  .nav__links a::after {
    display: none;
  }
}


/* ============================================================
   7. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: var(--space-4) var(--space-8);
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-bounce),
    box-shadow var(--transition-base);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

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

/* Primary — gold fill */
.btn--primary {
  background-color: var(--colour-accent);
  color: var(--colour-bg);
  box-shadow: 0 2px 12px rgba(200, 169, 110, 0.3);
}

.btn--primary:hover {
  background-color: var(--colour-accent-hover);
  color: var(--colour-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 169, 110, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Secondary — outline gold */
.btn--secondary {
  background: transparent;
  color: var(--colour-accent);
  border: 1.5px solid var(--colour-accent);
}

.btn--secondary:hover {
  background: var(--colour-accent-light);
  color: var(--colour-accent-hover);
  transform: translateY(-2px);
}

/* Ghost — text link with arrow */
.btn--ghost {
  background: transparent;
  color: var(--colour-text-mid);
  padding-inline: 0;
  border-radius: 0;
  letter-spacing: var(--tracking-wide);
  text-transform: none;
  font-style: italic;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.btn--ghost:hover {
  color: var(--colour-accent);
  border-color: var(--colour-accent-light);
  transform: none;
}

/* Sizes */
.btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-5);
}

.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-5) var(--space-10);
}

/* Full width */
.btn--full {
  width: 100%;
}

/* Disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Rectangular — dark espresso, full-width CTA (Send Application, Show Me My Guide) */
.btn--dark {
  background-color: var(--colour-espresso);
  color: var(--colour-text-inverse);
  border-radius: var(--radius-sm);
  letter-spacing: var(--tracking-widest);
}

.btn--dark:hover {
  background-color: var(--colour-text-primary);
  color: var(--colour-text-inverse);
  transform: translateY(-1px);
}

/* Shimmer ripple effect on primary CTA */
.btn--primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}

.btn--primary:hover::before {
  width: 300px;
  height: 300px;
  opacity: 1;
}


/* ============================================================
   8. CARDS
   ============================================================ */

.card {
  background: var(--colour-bg-card);
  border: 1px solid rgba(232, 213, 183, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: 0 1px 8px rgba(58, 42, 26, 0.05);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card--flat {
  box-shadow: none;
}

.card--flat:hover {
  transform: none;
  box-shadow: none;
}

.card__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--colour-accent);
  margin-bottom: var(--space-3);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--colour-text-primary);
  margin-bottom: var(--space-4);
}

.card__body {
  font-size: var(--text-base);
  line-height: var(--leading-prose);
  color: var(--colour-text-mid);
  margin-bottom: var(--space-6);
}

.card__body p:last-child {
  margin-bottom: 0;
}

/* Stage card — for the 4 consciousness stages */
.card--stage {
  position: relative;
  overflow: hidden;
}

.card--stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--colour-accent);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* Pathway card — homepage */
.card--pathway {
  text-align: center;
  padding: var(--space-10) var(--space-8);
}

.card--pathway .card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-5);
  display: block;
}


/* ============================================================
   9. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-block: var(--space-24) var(--space-16);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--colour-accent), transparent);
  opacity: 0.5;
}

.hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__headline {
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--colour-text-primary);
  margin-bottom: var(--space-6);
}

.hero__headline em {
  font-style: italic;
  color: var(--colour-text-mid);
}

.hero__subheading {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--colour-text-mid);
  margin-bottom: var(--space-6);
  line-height: var(--leading-normal);
}

.hero__body {
  font-size: var(--text-md);
  line-height: var(--leading-prose);
  color: var(--colour-text-mid);
  margin-bottom: var(--space-8);
}

.hero__body p {
  margin-bottom: var(--space-4);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 8s ease;
}

.hero__image:hover img {
  transform: scale(1.03);
}

/* Warm overlay on hero image */
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    transparent 50%,
    rgba(253, 246, 236, 0.3) 100%
  );
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero__image {
    aspect-ratio: 16 / 9;
    max-height: 380px;
  }

  .hero {
    min-height: auto;
    padding-block: var(--space-16) var(--space-12);
  }
}


/* ============================================================
   10. SECTION DIVIDER
   ============================================================ */

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: var(--space-12) auto;
  max-width: 300px;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: var(--colour-divider);
}

.divider__ornament {
  color: var(--colour-accent);
  font-size: 0.6rem;
  letter-spacing: 6px;
  opacity: 0.7;
}


/* ============================================================
   11. FORM ELEMENTS
   ============================================================ */

.form {
  width: 100%;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--colour-text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-wide);
}

.form-label--required::after {
  content: ' *';
  color: var(--colour-accent);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--colour-text-muted);
  margin-bottom: var(--space-2);
  font-style: italic;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--colour-bg-card);
  border: 1.5px solid var(--colour-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--colour-text-primary);
  line-height: var(--leading-normal);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--colour-text-muted);
  font-style: italic;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--colour-border-focus);
  box-shadow: 0 0 0 3px var(--colour-accent-glow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--colour-error);
  margin-top: var(--space-2);
}

/* Underline-only input — used in profiling tool and application form (matches Lovable) */
.form-input--underline {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--colour-border);
  border-radius: 0;
  padding: var(--space-3) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--colour-text-primary);
  width: 100%;
  transition: border-color var(--transition-base);
}

.form-input--underline::placeholder {
  color: var(--colour-text-muted);
  font-style: italic;
}

.form-input--underline:focus {
  outline: none;
  border-bottom-color: var(--colour-text-primary);
  box-shadow: none;
}

/* Score underline input — same style, centred, larger type */
.form-input--score-underline {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--colour-border);
  border-radius: 0;
  width: 60px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--colour-text-primary);
  padding: var(--space-1) 0;
  transition: border-color var(--transition-base);
}

.form-input--score-underline:focus {
  outline: none;
  border-bottom-color: var(--colour-text-primary);
}

.form-input--score-underline::placeholder {
  color: var(--colour-accent-light);
}

/* Step nav text links — ← Back and NEXT → */
.step-nav__back {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--colour-text-muted);
  cursor: pointer;
  padding: 0;
  letter-spacing: var(--tracking-normal);
  transition: color var(--transition-fast);
}

.step-nav__back:hover {
  color: var(--colour-text-mid);
}

.step-nav__next {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--colour-text-primary);
  cursor: pointer;
  padding: 0;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.step-nav__next:hover {
  color: var(--colour-accent);
}



/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--colour-text-mid);
  user-select: none;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--colour-border);
  border-radius: var(--radius-sm);
  background: var(--colour-bg-card);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.form-checkbox input[type="checkbox"]:checked {
  background-color: var(--colour-accent);
  border-color: var(--colour-accent);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid var(--colour-bg);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-checkbox:hover input[type="checkbox"]:not(:checked) {
  border-color: var(--colour-accent);
}


/* ============================================================
   12. PROFILING TOOL — STEP SYSTEM
   ============================================================ */

/* Progress indicator */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.step-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.step-progress__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--colour-divider);
  background: var(--colour-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--colour-text-muted);
  transition: all var(--transition-base);
  position: relative;
}

.step-progress__dot.is-active {
  border-color: var(--colour-espresso);
  background: var(--colour-espresso);
  color: var(--colour-text-inverse);
  box-shadow: none;
}

.step-progress__dot.is-complete {
  border-color: var(--colour-accent);
  background: var(--colour-accent-light);
  color: var(--colour-accent);
}

.step-progress__label {
  font-size: var(--text-xs);
  color: var(--colour-text-muted);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

.step-progress__label.is-active {
  color: var(--colour-accent);
}

.step-progress__connector {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--colour-divider);
  margin-top: -12px; /* Align with dot centre */
  transition: background var(--transition-base);
}

.step-progress__connector.is-complete {
  background: var(--colour-accent);
}

/* Step panel — shows one at a time */
.step-panel {
  display: none;
  animation: fadeSlideIn var(--transition-slow) both;
}

.step-panel.is-active {
  display: block;
}

.step-panel__header {
  margin-bottom: var(--space-8);
}

.step-panel__number {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--colour-accent);
  margin-bottom: var(--space-2);
}

.step-panel__title {
  font-size: var(--text-display);
  margin-bottom: var(--space-3);
}

.step-panel__subtitle {
  font-size: var(--text-base);
  color: var(--colour-text-mid);
  font-style: italic;
  line-height: var(--leading-normal);
}

/* Scoring table (Step 1) */
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

.score-table thead th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--colour-text-muted);
  font-weight: var(--weight-medium);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--colour-divider);
}

.score-table tbody tr {
  border-bottom: 1px solid var(--colour-accent-light);
  transition: background-color var(--transition-fast);
}

.score-table tbody tr:last-child {
  border-bottom: none;
}

.score-table tbody tr:hover {
  background: rgba(232, 213, 183, 0.15);
}

.score-table td {
  padding: var(--space-4) var(--space-4);
  vertical-align: middle;
}

.score-table__area {
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  color: var(--colour-text-primary);
}

.score-table__total {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--colour-accent);
  text-align: right;
  margin-top: var(--space-4);
}

/* Word grid table (Steps 2 & 3) */
.word-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.word-grid__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.word-grid__header {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--colour-text-mid);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--colour-divider);
  margin-bottom: var(--space-1);
  line-height: var(--leading-normal);
}

.word-grid__input {
  background: var(--colour-bg-card);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--colour-text-primary);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.word-grid__input::placeholder {
  color: var(--colour-text-muted);
  font-style: italic;
  font-size: var(--text-xs);
}

.word-grid__input:focus {
  outline: none;
  border-color: var(--colour-accent);
  box-shadow: 0 0 0 2px var(--colour-accent-glow);
}

.word-grid__add-btn {
  background: none;
  border: 1px dashed var(--colour-divider);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--colour-text-muted);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  font-family: var(--font-body);
}

.word-grid__add-btn:hover {
  border-color: var(--colour-accent);
  color: var(--colour-accent);
}

@media (max-width: 680px) {
  .word-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .word-grid {
    grid-template-columns: 1fr;
  }
}

/* Step navigation */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--colour-divider);
}


/* ============================================================
   13. FOOTER
   ============================================================ */

.footer {
  background: var(--colour-bg-muted);
  border-top: 1px solid var(--colour-divider);
  padding-block: var(--space-12) var(--space-8);
  margin-top: auto;
}

.footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--colour-divider);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--colour-text-primary);
  margin-bottom: var(--space-2);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--colour-text-muted);
  font-style: italic;
  line-height: var(--leading-normal);
  max-width: 340px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--colour-text-mid);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--colour-accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--colour-text-muted);
}

.footer__walking {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--colour-accent);
  opacity: 0.7;
}

@media (max-width: 600px) {
  .footer__top {
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* ============================================================
   14. ANIMATIONS & SCROLL REVEALS
   ============================================================ */

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50%       { box-shadow: 0 0 40px rgba(200, 169, 110, 0.35); }
}

/* Scroll-reveal — apply with JS intersection observer */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: none; }

/* Float animation for hero image */
.float {
  animation: floatUp 5s ease-in-out infinite;
}

/* Pulsing glow for CTA button */
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}


/* ============================================================
   15. UTILITY CLASSES
   ============================================================ */

/* Visibility */
.hidden   { display: none !important; }
.sr-only  {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Spacing helpers */
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Width helpers */
.w-full { width: 100%; }
.max-prose { max-width: var(--container-prose); }

/* Italic shorthand */
.italic { font-style: italic; }

/* Colour utilities */
.text-accent { color: var(--colour-accent); }
.text-muted  { color: var(--colour-text-muted); }
.text-mid    { color: var(--colour-text-mid); }


/* ============================================================
   16. TOAST / NOTIFICATIONS
   ============================================================ */

.toast {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  background: var(--colour-text-primary);
  color: var(--colour-text-inverse);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  max-width: 340px;
  animation: fadeSlideIn var(--transition-slow) both;
  border-left: 3px solid var(--colour-accent);
}

.toast--success {
  border-left-color: var(--colour-success);
}

.toast--error {
  border-left-color: var(--colour-error);
}


/* ============================================================
   17. SCROLL-REVEAL SCRIPT HOOK
   (Paste this <script> block at end of each page's <body>)

   <script>
     // Nav scroll behaviour
     const nav = document.querySelector('.nav');
     if (nav) {
       window.addEventListener('scroll', () => {
         nav.classList.toggle('is-scrolled', window.scrollY > 20);
       });
     }

     // Mobile nav toggle
     const toggle = document.querySelector('.nav__toggle');
     if (toggle && nav) {
       toggle.addEventListener('click', () => nav.classList.toggle('is-open'));
     }

     // Intersection Observer for .reveal and .reveal-stagger
     const observer = new IntersectionObserver((entries) => {
       entries.forEach(entry => {
         if (entry.isIntersecting) {
           entry.target.classList.add('is-visible');
           observer.unobserve(entry.target);
         }
       });
     }, { threshold: 0.12 });

     document.querySelectorAll('.reveal, .reveal-stagger').forEach(el => {
       observer.observe(el);
     });
   </script>
   ============================================================ */


/* ============================================================
   18. PRINT STYLES
   ============================================================ */

@media print {
  .nav,
  .footer,
  .btn,
  .step-nav {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  h1, h2, h3 {
    color: black;
    page-break-after: avoid;
  }
}
