/* ==========================================================================
   Couple Nest — site stylesheet (homepage, category pages, shared chrome)
   Upload to: couplenest.net/css/site.css
   Same tokens as blog.css — keep the two files in sync if tokens change.
   ========================================================================== */

/* ---- Font: Albert Sans (self-hosted, files in /fonts/) ----
   Falls back to system-ui when previewing locally without font files. */
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens (identical to blog.css) ---- */
:root {
  --cream: #FBF3E9;
  --surface: #FFFFFF;
  --orange: #EE8A3C;
  --orange-deep: #d9742a;
  --yellow: #F3C24C;
  --yellow-tint: #FCF3DC;
  --blue: #85C5D2;
  --blue-tint: #EEF6F8;
  --coral: #F06B5A;
  --ink: #1F1B16;
  --muted: #6B5E52;
  --line: #EFE4D6;
  --radius-card: 22px;
  --radius-small: 14px;
  --shadow-card: 0 2px 12px rgba(31, 27, 22, 0.06);
  --shadow-lift: 0 6px 24px rgba(31, 27, 22, 0.10);
  --font: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-deep); }
img { display: block; max-width: 100%; }
/* anchor jumps must land below the 68px sticky header */
[id] { scroll-margin-top: 88px; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.logo {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--ink); }
.logo .logo-dot { color: var(--orange); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link,
.nav-toggle-btn {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-link:hover,
.nav-toggle-btn:hover { background: var(--surface); color: var(--ink); }
.nav-toggle-btn .caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7em;
  transform: translateY(-1px);
  color: var(--muted);
}

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  border: 0;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* Articles dropdown panel */
.nav-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  width: min(720px, calc(100vw - 40px));
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 28px 30px 30px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: 30px 32px;
}
.nav-dropdown.open .dropdown-panel { display: grid; }
.menu-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  white-space: nowrap;
}
.menu-group ul { list-style: none; margin: 0; padding: 0 0 0 38px; }
.menu-group li { margin: 8px 0; }
.menu-group a { font-size: 0.92rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.menu-group a:hover { color: var(--orange); }
.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex: none;
}
.menu-icon svg { width: 15px; height: 15px; }
.menu-icon--coral  { background: #FDEAE7; color: #d4503f; }
.menu-icon--orange { background: #FCEBDC; color: var(--orange-deep); }
.menu-icon--blue   { background: var(--blue-tint); color: #4e98a8; }
.menu-icon--yellow { background: var(--yellow-tint); color: #c2901c; }

/* Mobile nav */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    box-shadow: var(--shadow-lift);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
  }
  .main-nav.open { display: flex; }
  .nav-link, .nav-toggle-btn { text-align: left; padding: 12px 10px; }
  .dropdown-panel {
    position: static;
    width: auto;
    box-shadow: none;
    padding: 6px 10px 10px;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 20px;
  }
  .nav-burger { display: block; }
  .header-cta { display: none; }
  .main-nav .btn { margin-top: 12px; text-align: center; }
}
@media (min-width: 861px) {
  .main-nav .nav-cta-mobile { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 64px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}
@media (max-width: 860px) {
  .hero { padding: 40px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 44px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-head .see-all {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Theme cards (icon + title + one line, no images) ---- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.theme-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 24px 22px;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.theme-card .menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.theme-card .menu-icon svg { width: 19px; height: 19px; }
.theme-card h3 { margin: 0 0 5px; font-size: 1.1rem; font-weight: 700; }
.theme-card:hover h3 { color: var(--orange); }
.theme-card .theme-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 980px) { .theme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .theme-grid { grid-template-columns: 1fr; } }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--yellow-tint);
  color: var(--orange-deep);
}
.tag--blue { background: var(--blue-tint); color: #4e98a8; }
.tag--coral { background: #FDEAE7; color: #d4503f; }

/* ---- Featured: 1 large + 4 small ---- */
.featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}
.article-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }

.feature-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.feature-card .card-body { padding: 22px 24px 26px; }
.feature-card h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 10px 0 8px;
}
.feature-card .card-desc { color: var(--muted); margin: 0 0 10px; }

.featured-side {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 16px;
}
.compact-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
}
.compact-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-small);
}
.compact-card h3 { font-size: 1.08rem; line-height: 1.3; margin: 8px 0 0; }
.card-meta { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-side { grid-template-rows: none; align-content: stretch; }
}
@media (max-width: 480px) {
  .compact-card { grid-template-columns: 128px 1fr; gap: 14px; }
}

/* ---- Latest guides grid ---- */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.latest-card .card-body { padding: 18px 20px 22px; }
.latest-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.latest-card h3 { font-size: 1.1rem; line-height: 1.3; margin: 10px 0 6px; }
.latest-card .card-desc { font-size: 0.92rem; color: var(--muted); margin: 0 0 10px; }
@media (max-width: 980px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .latest-grid { grid-template-columns: 1fr; } }

/* ---- Newsletter ---- */
.newsletter {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 44px 28px;
  text-align: center;
  margin: 24px 0 8px;
}
.newsletter h2 { font-size: 1.6rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.newsletter p { color: var(--muted); max-width: 36em; margin: 0 auto 22px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  min-width: min(320px, 100%);
  background: var(--cream);
  color: var(--ink);
}
.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--orange);
  border-color: transparent;
}

/* ==========================================================================
   Category pages
   ========================================================================== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 22px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

.category-hero { padding: 30px 0 10px; }
.category-hero .menu-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.category-hero .menu-icon svg { width: 23px; height: 23px; }
.category-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.category-line {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36em;
  margin: 0;
}

/* Featured article — large horizontal card */
.category-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}
.category-feature img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.category-feature .card-body { padding: 28px 32px; }
.category-feature .card-body h2 {
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 10px 0 10px;
}
.category-feature .card-desc { color: var(--muted); margin: 0 0 12px; }
@media (max-width: 860px) {
  .category-feature { grid-template-columns: 1fr; }
  .category-feature .card-body { padding: 20px 22px 24px; }
}

/* Article list — one generous editorial row per article */
.article-rows { display: flex; flex-direction: column; gap: 22px; }
.row-card {
  display: grid;
  grid-template-columns: minmax(280px, 410px) 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 22px;
}
.row-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-small);
}
.row-card h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.row-card:hover h3 { color: var(--orange-deep); }
.row-card .card-desc {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 36rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pill-meta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: #F5EDE2;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 36rem; /* match .card-desc so the link aligns with the text block, not the card edge */
}
.circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 0 0 5px var(--yellow-tint);
  transition: background 0.15s ease, transform 0.15s ease;
}
.circle-btn svg { width: 20px; height: 20px; }
.row-card .circle-btn { margin-right: 10px; }
.row-card:hover .circle-btn, .category-feature:hover .circle-btn {
  background: var(--orange-deep);
  transform: translateX(3px);
}
.row-card.is-hidden { display: none; }
@media (max-width: 760px) {
  .row-card { grid-template-columns: 1fr; gap: 16px; padding: 16px 16px 20px; }
  .row-card h3 { font-size: 1.25rem; }
  /* circle sits on the same line as the pill, bottom-right */
  .row-card .circle-btn { justify-self: end; margin: -46px 6px 2px 0; width: 44px; height: 44px; }
}

.show-more-wrap { text-align: center; padding: 28px 0 8px; }

/* Empty category state (pre-content launch) */
.empty-note {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px 28px;
  text-align: center;
}
.empty-note .empty-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.empty-note p { color: var(--muted); max-width: 36em; margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-brand .logo { font-size: 1.25rem; }
.footer-brand p { margin: 10px 0 0; max-width: 26em; }
.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--orange); }
.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.82rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Surprise CTA (custom email capture, replaces Kit embed)
   ========================================================================== */
.surprise-cta {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 40px 0;
  text-align: left;
}
.surprise-cta-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.surprise-cta-body { padding: 28px 28px 24px; }
.surprise-cta-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--ink); }
.surprise-cta-text { color: var(--muted); margin: 0 0 18px; max-width: 34em; }
.surprise-cta .newsletter-form { justify-content: flex-start; }
.surprise-cta-note { font-size: 0.78rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 700px) {
  .surprise-cta { grid-template-columns: 1fr; }
  .surprise-cta-img { height: 180px; }
}
