/* ShadiGiva homepage compact layout. Load this file LAST on index.html. */

/* ---------- 1. Header: one row on phones ---------- */
.sgc-burger{display:none}
@media (max-width:768px){
  .nav-home{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 14px !important;min-height:0 !important;height:auto !important}
  .nav-home .nav-brand{flex:1;min-width:0}
  .nav-home .nav-cta{display:flex;gap:6px;margin:0 !important}
  .nav-home .nav-cta .bso,.nav-home .nav-cta .bsf{padding:7px 12px !important;font-size:.85rem !important;min-height:0 !important}
  .nav-home .nav-links,.nav-home .sg-lang-wrap{display:none !important}
  .nav-home.sgc-open .nav-links{display:flex !important;flex-direction:column;width:100%;gap:0;margin:4px 0 0;padding:0;border-top:1px solid rgba(0,0,0,.08);overflow:visible;white-space:normal}
  .nav-home.sgc-open .nav-links li a{display:block;padding:10px 4px}
  .nav-home.sgc-open .sg-lang-wrap{display:block !important;width:100%;padding:6px 0 10px}
  .sgc-burger{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid rgba(0,0,0,.15);border-radius:8px;background:#fff;font-size:20px;line-height:1;cursor:pointer}
  body{padding-top:0}
}

/* ---------- 2. Hero: shorter, form in a 2 x 2 grid ---------- */
.sgc-trust{margin:6px 0 12px;font-size:.95rem;color:rgba(255,255,255,.88)}
@media (max-width:768px){
  .hero{min-height:0 !important;padding-top:16px !important;padding-bottom:20px !important}
  .hero .hcouple{max-height:150px;overflow:hidden}
  .hero .hcouple img{height:150px !important;width:100%;object-fit:cover}
  .hero .h1{font-size:1.75rem !important;line-height:1.2 !important;margin:6px 0 4px !important}
  .hero .hsbox{padding:14px !important}
  .hero .hsbox .sr{display:grid !important;grid-template-columns:1fr 1fr;gap:10px}
  .hero .hsbox .sf{margin:0 !important}
  .hero .hsbox .sf select{padding:9px 10px !important;min-height:0 !important}
  .hero .ql-row{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;scrollbar-width:none}
  .hero .ql-row::-webkit-scrollbar{display:none}
  .hero .ql{flex:0 0 auto}
}

/* ---------- 3. Merge the lone heading and tighten the "why" tiles ---------- */
.destiny-section{display:none !important}
#why-section,.verify-usp-section{padding-top:28px !important;padding-bottom:28px !important}
#why-section .why-tiles-grid{display:grid !important;grid-template-columns:repeat(3,1fr);gap:10px}
#why-section .why-tile,.verify-usp-section .home-panel{padding:14px !important;min-height:0 !important}
#why-section .why-tile-title,.verify-usp-section .home-panel-title{font-size:1rem !important;margin:0 !important}
@media (max-width:768px){
  #why-section .why-tiles-grid{grid-template-columns:1fr 1fr}
  .verify-usp-section .home-panels-grid--3{display:grid !important;grid-template-columns:1fr 1fr 1fr;gap:8px}
  .verify-usp-section .home-panel{padding:10px !important}
  .verify-usp-section .home-panel-title{font-size:.85rem !important}
}

/* ---------- 4. Member profiles: 8 cards, swipe row on phones ---------- */
#profiles-grid:not(.sgc-profiles-all) > .pc:nth-child(n+9){display:none !important}
#profiles-grid .pc{min-height:0 !important}
#profiles-grid .pcbody{padding:10px 14px !important}
@media (max-width:768px){
  #profiles-grid{display:flex !important;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:4px 2px 12px;grid-template-columns:none !important;-webkit-overflow-scrolling:touch}
  #profiles-grid > .pc{flex:0 0 78%;scroll-snap-align:start;max-width:300px}
  #profiles-grid .pct{padding:12px !important;min-height:0 !important}
  #profiles-grid .pcbody{font-size:.9rem}
}
.sgc-swipe-hint{display:none;font-size:.85rem;opacity:.7;margin:-4px 0 8px}
@media (max-width:768px){.sgc-swipe-hint{display:block}}

/* ---------- 5. Blog strip (replaces the old guidance tiles) ---------- */
.sgc-blog{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:14px}
.sgc-blog a{display:block;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:14px 16px;text-decoration:none;color:inherit}
.sgc-blog b{display:block;font-size:1rem;margin-bottom:4px}
.sgc-blog span{font-size:.88rem;opacity:.75}
.sgc-more{display:inline-block;margin-top:12px;font-weight:600}
@media (max-width:768px){
  .sgc-blog{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}
  .sgc-blog a{flex:0 0 78%;scroll-snap-align:start}
}

/* ---------- 6. Horoscope teaser (replaces the 12-field form) ---------- */
.sgc-horo{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:18px 20px;margin-top:12px}
.sgc-horo p{margin:0;max-width:560px}
.sgc-horo .sgc-btn{display:inline-block;padding:11px 18px;border-radius:10px;background:#8b1d3f;color:#fff;font-weight:600;text-decoration:none}

/* ---------- 7. Plans: swipe row on phones ---------- */
@media (max-width:768px){
  #plans-section .home-panels-grid--plans{display:flex !important;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:10px}
  #plans-section .home-panel--plan{flex:0 0 80%;scroll-snap-align:center}
}

/* ---------- 8. Trust stories: four full cards, the rest stay on stories.html ---------- */
#stories-section .trust-grid > *:nth-child(n+4){display:none !important}
#stories-section .trust-card .snames,#stories-section .trust-card .squote{color:#3a2e28}
#stories-section .stories-cta{text-align:center;margin-top:16px}

/* ---------- 9. Section spacing ---------- */
@media (max-width:768px){
  .home-section,.home-section-alt,.sw{padding-top:28px !important;padding-bottom:28px !important}
  .stitle{margin-bottom:10px !important}
  #seo-faq{padding-bottom:88px !important}
  #plans-section .home-panels-grid--plans{padding-bottom:36px}
  footer{padding-bottom:calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important}
}

/* ---------- 10. Footer: tap to open on phones ---------- */
@media (max-width:768px){
  footer .ft{display:block !important}
  footer .ft > div{border-bottom:1px solid rgba(255,255,255,.12);padding:4px 0}
  footer .ft > div:not(.footer-brand-col) .fl{display:none}
  footer .ft > div.sgc-open .fl{display:block}
  footer .ft > div:not(.footer-brand-col) .fct{cursor:pointer;padding:10px 0;display:flex;justify-content:space-between}
  footer .ft > div:not(.footer-brand-col) .fct::after{content:"+";opacity:.7}
  footer .ft > div.sgc-open .fct::after{content:"−"}
  footer .footer-brand-col .fl,footer .footer-brand-col .fct{display:none}
}
