/* ============================================================
   SLIMDAILY.COM — Healthy Habits, One Day at a Time
   Design tokens derived from brand mockups (leaf mark, teal/sage/gold)
   ============================================================ */

:root {
  --teal: #1F5C56;
  --teal-deep: #163F3B;
  --sage: #8CAA79;
  --sage-light: #B9CDA9;
  --cream: #FBF7EF;
  --cream-warm: #FDFBF6;
  --beige: #E8D6B8;
  --gold: #C9A46A;
  --ink: #2B2B26;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Mulish', -apple-system, sans-serif;

  --radius: 16px;
  --shadow-soft: 0 8px 24px rgba(31, 92, 86, 0.10);
  --shadow-lift: 0 16px 36px rgba(31, 92, 86, 0.16);
  --rule: 1px solid rgba(31, 92, 86, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-warm);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--gold);
  font-weight: 700;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--tight { padding: 44px 0; }
.section--teal { background: var(--teal); color: #fff; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--cream { background: var(--cream); }
.section--beige { background: var(--beige); }

.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 16px 0 32px; }
.divider::before, .divider::after { content: ""; height: 1px; width: 56px; background: var(--gold); opacity: 0.7; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
}
.site-header__inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.55rem; color: var(--teal-deep); font-weight: 600; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(155deg, var(--teal) 0%, var(--sage) 130%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-size: 1.2rem;
}
.brand span.hl { color: var(--sage); }

.nav { display: flex; align-items: center; gap: 24px; font-size: 0.92rem; font-weight: 600; }
.nav a { color: var(--ink); opacity: 0.85; }
.nav a:hover, .nav a.active { color: var(--teal); opacity: 1; }
.nav__cta { background: var(--gold); color: #fff !important; padding: 10px 20px; border-radius: 30px; opacity: 1 !important; }
.nav__cta:hover { background: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--teal-deep); cursor: pointer; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream-warm); flex-direction: column; padding: 20px 24px; border-bottom: var(--rule); gap: 16px; align-items: flex-start; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
}

/* -------------------- Buttons -------------------- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 30px; font-weight: 700; font-family: var(--font-body); cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; font-size: 0.95rem; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { box-shadow: var(--shadow-lift); background: var(--teal-deep); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--outline { background: transparent; border-color: var(--teal); color: var(--teal-deep); }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--light { background: #fff; color: var(--teal-deep); }

/* -------------------- Hero -------------------- */
.hero {
  position: relative; padding: 88px 0 68px; overflow: hidden;
  background: radial-gradient(circle at 12% 15%, rgba(140,170,121,0.16), transparent 45%),
              radial-gradient(circle at 88% 85%, rgba(201,164,106,0.14), transparent 50%),
              var(--cream-warm);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero__art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4/5; }
.hero p.lead { font-size: 1.15rem; max-width: 48ch; margin-bottom: 26px; opacity: 0.9; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { order: -1; aspect-ratio: 16/9; } }

/* -------------------- Placeholder blocks (no binary assets) -------------------- */
.ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--sage) 70%, var(--sage-light) 140%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9); font-family: var(--font-head); text-align: center;
  padding: 20px; font-size: 1rem;
}
.ph--gold { background: linear-gradient(135deg, var(--gold) 0%, #E4CD9E 60%, var(--sage) 140%); }
.ph--sage { background: linear-gradient(135deg, var(--sage) 0%, var(--sage-light) 70%, var(--cream) 140%); color: var(--teal-deep); }
.ph--cream { background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 60%, var(--gold) 150%); color: var(--teal-deep); }
.ph--stripe { background: repeating-linear-gradient(135deg, var(--teal), var(--teal) 12px, #2A756D 12px, #2A756D 24px); }

/* -------------------- Cards / Grid -------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--7 { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--7 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid--3, .grid--4, .grid--2, .grid--7 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__media { aspect-ratio: 4/3; }
.card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card__tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; opacity: 0.82; margin-bottom: 16px; }
.card__link { margin-top: auto; font-weight: 700; color: var(--teal); }
.card__link::after { content: " →"; }

/* -------------------- Day plan list -------------------- */
.day-item { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 22px 0; border-bottom: var(--rule); }
.day-item:last-child { border-bottom: none; }
.day-item__num { font-family: var(--font-head); font-size: 1.7rem; color: var(--gold); }

/* -------------------- Habit checklist row -------------------- */
.habit-row { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; text-align: center; }
.habit { width: 92px; }
.habit__glyph { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--cream); border: 1px solid rgba(31,92,86,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.habit__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-deep); font-weight: 700; }

/* -------------------- Tip / quote block -------------------- */
.tip-block { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; }
.tip-block .eyebrow { color: var(--sage-light); }
.tip-block blockquote { font-family: var(--font-head); font-size: 1.6rem; font-style: italic; margin: 10px 0 0; }

/* -------------------- Newsletter -------------------- */
.newsletter { background: var(--gold); color: #fff; border-radius: var(--radius); padding: 48px; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter form { display: flex; gap: 12px; max-width: 460px; margin: 24px auto 0; flex-wrap: wrap; justify-content: center; }
.newsletter input[type=email] { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 30px; border: none; font-family: var(--font-body); font-size: 1rem; }
.newsletter .success-msg { display: none; margin-top: 16px; font-weight: 700; }

/* -------------------- FAQ -------------------- */
.faq-item { border-bottom: var(--rule); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: 1.15rem; color: var(--teal-deep); list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; opacity: 0.82; }

/* -------------------- Breadcrumbs -------------------- */
.breadcrumbs { font-size: 0.85rem; opacity: 0.7; margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--teal); }

/* -------------------- Badges (affiliate/product) -------------------- */
.badge { display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--sage-light); color: var(--teal-deep); }
.price-tag { font-family: var(--font-head); font-size: 1.3rem; color: var(--teal-deep); }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--teal-deep); color: #EDE6D6; padding: 60px 0 28px; }
.site-footer a { color: #EDE6D6; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--gold); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(237,230,214,0.2); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; opacity: 0.75; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* -------------------- Page hero -------------------- */
.page-hero { background: var(--cream); padding: 56px 0 40px; text-align: center; }
.page-hero p { max-width: 60ch; margin: 0 auto; opacity: 0.85; }

/* -------------------- Utility -------------------- */
.center { text-align: center; }
.small { font-size: 0.85rem; opacity: 0.72; }
.disclaimer-box { background: var(--cream); border-left: 4px solid var(--gold); padding: 20px 24px; border-radius: 8px; font-size: 0.9rem; margin: 28px 0; }
