/* ============================================================
   MIA MORALES — comfort-show design system
   Palette: cream / peach / blush / tan / gold / terracotta / ink
   Fonts:   Paytone One (headers) · Lora (accent) · Karla (body)
   ============================================================ */

:root {
  /* 7-color brand palette (tan/orange/peach family) */
  --cream:      #FAF4F0;
  --peach:      #F3E1D6;
  --blush:      #E8C4B0;
  --tan:        #D9A88F;
  --gold:       #C9A84C;
  --terracotta: #C97B4A;
  --espresso:   #4A3B32;
  --ink:        #2A2430;

  /* semantic */
  --bg:         var(--cream);
  --bg-soft:    var(--peach);
  --surface:    #FFFFFF;
  --text:       var(--ink);
  --text-soft:  #5C5358;
  --accent:     var(--terracotta);
  --accent-dark:#A95F36;
  --gold-soft:  #F0E3C4;
  --line:       #EADCD2;

  /* type */
  --font-head: 'Paytone One', 'Arial Black', sans-serif;
  --font-accent: 'Lora', Georgia, serif;
  --font-body: 'Karla', 'Helvetica Neue', Arial, sans-serif;

  /* layout */
  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(74, 59, 50, 0.08);
  --shadow-lg: 0 18px 44px rgba(74, 59, 50, 0.14);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--text);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent-dark);
  margin-bottom: var(--space-2);
  display: block;
}

.lead {
  font-family: var(--font-accent);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-soft);
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-3); }

section { padding: var(--space-5) 0; }
section.tight { padding: var(--space-3) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: var(--space-4) 0; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 244, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0.9rem var(--space-3);
  gap: var(--space-2);
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }

.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  display: grid; place-items: center;
  font-family: var(--font-head); color: #fff; font-size: 1.05rem;
  box-shadow: var(--shadow);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem; color: var(--text);
  letter-spacing: 0.02em;
}

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

.nav-links a {
  text-decoration: none; font-weight: 700; color: var(--text-soft);
  font-size: 0.98rem; padding: 0.35rem 0.1rem; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent-dark); border-bottom-color: var(--gold); }

.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 0.55rem 1.1rem !important; border-radius: 999px;
  border: none !important;
}
.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: var(--space-2) var(--space-3);
    gap: var(--space-1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  border: 2px solid var(--accent); background: var(--accent); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  box-shadow: 0 6px 18px rgba(201, 123, 74, 0.3);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--accent-dark); }
.btn-ghost:hover { background: var(--peach); color: var(--accent-dark); box-shadow: none; }

.btn-gold { background: var(--gold); border-color: var(--gold); box-shadow: 0 6px 18px rgba(201, 168, 76, 0.35); }
.btn-gold:hover { background: #B2933A; border-color: #B2933A; }

.btn-lg { padding: 1rem 2.2rem; font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(201,168,76,0.14), transparent 60%),
    radial-gradient(500px 380px at 8% 85%, rgba(232,196,176,0.35), transparent 60%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-5); align-items: center; }

.hero h1 { margin-bottom: var(--space-3); }
.hero h1 .accent-word { color: var(--terracotta); }

.hero .lead { margin-bottom: var(--space-4); }

.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }

.hero-note { font-size: 0.9rem; color: var(--text-soft); }

.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  transform: rotate(1.2deg);
  transition: transform 0.3s;
}
.hero-img:hover { transform: rotate(0deg) scale(1.01); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero { padding: var(--space-4) 0 var(--space-3); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: var(--space-2);
  background: var(--gold-soft);
}

.card-gif {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.98rem; }

/* ---------- Sections & bands ---------- */
.band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-dark {
  background: var(--ink); color: #F5EDE6;
}
.band-dark h2, .band-dark h3 { color: #FBF5EF; }
.band-dark .eyebrow { color: var(--gold); }
.band-dark .lead { color: #D8CCC0; }
.band-dark .text-muted { color: #C9BBAE; }

.quote-card {
  background: var(--surface);
  border-left: 6px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-accent);
  font-size: 1.2rem; line-height: 1.6;
  box-shadow: var(--shadow);
}

/* ---------- Email signup ---------- */
.signup-form {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  max-width: 460px;
}
.signup-form input[type="text"] {
  flex: 1 1 120px;
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.signup-form input[type="text"]:focus { border-color: var(--gold); }
.signup-form input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.signup-form input[type="email"]:focus { border-color: var(--gold); }

.signup-success {
  display: none;
  background: #E9F3E7; border: 1px solid #BCD5B6; color: #3E6B37;
  border-radius: var(--radius-sm); padding: 0.9rem 1.2rem;
  font-weight: 700; font-size: 0.95rem;
}
.signup-success.show { display: block; }
.signup-error { color: #B3472E; font-size: 0.9rem; margin-top: 0.5rem; display: none; }
.signup-error.show { display: block; }

.band-dark .signup-form input[type="email"] { border-color: var(--line); background: #fff; color: var(--text); }
.band-dark .signup-form input[type="email"]::placeholder { color: var(--text-soft); }
.band-dark .signup-form input[type="text"] { border-color: var(--line); background: #fff; color: var(--text); }
.band-dark .signup-form input[type="text"]::placeholder { color: var(--text-soft); }

/* ---------- Postmarked page ---------- */
.price-card {
  text-align: center;
  padding: var(--space-4);
  background: linear-gradient(160deg, #fff, var(--peach));
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card .price {
  font-family: var(--font-head);
  font-size: 3rem; color: var(--terracotta);
  line-height: 1;
}
.price-card .per { color: var(--text-soft); font-size: 0.95rem; }

.badge-ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff;
  font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.35rem 1rem; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow);
}

.feature-list { list-style: none; padding: 0; margin: var(--space-3) 0; text-align: left; }
.feature-list li { padding: 0.45rem 0 0.45rem 2rem; position: relative; color: var(--text); }
.feature-list li::before {
  content: "✦";
  position: absolute; left: 0; top: 0.45rem;
  color: var(--gold); font-size: 1rem;
}

/* ---------- Work / pillar tiles ---------- */
.pillar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pillar .num {
  font-family: var(--font-head);
  color: var(--gold); font-size: 0.95rem;
  letter-spacing: 0.1em;
}
.pillar h3 { margin-top: 0.3rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #D8CCC0;
  padding: var(--space-5) 0 var(--space-4);
  margin-top: var(--space-5);
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { color: #E6CE8F; text-decoration: underline; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { font-family: var(--font-head); font-size: 1.3rem; color: #FBF5EF; margin-bottom: 0.5rem; }

.social-row { display: flex; gap: 0.8rem; margin-top: var(--space-2); flex-wrap: wrap; }
.social-row a {
  background: rgba(255,255,255,0.08);
  border-radius: 999px; padding: 0.45rem 1rem;
  font-weight: 700; font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
}
.social-row a:hover { background: rgba(255,255,255,0.16); text-decoration: none; }

.footer-col h4 {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8rem; color: var(--gold);
  margin-bottom: var(--space-2);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-bottom {
  margin-top: var(--space-4); padding-top: var(--space-2);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; color: #A99A8C;
  display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap;
}

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-soft); }
.small { font-size: 0.88rem; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); }

.photo-frame {
  border-radius: var(--radius);
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
  transition: transform 0.3s;
}
.photo-frame:hover { transform: rotate(0deg) scale(1.01); }

.divider {
  border: none; height: 1px; background: var(--line);
  margin: var(--space-5) 0;
}

/* simple page (about / postmarked hero block) */
.page-hero { padding: var(--space-5) 0 var(--space-3); }
.page-hero h1 { margin-bottom: 0.6rem; }

.avail-note {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold-soft); color: #7A6423;
  font-weight: 700; font-size: 0.85rem;
  padding: 0.4rem 1rem; border-radius: 999px;
}
.avail-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #7DA05C; }

/* Stripe status pages */
.status-page { text-align: center; padding: var(--space-6) 0; max-width: 560px; margin: 0 auto; }
.status-page .big-emoji { font-size: 3.5rem; }

/* ---------- Contact form ---------- */
.contact-form label { display: block; font-weight: 700; color: var(--text-soft); margin-bottom: 0.25rem; }
.form-input {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--gold); }
.contact-form textarea.form-input { resize: vertical; }

/* ---------- Mobile overrides (must come last to win the cascade) ---------- */
@media (max-width: 860px) {
  /* rotated photo frames can overflow a narrow viewport — straighten them */
  .photo-frame, .hero-img { transform: none !important; }
}
