/* ============================================
   Online Yoga Planet — home.css
   Flagship homepage positioning OYP as THE YTT directory
   Extends /ytt/styles.css (cream/sage/gold palette)
   ============================================ */

/* ---------- Hero ---------- */
.home-hero {
  padding: 100px 24px 80px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 120%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 165, 76, 0.08) 0%,
    transparent 50%
  );
  pointer-events: none;
}
.home-hero .container {
  max-width: 920px;
  position: relative;
  z-index: 1;
}
.home-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  font-weight: 500;
  margin: 18px 0 22px;
  letter-spacing: -0.015em;
}
.accent-text {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.home-hero-sub {
  font-size: 1.22rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.home-hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}
.home-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.home-hero-trust {
  color: var(--ink-mute);
  font-size: 0.88rem;
}

/* ---------- Big Stats Banner ---------- */
.home-stats {
  background: var(--white);
  padding: 56px 24px;
  border-bottom: 1px solid var(--line);
}
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.home-stat {
  padding: 0 12px;
}
@media (max-width: 640px) {
  .home-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .home-stat {
    padding: 18px 12px;
    background: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--line);
  }
  .home-stat-num {
    font-size: 2rem;
    margin-bottom: 6px;
  }
  .home-stat-label {
    font-size: 0.82rem;
  }
  .home-stat-sub {
    font-size: 0.72rem;
    line-height: 1.35;
  }
}
.home-stat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.home-stat-num .sm {
  font-size: 0.62em;
  color: var(--sage-dark);
  font-weight: 500;
  margin-left: 2px;
}
.home-stat-num .gold {
  color: var(--gold);
}
.home-stat-label {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.home-stat-label .gold {
  color: var(--gold-dark);
}
.home-stat-sub {
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ---------- Section head ---------- */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 10px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Featured Categories ---------- */
.home-featured {
  padding: 88px 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto 40px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* Cards with hero images */
.featured-card.featured-with-image {
  padding: 0;
}
.featured-card.featured-with-image .featured-image {
  width: 100%;
  height: 180px;
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
  background-color: var(--sage-light);
}
.featured-card.featured-with-image .featured-content {
  display: flex;
  flex-direction: column;
  padding: 22px 26px 26px;
  flex-grow: 1;
}
.featured-card.featured-with-image.featured-hero {
  background: var(--white);
}
.featured-card:hover {
  transform: translateY(-3px);
  border-color: var(--sage);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.featured-card.featured-hero {
  background: linear-gradient(180deg, var(--sage-light) 0%, var(--white) 40%);
  border-color: var(--sage);
}
.featured-card.featured-hero:hover {
  border-color: var(--sage-dark);
}
.featured-card.featured-badge {
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--white) 40%);
  border-color: var(--gold);
}
.featured-card.featured-badge:hover {
  border-color: var(--gold-dark);
}
.featured-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sage-dark);
  margin-bottom: 10px;
}
.featured-card.featured-badge .featured-kicker {
  color: var(--gold-dark);
}
.featured-card h3 {
  font-size: 1.32rem;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 500;
}
.featured-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0 0 18px;
  flex-grow: 1;
  line-height: 1.55;
}
.featured-arrow {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.featured-card.featured-hero .featured-arrow {
  border-top-color: var(--sage-light);
}
.featured-card.featured-badge .featured-arrow {
  border-top-color: var(--gold-soft);
}
.featured-more {
  text-align: center;
}

/* ---------- How it works ---------- */
.home-how {
  padding: 88px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.home-how .how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.home-how .how-card {
  background: var(--cream);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.home-how .how-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.home-how .how-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.25;
}
.home-how .how-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Explore by section ---------- */
.home-explore {
  padding: 88px 24px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}
.home-explore .explore-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.home-explore .explore-group {
  background: var(--white);
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.home-explore .explore-group h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sage-dark);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* State dropdown inside explore group */
.state-dropdown-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.state-dropdown-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 6px;
}
.state-dropdown {
  width: 100%;
  padding: 10px 30px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath d='M1 1l5 5 5-5' stroke='%234a5751' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.state-dropdown:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 150, 128, 0.15);
}

/* ---------- Editorial ---------- */
.home-editorial {
  padding: 88px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto 40px;
}
.editorial-card {
  display: block;
  padding: 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s ease;
}
.editorial-card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.editorial-tag {
  display: inline-block;
  background: var(--sage-dark);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.editorial-card h3 {
  font-size: 1.1rem;
  line-height: 1.28;
  margin: 0 0 10px;
  font-weight: 500;
}
.editorial-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
}
.editorial-more {
  text-align: center;
}

/* ---------- BWA cross-sell ---------- */
.home-bwa {
  padding: 96px 24px;
  background: linear-gradient(135deg, #2d3a33 0%, #1f2b24 100%);
  color: var(--white);
}
.bwa-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 780px) {
  .bwa-inner { grid-template-columns: 1fr; gap: 48px; }
  .bwa-visual { order: -1; }
}
.bwa-copy h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  margin-bottom: 16px;
}
.bwa-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  margin-bottom: 22px;
  line-height: 1.65;
  max-width: 540px;
}
.bwa-copy p strong {
  color: var(--gold);
  font-weight: 600;
}
.bwa-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}
.bwa-visual {
  position: relative;
  height: 280px;
}
.bwa-card {
  position: absolute;
  padding: 22px 30px;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.bwa-card-1 { top: 8%; left: 5%; transform: rotate(-3deg); background: var(--cream); }
.bwa-card-2 { top: 38%; left: 32%; transform: rotate(2deg); background: var(--white); }
.bwa-card-3 { top: 64%; left: 8%; transform: rotate(-1.5deg); background: var(--gold-soft); }

/* ---------- Rich footer (homepage-specific overrides) ---------- */
.home-footer {
  padding: 72px 24px 32px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.home-footer .container {
  max-width: 1280px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand-col {
  max-width: 320px;
}
.footer-brand-col .footer-brand {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.footer-brand-col .footer-tag {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.footer-tag-lead {
  font-family: "Fraunces", serif !important;
  font-size: 1.15rem !important;
  color: var(--ink) !important;
  font-weight: 500;
  margin-bottom: 8px !important;
}
.footer-tag-proof {
  font-size: 0.85rem !important;
  color: var(--ink-mute) !important;
  margin-bottom: 14px !important;
}
.footer-bottom a {
  color: var(--sage-dark);
  font-weight: 500;
}
.footer-source {
  font-size: 0.8rem;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0;
}
.footer-source a {
  color: var(--sage-dark);
}
.footer-col h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col li a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.12s ease;
}
.footer-col li a:hover {
  color: var(--accent);
}
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .home-hero { padding: 64px 20px 48px; }
  .home-stats { padding: 40px 20px; }
  .home-featured,
  .home-how,
  .home-explore,
  .home-editorial { padding: 60px 20px; }
  .home-bwa { padding: 68px 20px; }
  .featured-card { padding: 22px; }
  .featured-card.featured-with-image { padding: 0; }
  .featured-card.featured-with-image .featured-image { height: 160px; }
  .featured-card.featured-with-image .featured-content { padding: 20px 22px 22px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  .section-head p { font-size: 0.95rem; }
}
