/* ═══════════════════════════════════════════════════════
   STITCHA YACHTING — Premium dark homepage
   Loaded AFTER styles.css so these rules override.
   Scoped to .yh-* under #pageHome — does not affect other pages.
   ═══════════════════════════════════════════════════════ */

#pageHome.yh-page{background:#0a0d10;color:#e8e9ea;display:none;flex-direction:column;min-height:100vh;overflow-y:auto;overflow-x:hidden;}
#pageHome.yh-page.active{display:flex;}

/* ── Topbar ── */
.yh-topbar{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 2.5rem;background:#0a0d10;border-bottom:1px solid rgba(255,255,255,0.06);flex-shrink:0;position:sticky;top:0;z-index:50;}
.yh-brand-wrap{display:flex;flex-direction:column;line-height:1.1;}
.yh-brand{font-family:'Playfair Display',serif;font-size:18px;font-weight:600;color:#fff;letter-spacing:0.05em;}
.yh-brand-sub{font-family:'DM Sans',sans-serif;font-size:10px;color:rgba(255,255,255,0.45);letter-spacing:0.06em;margin-top:3px;text-transform:uppercase;}
.yh-nav{display:flex;gap:2.4rem;}
.yh-nav-link{background:none;border:none;color:rgba(255,255,255,0.7);font-family:'DM Sans',sans-serif;font-size:13.5px;font-weight:500;cursor:pointer;padding:0;text-decoration:none;transition:color 0.15s;}
.yh-nav-link:hover{color:#fff;}
.yh-actions{display:flex;align-items:center;gap:0.85rem;}
.yh-login-btn{background:none;border:none;color:rgba(255,255,255,0.7);font-family:'DM Sans',sans-serif;font-size:13.5px;font-weight:500;cursor:pointer;padding:0.5rem 0.8rem;transition:color 0.15s;}
.yh-login-btn:hover{color:#fff;}
.yh-user-btn{background:none;border:1px solid var(--red);color:var(--red);font-family:'DM Sans',sans-serif;font-size:13px;font-weight:600;cursor:pointer;padding:0.5rem 1rem;border-radius:6px;}
.yh-cta-btn{background:#fff;border:none;color:#0a0d10;font-family:'DM Sans',sans-serif;font-size:13.5px;font-weight:600;cursor:pointer;padding:0.75rem 1.3rem;border-radius:8px;display:inline-flex;align-items:center;gap:0.5rem;transition:transform 0.15s,background 0.15s;}
.yh-cta-btn:hover{background:#f5f5f5;transform:translateY(-1px);}
.yh-cta-arrow{display:inline-block;transition:transform 0.2s;}
.yh-cta-btn:hover .yh-cta-arrow,.yh-hero-cta-primary:hover .yh-cta-arrow{transform:translateX(3px);}

/* ── Hero ── */
.yh-hero{position:relative;min-height:560px;padding:5rem 2.5rem 4rem;display:flex;align-items:center;overflow:hidden;background:#0a0d10;}
.yh-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;}
.yh-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,13,16,0.25) 0%,rgba(10,13,16,0.55) 60%,rgba(10,13,16,0.78) 100%);}
.yh-hero-inner{position:relative;z-index:2;display:grid;grid-template-columns:1fr auto;gap:3rem;align-items:end;width:100%;max-width:1400px;margin:0 auto;}
.yh-hero-content{max-width:620px;}
.yh-hero-title{font-family:'Playfair Display',serif;font-size:clamp(38px,5vw,62px);font-weight:500;color:#fff;line-height:1.05;letter-spacing:-0.015em;margin-bottom:1.3rem;}
.yh-accent{color:var(--red);font-style:normal;font-weight:500;}
.yh-hero-sub{font-family:'DM Sans',sans-serif;font-size:16.5px;color:rgba(255,255,255,0.78);line-height:1.55;max-width:480px;margin-bottom:2rem;}
.yh-hero-ctas{display:flex;gap:1.4rem;align-items:center;flex-wrap:wrap;}
.yh-hero-cta-primary{background:#fff;border:none;color:#0a0d10;font-family:'DM Sans',sans-serif;font-size:15px;font-weight:600;cursor:pointer;padding:0.95rem 1.7rem;border-radius:8px;display:inline-flex;align-items:center;gap:0.5rem;transition:all 0.15s;}
.yh-hero-cta-primary:hover{background:#f0f0f0;transform:translateY(-1px);box-shadow:0 6px 24px rgba(0,0,0,0.25);}
.yh-hero-cta-secondary{background:transparent;border:none;color:#fff;font-family:'DM Sans',sans-serif;font-size:14.5px;font-weight:500;cursor:pointer;padding:0.5rem 0.4rem;display:inline-flex;align-items:center;gap:0.65rem;transition:opacity 0.15s;opacity:0.9;}
.yh-hero-cta-secondary:hover{opacity:1;}
.yh-hero-cta-secondary svg{opacity:0.95;}

/* ── Trust card ── */
.yh-trust-card{background:rgba(20,24,30,0.62);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,0.09);border-radius:12px;padding:1.5rem 2.2rem;min-width:420px;}
.yh-trust-label{font-family:'DM Sans',sans-serif;font-size:12.5px;color:rgba(255,255,255,0.7);text-align:center;margin:0 0 1.1rem;letter-spacing:0.02em;}
.yh-trust-row{display:flex;justify-content:space-between;align-items:center;gap:1.8rem;}
.yh-trust-logo{font-family:'Playfair Display',serif;font-size:13.5px;color:rgba(255,255,255,0.88);letter-spacing:0.14em;font-weight:500;white-space:nowrap;}

/* ── Shared section heading ── */
.yh-templates,.yh-features{padding:3.5rem 2.5rem;max-width:1400px;margin:0 auto;width:100%;box-sizing:border-box;}
.yh-section-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:1.8rem;}
.yh-section-title{font-family:'Playfair Display',serif;font-size:26px;font-weight:600;color:#fff;letter-spacing:-0.005em;margin:0 0 0.3rem;}
.yh-section-sub{font-family:'DM Sans',sans-serif;font-size:13.5px;color:rgba(255,255,255,0.55);margin:0;}
.yh-section-link{background:none;border:none;color:rgba(255,255,255,0.7);font-family:'DM Sans',sans-serif;font-size:13.5px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:0.3rem;transition:color 0.15s;}
.yh-section-link:hover{color:#fff;}

/* ── Templates rail ── */
.yh-template-rail{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1rem;}
.yh-template-card{background:#10141a;border:1px solid rgba(255,255,255,0.06);border-radius:12px;overflow:hidden;cursor:pointer;transition:transform 0.2s,border-color 0.2s,box-shadow 0.2s;display:flex;flex-direction:column;text-align:left;padding:0;font-family:inherit;color:inherit;}
.yh-template-card:hover{transform:translateY(-3px);border-color:rgba(255,255,255,0.18);box-shadow:0 12px 32px rgba(0,0,0,0.45);}
.yh-template-card.yh-template-active{border-color:var(--red);box-shadow:0 0 0 1px var(--red),0 12px 32px rgba(0,0,0,0.45);}
.yh-template-img{position:relative;height:175px;background-size:cover;background-position:center;background-color:#1a1f26;}
.yh-template-img::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0.05) 0%,rgba(0,0,0,0.55) 100%);}
.yh-template-icon{position:absolute;top:0.9rem;left:0.9rem;width:36px;height:36px;border-radius:8px;background:rgba(20,24,30,0.85);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;color:#fff;z-index:1;}
.yh-template-card.yh-template-active .yh-template-icon{background:var(--red);color:#fff;}
.yh-template-body{padding:1rem 1.1rem 1.2rem;flex:1;display:flex;flex-direction:column;}
.yh-template-body h3{font-family:'DM Sans',sans-serif;font-size:14.5px;font-weight:600;color:#fff;margin:0 0 0.3rem;letter-spacing:-0.005em;}
.yh-template-body p{font-family:'DM Sans',sans-serif;font-size:12.5px;color:rgba(255,255,255,0.55);margin:0 0 0.85rem;line-height:1.45;flex:1;}
.yh-template-count{font-family:'DM Sans',sans-serif;font-size:11px;color:rgba(255,255,255,0.42);letter-spacing:0.02em;}

/* ── Features row ── */
.yh-features-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem;background:rgba(16,20,26,0.6);border:1px solid rgba(255,255,255,0.06);border-radius:14px;padding:1.7rem 2rem;}
.yh-feature{display:flex;gap:1rem;align-items:flex-start;}
.yh-feature-icon{width:38px;height:38px;border-radius:9px;background:var(--red-light);color:var(--red);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.yh-feature h4{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:600;color:#fff;margin:0 0 0.25rem;}
.yh-feature p{font-family:'DM Sans',sans-serif;font-size:12.5px;color:rgba(255,255,255,0.55);margin:0;line-height:1.45;}

/* ── Footer ── */
.yh-footer{display:flex;justify-content:space-between;align-items:center;padding:1.6rem 2.5rem 2.2rem;max-width:1400px;margin:0 auto;width:100%;box-sizing:border-box;border-top:1px solid rgba(255,255,255,0.06);gap:1.5rem;flex-wrap:wrap;}
.yh-footer-left{display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;}
.yh-footer-anchor{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,0.05);display:flex;align-items:center;justify-content:center;color:var(--red);}
.yh-footer-help{font-family:'DM Sans',sans-serif;font-size:13px;color:rgba(255,255,255,0.55);}
.yh-footer-contact{font-family:'DM Sans',sans-serif;font-size:13px;color:rgba(255,255,255,0.78);text-decoration:none;}
.yh-footer-contact:hover{color:#fff;}
.yh-footer-right{display:flex;gap:2rem;flex-wrap:wrap;}
.yh-footer-badge{display:flex;align-items:center;gap:0.7rem;color:rgba(255,255,255,0.55);}
.yh-footer-badge strong{font-family:'DM Sans',sans-serif;font-size:12px;font-weight:600;color:rgba(255,255,255,0.88);}
.yh-footer-badge small{font-family:'DM Sans',sans-serif;font-size:11px;color:rgba(255,255,255,0.48);}

/* ── Responsive ── */
@media (max-width:1100px){
  .yh-template-rail{grid-template-columns:repeat(3,minmax(0,1fr));}
  .yh-hero-inner{grid-template-columns:1fr;gap:2rem;align-items:start;}
  .yh-trust-card{min-width:0;width:100%;max-width:560px;}
  .yh-features-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:768px){
  .yh-topbar{padding:0.9rem 1.2rem;}
  .yh-nav{display:none;}
  .yh-actions .yh-cta-btn{padding:0.55rem 0.9rem;font-size:12px;}
  .yh-hero{padding:3.5rem 1.2rem 2.5rem;min-height:auto;}
  .yh-hero-title{font-size:36px;}
  .yh-template-rail{grid-template-columns:1fr 1fr;}
  .yh-features,.yh-templates{padding:2.4rem 1.2rem;}
  .yh-features-grid{grid-template-columns:1fr;gap:1.2rem;padding:1.3rem;}
  .yh-footer{flex-direction:column;align-items:flex-start;gap:1.2rem;padding:1.5rem 1.2rem;}
  .yh-footer-right{flex-direction:row;gap:1.5rem;}
}
