/* ═══════════════════════════════════════════════════
   A GRATITUDE PERSPECTIVE — GLOBAL STYLESHEET
   agratitudeperspective.com
═══════════════════════════════════════════════════ */

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

/* ── TOKENS ── */
:root {
  --brown:      #3B2A1E;
  --sage:       #7A9E7E;
  --sage-light: #B5CEAA;
  --sage-pale:  #EAF0E4;
  --ivory:      #F9F4EE;
  --cream:      #F2EBE0;
  --rose:       #EAB0AA;
  --rose-light: #F2CEC9;
  --gray:       #8A7F75;
  --soft-black: #2C2320;
  --gold:       #B89A6A;
  --gold-light: #D4BA8A;
  --white:      #FFFFFF;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --nav-h: 68px;
  --max-w: 1100px;
  --max-w-narrow: 720px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 3px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--ivory);
  color: var(--soft-black);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.06; color: var(--brown); }
.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }

.display-xl { font-size: clamp(3rem, 6vw, 5.5rem); }
.display-lg { font-size: clamp(2.4rem, 4.5vw, 4rem); }
.display-md { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.display-sm { font-size: clamp(1.4rem, 2.2vw, 2rem); }

.body-lg { font-family: var(--font-serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; font-style: italic; color: var(--gray); line-height: 1.75; }
.body-md { font-size: 1rem; line-height: 1.7; }
.body-sm { font-size: 0.875rem; color: var(--gray); }

.eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--rose);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow-line { flex: 1; height: 1px; background: var(--rose); opacity: 0.3; }
.eyebrow-dot  { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); flex-shrink: 0; }

/* ── LAYOUT ── */
.container       { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.container-narrow{ max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 48px; }
.section         { padding: 96px 0; }
.section-sm      { padding: 64px 0; }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(249,244,238,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(58,42,30,0.07);
  transition: box-shadow 0.3s var(--ease);
}
.site-nav.scrolled { box-shadow: 0 2px 24px rgba(58,42,30,0.07); }
.nav-inner {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem; color: var(--brown);
  display: flex; align-items: center; gap: 4px;
}
.nav-logo em { font-style: italic; color: var(--sage); }
.nav-logo small { font-family: var(--font-sans); font-size: 9px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-left: 8px; display: none; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--sage);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--brown); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brown); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ivory);
  background: var(--brown); padding: 10px 24px;
  transition: background 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--sage); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--brown);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--ivory); z-index: 499;
  padding: 32px 48px 48px;
  border-bottom: 1px solid rgba(58,42,30,0.1);
  flex-direction: column; gap: 24px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brown);
  padding: 12px 0;
  border-bottom: 1px solid rgba(58,42,30,0.08);
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--sage); }
.nav-drawer .nav-cta { text-align: center; margin-top: 8px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 12px;
  font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 36px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--brown); color: var(--ivory); }
.btn-primary:hover { background: var(--soft-black); }

.btn-sage { background: var(--sage); color: var(--ivory); }
.btn-sage:hover { background: var(--brown); }

.btn-outline {
  background: transparent; color: var(--brown);
  border: 1.5px solid var(--brown);
}
.btn-outline:hover { background: var(--brown); color: var(--ivory); }

.btn-ghost {
  background: transparent; color: var(--ivory);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 14px 32px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

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

/* ── CARDS ── */
.card {
  background: var(--cream);
  padding: 36px 32px;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(58,42,30,0.1); }
.card-accent { border-left: 4px solid; }

/* ── PILLS / BADGES ── */
.pill {
  display: inline-block;
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px;
}
.pill-sage  { background: var(--sage); color: white; }
.pill-rose  { background: var(--rose-light); color: var(--brown); }
.pill-gold  { background: var(--gold); color: white; }
.pill-brown { background: var(--brown); color: var(--ivory); }
.pill-cream { background: var(--cream); color: var(--gray); }

/* ── FORM ELEMENTS ── */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label {
  font-size: 9px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gray);
}
.form-input {
  width: 100%; padding: 14px 16px;
  background: white; color: var(--soft-black);
  border: 1px solid rgba(58,42,30,0.14); border-radius: 2px;
  font-family: var(--font-sans); font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--sage-light); }
.form-input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122,158,126,0.12); }
.form-input.error { border-color: var(--rose); }
.form-error { display: none; font-size: 12px; color: var(--rose); margin-top: 6px; }
.form-note  { font-size: 11px; color: var(--gray); text-align: center; margin-top: 10px; line-height: 1.6; }

.btn-spinner {
  display: none; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
.loading .btn-lbl { display: none; }
.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── DIVIDERS ── */
.divider { height: 1px; background: rgba(58,42,30,0.08); margin: 0; }
.divider-gold { height: 2px; background: var(--gold); opacity: 0.4; width: 60px; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.vis { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }
.rd4 { transition-delay: 0.4s; }
.rd5 { transition-delay: 0.5s; }

/* ── QUOTE BLOCK ── */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-style: italic;
  color: var(--brown);
  line-height: 1.4;
  padding-left: 28px;
  border-left: 3px solid var(--sage);
}
.pull-quote cite {
  display: block; margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray); font-style: normal;
}

/* ── QUOTE BAND ── */
.quote-band { background: var(--sage); padding: 72px 0; text-align: center; }
.quote-band .q-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic; color: var(--ivory);
  line-height: 1.45; max-width: 680px;
  margin: 0 auto 14px;
}
.quote-band .q-attr {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(249,244,238,0.6);
}

/* ── STRIP ── */
.strip { padding: 22px 0; text-align: center; }
.strip p {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-style: italic;
  color: var(--brown);
}
.strip-rose { background: var(--rose); }
.strip-sage { background: var(--sage-pale); }
.strip-dark { background: var(--brown); }
.strip-dark p { color: var(--ivory); }

/* ── SUCCESS STATE ── */
.success-state { display: none; text-align: center; padding: 32px 0; animation: fadeUp 0.4s ease; }
.success-icon  { width: 64px; height: 64px; border-radius: 50%; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.8rem; }
.success-h     { font-family: var(--font-display); font-size: 1.9rem; color: var(--brown); margin-bottom: 10px; }
.success-h em  { font-style: italic; color: var(--sage); }
.success-p     { font-family: var(--font-serif); font-size: 1rem; font-weight: 300; font-style: italic; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.success-note  { background: var(--cream); padding: 14px 18px; border-left: 3px solid var(--sage); font-size: 12px; color: var(--gray); line-height: 1.6; text-align: left; }
.success-note a { color: var(--sage); font-weight: 500; }

/* ── FOOTER ── */
.site-footer {
  background: var(--brown);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--ivory);
  margin-bottom: 12px; display: block;
}
.footer-brand-name em { font-style: italic; color: var(--rose-light); }
.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem; font-style: italic;
  color: rgba(249,244,238,0.5);
  line-height: 1.65; margin-bottom: 20px;
}
.footer-col-title {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 18px; display: block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px; color: rgba(249,244,238,0.45);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sage-light); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy {
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(249,244,238,0.22);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 11px; color: rgba(249,244,238,0.22);
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(249,244,238,0.5); }

/* ── PAGE HERO (shared) ── */
.page-hero {
  min-height: 42vh; padding-top: var(--nav-h);
  background: var(--brown);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(122,158,126,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 0%,  rgba(234,176,170,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero-inner { position: relative; padding: 64px 0; }
.page-hero-eyebrow { margin-bottom: 16px; }
.page-hero-eyebrow .eyebrow { color: var(--sage-light); }
.page-hero-eyebrow .eyebrow-line { background: var(--sage-light); opacity: 0.25; }
.page-hero h1 { color: var(--ivory); margin-bottom: 16px; }
.page-hero h1 em { font-style: italic; color: var(--rose-light); }
.page-hero .body-lg { color: rgba(249,244,238,0.65); max-width: 580px; }

/* ── MISC UTILITY ── */
.text-sage   { color: var(--sage); }
.text-rose   { color: var(--rose); }
.text-gold   { color: var(--gold); }
.text-brown  { color: var(--brown); }
.text-gray   { color: var(--gray); }
.text-ivory  { color: var(--ivory); }
.text-center { text-align: center; }
.text-italic { font-style: italic; }

.bg-ivory  { background: var(--ivory); }
.bg-cream  { background: var(--cream); }
.bg-sage-pale { background: var(--sage-pale); }
.bg-rose-light { background: var(--rose-light); }
.bg-brown  { background: var(--brown); }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 28px; }
  .nav-inner { padding: 0 28px; }
  .footer-inner { padding: 0 28px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-drawer { padding: 28px 20px 40px; }
  .footer-inner { padding: 0 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
