/* SEA & SUN – fixes layer (seasun-fixes plugin) */
/* 1. badge: text always inside the circle, scales with it */
.badge{container-type:inline-size}
.badge-core{line-height:1;padding:0 7%}
.badge-core .b1,.badge-core .b3{font-size:9.6cqw;white-space:nowrap}
.badge-core .b2{font-size:16cqw;margin:1.6cqw 0;white-space:nowrap}
.hero.hero2 .hero-badge,.hero .hero-badge{width:clamp(180px,13.5vw,220px)}
/* 3. hero CTA – proportional */
.hero-ctas .btn-cta{padding:10px 22px 10px 10px;font-size:17px;gap:12px}
.hero-ctas .btn-cta .btn-arrow{width:28px;height:28px}
.hero-ctas .btn-cta .btn-arrow::before{width:9px;height:9px}
@media (max-width:860px){
  .hero.hero2 .hero-badge,.hero .hero-badge{width:126px}
  /* 6. specs – two per row */
  .specs .s3-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .specs .s3-item{padding:18px 8px;gap:8px}
  .specs .s3-item:nth-child(n){border-right:0}
  .specs .s3-item:nth-child(2n){border-right:1px solid rgba(14,31,77,.14)}
  .specs .s3-item svg{width:24px;height:24px;padding:10px}
  .specs .s3-t{font-size:15px;line-height:1.3}
  .specs .s3-item:last-child:nth-child(odd){grid-column:1/-1;border-right:0}
  /* 4. XL – shorter scroll, stable viewport height */
  .xl2{height:calc((var(--n) + 2) * 62svh)}
  .xl2-stage{height:100svh}
  .xl2-intro-t{color:#fff}
}
/* 5. lead popup – mobile bottom sheet */
@media (max-width:600px){
  .modal{padding:0;place-items:end center}
  .modal-card{width:100%;max-height:92svh;border-radius:24px 24px 0 0;display:block}
  .modal-close{top:10px;left:10px;width:38px;height:38px;font-size:24px;background:rgba(255,255,255,.94)}
  .modal-body{padding:18px 18px calc(18px + env(safe-area-inset-bottom));text-align:right}
  .modal-body .eyebrow{font-size:11px;margin:0 0 6px;text-align:right}
  .modal-title{font-size:26px;margin:0 0 6px;text-align:right}
  .modal-sub{font-size:14.5px;line-height:1.45;margin:0 0 14px;text-align:right}
  .modal .lead-form{gap:12px}
  .modal .lf-grid{grid-template-columns:1fr 1fr;gap:10px}
  .modal .field{gap:4px;text-align:right}
  .modal .field label{font-size:13.5px;text-align:right}
  .modal .field input,.modal .field select{min-height:46px;height:46px;padding:10px 12px;font-size:16px;border-radius:10px}
  .modal .field select{padding-left:32px;background-position:14px 20px,20px 20px}
  .modal .chk{gap:10px;font-size:12.5px;line-height:1.4;text-align:right}
  .modal .chk input{width:18px;height:18px;flex:none;margin-top:1px}
  .modal .lead-form .btn-cta{width:100%;justify-content:space-between;padding:10px 20px 10px 10px;font-size:18px;background:var(--navy);color:#fff}
  .modal .lead-form .btn-cta .btn-arrow{width:30px;height:30px;background:#fff}
  .modal .lead-form .btn-cta .btn-arrow::before{border-color:var(--navy)}
  .modal .lf-status:empty{display:none}
}
/* v1.0.1 */
@media (max-width:860px){
  .hero.hero2 .hero-ctas .btn-cta,.hero .hero-ctas .btn-cta{flex:0 0 auto;width:auto;padding:10px 20px 10px 10px;font-size:16px;gap:10px}
  .xl2-intro-s{color:#fff}
}
@media (max-width:600px){
  .modal .modal-body .eyebrow{text-align:right;justify-content:flex-start}
}
/* popup – branded panel with project logo (desktop + mobile) */
.modal-media{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:100%;background:radial-gradient(120% 70% at 50% 115%,rgba(201,168,106,.32),transparent 62%),linear-gradient(165deg,#1a2f68 0%,var(--navy) 55%,#08142f 100%)}
.modal-media img{display:none}
.modal-media::before{content:"";position:relative;z-index:1;width:58%;max-width:240px;aspect-ratio:856/698;background:url(/wp-content/themes/seasun-tg/assets/img/logo-white.png) center/contain no-repeat}
.modal-media::after{content:"חבצלת השרון · צפון נתניה";position:absolute;inset:auto 0 30px 0;text-align:center;color:var(--gold);font-size:14px;letter-spacing:.14em;font-weight:400}
@media (max-width:600px){
  .modal-media{display:flex;height:112px;min-height:0}
  .modal-media::before{width:auto;height:76px;max-width:none}
  .modal-media::after{display:none}
}
/* v1.0.2 – popup centered & compact on mobile */
@media (max-width:600px){
  .modal{padding:16px;place-items:center}
  .modal-card{width:min(360px,100%);max-height:calc(100svh - 32px);border-radius:22px}
  .modal-media{height:84px}
  .modal-media::before{height:54px}
  .modal-close{top:8px;left:8px;width:34px;height:34px;font-size:22px}
  .modal-body{padding:14px 16px 16px}
  .modal-body .eyebrow{font-size:10px;margin:0 0 4px}
  .modal-title{font-size:22px;margin:0 0 4px}
  .modal-sub{font-size:13px;line-height:1.4;margin:0 0 10px}
  .modal .lead-form{gap:9px}
  .modal .lf-grid{gap:8px}
  .modal .field{gap:3px}
  .modal .field label{font-size:12.5px}
  .modal .field input,.modal .field select{min-height:42px;height:42px;padding:8px 10px;font-size:16px}
  .modal .field select{padding-left:28px;background-position:12px 18px,18px 18px}
  .modal .chk{gap:8px;font-size:11.5px;line-height:1.35}
  .modal .chk input{width:16px;height:16px}
  .modal .lead-form .btn-cta{padding:8px 16px 8px 8px;font-size:16px}
  .modal .lead-form .btn-cta .btn-arrow{width:28px;height:28px}
}
/* sticky call bar – normal star, reads *6697 */
.sb-call .sb-num{font:inherit;unicode-bidi:isolate;direction:ltr}
/* v1.0.3 – compact cookie consent */
.consent{max-width:380px}
.consent-card{padding:16px 18px;border-radius:16px}
.consent-title{font-size:17px;margin:0 0 4px}
.consent-text{font-size:14px;line-height:1.45;margin:0 0 10px}
.consent .consent-actions .btn-sm{padding:8px 16px;font-size:15px}
@media (max-width:600px){
  .consent{left:12px;right:12px;max-width:none}
  .consent-card{padding:13px 14px 12px}
  .consent-title{font-size:16px;margin:0 0 3px}
  .consent-text{font-size:13px;line-height:1.4;margin:0 0 9px}
  .consent .consent-actions{gap:6px;flex-wrap:nowrap}
  .consent .consent-actions .btn-sm{padding:7px 12px;font-size:14px}
}