/*
Theme Name: HeyLove
Theme URI: https://heylovehq.com
Description: Custom theme for the HeyLove marketing site.
Version: 1.0.0
Author: HeyLove
Author URI: https://heylovehq.com
Text Domain: heylove
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
*/


/* ============================================================
   1. PALETTE & TOKENS
   ============================================================ */

:root {
  /* Base Palette */
  --teal: #3D8A8A;
  --gold: #D4B86A;
  --black: #1C1C1C;
  --terra: #D4726A;
  --sage: #6B8E6B;
  --mauve: #C27BA0;
  --warm-white: #F0EBE3;
  --warm-white-dark: #EAE5DC;
  --warm-gray: #3A3632;

  /* Standardized Secondary Text Colors (Solid Hex) */
  --text-secondary: #98928A; /* For excerpts, subtitles on light bg */
  --text-faint: #B9B4AE;     /* For dates, fine print, placeholders on light bg */
  
  --text-dark-secondary: #908D89; /* For body text on dark bg */
  --text-dark-faint: #514F4D;     /* For fine print on dark bg */
  
  --text-teal-secondary: #A7CACA; /* For body text on teal bg */
  --text-teal-faint: #77ADAD;     /* For fine print on teal bg */
  --text-teal-dark: #2A4D4D;      /* For dark text on teal bg */
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

html { 
  scroll-behavior: smooth; 
}

body {
  background: var(--warm-white);
  color: var(--warm-gray);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

input, textarea, select {
  font-family: inherit;
  font-size: 16px;
  color: var(--black);
  background: #fff;
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: none;
}


/* ============================================================
   3. TYPOGRAPHY & UTILITIES
   ============================================================ */

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--black);
}

p {
  font-size: 16px;
  line-height: 1.6;
}

button,
.button {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: none;
}

/* Section Labels */
.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.section-label--terra { color: var(--terra); }
.section-label--teal  { color: var(--teal); }
.section-label--mauve { color: var(--mauve); }
.section-label--sage  { color: var(--sage); }
.section-label--gold  { color: var(--gold); }

/* Animations */
@keyframes photoDrift {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.18) translate(-3%, 2%); }
}


/* ============================================================
   4. GLOBAL COMPONENTS
   ============================================================ */

/* Universal Action Buttons (Non-CTA) */
.button-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 11px;
  text-decoration: none;
  letter-spacing: -0.01em;
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button-action::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.button-action:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.button-action:hover::before {
  clip-path: polygon(0% 0%, 120% 0%, 100% 100%, 0% 100%);
}

.button-action-arrow {
  display: inline-block;
  margin-left: 10px;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.button-action:hover .button-action-arrow {
  transform: translateX(4px);
}

.button-action--terra { background: var(--terra); }
.button-action--teal  { background: var(--teal); }
.button-action--mauve { background: var(--mauve); }
.button-action--sage  { background: var(--sage); }
.button-action--gold  { background: var(--gold); }

.button-action--terra::before { background: #b85a53; }
.button-action--teal::before  { background: #2e6f6f; }
.button-action--mauve::before { background: #a46288; }
.button-action--sage::before  { background: #567456; }
.button-action--gold::before  { background: #b89c52; }

/* Photo Frame */
.photo-frame {
  border-radius: 14px;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: photoDrift 18s ease-in-out infinite alternate;
}

.photo-frame:nth-child(even) img {
  animation-delay: -7s;
  animation-direction: alternate-reverse;
}

.photo-frame--portrait  { aspect-ratio: 4/5; }
.photo-frame--landscape { aspect-ratio: 3/2; }
.photo-frame--wide      { aspect-ratio: 16/10; }
.photo-frame--square    { aspect-ratio: 1/1; }

/* Branded placeholder when a post has no featured image: the HeyLove logo
   centered on a soft brand wash, instead of an empty frame. */
.photo-frame--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 28% 20%, rgba(61, 138, 138, 0.12), transparent 60%),
    radial-gradient(120% 120% at 82% 88%, rgba(212, 114, 106, 0.12), transparent 55%),
    var(--warm-white-dark);
}
.photo-frame--logo img {
  width: 46%;
  height: auto;
  max-height: 58%;
  object-fit: contain;
  animation: none;
}

/* Invitation CTA */
.invitation {
  padding: 112px 40px;
  background: var(--warm-white-dark);
  text-align: center;
}

.invitation h2 {
  font-size: 56px;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 640px;
  margin: 0 auto 32px;
}

.invitation-cta {
  display: inline-flex;
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ff5757, #8c52ff);
  color: white;
  padding: 18px 48px;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(140, 82, 255, 0.15);
  transition: filter 0.6s ease, box-shadow 0.5s ease;
}

.invitation-cta:hover { filter: hue-rotate(40deg) brightness(1.08); box-shadow: 0 4px 24px rgba(82, 140, 255, 0.25); }

.invitation-sub {
  margin-top: 16px;
}

.invitation p {
  font-size: 14px;
  color: var(--text-faint);
}

@media (max-width: 991.98px) {
  .invitation { padding: 64px 24px; }
  .invitation h2 { font-size: 36px; }
  .invitation-cta { padding: 16px 36px; font-size: 16px; }
}


/* ============================================================
   5. LAYOUT: HEADER & NAV
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(240, 235, 227, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(28, 28, 28, 0.04);
  border-radius: 0 0 20px 20px;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 6px;
}

.nav-links li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links li + li::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--mauve);
  opacity: 0.5;
  flex-shrink: 0;
}

.nav-links a,
.nav-login {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--warm-gray);
  transition: background 0.25s, color 0.25s;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 100px;
}

.nav-links a:hover {
  background: rgba(28, 28, 28, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login:hover {
  color: var(--mauve);
}

.nav-cta {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ff5757, #8c52ff);
  color: white;
  padding: 10px 26px;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(140, 82, 255, 0.15);
  transition: filter 0.6s ease, box-shadow 0.5s ease;
}

.nav-cta:hover {
  filter: hue-rotate(40deg) brightness(1.08);
  box-shadow: 0 4px 24px rgba(82, 140, 255, 0.25);
}

/* Active link logic */
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current-menu-parent > a,
.nav-links .current-menu-ancestor > a,
.nav-links .current_page_item > a,
.nav-links .current_page_parent > a,
.nav-links .current_page_ancestor > a,
.nav-links .current-page-item > a,
.nav-links .current-page-parent > a,
.nav-links .current-page-ancestor > a {
  background: rgba(28, 28, 28, 0.06);
  color: var(--black);
}

/* Prevent WordPress from rendering dropdown menus */
.nav-links ul.sub-menu,
.mobile-menu ul.sub-menu {
  display: none !important;
}

@media (max-width: 991.98px) {
  .site-nav { padding: 16px 24px; border-radius: 0 0 16px 16px; }
  .nav-actions { gap: 14px; }
  .nav-cta { font-size: 13px; padding: 8px 20px; }
  .nav-dot { display: none; }
}

/* Hamburger & Mobile Menu */
.nav-hamburger {
  display: flex;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 102;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--warm-gray);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.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-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--warm-white);
  z-index: 99;
  padding: 100px 32px 40px;
  flex-direction: column;
  overflow-y: auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--black);
  padding: 16px 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.06);
  transition: color 0.2s;
}

.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--warm-gray); }

/* Active link logic - Mobile Menu */
.mobile-menu a.active,
.mobile-menu .current-menu-item > a,
.mobile-menu .current-menu-parent > a,
.mobile-menu .current-menu-ancestor > a,
.mobile-menu .current_page_item > a,
.mobile-menu .current_page_parent > a,
.mobile-menu .current_page_ancestor > a,
.mobile-menu .current-page-item > a,
.mobile-menu .current-page-parent > a,
.mobile-menu .current-page-ancestor > a { 
  color: var(--teal); 
}

.mobile-menu-login {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(28, 28, 28, 0.06);
}

.mobile-menu-login a {
  font-size: 16px;
  font-weight: 600;
  color: var(--warm-gray);
  border-bottom: none;
  padding: 8px 0;
}

.mobile-menu ul { display: contents; }


/* ============================================================
   6. LAYOUT: FOOTER
   ============================================================ */

.site-footer {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(28, 28, 28, 0.08);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-right {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-right a {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-right a:hover { color: var(--black); }

/* Active link logic - Footer */
.footer-right .current-menu-item > a,
.footer-right .current-menu-parent > a,
.footer-right .current-menu-ancestor > a,
.footer-right .current_page_item > a,
.footer-right .current_page_parent > a,
.footer-right .current_page_ancestor > a,
.footer-right .current-page-item > a,
.footer-right .current-page-parent > a,
.footer-right .current-page-ancestor > a {
  color: var(--black);
  font-weight: 600;
}

.footer-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.lang-toggle { 
  display: flex; 
  gap: 12px; 
  font-size: 13px; 
}

.lang-toggle a { color: var(--text-faint); }
.lang-toggle a.active { color: var(--black); font-weight: 600; }

@media (max-width: 991.98px) {
  .site-footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 32px 24px;
  }
  .footer-right {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .footer-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 32px;
    text-align: center;
  }
}


/* ============================================================
   7. BLOG CONTENT
   ============================================================ */

/* Post Item Utilities */
.post-cat {
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 12px;
}

.post-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--black);
  display: block;
}

.post-headline:hover { color: var(--warm-gray); }

.post-excerpt {
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: 12px;
}

.post-date {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 16px;
}

/* Blog Index */
.blog-header {
  padding: 140px 40px 64px;
  max-width: 1060px;
  margin: 0 auto;
}

.blog-header h1 {
  font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.featured-post {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px 96px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.featured-post .photo-frame { aspect-ratio: 4/5; }
.featured-post .post-headline { font-size: 38px; margin-bottom: 4px; }
.featured-post .post-excerpt { font-size: 17px; max-width: 440px; }

.post-list {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
  border-top: 1px solid rgba(28, 28, 28, 0.06);
}

.post-list-item {
  padding: 56px 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.06);
}

.post-list-item--text { max-width: 620px; }
.post-list-item--text .post-headline { font-size: 26px; }
.post-list-item--text .post-excerpt { font-size: 15px; max-width: 500px; }
.post-list-item--text:nth-child(even) { margin-left: auto; text-align: right; }
.post-list-item--text:nth-child(even) .post-excerpt { margin-left: auto; }

.post-list-item--photo {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.post-list-item--photo .photo-frame { aspect-ratio: 3/2; }
.post-list-item--photo .post-headline { font-size: 26px; }
.post-list-item--photo .post-excerpt { font-size: 15px; }

.post-list-item--photo-right { grid-template-columns: 1.2fr 1fr; }
.post-list-item--photo-right .post-list-item-photo { order: 2; }
.post-list-item--photo-right .post-list-item-text { order: 1; }

.post-list-item--photo-left { grid-template-columns: 1fr 1.2fr; }

@media (max-width: 991.98px) {
  .blog-header { padding: 120px 24px 40px; }
  .blog-header h1 { font-size: 28px; }
  .featured-post { padding: 0 24px 64px; grid-template-columns: 1fr; gap: 32px; }
  .featured-post .post-headline { font-size: 28px; }
  .post-list { padding: 0 24px; }
  .post-list-item--photo { grid-template-columns: 1fr; gap: 24px; }
  .post-list-item--photo-right .post-list-item-photo { order: 0; }
  .post-list-item--photo-right .post-list-item-text { order: 0; }
  .post-list-item--text:nth-child(even) { margin-left: 0; text-align: left; }
  .post-list-item--text:nth-child(even) .post-excerpt { margin-left: 0; }
}

/* Single Post */
.post-header {
  padding: 140px 40px 48px;
  max-width: 820px;
  margin: 0 auto;
}

.post-header h1 {
  font-size: 46px;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 680px;
}

.post-header .post-date { margin-top: 0; font-size: 14px; }

.post-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 40px 0;
}

.post-hero img { width: 100%; height: auto; border-radius: 14px; }

.post-body figure { margin: 40px 0; }
.post-body img { max-width: 100%; height: auto; border-radius: 14px; }

.post-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 40px 80px;
}

.post-body p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 1.6em;
}

.post-body p:last-child { margin-bottom: 0; }
.post-body strong { color: var(--black); font-weight: 700; }

.post-body ul { list-style: disc; padding-left: 1.5em; }
.post-body ol { list-style: decimal; padding-left: 1.5em; }

.post-body h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2.4em 0 0.6em;
}

.post-body h2:first-child { margin-top: 0; }

.post-body blockquote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--teal);
  padding: 40px 0;
  margin: 2em 0;
  border-top: 2px solid rgba(61, 138, 138, 0.2);
  border-bottom: 2px solid rgba(61, 138, 138, 0.2);
}

.post-body blockquote p { font-size: inherit; line-height: inherit; margin-bottom: 0; }

.post-body .alignwide,
.post-body .alignfull {
  width: calc(100% + 100px);
  margin-left: -50px;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 12px;
  display: block;
}

@media (max-width: 991.98px) {
  .post-header { padding: 120px 24px 32px; }
  .post-header h1 { font-size: 30px; }
  .post-hero { padding: 24px 24px 0; }
  .post-body { padding: 40px 24px 60px; }
  .post-body p { font-size: 16px; }
  .post-body blockquote { font-size: 20px; }
  .post-body .alignwide,
  .post-body .alignfull { width: 100%; margin-left: 0; }
}

/* More Posts Widget */
.more-posts {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 40px 100px;
  border-top: 1px solid rgba(28, 28, 28, 0.06);
}

.more-posts .section-label { margin-bottom: 32px; }

.more-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.more-posts-grid .post-cat { font-size: 10px; margin-bottom: 8px; }
.more-posts-grid .post-headline {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.more-posts-grid .post-date { font-size: 12px; margin-top: 0; color: var(--text-faint); }

@media (max-width: 991.98px) {
  .more-posts { padding: 40px 24px 60px; }
  .more-posts-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Post Tags */
.post-tags {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags a {
  font-size: 13px;
  color: var(--text-faint);
  border: 1px solid rgba(28, 28, 28, 0.06);
  border-radius: 100px;
  padding: 6px 14px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.post-tags a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

@media (max-width: 991.98px) {
  .post-tags { padding: 0 24px 60px; }
}

/* Tag Index */
.tag-index {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-index-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid rgba(28, 28, 28, 0.06);
  border-radius: 100px;
  padding: 10px 20px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tag-index-item:hover {
  border-color: var(--teal);
}

.tag-index-item:hover h3 { color: var(--teal); }

.tag-index-item h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.tag-index-count {
  font-size: 13px;
  color: var(--text-faint);
}

@media (max-width: 991.98px) {
  .tag-index { padding: 0 24px 60px; }
}

/* Archive Header */
.archive-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin-top: 12px;
}

.archive-empty {
  max-width: 1060px;
  margin: 0 auto;
  padding: 80px 40px;
  color: var(--text-secondary);
}

/* Search */
.search-title {
  font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.search-empty {
  max-width: 1060px;
  margin: 0 auto;
  padding: 80px 40px;
  color: var(--text-secondary);
}

.search-empty .search-form { margin-top: 24px; }

.search-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
}

.search-form .search-field {
  flex: 1;
  border: 1.5px solid rgba(28, 28, 28, 0.08);
  border-radius: 12px;
  padding: 13px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form .search-field:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61, 138, 138, 0.1);
}

.search-form .search-submit {
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  transition: transform 0.2s ease;
}

.search-form .search-submit:hover { transform: translateY(-2px); }

/* Search box placement on the blog index, archives, and results pages —
   aligned with the 1060px content column, sitting under the page header. */
.blog-search-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px 56px;
}

/* On the 404, the search box sits inside the centered error block. */
.error-404-search-prompt {
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 15px;
}
.error-404 .search-form { margin-left: auto; margin-right: auto; }

@media (max-width: 991.98px) {
  .search-title { font-size: 28px; }
  .archive-empty, .search-empty { padding: 60px 24px; }
  .blog-search-wrap { padding: 0 24px 40px; }
}

/* Pagination */
.pagination .nav-links {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination .nav-links a,
.pagination .nav-links span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination .nav-links a {
  color: var(--text-secondary);
}

.pagination .nav-links a:hover {
  background: rgba(28, 28, 28, 0.06);
  color: var(--black);
}

.pagination .nav-links .current {
  background: var(--black);
  color: var(--warm-white);
}

.pagination .nav-links .prev,
.pagination .nav-links .next { color: var(--text-faint); }

.pagination .nav-links .dots {
  color: var(--text-faint);
  padding: 8px 4px;
}

@media (max-width: 991.98px) {
  .pagination .nav-links { padding: 36px 24px; }
}

/* 404 */
.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  text-align: center;
}

.error-404 h1 {
  font-size: 48px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.error-404 p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

@media (max-width: 991.98px) {
  .error-404 { padding: 120px 24px 60px; }
  .error-404 h1 { font-size: 34px; }
}


/* ============================================================
   8. PAGE TEMPLATES
   ============================================================ */

/* Get The App & Get On The List */
.get-app,
.get-on-the-list {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  text-align: center;
}

.get-app h1,
.get-on-the-list h1 {
  font-size: 48px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.get-app-subtitle,
.get-on-the-list-subtitle { margin-bottom: 48px; }
.get-app-subtitle p,
.get-on-the-list-subtitle p { font-size: 17px; }

.store-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 14px;
  background: var(--black);
  color: var(--warm-white);
  transition: transform 0.2s, opacity 0.2s;
}

.store-badge:hover { transform: translateY(-2px); opacity: 0.9; }
.store-badge-icon { font-size: 22px; line-height: 1; }

.qr-box {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid rgba(28, 28, 28, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.qr-box img { width: 140px; height: 140px; border-radius: 4px; }
.qr-label p { font-size: 14px; color: var(--text-faint); }

.get-app-divider {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 32px 0;
}

.get-app-phone-text { margin-bottom: 16px; }
.get-app-phone-text p { font-size: 15px; }

.get-app-phone-form,
.get-on-the-list-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.get-app-phone-form input,
.get-on-the-list-form input {
  border: 1.5px solid rgba(28, 28, 28, 0.1);
  border-radius: 12px;
  padding: 13px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.get-app-phone-form input { width: 220px; }
.get-on-the-list-form input { width: 280px; }

.get-app-phone-form input::placeholder,
.get-on-the-list-form input::placeholder { color: var(--text-faint); }

.get-app-phone-form input:focus,
.get-on-the-list-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61, 138, 138, 0.1);
}

.get-app-fine-print,
.get-on-the-list-fine-print { margin-top: 48px; }
.get-app-fine-print p,
.get-on-the-list-fine-print p { font-size: 13px; color: var(--text-faint); }

.signup-status {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
}
.signup-status.is-success { color: var(--sage); }
.signup-status.is-error { color: var(--terra); }

@media (max-width: 991.98px) {
  .get-app,
  .get-on-the-list { padding: 120px 24px 60px; }
  .get-app h1,
  .get-on-the-list h1 { font-size: 34px; }
  .store-badges {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .store-badge { justify-content: center; }
  .get-on-the-list-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Features Page */
.features-header {
  max-width: 1060px;
  margin: 0 auto;
  padding: 120px 40px 48px;
}

.features-header h1 {
  font-size: 48px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 20px;
}

.features-header-sub { max-width: 520px; }
.features-header p { font-size: 18px; line-height: 1.65; }

@media (max-width: 991.98px) {
  .features-header { padding: 120px 24px 48px; }
  .features-header h1 { font-size: 36px; }
}

@media (max-width: 575.98px) {
  .features-header h1 { font-size: 28px; }
}

/* Simple Page */
.simple-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

.simple-header { padding: 152px 0 48px; }
.simple-header h1 {
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.simple-header-sub { font-size: 17px; }

@media (max-width: 991.98px) {
  .simple-page { padding: 0 24px; }
  .simple-header { padding: 120px 0 36px; }
  .simple-header h1 { font-size: 34px; }
}

@media (max-width: 575.98px) {
  .simple-header h1 { font-size: 28px; }
}

/* Plans Page - Header */
.plans-top { padding: 136px 40px 32px; }

.plans-header {
  max-width: 940px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: center;
}

.plans-header-text h1 {
  font-size: 52px;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.plans-header-sub p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 420px;
}

.plans-header-sub strong {
  color: var(--black);
  font-weight: 700;
}

/* Plans Page - Toggle */
.plans-toggle-wrap { display: flex; justify-content: center; }

.plans-toggle {
  display: inline-flex;
  gap: 4px;
  background: rgba(28, 28, 28, 0.05);
  border-radius: 14px;
  padding: 5px;
}

.plans-toggle-btn {
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 11px;
  color: var(--text-secondary);
  background: transparent;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plans-toggle-btn:hover { color: #8c8879; }

.plans-toggle-btn.active {
  background: #fff;
  color: var(--warm-gray);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.plans-toggle-badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--teal);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Plans Page - Pricing Tiers */
.plans-tiers { padding: 12px 40px 0; }

.plans-free {
  max-width: 940px;
  margin: 0 auto 32px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.plans-free .section-label { margin-bottom: 0; }

.plans-free-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--black);
}

.plans-free-sep {
  color: var(--text-faint);
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
}

.plans-free-detail { font-size: 14px; flex: 1; min-width: 200px; }

.plans-cards {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 0 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.plans-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plans-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.plans-card--featured {
  background: var(--teal);
  margin-top: -16px;
  padding-bottom: 44px;
  box-shadow: 0 4px 24px rgba(61, 138, 138, 0.18);
}

.plans-card--featured:hover { box-shadow: 0 12px 40px rgba(61, 138, 138, 0.25); }
.plans-card--featured .section-label { color: rgba(255, 255, 255, 0.4) !important; }

.plans-card-price { line-height: 1; margin-bottom: 4px; }

.plans-card-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.04em;
  color: var(--black);
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.plans-card--featured .plans-card-amount { color: #fff; }

.plans-card-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-faint);
  margin-left: 2px;
}

.plans-card--featured .plans-card-period { color: var(--text-teal-faint); }

.plans-card-billing {
  font-size: 12px;
  color: var(--sage);
  height: 18px;
  margin-top: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.plans-card--featured .plans-card-billing { color: var(--text-teal-faint); }
.yearly-active .plans-card-billing { opacity: 1; }

.plans-card-crew {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 20px;
  min-height: 20px;
  transition: opacity 0.2s ease;
}

.plans-card--featured .plans-card-crew { color: var(--gold); }
.plans-card-desc { font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.plans-card--featured .plans-card-desc { color: var(--text-teal-secondary); }

.plans-card-limits {
  border-top: 1px solid rgba(28, 28, 28, 0.06);
  padding-top: 20px;
  margin-top: auto;
}

.plans-card--featured .plans-card-limits { border-top-color: rgba(255, 255, 255, 0.1); }
.plans-card-limits p { font-size: 13px; line-height: 1.9; }
.plans-card--featured .plans-card-limits p { color: var(--text-teal-faint); }

/* Plans Page - Split Section */
.plans-split {
  background: var(--black);
  padding: 88px 40px 80px;
}

.plans-split-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.plans-split-photo { position: sticky; top: 100px; }
.plans-split h2 {
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--gold);
  margin-bottom: 20px;
}
.plans-split p { color: var(--text-dark-secondary); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }

.plans-savings { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; }
.plans-savings-row { display: flex; align-items: baseline; gap: 16px; font-size: 14px; }
.plans-savings-tier {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-faint);
  width: 88px;
  flex-shrink: 0;
}
.plans-savings-prices { color: var(--text-dark-faint); }
.plans-savings-original { text-decoration: line-through; margin-right: 10px; }
.plans-savings-crew { color: var(--gold); font-weight: 600; }

.plans-mechanics {
  border-top: 1px solid rgba(240, 235, 227, 0.06);
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.plans-mechanics span { font-size: 13px; color: var(--text-dark-faint); white-space: nowrap; }

/* Plans Page - Details Section */
.plans-details { padding: 88px 40px; }
.plans-details-inner { max-width: 800px; margin: 0 auto; }
.plans-details-body { margin-bottom: 72px; }
.plans-details-body p { font-size: 17px; line-height: 1.8; }
.plans-details-body strong { color: var(--black); font-weight: 600; }

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
}

.plans-grid-item h3 {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.35;
}

.plans-grid-item p { font-size: 14px; line-height: 1.7; }
.plans-grid-item-body p + p { margin-top: 0.6em; }

/* Plans Media Queries */
@media (max-width: 991.98px) {
  .plans-top { padding: 110px 24px 24px; }
  .plans-header { gap: 40px; }
  .plans-header-text h1 { font-size: 36px; }
  .plans-tiers { padding: 12px 24px 0; }
  .plans-split { padding: 64px 24px; }
  .plans-split-inner { gap: 40px; }
  .plans-split h2 { font-size: 32px; }
  .plans-details { padding: 64px 24px; }
}

@media (max-width: 819.98px) {
  .plans-header { grid-template-columns: 1fr; gap: 16px; }
  .plans-header .photo-frame { display: none; }
  .plans-free {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .plans-free-sep { display: none; }
  .plans-cards { grid-template-columns: 1fr; max-width: 420px; padding-bottom: 60px; }
  .plans-card--featured { margin-top: 0; }
  .plans-split-inner { grid-template-columns: 1fr; gap: 32px; }
  .plans-split-photo { position: static; max-width: 260px; }
  .plans-mechanics { flex-direction: column; gap: 6px; }
  .plans-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 575.98px) {
  .plans-top { padding: 88px 24px 16px; }
  .plans-header { margin-bottom: 16px; }
  .plans-header-text h1 { font-size: 28px; margin-bottom: 10px; }
  .plans-header-sub p { font-size: 15px; }
  .plans-toggle-btn { font-size: 13px; padding: 10px 20px; }
  .plans-card-amount { font-size: 32px; }
  .plans-split { padding: 48px 24px; }
  .plans-split h2 { font-size: 24px; }
  .plans-split-photo { max-width: 220px; }
  .plans-details { padding: 48px 24px; }
  .plans-details-body { margin-bottom: 32px; }
}


/* ============================================================
   9. ACF CONTENT COMPONENTS
   ============================================================ */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 40px 80px;
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: photoDrift 16s ease-in-out infinite alternate;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-text h1 {
  font-size: 72px;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--warm-white);
  margin-bottom: 20px;
}

.hero-subtitle { max-width: 420px; }
.hero p { font-size: 18px; color: var(--text-dark-secondary); }

@media (max-width: 991.98px) {
  .hero { padding: 0 24px 60px; }
  .hero-text h1 { font-size: 36px; }
}

/* Page Hero Section */
.page-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 152px 40px 48px;
}

.page-hero h1 {
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.page-hero-sub { max-width: 480px; font-size: 17px; }

@media (max-width: 991.98px) {
  .page-hero { padding: 120px 24px 36px; }
  .page-hero h1 { font-size: 34px; }
}

@media (max-width: 575.98px) {
  .page-hero h1 { font-size: 28px; }
}

/* Showcase Section */
.showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 160px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
}

.showcase-item:last-child { margin-bottom: 0; }
.showcase-item--photo-right { grid-template-columns: 1fr 1.2fr; }
.showcase-item--photo-right .showcase-item-photo { order: 2; }
.showcase-item--photo-right .showcase-item-text { order: 1; }

.showcase-item h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.showcase-item p { line-height: 1.7; }

@media (max-width: 991.98px) {
  .showcase { padding: 0 24px 80px; }
  .showcase-item { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
  .showcase-item--photo-right .showcase-item-photo { order: 0; }
  .showcase-item--photo-right .showcase-item-text { order: 0; }
}

/* Centered Statement Section */
.centered-statement {
  padding: 140px 40px;
  display: flex;
  justify-content: center;
}

.centered-statement-inner {
  max-width: 640px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.centered-statement-inner p {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.centered-statement-inner strong { color: var(--black); font-weight: 700; }

@media (max-width: 991.98px) {
  .centered-statement { padding: 80px 24px; }
  .centered-statement-inner p { font-size: 24px; }
}

/* Full-Bleed Callout Section */
.full-bleed-callout {
  background: var(--teal);
  padding: 120px 40px;
  text-align: center;
}

.full-bleed-callout-inner {
  max-width: 600px;
  margin: 0 auto;
}

.full-bleed-callout-inner h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.full-bleed-callout p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-teal-dark);
}

@media (max-width: 991.98px) {
  .full-bleed-callout { padding: 72px 24px; }
  .full-bleed-callout-inner h2 { font-size: 28px; }
}

/* Portrait Grid Section */
.portrait-grid {
  background: var(--black);
  padding: 88px 0;
}

.portrait-grid-headline {
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--gold);
  margin-bottom: 48px;
  max-width: 500px;
}

.portrait-grid-col:nth-child(3n+1) .photo-frame img { animation-delay: -2s; }
.portrait-grid-col:nth-child(3n+2) .photo-frame img { animation-delay: -7s; animation-direction: alternate-reverse; }
.portrait-grid-col:nth-child(3n+3) .photo-frame img { animation-delay: -12s; }

.portrait-grid-col:nth-child(3n+2) { margin-top: 40px; }
.portrait-grid-col:nth-child(3n+3) { margin-top: 80px; }

@media (max-width: 991.98px) {
  .portrait-grid { padding: 56px 0; }
  .portrait-grid-headline { font-size: 28px; }
  .portrait-grid-col:nth-child(3n+2) { margin-top: 0; }
  .portrait-grid-col:nth-child(3n+3) { margin-top: 0; }
}

/* Story Section */
.story { padding: 152px 40px 80px; }

.story-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 64px;
  align-items: start;
}

.story-inner--photo-right { grid-template-columns: 1fr minmax(220px, 300px); }
.story-inner--photo-right .story-photo { order: 2; }
.story-inner--photo-right .story-text { order: 1; }

.story-photo { position: sticky; top: 100px; }
.story-text { padding-top: 12px; }

.story-text h1 {
  font-size: 42px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 32px;
}

.story-body p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 1.4em;
  max-width: 520px;
}

.story-body p:last-child { margin-bottom: 0; }
.story-body p strong { color: var(--black); font-weight: 600; }

@media (max-width: 991.98px) {
  .story { padding: 120px 24px 40px; }
  .story-inner { gap: 40px; }
  .story-text h1 { font-size: 36px; }
}

@media (max-width: 819.98px) {
  .story-inner { grid-template-columns: 1fr; gap: 24px; }
  .story-inner--photo-right .story-photo { order: 0; }
  .story-inner--photo-right .story-text { order: 0; }
  .story-photo { position: static; }
  .story-photo .photo-frame { max-width: 60%; }
  .story-text h1 { font-size: 32px; }
}

@media (max-width: 575.98px) {
  .story-photo .photo-frame { max-width: 100%; }
  .story-text h1 { font-size: 28px; }
}

/* Detail Grid Section */
.detail-grid-section { padding: 80px 40px; }
.detail-grid-inner { max-width: 1000px; margin: 0 auto; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}

.detail-item h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.detail-item p { font-size: 15px; line-height: 1.7; }

@media (max-width: 991.98px) {
  .detail-grid-section { padding: 60px 24px; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* FAQ Section */
.faq-section { padding: 0; }

.faq-group {
  padding: 52px 0;
  border-top: 1px solid rgba(28, 28, 28, 0.06);
}

.faq-group .section-label { margin-bottom: 40px; }
.faq-item { margin-bottom: 44px; }
.faq-item:last-child { margin-bottom: 0; }

.faq-item h2 {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.faq-item p { line-height: 1.75; max-width: 620px; }
.faq-item p + p { margin-top: 0.8em; }

.faq-contact {
  padding: 64px 0 80px;
  border-top: 1px solid rgba(28, 28, 28, 0.06);
}

.faq-contact a { font-weight: 600; }
.faq-contact a:hover { text-decoration: underline; }

@media (max-width: 991.98px) {
  .faq-section { padding: 0 24px; }
  .faq-group { padding: 40px 0; }
  .faq-contact { padding: 48px 24px 60px; }
}

@media (max-width: 575.98px) {
  .faq-item h2 { font-size: 17px; }
}

/* Form Fields & Contact Form */
.form-field label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--black);
  display: block;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1.5px solid rgba(28, 28, 28, 0.08);
  border-radius: 12px;
  padding: 15px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61, 138, 138, 0.1);
}

.form-field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }

.contact-form-section { padding: 0 0 100px; }
.contact-form { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }

.contact-form .button-action {
  align-self: flex-start;
}

.contact-note { font-size: 14px; color: var(--text-faint); }

/* Legal Content Section */
.legal-content { position: relative; }
.legal-header { padding: 0 0 48px; }
.legal-date { font-size: 15px; color: var(--text-faint); }

.legal-jump {
  padding: 0 0 48px;
  display: flex;
  gap: 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.legal-jump a {
  font-weight: 600;
  font-size: 14px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.legal-jump a:hover { border-bottom-color: var(--teal); }

.legal-body { padding: 0 0 80px; }

.legal-body h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 32px;
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid rgba(28, 28, 28, 0.06);
}

.legal-body h2:first-child { padding-top: 0; margin-top: 0; border-top: none; }
.legal-body h3 { font-weight: 700; font-size: 17px; line-height: 1.3; margin: 28px 0 8px; }
.legal-body h3:first-child { margin-top: 0; }

.legal-body p { font-size: 15px; line-height: 1.8; margin-bottom: 12px; max-width: 640px; }
.legal-body ul { margin: 0 0 16px; }

.legal-body ul li {
  font-size: 15px;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.5;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--warm-gray);
  opacity: 0;
  background: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: opacity 0.3s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 50;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); color: var(--black); }

@media (max-width: 575.98px) {
  .legal-body h2 { font-size: 22px; }
}

/* Highlight Light Section */
.highlight-light { padding: 100px 40px; }

.highlight-light-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.highlight-light-inner--photo-right { grid-template-columns: 1.25fr 1fr; }
.highlight-light-inner--photo-right .highlight-light-photo { order: 2; }
.highlight-light-inner--photo-right .highlight-light-text { order: 1; }

.highlight-light-text h2 {
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.highlight-light-body p { line-height: 1.7; margin-bottom: 36px; }

.highlight-light-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-bottom: 36px;
}

.highlight-light-grid-item h3 {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.highlight-light-grid-item p { font-size: 13px; }

@media (max-width: 991.98px) {
  .highlight-light { padding: 64px 24px; }
  .highlight-light-text h2 { font-size: 28px; }
}

@media (max-width: 819.98px) {
  .highlight-light-inner { grid-template-columns: 1fr; gap: 32px; }
  .highlight-light-inner--photo-right .highlight-light-photo { order: 0; }
  .highlight-light-inner--photo-right .highlight-light-text { order: 0; }
  .highlight-light-photo .photo-frame { max-width: 480px; }
}

@media (max-width: 575.98px) {
  .highlight-light-text h2 { font-size: 24px; }
  .highlight-light-grid { grid-template-columns: 1fr; gap: 24px; }
  .highlight-light-photo .photo-frame { max-width: 100%; }
}

/* ============================================================
   HIGHLIGHT DARK
   ============================================================ */

.highlight-dark {
  background: var(--black);
  padding: 100px 40px;
}

.highlight-dark-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.highlight-dark-inner--photo-right {
  grid-template-columns: 1.25fr 1fr;
}

.highlight-dark-inner--photo-right .highlight-dark-photo {
  order: 2;
}

.highlight-dark-inner--photo-right .highlight-dark-text {
  order: 1;
}

/* Force label to be distinct but crisp on dark background */
.highlight-dark-text .section-label {
  color: var(--teal);
}

.highlight-dark-text h2 {
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--gold);
}

.highlight-dark-body p {
  line-height: 1.7;
  margin-bottom: 36px;
  color: var(--text-dark-secondary);
}

.highlight-dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-bottom: 36px;
}

.highlight-dark-grid-item h3 {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--warm-white);
}

.highlight-dark-grid-item p {
  font-size: 13px;
  color: var(--text-dark-faint);
}

@media (max-width: 991.98px) {
  .highlight-dark { padding: 64px 24px; }
  .highlight-dark-text h2 { font-size: 28px; }
}

@media (max-width: 819.98px) {
  .highlight-dark-inner { grid-template-columns: 1fr; gap: 32px; }
  .highlight-dark-inner--photo-right .highlight-dark-photo { order: 0; }
  .highlight-dark-inner--photo-right .highlight-dark-text { order: 0; }
  .highlight-dark-photo .photo-frame { max-width: 480px; }
}

@media (max-width: 575.98px) {
  .highlight-dark-text h2 { font-size: 24px; }
  .highlight-dark-grid { grid-template-columns: 1fr; gap: 24px; }
  .highlight-dark-photo .photo-frame { max-width: 100%; }
}


/* ============================================================
   HIGHLIGHT TEXT ONLY
   ============================================================ */

.highlight-text-only {
  padding: 100px 40px;
}

.highlight-text-only-inner {
  max-width: 760px;
  margin: 0 auto;
}

.highlight-text-only-text h2 {
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--black);
}

.highlight-text-only-body p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 540px;
  color: var(--text-secondary);
}

.highlight-text-only-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-bottom: 36px;
}

.highlight-text-only-grid-item h3 {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--black);
}

.highlight-text-only-grid-item p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (max-width: 991.98px) {
  .highlight-text-only { padding: 64px 24px; }
  .highlight-text-only-text h2 { font-size: 28px; }
}

@media (max-width: 575.98px) {
  .highlight-text-only-text h2 { font-size: 24px; }
  .highlight-text-only-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   DUAL DETAIL BLOCKS
   ============================================================ */

.dual-detail-blocks-section {
  padding: 100px 40px;
}

.dual-detail-blocks {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.dual-detail-block h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--black);
}

.dual-detail-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* 
   Overrides the default 2-col detail grid to stack perfectly 
   inside the single column, matching the mockup's tight gap 
*/
.dual-detail-block .detail-grid {
  grid-template-columns: 1fr; 
  gap: 16px;
  margin-bottom: 0;
}

/* Match the exact typography for the nested grid items */
.dual-detail-block .detail-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dual-detail-block .detail-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .dual-detail-blocks-section { padding: 64px 24px; }
  .dual-detail-blocks { grid-template-columns: 1fr; gap: 48px; }
}


/* ============================================================
   SIBLING PAGE NAVIGATION
   ============================================================ */

.sibling-nav {
  border-top: 1px solid rgba(28, 28, 28, 0.06);
  padding: 56px 40px;
}

.sibling-nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.sibling-nav-link { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  text-decoration: none;
}

.sibling-nav-prev { margin-right: auto; text-align: left; }
.sibling-nav-next { margin-left: auto; text-align: right; }

.sibling-nav-text { 
  display: flex; 
  flex-direction: column; 
}

.sibling-nav .section-label { 
  color: var(--text-faint); 
  margin-bottom: 4px; 
  transition: color 0.2s ease;
}

.sibling-nav .button-action-arrow { 
  margin: 0; 
  color: var(--text-faint); 
  font-size: 20px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.sibling-nav h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--black);
  margin: 0;
  transition: color 0.2s ease;
}

/* Hover States: Solid color shift */
.sibling-nav-link:hover h3 { color: var(--teal); }
.sibling-nav-link:hover .section-label,
.sibling-nav-link:hover .button-action-arrow { 
  color: var(--teal); 
}

.sibling-nav-prev:hover .button-action-arrow { transform: translateX(-4px); }
.sibling-nav-next:hover .button-action-arrow { transform: translateX(4px); }

/* Responsive */
@media (max-width: 991.98px) {
  .sibling-nav { padding: 40px 24px; }
  .sibling-nav h3 { font-size: 15px; }
}

@media (max-width: 575.98px) {
  .sibling-nav-inner { 
    flex-direction: column; 
    align-items: flex-start; /* Force left alignment when stacked */
    gap: 32px; 
  }
  
  .sibling-nav-next { 
    margin-left: 0; 
    text-align: left; 
    flex-direction: row-reverse; /* Flips the Arrow to the left so it aligns with 'Previous' */
  }
}