/*
 * awell — Global Styles
 * Edit colors and fonts HERE and they update across every page instantly.
 * ─────────────────────────────────────────────────────────────────────────
 */

/* ── GOOGLE FONTS ────────────────────────────────────────────────────────
   To change fonts, update the family names in the @import URL below
   AND in the font-family values in the Typography section.            */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── CUSTOM LOGO FONT ────────────────────────────────────────────────────
   VTC Bayard — used specifically for the "awell" wordmark/logo.       */
@font-face {
  font-family: 'VTC Bayard';
  src: url('/VTCBayard.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── HEADLINE FONT ───────────────────────────────────────────────────────
   Cal Sans — used for all headlines/display text (replaces Playfair
   Display). Self-hosted from the repo root, same as VTC Bayard above.  */
@font-face {
  font-family: 'Cal Sans';
  src: url('/CalSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── COLOR PALETTE ───────────────────────────────────────────────────────
   Change any value here — it updates every page automatically.
   ♛ PLUM     = primary background, nav, sidebar
   ♛ MAGENTA  = buttons, badges, active states, links
   ♛ GOLD     = logo crown, star ratings, accents (kept neutral)
   ♛ CHAMPAGNE = page background, input fields                         */
:root {
  --plum:         #40456A;   /* Deep navy — nav, sidebar, dark backgrounds */
  --plum-mid:     #6B7140;   /* Olive — gradients, secondary surfaces */
  --magenta:      #AE5224;   /* Burnt orange — buttons, badges, active states */
  --magenta-dark: #8A3D18;   /* Dark burnt orange — hover */
  --gold:         #F99D1B;   /* Amber — crown, star ratings, accents */
  --champagne:    #F7F2EC;   /* Warm off-white — page backgrounds */
  --white:        #FFFFFF;
  --text-muted:   #A8A882;   /* Muted olive-gray — secondary text */
  --border:       #E2DDD0;   /* Warm neutral border */
  --success:      #489B6E;   /* Green — confirmations */
  --error:        #E83000;
  --card-bg:      #FFFFFF;
  --footer-bg:    #1A1C2E;   /* Very dark navy */
  --footer-muted: #6B7140;   /* Olive */
  --footer-dim:   #4A4D60;   /* Dark navy-gray */
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────
   Headline font: Cal Sans (clean, modern display)
   Body font:     DM Sans (clean, readable)
   To swap fonts, change the family name here and in the @import above. */
:root {
  --font-display: 'Cal Sans', 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── GLOBAL RESET ────────────────────────────────────────────────────────
   Applied on every page so each file doesn't need to repeat it.      */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--plum);
  -webkit-font-smoothing: antialiased;
}

/* ── SHARED UTILITY CLASSES ──────────────────────────────────────────── */

/* awell Toast notification */
.aw-toast, .toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--plum);
  color: var(--white);
  border-radius: 100px;
  padding: 0.72rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.35s;
  z-index: 9999;
  white-space: nowrap;
  pointer-events: none;
}
.aw-toast.show, .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Shared footer */
.awell-footer {
  background: #0F0520;
  color: #6A5A7A;
  padding: 3rem 2rem 2rem;
}
.awell-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.awell-footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.awell-footer-logo span { color: var(--gold); }
.awell-footer-tagline {
  font-size: 0.82rem;
  color: #6A5A7A;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.awell-footer-support {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--magenta);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.awell-footer-support:hover { background: var(--magenta-dark); }
.awell-footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.85rem;
}
.awell-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.awell-footer-links a {
  color: #6A5A7A;
  text-decoration: none;
  font-size: 0.83rem;
  transition: color 0.2s;
}
.awell-footer-links a:hover { color: var(--white); }
.awell-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #4A3A5A;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media(max-width:700px) {
  .awell-footer-inner { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .awell-footer-bottom { justify-content: center; text-align: center; }
}
@media(max-width:440px) {
  .awell-footer-inner { grid-template-columns: 1fr; }
}
