/* ==========================================================================
   Shared modern layer — loaded on every public page (body.modern)
   Floating nav, typography, rounded cards/buttons, mobile action bar, reveal motion.
   Hero-only styles live in home.css.
   ========================================================================== */
:root{ --radius:14px; --cta:#E8B923; --open:#4ADE80; }
.modern svg.i{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; flex:none; }

/* ---- Typography ---- */
.modern h1,.modern h2,.modern h3,.modern h4{
  font-family:var(--font-body); text-transform:none; letter-spacing:-.015em; font-weight:800; line-height:1.1;
}
.modern h3,.modern h4{ font-weight:700; }
.modern .section-head h2{ font-size:clamp(30px,4vw,46px); }
.modern .section-head .eyebrow{ font-size:12.5px; }
.modern .vdp-title{ font-size:clamp(26px,3.4vw,38px); }

/* ---- Buttons ---- */
.modern .btn{
  font-family:var(--font-body); text-transform:none; font-weight:700; font-size:15px; letter-spacing:0;
  border-radius:999px; padding:13px 26px;
}
.modern .btn.--ghost{ border-width:2px; }
.modern .btn.--gold{ background:var(--cta); border-color:var(--cta); color:#111; }
.modern .btn.--gold:hover{ background:#D4A91C; border-color:#D4A91C; }

/* ---- Floating nav ---- */
.modern .site-header{ position:fixed; top:12px; left:0; right:0; background:none; border:0; z-index:60; }
.modern .site-header .container{
  width:min(1180px, calc(100% - 28px)); max-width:none; margin:0 auto;
  background:#fff; border-radius:18px; box-shadow:0 10px 30px rgba(0,0,0,.22);
  padding:9px 12px 9px 18px;
}
.modern .brand img{ height:50px; }
.modern .nav{ gap:24px; }
.modern .nav a{ font-family:var(--font-body); text-transform:none; font-weight:600; font-size:15px; letter-spacing:0; }
.modern .nav .nav-lang{ border:1px solid #D8D8D4; border-radius:999px; padding:8px 14px; font-size:13px; }
.modern .nav .nav-lang:hover{ border-color:var(--forest); }
.modern .nav .nav-call{
  display:inline-flex; align-items:center; gap:8px; background:var(--forest); color:#fff; border:0;
  border-radius:999px; padding:12px 20px; font-weight:700;
}
.modern .nav .nav-call:hover{ background:var(--forest-dark); }
.modern .breadcrumb{ padding:104px 24px 8px; }

/* ---- Cards ---- */
.modern .vcard,.modern .review-card,.modern .info-card,.modern .form-card,.modern .quote-block,.modern .map-embed{
  border-radius:18px; border:1px solid #E7E5DF; box-shadow:0 1px 2px rgba(20,30,25,.04);
}
.modern .review-card{ border-left-width:1px; }
.modern .vcard{ transition:box-shadow .2s ease, transform .2s ease; animation:rise .6s cubic-bezier(.2,.7,.2,1) both; }
.modern .vcard:nth-child(2){ animation-delay:.07s } .modern .vcard:nth-child(3){ animation-delay:.14s }
.modern .vcard:nth-child(4){ animation-delay:.21s } .modern .vcard:nth-child(5){ animation-delay:.28s } .modern .vcard:nth-child(n+6){ animation-delay:.34s }
.modern .vcard:hover{ box-shadow:0 18px 36px rgba(20,30,25,.14); transform:translateY(-4px); }
.modern .vcard-media{ border-bottom:0; }
.modern .vcard-media img{ transition:transform .6s ease; }
.modern .vcard:hover .vcard-media img{ transform:scale(1.06); }
.modern .vcard-specs span{ border-radius:999px; }
.modern .vcard-price{ font-family:var(--font-body); font-weight:800; font-size:24px; letter-spacing:-.01em; }
.modern .vdp-price{ font-family:var(--font-body); font-weight:800; }
.modern .vdp-gallery-main,.modern .vdp-thumbs div{ border-radius:18px; }
.modern .form-row input,.modern .form-row textarea,.modern .form-row select{ border-radius:12px; }
.modern .footer-brand .logo-chip{ border-radius:12px; }
.modern .value-item h3,.modern .step h3{ font-size:20px; }
@keyframes rise{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }

/* ---- Scroll reveal (class added by main.js) ---- */
.js .reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in{ opacity:1; transform:none; }

/* ---- Mobile action bar ---- */
.action-bar{ display:none; }
@media (max-width:680px){
  .modern{ padding-bottom:92px; }
  .modern .site-header{ top:8px; }
  .modern .brand img{ height:40px; }
  .modern .nav{
    inset:76px 14px auto 14px; background:#fff; border-radius:18px; box-shadow:0 18px 40px rgba(0,0,0,.35);
    padding:8px 18px 18px; gap:0; max-height:calc(100svh - 100px);
    transform:translateY(-10px); opacity:0; visibility:hidden; transition:opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .modern .nav.is-open{ transform:none; opacity:1; visibility:visible; }
  .modern .nav a{ font-size:17px; padding:14px 0; line-height:1.3; }
  .modern .nav .nav-lang{ border:0; border-radius:0; padding:14px 0; font-size:17px; }
  .modern .nav .nav-call{ justify-content:center; margin-top:10px; }
  .modern .breadcrumb{ padding-top:84px; }
  .action-bar{
    display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; position:fixed; left:10px; right:10px; bottom:10px; z-index:70;
    background:#fff; border-radius:18px; padding:8px; box-shadow:0 10px 30px rgba(0,0,0,.4);
  }
  .action-bar a{ display:flex; flex-direction:column; align-items:center; gap:3px; color:var(--ink); font-size:12px; font-weight:700; padding:9px 4px; border-radius:12px; }
  .action-bar a.is-main{ background:var(--forest); color:#fff; }
}
@media (prefers-reduced-motion: reduce){
  .js .reveal{ opacity:1; transform:none; transition:none; }
  .modern .vcard{ animation:none; }
}

/* Inner-page hero: keep the stat card inside the viewport on small screens */
.modern .hero .container > *{ min-width:0; }
.modern .hero-figure{ border-radius:18px; }
@media (max-width:900px){ .modern .hero .container{ grid-template-columns:1fr !important; gap:32px; } .modern .hero .container{ padding-top:56px; padding-bottom:48px; } }
