/* ============================================================
   MAMACARRIE — BRAND STYLESHEET
   ------------------------------------------------------------
   This one file styles every page on the site. If you want to
   change a color or font site-wide, change it here in the
   ":root" section below and it updates everywhere.
   ============================================================ */

:root {
  /* ---- Brand colors (Luxe Burgundy system) ---- */
  --wine: #5B0F1A;        /* deep wine — primary brand color */
  --wine-deep: #3E0A12;   /* darker wine for gradients/shadows */
  --gold: #C9A96A;        /* champagne gold — accent */
  --cream: #F8F6F0;       /* warm cream — light backgrounds */
  --ink: #241512;         /* warm charcoal — body text */

  /* ---- Type ---- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  /* ---- Spacing scale ---- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --radius: 4px;
  --max-width: 1120px;
}

/* ---- Reset & base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}

p { margin: 0 0 var(--space-sm); }

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SIGNATURE ELEMENT — THE FLICKER
   A small candle-flame that gently flickers beside the wordmark
   and at section dividers, echoing the "candle blow-out" outro
   used across MamaCarrie video content.
   ============================================================ */

.flicker {
  display: inline-block;
  width: 10px;
  height: 14px;
  position: relative;
  animation: flicker 3.2s ease-in-out infinite;
  transform-origin: bottom center;
}

.flicker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, var(--gold) 0%, #E8C87A 40%, transparent 75%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

@keyframes flicker {
  0%, 100% { transform: scaleY(1) rotate(0deg); opacity: 1; }
  25%      { transform: scaleY(1.05) rotate(-2deg); opacity: 0.92; }
  50%      { transform: scaleY(0.96) rotate(1deg); opacity: 1; }
  75%      { transform: scaleY(1.03) rotate(-1deg); opacity: 0.95; }
}

/* The "wick line" divider — a vertical gold line with a small
   dot at the top, used instead of a plain horizontal rule. */
.wick-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: var(--space-lg) auto;
  height: 48px;
}

.wick-divider .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-bottom: 4px;
}

.wick-divider .line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  background: var(--wine);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wine);
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .nav-links.is-open { display: flex; }

  .nav-links li { border-top: 1px solid rgba(201, 169, 106, 0.2); }
  .nav-links a { display: block; padding: var(--space-sm) 0; }
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   HERO (used on Home)
   ============================================================ */

.hero {
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--cream);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 780px;
  margin: 0 auto var(--space-xs);
}

.hero h1 .accent {
  color: var(--gold);
  font-style: italic;
}

.hero .subtitle {
  max-width: 560px;
  margin: var(--space-sm) auto var(--space-md);
  color: rgba(248, 246, 240, 0.85);
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--wine-deep);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(248, 246, 240, 0.5);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   PAGE HEADER (used on About / Blog / Contact — smaller than hero)
   ============================================================ */

.page-header {
  background: var(--wine);
  color: var(--cream);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: center;
}

.page-header h1 { color: var(--cream); }
.page-header .subtitle { color: rgba(248, 246, 240, 0.8); max-width: 560px; margin: 0 auto; }

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: var(--space-lg) var(--space-md);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.section-heading .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--wine);
  opacity: 0.75;
  margin-bottom: var(--space-xs);
}

/* ---- Pillar cards (Home) ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.pillar-card {
  background: #fff;
  border: 1px solid rgba(91, 15, 26, 0.08);
  border-top: 3px solid var(--gold);
  padding: var(--space-md);
  border-radius: var(--radius);
}

.pillar-card h3 { font-size: 1.2rem; }
.pillar-card p { color: rgba(36, 21, 18, 0.75); font-size: 0.96rem; margin-bottom: 0; }

/* ---- Blog / post cards ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(91, 15, 26, 0.08);
  display: flex;
  flex-direction: column;
}

.post-card .post-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--wine), var(--wine-deep));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card .post-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }

.post-date {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.post-card h3 { font-size: 1.15rem; }
.post-card p { color: rgba(36, 21, 18, 0.75); font-size: 0.95rem; }

.post-card .read-more {
  margin-top: auto;
  color: var(--wine);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gold);
  align-self: flex-start;
  padding-bottom: 2px;
}

/* ---- About page ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

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

.photo-frame {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 246, 240, 0.6);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--space-md);
  border: 1px solid var(--gold);
}

.belief-list {
  display: grid;
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}

.belief-card {
  background: #fff;
  padding: var(--space-md);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

.belief-card .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wine);
  opacity: 0.7;
  margin-bottom: 4px;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

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

.contact-card {
  background: #fff;
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid rgba(91, 15, 26, 0.08);
}

.contact-card h3 { font-size: 1.1rem; }

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: var(--space-sm);
}

form input,
form textarea {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 1px solid rgba(91, 15, 26, 0.2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
}

form button {
  margin-top: var(--space-md);
  background: var(--wine);
  color: var(--cream);
  border: none;
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

form button:hover { background: var(--wine-deep); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--wine-deep);
  color: rgba(248, 246, 240, 0.75);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: center;
  font-size: 0.9rem;
}

.footer-flicker { margin-bottom: var(--space-sm); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--gold); }

.footer-note { opacity: 0.55; font-size: 0.8rem; margin-top: var(--space-md); }
