/* ==========================================================================
   Amalurra Centre — Core Stylesheet
   Visual Lookbook system: light-dominant, generous white space, editorial
   typography, asymmetrical full-bleed image spreads in place of boxed cards.
   Component-level styles (spreads, mosaics, forms, etc.) live in components.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Italiana&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  /* ---- Brand palette (sourced from amalurracentre.com's live computed
     styles: --sky = their "Call Now" button bg / logo watercolor splash,
     --gold = their "Reserve an Appointment" button bg, --brown = their
     heading / nav-link / hover color, --teal = their alternate button bg) --- */
  --sky: #cbe9ef;
  --gold: #a27035;
  --brown: #6d4424;
  --teal: #207683;
  --deep: #0d2f34;       /* occasional dark accent moment, not dominant */

  /* ---- Neutrals (the lookbook runs on these) ---- */
  --ink: #2a2420;         /* primary text — warm near-black, not pure black */
  --cream: #faf7f1;       /* dominant page background */
  --white: #ffffff;
  --paper: #f3efe6;       /* slightly deeper warm neutral for section variation */
  --sand: #e4d9c8;
  --mist: #e8f0ee;
  --line: rgba(109, 68, 36, 0.16); /* thin editorial rule color */

  /* ---- Accents ---- */
  --terracotta: #bf7e57;
  --sage: #7d9285;
  --blush: #e6cfc4;
  --error: #a1503c;

  /* ---- Type ---- */
  --font-display: 'Italiana', 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Spacing scale (generous — this is the whole point) ---- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  --space-3xl: 11rem;

  /* ---- Layout ---- */
  --content-max: 1320px;
  --measure: 46ch;
  --radius-sm: 2px;
  --radius-md: 4px;
  --shadow-soft: 0 30px 60px -35px rgba(42, 36, 32, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: var(--brown);
}

h1 { font-size: clamp(3.4rem, 4vw + 2.2rem, 7.4rem); line-height: 0.98; }
h2 { font-size: clamp(2.2rem, 2.6vw + 1.4rem, 4rem); }
h3 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); }
h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink); }

em, .accent-text { font-style: italic; color: var(--gold); }

p { max-width: var(--measure); }
.lede { font-size: 1.3rem; line-height: 1.6; color: var(--ink); font-weight: 300; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.eyebrow { /* alias kept for markup already using it */
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }

/* Large faint editorial index numeral, e.g. "01" beside a section title */
.index-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(109, 68, 36, 0.28);
}

.caption {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  opacity: 0.75;
}

.rule { border: none; border-top: 1px solid var(--line); }

/* ---- Layout primitives ---- */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.section { padding-block: clamp(4rem, 8vw, 9rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 5rem); }
.section--deep { background: var(--deep); color: var(--sky); }
.section--deep h1, .section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep p { color: rgba(203, 233, 239, 0.85); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }

.section-head { max-width: 640px; margin-bottom: var(--space-xl); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.wide { max-width: 900px; }

.grid { display: grid; gap: var(--space-lg); }

/* ---- Buttons: minimal, editorial — text and thin rules over heavy pills ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 1rem 2.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brown); color: var(--white); }
.btn--primary:hover { background: var(--gold); }

.btn--outline { background: transparent; border: 1px solid currentColor; color: var(--brown); }
.btn--outline:hover { background: var(--brown); color: var(--white); }

.btn--ghost {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  border-radius: 0;
  padding: 0.4rem 0;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.95rem;
}

.btn--light { background: var(--white); color: var(--brown); }
.btn--light:hover { background: var(--gold); color: var(--white); }

.btn--sm { padding: 0.75rem 1.5rem; font-size: 0.7rem; }

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 250;
  padding-block: var(--space-md);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,47,52,0.5), rgba(13,47,52,0));
  z-index: -1;
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  padding-block: var(--space-sm);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled::before { opacity: 0; }

/* Used on pages whose top content is light (the home hero is a framed
   photo on a cream masthead now, not a full-bleed dark image) so the
   header doesn't need its transparent-over-dark-photo treatment. */
.site-header--onlight::before { opacity: 0; }
.site-header--onlight .brand-word { color: var(--brown); }
.site-header--onlight .nav-toggle span { background: var(--brown); }

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

.brand { display: flex; align-items: center; gap: var(--space-2xs); min-width: 0; flex-shrink: 1; }
.brand img { height: 40px; width: auto; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.4s var(--ease);
}
.site-header.is-scrolled .brand-word { color: var(--brown); }

/* ---- Header actions (persistent CTA + menu toggle, always visible) ---- */
.header-actions { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }

@media (max-width: 480px) {
  .brand img { height: 30px; }
  .brand-word { font-size: 0.98rem; }
  .header-actions { gap: var(--space-xs); }
  .header-actions .btn--sm { padding: 0.55rem 0.9rem; font-size: 0.6rem; }
}
@media (max-width: 400px) {
  .brand-word__suffix { display: none; }
}
@media (max-width: 340px) {
  .header-actions { gap: 6px; }
  .header-actions .btn--sm { padding: 0.5rem 0.7rem; font-size: 0.56rem; }
  .brand img { height: 26px; }
  .brand-word { font-size: 0.85rem; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2xs);
  z-index: 210;
  position: relative;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header.is-scrolled .nav-toggle span { background: var(--brown); }
.nav-open .nav-toggle span { background: var(--brown); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Collapsible menu: a right-side panel, hidden until toggled open ---- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 36, 32, 0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: min(400px, 88vw);
  background: var(--cream);
  box-shadow: -40px 0 70px -30px rgba(42, 36, 32, 0.35);
  padding: clamp(6rem, 14vw, 8rem) clamp(2.25rem, 6vw, 4rem) var(--space-xl);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.nav-open .main-nav { transform: translateX(0); }

.main-nav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}
.main-nav__list a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  color: var(--brown);
  position: relative;
  padding-block: var(--space-3xs);
  transition: color 0.3s var(--ease);
}
.main-nav__list a:hover,
.main-nav__list a[aria-current="page"] { color: var(--gold); }

/* ---- Footer (kept as a dark closing moment) ---- */
.site-footer { background: var(--deep); color: var(--sky); padding-top: var(--space-2xl); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(203, 233, 239, 0.15);
}
.footer-brand img { height: 46px; margin-bottom: var(--space-sm); }
.footer-brand p { color: rgba(203,233,239,0.75); font-size: 0.92rem; }
.footer-col h4 { color: var(--gold); margin-bottom: var(--space-sm); font-size: 0.72rem; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-col a, .footer-col address { font-size: 0.92rem; color: rgba(203,233,239,0.85); font-style: normal; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(203,233,239,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; }
.footer-social path { fill: var(--sky); }
.footer-social a:hover path { fill: var(--deep); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  font-size: 0.8rem;
  color: rgba(203,233,229,0.6);
}
.footer-bottom a { color: rgba(203,233,229,0.6); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Utilities ---- */
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--white);
  padding: var(--space-sm) var(--space-md);
  z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.page-hero {
  padding-top: clamp(9rem, 16vw, 13rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  text-align: left;
}
.page-hero .wrap { max-width: 980px; }
.page-hero h1 { color: var(--brown); }
.page-hero .kicker { justify-content: flex-start; }
.page-hero p.lede { margin-top: var(--space-md); }

.breadcrumb { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brown); opacity: 0.7; margin-bottom: var(--space-sm); }
.breadcrumb a:hover { color: var(--gold); }
