/* ═══════════════════════════════════════════════
   Rise-N-Shine Services — Shared Styles
   Loaded by every page on the site.
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #D4A843;
  --gold-light: #F5E4B8;
  --gold-dark: #A07820;
  --green: #2D7A4F;
  --green-light: #E8F5EE;
  --green-dark: #1A4D32;
  --green-text: #1E5C3A;
  --cream: #FBF7F0;
  --charcoal: #2C2A26;
  --warm-gray: #7A7570;
  --soft-white: #FFFDF9;
  --section-pad: 5rem 2rem;
  --max-w: 1100px;
  --article-w: 760px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; background: var(--soft-white); color: var(--charcoal); overflow-x: hidden; }

/* Offset anchor scroll targets so the sticky nav doesn't cover the section top */
section[id] { scroll-margin-top: 80px; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,249,0.97);
  border-bottom: 1px solid rgba(212,168,67,0.25);
  padding: 0.85rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(8px);
}
.nav-logo img { height: 52px; object-fit: contain; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none; font-weight: 700;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: #fff;
  padding: 0.6rem 1.4rem; border-radius: 2rem;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 200;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s; transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--soft-white); z-index: 150;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--charcoal);
  text-decoration: none; padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06); width: 100%; text-align: center;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--green); }
.mobile-nav .mobile-cta {
  margin-top: 1.5rem; background: var(--green); color: #fff !important;
  border: none; border-radius: 2rem; padding: 1rem 2.5rem !important;
  font-size: 1rem !important;
}

/* ── BUTTONS ── */
.btn-gold {
  background: var(--gold); color: var(--charcoal);
  padding: 0.9rem 2rem; border-radius: 2.5rem;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s; display: inline-block;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,0.4); }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 0.9rem 2rem; border-radius: 2.5rem;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: border-color 0.2s, background 0.2s; display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ── BLOG CARDS (homepage preview + article related posts + category grid) ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card {
  background: #fff; border-radius: 1.5rem; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.blog-card-img {
  aspect-ratio: 16/9; background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; position: relative; overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-category {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--green); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 2rem;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  font-size: 0.78rem; color: var(--warm-gray);
  margin-bottom: 0.75rem; display: flex; gap: 0.75rem; align-items: center;
}
.blog-meta span::before { content: '·'; margin-right: 0.75rem; }
.blog-meta span:first-child::before { content: none; }
.blog-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 0.75rem; color: var(--charcoal);
}
.blog-card p { font-size: 0.9rem; line-height: 1.7; color: var(--warm-gray); flex: 1; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--green); font-size: 0.88rem; font-weight: 700;
  text-decoration: none; margin-top: 1.25rem; transition: gap 0.2s;
}
.blog-read-more:hover { gap: 0.7rem; }
.blog-read-more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ── CONTACT BAR ── */
.contact-bar {
  background: var(--green-dark);
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.contact-bar a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s;
}
.contact-bar a:hover { color: var(--gold); }
.contact-bar svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* ── FOOTER ── */
footer { background: var(--charcoal); padding: 3rem 2rem; text-align: center; }
.footer-logo img { height: 44px; margin-bottom: 1.25rem; }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.78rem; }

/* ── RESPONSIVE (nav + blog grid) ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
}
