/* Ask Maggie - homepage styles */

:root {
  --cream: #fdf7f1;
  --white: #ffffff;
  --forest: #013b2e;
  --text: #1f3a31;
  --muted: #5b6e66;
  --sage: #4f7a5e;
  --sage-bg: #e9f0e6;
  --peach-bg: #fdefe5;
  --orange: #d96133;
  --orange-dark: #bb4e25;
  --line: #ece2d6;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 12px rgba(1, 59, 46, 0.07);
  --shadow-lift: 0 10px 28px rgba(1, 59, 46, 0.12);
  --container: 1200px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { color: var(--forest); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--forest); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--forest); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); margin-bottom: 0.6em; }
.eyebrow-orange { color: var(--orange); }
.small { font-size: 0.85rem; margin: 0; }
.muted { color: var(--muted); margin-top: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 0.95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-soft { background: var(--sage-bg); color: var(--forest); }
.btn-soft:hover { background: #dce8d8; }
.btn-light { background: var(--white); color: var(--forest); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-1px); }
.btn-outline { background: var(--white); color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.text-link { font-weight: 700; color: var(--forest); text-underline-offset: 4px; }
.text-link:hover { color: var(--orange-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(253, 247, 241, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand img { width: 190px; }
.brand-tagline { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin: 4px 0 0 52px; }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.main-nav a:hover { color: var(--orange-dark); }
.nav-cta-mobile, .mobile-only { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); box-shadow: var(--shadow); align-items: center; justify-content: center; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; background: var(--forest); border-radius: 2px; position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 40%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%); mask-image: linear-gradient(to right, transparent 0%, #000 32%); }
.hero-inner { position: relative; padding: 56px 0 48px; }
.hero-copy { max-width: 700px; }
.lead { font-size: 1.12rem; max-width: 520px; }

.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-lift); margin: 28px 0 16px;
}
.search-icon { width: 24px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; font: 500 1.05rem var(--font); color: var(--text); background: transparent; padding: 10px 4px; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: var(--shadow-lift), 0 0 0 3px rgba(217, 97, 51, 0.35); }
.area { display: flex; align-items: center; gap: 4px; border-left: 1px solid var(--line); padding-left: 12px; }
.area img { width: 18px; }
.area select { width: 7.5em; border: 0; background: transparent; font: 600 0.9rem var(--font); color: var(--forest); cursor: pointer; padding: 6px 2px; }
.search .btn { padding: 14px 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 0.85rem var(--font); color: var(--forest); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.chip:hover { border-color: var(--orange); color: var(--orange-dark); }
.business-line { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-weight: 500; }
.business-line img { width: 28px; }
.business-line a { font-weight: 700; text-underline-offset: 4px; }

/* Sections */
.section { padding: 56px 0; }
.section-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 32px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-intro { margin: 0; max-width: 420px; color: var(--muted); }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  background: var(--white); border-radius: var(--radius); padding: 22px 18px;
  box-shadow: var(--shadow); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
}
.category:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.category img { width: 52px; margin-bottom: 6px; }
.category strong { color: var(--forest); font-size: 1.02rem; }
.category span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* Maggie's Picks */
.picks-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: block; position: relative; height: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 16px 52px 18px 18px; }
.card-body h3 { margin-bottom: 4px; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.card-arrow { position: absolute; right: 16px; bottom: 18px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--orange); display: grid; place-items: center; font-weight: 700; }

/* Panels */
.split { padding-top: 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { position: relative; border-radius: var(--radius); padding: 34px; overflow: hidden; }
.panel-sage { background: var(--sage-bg); }
.panel-peach { background: var(--peach-bg); }
.panel-photo { display: grid; grid-template-columns: 1.3fr 1fr; padding: 0; }
.panel-photo .panel-copy { padding: 34px; position: relative; z-index: 1; }
.panel-image { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%); mask-image: linear-gradient(to right, transparent 0%, #000 40%); }
.guide-links { margin: 0 0 22px; }
.guide-links li { border-top: 1px solid rgba(1, 59, 46, 0.12); }
.guide-links a { display: block; padding: 9px 0; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.guide-links a::after { content: "\00a0\2192"; color: var(--orange); }
.guide-links a:hover { color: var(--orange-dark); }

/* Ask Around and business bands */
.band { padding-top: 0; }
.newsletter-band { display: grid; grid-template-columns: auto 1fr minmax(320px, 420px); align-items: center; gap: 32px; padding: 36px 40px; }
.band-icon { width: 96px; }
.newsletter-band h2 { margin-bottom: 0.3em; }
.band-text { margin: 0; }
.newsletter { display: flex; gap: 8px; background: var(--white); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); margin: 0 0 10px; }
.newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: 500 1rem var(--font); color: var(--text); }
.newsletter input:focus { outline: none; }
.newsletter:focus-within { box-shadow: var(--shadow), 0 0 0 3px rgba(217, 97, 51, 0.35); }

.business-band { display: grid; grid-template-columns: 1fr minmax(320px, 400px); gap: 28px 48px; padding: 40px; }
.business-intro p:last-child { margin: 0; max-width: 560px; }
.price-card { grid-row: span 2; align-self: start; background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price-card img { width: 72px; margin-bottom: 14px; }
.price-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin: 0 0 4px; }
.price { font-size: 1.9rem; font-weight: 800; color: var(--orange); margin: 0 0 4px; letter-spacing: -0.02em; line-height: 1.15; }
.price-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefits li { font-size: 0.92rem; padding-top: 18px; border-top: 2px solid rgba(1, 59, 46, 0.12); }
.benefits strong { display: block; color: var(--forest); font-size: 1rem; margin-bottom: 4px; }
.business-note { grid-column: 1 / -1; margin: 0; }

/* Final CTA */
.final-cta { padding: 8px 0 64px; }
.final-inner { display: flex; align-items: center; gap: 24px; background: var(--forest); color: #dfe9e2; border-radius: var(--radius); padding: 32px 36px; }
.final-inner img { width: 60px; background: var(--cream); border-radius: 50%; padding: 8px; }
.final-inner h2 { color: var(--white); margin-bottom: 4px; }
.final-inner p { margin: 0; }
.final-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.final-actions .text-link { color: var(--white); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { width: 180px; }
.footer-brand .brand-tagline { margin-left: 48px; }
.site-footer h2 { font-size: 0.95rem; letter-spacing: 0; margin-bottom: 10px; }
.site-footer li { margin-bottom: 6px; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--orange-dark); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { font-style: italic; }

/* Tablet */
@media (max-width: 1080px) {
  .main-nav ul { gap: 18px; }
  .categories { grid-template-columns: repeat(3, 1fr); }
  .picks-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-head { grid-template-columns: 1fr auto; }
  .section-intro { grid-column: 1 / -1; grid-row: 2; }
  .split-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 860px) {
  .mobile-only { display: inline-flex; }
  .header-cta { display: none; }
  .header-inner { justify-content: space-between; min-height: 72px; }
  .brand img { width: 160px; }
  .brand .brand-tagline { display: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta-mobile { display: flex; margin-top: 16px; }

  .hero-photo { position: relative; width: 100%; height: 200px; }
  .hero-photo img { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
  .hero-inner { padding: 0 0 40px; margin-top: -24px; }

  .search { flex-wrap: wrap; border-radius: var(--radius); padding: 12px; }
  .search input { flex-basis: calc(100% - 40px); }
  .area { border-left: 0; padding-left: 0; }
  .search .btn { margin-left: auto; }

  .section { padding: 40px 0; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-head .btn { justify-self: start; }
  .categories { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category { padding: 18px 14px; }
  .cards { grid-template-columns: 1fr; }
  .panel, .panel-photo .panel-copy { padding: 26px 22px; }
  .panel-photo { grid-template-columns: 1fr; }
  .panel-image { height: 160px; order: -1; -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); }
  .newsletter-band, .business-band { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; }
  .band-icon { width: 64px; }
  .price-card { grid-row: auto; }
  .benefits { grid-template-columns: 1fr; gap: 14px; }
  .newsletter { flex-direction: column; border-radius: var(--radius-sm); }
  .final-inner { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .final-actions { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
