/* ============================================================
   WISE HEARTS CONNECT - BRAND STYLESHEET
   Palette derived from the official logo (clay rose #D9877B).
   Linked from every page as /brand.css. Fonts (Cormorant Garamond + Inter)
   are loaded from Google Fonts by a <link> in each page head, not from here.
   ============================================================ */

:root {
  /* --- Core brand colors (from the logo) --- */
  --clay-rose:   #D9877B;  /* primary — the logo color */
  --deep-rose:   #C26F63;  /* buttons & accents (passes contrast on cream) */
  --blush:       #F2D9D2;  /* soft section backgrounds */
  --blush-deep:  #E9C4BA;  /* blush borders / hover */
  --cream:       #FBF6F3;  /* default page background */
  --cream-warm:  #F5EBE5;  /* alternating section background */

  /* --- Neutrals (warm, never clinical) --- */
  --cocoa-ink:   #3A2F2C;  /* headings + body text */
  --cocoa-soft:  #5A4A45;  /* secondary text */
  --taupe:       #8C6F68;  /* muted text, captions, labels */
  --white:       #FFFFFF;

  /* --- Warm-dark (hero & footer; warm brown, not black) --- */
  --dark:        #2E2522;
  --dark-soft:   #3A2F2C;

  /* --- Semantic aliases (use these in components) --- */
  --bg:           var(--cream);
  --bg-alt:       var(--cream-warm);
  --bg-soft:      var(--blush);
  --primary:      var(--deep-rose);
  --primary-hover:#a85a4f;
  --accent:       var(--clay-rose);
  --text:         var(--cocoa-ink);
  --text-muted:   var(--taupe);

  /* --- Type --- */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* --- Layout --- */
  --max-w: 1100px;
  --section-pad: 96px 24px;
  --radius: 4px;

  /* --- Legacy aliases (map old green-palette var names to brand colors) --- */
  --parchment:      var(--cream);
  --parchment-dark: var(--cream-warm);
  --moss:           var(--deep-rose);
  --moss-light:     var(--primary-hover);
  --sage:           var(--clay-rose);
  --stone:          var(--clay-rose);
  --stone-light:    var(--blush-deep);
  --ink:            var(--cocoa-ink);
  --ink-soft:       var(--cocoa-soft);
  --muted:          var(--taupe);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.3rem; }
p  { color: var(--cocoa-soft); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--clay-rose); display: block; margin-bottom: 16px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block; padding: 14px 36px;
  background: var(--primary); color: var(--white);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-outline {
  display: inline-block; padding: 13px 34px;
  background: transparent; color: var(--primary);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--radius); border: 1.5px solid var(--primary); cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; background: none; cursor: pointer; transition: gap 0.2s;
}
.btn-ghost:hover { gap: 12px; }
.btn-ghost::after { content: '→'; }

/* --- Nav --- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251,246,243,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217,135,123,0.2);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 2px 24px rgba(58,47,44,0.08); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-img { height: 56px; width: auto; }
.nav-logo {  /* text fallback wordmark */
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  color: var(--deep-rose); letter-spacing: 0.02em;
}
.nav-logo span { color: var(--clay-rose); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cocoa-soft); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--deep-rose); }
.nav-cta {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 22px; background: var(--primary); color: var(--white) !important;
  border-radius: var(--radius); transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary-hover) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { width: 22px; height: 1.5px; background: var(--cocoa-ink); transition: 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 99; flex-direction: column;
  align-items: stretch; justify-content: flex-start; gap: 0;
  padding: 4px 28px calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cocoa-ink); text-decoration: none;
  padding: 20px 2px; border-bottom: 1px solid var(--blush-deep);
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a:active { color: var(--clay-rose); }
.mobile-menu a.btn-primary {
  margin-top: 28px; border-bottom: none; text-align: center;
  padding: 16px 24px; color: var(--white);
}
.mobile-menu a:hover { color: var(--deep-rose); }

/* --- Lotus divider (brand motif) --- */
.lotus-divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 48px auto; max-width: 320px; }
.lotus-divider::before, .lotus-divider::after { content: ''; flex: 1; height: 1px; background: var(--blush-deep); }
.lotus-divider svg { width: 28px; height: 28px; flex-shrink: 0; opacity: 0.8; }

/* --- Page header (inner pages) --- */
.page-header { padding: 140px 24px 80px; text-align: center; background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%); }
.page-header h1 { margin-bottom: 20px; }
.page-header p { font-size: 1.1rem; max-width: 560px; margin: 0 auto; color: var(--taupe); }

/* --- Footer --- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 72px 24px 40px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo { color: var(--blush); font-size: 1.5rem; }
.footer-logo-img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.45); }
.footer-social { display: flex; gap: 14px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 50%;
  color: rgba(255,255,255,0.5); font-size: 0.8rem; transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--clay-rose); color: var(--clay-rose); }
.footer-col h5 {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.9rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--blush); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.28);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--blush); }

/* --- Form elements --- */
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 14px 16px; background: var(--white);
  border: 1.5px solid var(--blush-deep); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--cocoa-ink);
  outline: none; transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--clay-rose); }
textarea { resize: vertical; min-height: 140px; }
label {
  display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--taupe); margin-bottom: 8px;
}
.form-group { margin-bottom: 24px; }

/* --- Animations --- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --section-pad: 64px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

