/* Prevent overlap on mobile: make quote panel non-sticky and add spacing */
@media (max-width: 991px){
  .quote-panel { position: static; top: auto; }
  .products-panel { margin-top: 12px; }
}
/* Additional theme styles */
.menu { display: flex; gap: 20px; }

/* Premium palette */
:root {
  --gold: #d4af37;        /* primary gold */
  --gold-600: #c4a233;    /* hover gold */
  --blue: #0b1b3b;        /* deep navy */
  --blue-600: #0e224a;    /* hover navy */
  --ink: #111827;         /* body text */
  --muted: #6b7280;       /* secondary text */
  --bg: #ffffff;          /* base bg */
}

/* Typography */
html { scroll-behavior: smooth; }
body { font-family: 'Heebo', 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, 'Noto Sans Hebrew', Arial, sans-serif; color: var(--ink); background: var(--bg); }
h1,h2,h3,h4,h5 { font-family: 'Rubik', 'Heebo', system-ui, -apple-system, Segoe UI, Roboto, 'Noto Sans Hebrew', Arial, sans-serif; }

/* Header & Navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); border-bottom: 1px solid #e5e7eb; transition: box-shadow .25s ease, backdrop-filter .25s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.06); backdrop-filter: saturate(1.1) blur(6px); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.site-header .site-title { font-weight: 800; font-size: 20px; text-decoration: none; color: inherit; }
.main-nav .menu { display: flex; gap: 20px; align-items: center; }
.main-nav .menu a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.main-nav .menu a:hover { background: #f3f4f6; }

/* Mobile nav */
.nav-toggle { display: inline-grid; gap: 4px; border: 0; background: transparent; cursor: pointer; padding: 8px; align-items: center; justify-items: center; }
.nav-toggle .bar { width: 22px; height: 2px; background: var(--ink); display: block; border-radius: 2px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .main-nav { position: absolute; inset-inline: 0; top: 100%; background: #ffffff; border-bottom: 1px solid #e5e7eb; transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; }
  .main-nav.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .main-nav .menu { flex-direction: column; padding: 12px; gap: 8px; }
}
@media (min-width: 901px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; transform: none; opacity: 1; pointer-events: auto; }
}

/* Hero background image and overlay */
.hero-section.has-bg { background-size: cover; background-position: center; position: relative; isolation: isolate; }
.hero-section.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,27,59,.55), rgba(11,27,59,.35)); z-index: -1; }
.hero-section.has-bg .hero-title, .hero-section.has-bg .hero-subtitle { text-shadow: 0 2px 16px rgba(0,0,0,.35); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }
.feature, .service-card, .testimonial-card, .calc-form { will-change: transform, opacity; }

/* Hover polish */
.service-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-2px); transition: .25s ease; }
.cta.btn-primary:hover { filter: brightness(1.05); }
.cta.btn-outline:hover { background: rgba(255,255,255,.1); }
.menu a { color: inherit; text-decoration: none; }
.entry-title { margin: 0 0 12px; }
.posts-navigation { display: flex; justify-content: space-between; }

/* Sections */
#about .content { max-width: 800px; }
#contact .wpcf7 { max-width: 680px; }

/* One-page sections */
.section { padding: 80px 0; }
.text-center { text-align: center; }
.mb-16 { margin-bottom: 4rem; }
.container { width: min(1150px, 92%); margin: 0 auto; }

.section-title { font-size: clamp(28px, 5vw, 40px); margin: 0 0 12px; font-weight: 800; }
.section-subtitle { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); margin: 0 auto; max-width: 48rem; }

/* Calculator: align subtitle to the right like the title */
#calculator .section-subtitle { text-align: right; margin: 0; }
@media (min-width: 768px){
  #calculator .section-subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Hero */
.hero-section { position: relative; display: grid; place-items: center; min-height: 70vh; text-align: center; background: linear-gradient(135deg, var(--blue), var(--gold)); color: #fff; overflow: hidden; }
.hero-title { font-size: clamp(32px, 6vw, 56px); font-weight: 800; margin: 0 0 12px; }
.hero-subtitle { font-size: clamp(16px, 3vw, 22px); opacity: .95; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta { text-decoration: none; border-radius: 12px; padding: 12px 18px; font-weight: 700; letter-spacing: .2px; }
.btn-primary { background: var(--gold); color: #1f2937; box-shadow: 0 6px 14px rgba(212,175,55,.28); }
.btn-primary:hover { background: var(--gold-600); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }

/* Scroll Expansion Hero */
.scroll-hero { position: relative; min-height: 100vh; overflow: hidden; contain: paint; max-width: 100vw; box-sizing: border-box; }
.scroll-hero .sh-wrapper { position: relative; min-height: 100vh; /* text color defaults (overridable via inline vars) */ --sh-title-color: #c7d2fe; --sh-small-color: #c7d2fe; }
.scroll-hero .sh-bg { position: absolute; inset: 0; z-index: 0; }
.scroll-hero .sh-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: 0; transition: opacity .2s ease; }
.scroll-hero .sh-bg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.1); }
.scroll-hero .sh-container { position: relative; z-index: 1; width: min(1200px, 96%); margin-inline: auto; }
.scroll-hero .sh-stage { position: relative; display: grid; place-items: center; min-height: 100vh; }
.scroll-hero .sh-media { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); background: #000; }
.scroll-hero .sh-media iframe,
.scroll-hero .sh-media video,
.scroll-hero .sh-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scroll-hero .sh-media-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.35); pointer-events: none; transition: opacity .2s ease; }
/* Ensure overlay respects rounded corners of media */
.scroll-hero .sh-media-overlay { border-radius: inherit; }
.scroll-hero .sh-media-captions { position: absolute; inset: auto 0 8px 0; display: grid; justify-items: center; gap: 2px; color: var(--sh-small-color); font-weight: 600; text-align: center; padding: 0 10px; pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.scroll-hero .sh-media-captions p { margin: 0; line-height: 1.1; }
/* Blinking scroll hint */
.scroll-hero .sh-scroll-hint { display: grid; place-items: center; margin-top: 2px; opacity: .9; color: var(--sh-small-color); filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); animation: sshBlink 1.4s ease-in-out infinite, sshMove 1.4s ease-in-out infinite; }
.scroll-hero .sh-scroll-hint .ssh-icon { width: 24px; height: 24px; }
.scroll-hero .sh-wrapper[data-scroll-hint="0"] .sh-scroll-hint { display: none; }
@keyframes sshBlink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes sshMove { 0%,100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce){
  .scroll-hero .sh-scroll-hint { animation: none; }
}
.scroll-hero .sh-title-wrap { position: relative; z-index: 2; display: grid; gap: 10px; justify-items: center; text-align: center; mix-blend-mode: normal; }
.scroll-hero .sh-title { color: var(--sh-title-color); margin: 0; font-weight: 800; font-size: clamp(28px, 6vw, 64px); text-shadow: 0 4px 24px rgba(0,0,0,.35); -webkit-text-stroke: 0 transparent; }
/* Backward compat for older JS toggle */
.scroll-hero .sh-title-wrap.blend { mix-blend-mode: difference; color: #fff; }

/* Style modes from data attributes */
.scroll-hero .sh-wrapper[data-text-style="blend"] .sh-title-wrap { mix-blend-mode: difference; }
.scroll-hero .sh-wrapper[data-text-style="blend"] .sh-title { color: #fff; }

.scroll-hero .sh-wrapper[data-text-style="normal"] .sh-title-wrap { mix-blend-mode: normal; }
.scroll-hero .sh-wrapper[data-text-style="normal"] .sh-title { color: var(--sh-title-color); }

/* Transparent without negative (no blend). Fill transparent; optional stroke via toggle */
.scroll-hero .sh-wrapper[data-text-style="transparent_no_negative"] .sh-title-wrap { mix-blend-mode: normal; }
.scroll-hero .sh-wrapper[data-text-style="transparent_no_negative"] .sh-title { color: transparent; }

/* Title stroke toggle */
.scroll-hero .sh-wrapper[data-title-stroke="1"] .sh-title { -webkit-text-stroke: 2px var(--sh-title-color); text-shadow: none; }

/* Shadows toggles */
.scroll-hero .sh-wrapper[data-title-shadow="0"] .sh-title { text-shadow: none; }
.scroll-hero .sh-wrapper[data-small-shadow="0"] .sh-media-captions { text-shadow: none; }
.scroll-hero .sh-content { min-height: 60vh; opacity: 0; transition: opacity .7s ease; background: transparent; }
.scroll-hero .sh-content .sh-content-inner { width: min(900px, 92%); margin-inline: auto; padding: 40px 0 60px; }

@media (max-width: 767px){
  .scroll-hero .sh-media { border-radius: 14px; }
}

 /* Clip horizontal overflow for animated elements inside Scroll Hero */
 .scroll-hero .sh-stage,
 .scroll-hero .sh-title-wrap { overflow-x: hidden; }
 /* Extra clipping on wrapper & container to prevent stray horizontal scroll */
 .scroll-hero .sh-wrapper,
 .scroll-hero .sh-container { overflow-x: hidden; }
 /* Prevent transformed titles from expanding layout */
 .scroll-hero .sh-title { max-width: 100%; }

 /* Restore horizontal overflow for desktop so side-scroll effect is visible */
 @media (min-width: 992px){
   /* Keep the hero itself clipped so page won't show a horizontal scrollbar */
   .scroll-hero { overflow-x: clip; }
   .scroll-hero .sh-stage,
   .scroll-hero .sh-title-wrap,
   .scroll-hero .sh-wrapper,
   .scroll-hero .sh-container { overflow-x: visible; }
 }

 /* Fallback for browsers that do not support overflow: clip (e.g., older Safari) */
 @supports not (overflow: clip) {
   .scroll-hero { overflow-x: hidden; }
 }

/* Grids */
.grid { display: grid; gap: 24px; }
.services-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* About Features grid (dark, table-like, 1/2/3 cols, rounded container) */
.af-grid { display: grid; gap: 0; grid-template-columns: repeat(1, minmax(0, 1fr)); border: 1px solid var(--af-divider, #2b3545); border-radius: 14px; overflow: hidden; background: var(--af-bg, #0b1220); }
.af-item { position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-areas: 'icon title' 'icon text'; align-items: start; column-gap: 12px; row-gap: 6px; padding: 22px; color: #d1d5db; background: var(--af-bg, #0b1220); }
/* Hairline separators drawn via pseudo-elements so they align perfectly across the grid */
.af-item::before, .af-item::after { content: ''; position: absolute; background: var(--af-divider, #2b3545); display: none; }
/* vertical line */
.af-item::before { top: 0; bottom: 0; width: 1px; inset-inline-start: 0; }
/* horizontal line */
.af-item::after { height: 1px; inset-inline-start: 0; inset-inline-end: 0; top: 0; }
.af-icon { grid-area: icon; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--af-icon, #22c55e); color: var(--af-icon, #22c55e); background: var(--af-icon-bg, rgba(34,197,94,.06)); font-size: 18px; }
.af-title { grid-area: title; margin: 0; color: var(--af-title, #e5e7eb); font-weight: 800; font-size: 20px; line-height: 1.2; }
.af-text { grid-area: text; margin: 0; color: var(--af-text, #9ca3af); line-height: 1.65; }
@media (min-width: 768px){
  .af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* show vertical line for items that are NOT in first column */
  .af-item:nth-child(2n)   { --show-v: 1; }
  /* show horizontal line for items that are NOT in first row */
  .af-item:nth-child(n+3) { --show-h: 1; }
  .af-item:nth-child(2n)::before   { display: block; }
  .af-item:nth-child(n+3)::after   { display: block; }
}
@media (min-width: 1024px){
  .af-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* vertical line for items in columns 2 and 3 */
  .af-item:not(:nth-child(3n+1))::before { display: block; }
  /* horizontal line for items that are NOT in first row (items index > 3) */
  .af-item:nth-child(n+4)::after { display: block; }
}


/* Service cards */
.service-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.04); }
.service-title { font-size: 22px; margin: 0 0 8px; }
.service-desc { color: #6b7280; margin: 0 0 12px; }
.service-list { padding: 0; margin: 0; list-style: none; }
.service-list li { position: relative; padding-inline-start: 14px; margin: 8px 0; }
.service-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 10px; width: 8px; height: 8px; background: #111827; border-radius: 999px; }

/* Strong GROW hover for service cards (desktop) */
@media (hover: hover) and (pointer: fine) {
  .services-grid .service-card {
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
    transform-origin: center center;
    will-change: transform, box-shadow;
  }

/* =============================
   Footer (Footer7-like layout)
   ============================= */
.site-footer { --ft-bg:#0b1220; --ft-text:#cbd5e1; --ft-muted:#94a3b8; --ft-heading:#e2e8f0; --ft-divider:#243041; --ft-accent:#e9b949; background: var(--ft-bg); color: var(--ft-text); padding: 64px 0 24px; }
.site-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-top { display: flex; flex-direction: column; gap: 40px; }
.footer-left { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-site-name { font-size: 20px; font-weight: 700; color: var(--ft-heading); margin: 0; }
.footer-desc { max-width: 70%; color: var(--ft-muted); font-size: 14px; margin: 0; }
.footer-socials { display: flex; align-items: center; gap: 16px; list-style: none; padding: 0; margin: 0; color: var(--ft-muted); }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--ft-divider); background: rgba(255,255,255,0.02); transition: all .2s ease; }
.footer-social-link:hover { color: var(--ft-heading); border-color: var(--ft-heading); background: rgba(255,255,255,0.04); }

.footer-right { width: 100%; }
.footer-sections { display: grid; gap: 24px; }
.footer-section { min-width: 0; }
.footer-heading { margin: 0 0 12px; font-weight: 800; color: var(--ft-heading); font-size: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list a { color: var(--ft-muted); font-size: 14px; text-decoration: none; transition: color .2s ease; }
.footer-list a:hover { color: var(--ft-heading); }

.footer-bottom { margin-top: 24px; border-top: 1px solid var(--ft-divider); padding: 20px 0 0; display: flex; flex-direction: column; gap: 12px; color: var(--ft-muted); font-size: 12px; }
.footer-copy { margin: 0; }
.footer-nav .menu { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; padding: 0; margin: 0; }
.footer-nav .menu a { color: var(--ft-muted); text-decoration: none; }
.footer-nav .menu a:hover { color: var(--ft-heading); }

/* RTL tweaks */
[dir="rtl"] .footer-nav .menu { justify-content: flex-start; }

/* responsive */
@media (min-width: 1024px){
  .footer-top { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 40px; }
  .footer-left { width: 40%; }
  .footer-right { width: 60%; }
  .footer-sections { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
  .services-grid .service-card:hover,
  .services-grid .service-card:focus-visible {
    transform: scale(1.09);
    z-index: 3;
    box-shadow: 0 14px 30px rgba(0,0,0,.08), 0 30px 70px rgba(0,0,0,.10);
  }
}

/* Subtle grow on small screens (if hover exists) */
@media (max-width: 767px) and (hover: hover) {
  .services-grid .service-card:hover,
  .services-grid .service-card:focus-visible { transform: scale(1.04); }
}

/* Testimonials */
.testimonial-card { max-width: 800px; margin: 0 auto 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.testimonial-card blockquote { margin: 0 0 12px; font-size: clamp(16px, 2.5vw, 20px); line-height: 1.7; color: #111827; }
.testimonial-meta { display: flex; gap: 8px; justify-content: flex-end; color: #6b7280; }
.testimonial-meta .name { font-weight: 700; color: var(--blue); }

/* Helper */
.gradient-text { background: linear-gradient(135deg, var(--gold), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer */
.site-footer { background: var(--blue); color: #fff; padding: 64px 0 28px; }
.site-footer .footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(1, minmax(0, 1fr)); margin-bottom: 28px; }
.site-footer .footer-title { font-size: 22px; margin: 0 0 8px; font-weight: 800; }
.site-footer .footer-subtitle { font-size: 18px; margin: 0 0 8px; font-weight: 700; color: var(--gold); }
.site-footer .footer-text { color: rgba(255,255,255,.9); margin: 0 0 12px; }
.site-footer .footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-socials { display: flex; gap: 12px; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.3); margin-top: 20px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (min-width: 992px) {
  .site-footer .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Calculator */
.calc-form { margin-top: 20px; }
.calc-grid { display: grid; gap: 16px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
.calc-field { display: grid; gap: 6px; }
.calc-field input,
.calc-field select { border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; font: inherit; }
.calc-checks { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; }
.calc-checks label { display: inline-flex; align-items: center; gap: 8px; margin: 6px 10px; }
.calc-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.calc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-subtitle { margin: 18px 0 10px; font-weight: 800; color: var(--blue); }
.calc-products { margin-top: 16px; }
.products-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px){ .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-card { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.04); align-items: center; }
.product-card:hover { box-shadow: 0 10px 22px rgba(0,0,0,.08); transform: translateY(-2px); transition: .25s ease; }
.product-media img, .product-placeholder { width: 92px; height: 72px; object-fit: cover; border-radius: 10px; background: #f3f4f6; }
.product-title { margin: 0 0 6px; font-size: 18px; }
.product-desc { color: var(--muted); font-size: 14px; }
.product-buy { display: grid; gap: 10px; justify-items: end; }
.product-price { font-weight: 800; color: var(--blue); }
.qty { display: inline-grid; grid-auto-flow: column; align-items: center; gap: 8px; background: transparent; border: none; }
.qty-btn { width: 28px; height: 28px; display: grid; place-items: center; background: #eef1f5; border: 1px solid #e5e7eb; color: #0b1b3b; font-weight: 900; font-size: 14px; border-radius: 999px; cursor: pointer; transition: background .15s ease, transform .1s ease, box-shadow .2s ease; }
.qty-btn:hover { background: #e7ebf2; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.qty-btn:active { transform: translateY(0); }
.qty-input { width: 34px; text-align: center; border: none; background: transparent; padding: 0; font-weight: 800; font-size: 16px; color: #0b1b3b; }
.qty-input:focus { outline: none; }
/* Reorder to match [+] [qty] [-] visually, without changing HTML */
.qty .qty-btn.plus { order: 1; }
.qty .qty-input { order: 2; }
.qty .qty-btn.minus { order: 3; }
/* Slightly larger touch targets on small screens */
@media (max-width: 480px){
  .qty-btn { width: 32px; height: 32px; font-size: 16px; }
  .qty-input { width: 34px; font-size: 16px; }
}
.calc-total { font-size: 20px; }
@media (min-width: 768px) {
  .calc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Carousel (Testimonials) */
#testimonials .carousel { position: relative; max-width: 980px; margin: 0 auto; }
#testimonials .carousel-viewport { overflow: hidden; border-radius: 14px; }
#testimonials .carousel-track { display: flex; gap: 0; transition: transform .45s ease; will-change: transform; }
#testimonials .testimonial-card { min-width: 100%; max-width: none; margin: 0; box-sizing: border-box; text-align: right; }
#testimonials .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); border: none; width: 40px; height: 40px; border-radius: 999px; background: rgba(11,27,59,.85); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.2); z-index: 2; }
#testimonials .carousel-btn:hover { background: var(--blue-600); }
#testimonials .carousel-btn.prev { inset-inline-start: 8px; }
#testimonials .carousel-btn.next { inset-inline-end: 8px; }
#testimonials .carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
#testimonials .carousel-dots button { width: 10px; height: 10px; border-radius: 999px; background: #d1d5db; border: none; cursor: pointer; }
#testimonials .carousel-dots button[aria-selected="true"] { background: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.18); }

/* Calculator polish */
.calc-form { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.calc-field label { font-weight: 700; color: var(--blue); }
.calc-field input, .calc-field select { transition: border-color .2s ease, box-shadow .2s ease; }
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.18); }
.calc-checks { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.calc-checks label { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 999px; padding: 6px 10px; }
.calc-checks input { accent-color: var(--gold); }
.calc-actions .cta { padding: 12px 16px; }
.btn-wa, .btn-pdf { border-radius: 999px; padding: 12px 16px; font-weight: 500; font-family: inherit; font-size: 14.5px; line-height: 1.3; letter-spacing: 0; border: none; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-align: center; transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.btn-wa strong, .btn-pdf strong { font-weight: inherit; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 18px rgba(37,211,102,.25); }
.btn-wa:hover { filter: brightness(1.06); box-shadow: 0 10px 22px rgba(37,211,102,.3); transform: translateY(-1px); }
.btn-wa:active { transform: translateY(0); }
.btn-pdf { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(11,27,59,.25); }
.btn-pdf:hover { filter: brightness(1.06); box-shadow: 0 10px 22px rgba(11,27,59,.3); transform: translateY(-1px); }
.btn-pdf:active { transform: translateY(0); }
.calc-summary { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #e5e7eb; padding-top: 10px; }
.calc-total strong { color: var(--blue); }
.product-card { border-color: #e6e6e6; }
.product-price { color: var(--blue); }
.qty-input { background: #fff; }

/* Helpers */
.hidden { display: none !important; }

/* Disabled state for calc actions */
.calc-actions button[disabled], .calc-actions .cta[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

/* Calculator two-panel layout */
.calc-layout { display: grid; gap: 20px; }
@media (min-width: 992px) {
  .calc-layout { grid-template-columns: 360px 1fr; align-items: start; }
}

/* Quote panel (left) */
.quote-panel { background: #fff; border: 1px solid #dee1e5; border-radius: 14px; padding: 16px; box-shadow: 0 10px 24px rgba(11,27,59,.06); }
.quote-title { font-size: 20px; font-weight: 800; color: var(--blue); margin: 0 0 12px; }
.quote-body { max-height: 380px; overflow: auto; padding-inline: 4px; }
.quote-empty { text-align: center; color: #6b7280; padding: 24px 8px; }
.quote-empty .empty-icon { font-size: 40px; opacity: .7; margin-bottom: 8px; }
.quote-empty .empty-icon img { display: inline-block; width: clamp(56px, 20%, 144px); height: auto; vertical-align: middle; }
.quote-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.quote-item { border: 1px solid #e6eaf0; border-radius: 14px; padding: 12px; background: #f7f9fc; box-shadow: 0 2px 8px rgba(0,0,0,.02); }
/* Two-row grid inside each item: qty | details | remove */
.qi-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 8px 12px; align-items: center; }
/* Place elements in the grid */
.qi-row .qty { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.qi-title { grid-column: 2; grid-row: 1; font-weight: 800; color: #0b1b3b; margin: 0; }
.qi-price { grid-column: 2; grid-row: 2; color: #6b7280; font-weight: 700; font-size: 14px; }
.qi-remove { grid-column: 3; grid-row: 1 / span 2; justify-self: end; position: relative; background: #ef4444; border: none; color: #fff; cursor: pointer; inline-size: 30px; block-size: 30px; border-radius: 999px; display: inline-grid; place-items: center; box-shadow: 0 2px 10px rgba(239,68,68,.24); transition: transform .08s ease, box-shadow .15s ease, background .15s ease; }
.qi-remove::before, .qi-remove::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; background: #ffffff; border-radius: 2px; transform-origin: center; }
.qi-remove::before { transform: translate(-50%, -50%) rotate(45deg); }
.qi-remove::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.qi-remove:hover { background: #dc2626; box-shadow: 0 4px 14px rgba(220,38,38,.28); transform: translateY(-1px); }
.qi-remove:active { transform: translateY(0); }
.qi-remove:focus-visible { outline: 3px solid rgba(239,68,68,.45); outline-offset: 2px; }
.quote-summary { margin-top: 12px; display: grid; gap: 10px; }

/* Desktop only: keep quote panel sticky */
@media (min-width: 992px){
  .quote-panel { position: sticky; top: 88px; }
}

/* Sticky bottom quote bar (appears when calculator is out of view) */
.sticky-quote { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; transform: translateY(100%); opacity: 0; transition: transform .32s ease, opacity .28s ease; pointer-events: none; will-change: transform, opacity; }
.sticky-quote.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sticky-quote .sq-wrap { opacity: 0; transform: translateY(6px); transition: transform .32s ease .06s, opacity .28s ease .06s; will-change: transform, opacity; }
.sticky-quote.show .sq-wrap { opacity: 1; transform: translateY(0); }
.sticky-quote .sq-right .cta, .sticky-quote .sq-details { transform: scale(.985); transition: transform .28s ease .1s; }
.sticky-quote.show .sq-right .cta, .sticky-quote.show .sq-details { transform: scale(1); }
.sticky-quote .sq-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--blue); color: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px rgba(11,27,59,.18); direction: rtl; }
.sticky-quote .sq-right { display: flex; align-items: center; gap: 10px; }
.sticky-quote .sq-left { display: flex; align-items: center; gap: 8px; }
.sticky-quote .sq-total { font-weight: 700; }
.sticky-quote .sq-total strong { color: #fff; }
.sticky-quote .sq-back { position: relative; font-family: inherit; z-index: 0; box-shadow: none; border: none; background-color: var(--blue-500, #2563eb); color: #fff; }
.sticky-quote .sq-back { transition: all .2s ease; }
.sticky-quote .sq-back:active { transform: scale(.96); }
.sticky-quote .sq-back::before,
.sticky-quote .sq-back::after { position: absolute; content: ""; width: 150%; left: 50%; height: 100%; transform: translateX(-50%); z-index: -1; background-repeat: no-repeat; }
.sticky-quote .sq-back:hover::before { top: -70%; background-image: radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,transparent 20%,var(--blue-500, #2563eb) 20%,transparent 30%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,transparent 10%,var(--blue-500, #2563eb) 15%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%);
  background-size: 10% 10%,20% 20%,15% 15%,20% 20%,18% 18%,10% 10%,15% 15%,10% 10%,18% 18%; background-position: 50% 120%; animation: sqTopBubbles .6s ease; }
.sticky-quote .sq-back:hover::after { bottom: -70%; background-image: radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,transparent 10%,var(--blue-500, #2563eb) 15%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%);
  background-size: 15% 15%,20% 20%,18% 18%,20% 20%,15% 15%,20% 20%,18% 18%; background-position: 50% 0%; animation: sqBottomBubbles .6s ease; }
.sticky-quote .sq-right .cta { padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 800; line-height: 1; min-height: 42px; letter-spacing: .2px; }
.sticky-quote .sq-right .btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-600, #c7a946) 100%);
  color: #1f2937;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 24px rgba(212,175,55,.30), inset 0 1px 0 rgba(255,255,255,.55);
  border-radius: 999px;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
/* Override primary style when used on .sq-back to apply bubble effect */
.sticky-quote .sq-back.btn-primary {
  background: var(--blue-500, #2563eb) !important;
  color: #fff;
  border: none;
  box-shadow: none;
  text-shadow: none;
}
.sticky-quote .sq-details { background: rgba(255,255,255,.10); color: #f9fafb; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 11px 18px; font-weight: 800; line-height: 1; min-height: 42px; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); font-family: inherit; font-size: 15px; letter-spacing: .2px; }
.sticky-quote .sq-details:hover { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.85); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 18px rgba(0,0,0,.15); transform: translateY(-1px); }
.sticky-quote .sq-details:active { transform: translateY(0); }
.sticky-quote .sq-right .btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(212,175,55,.34), inset 0 1px 0 rgba(255,255,255,.6); }
.sticky-quote .sq-right .btn-primary:active { transform: translateY(0); }
.sticky-quote .sq-right .cta:focus-visible,
.sticky-quote .sq-details:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 2px; }

@media (min-width: 768px){
  .sticky-quote .sq-wrap { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .sticky-quote .sq-right .cta, .sticky-quote .sq-details { font-size: 16px; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce){
  .sticky-quote, .sticky-quote .sq-wrap { transition: none !important; }
  .sticky-quote .sq-right .cta, .sticky-quote .sq-details { transition: none !important; transform: none !important; }
}

/* Sticky quote modal */
.sq-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: transparent; }
.sq-modal[hidden] { display: none; }
.sq-modal .sqm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.48); backdrop-filter: blur(2px); opacity: 0; transition: opacity .22s ease; }
.sq-modal.open .sqm-backdrop { opacity: 1; }
.sq-modal .sqm-card { position: relative; width: min(720px, 96vw); max-height: min(90vh, 720px); background: #fff; border-radius: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.35); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; transform: translateY(10px) scale(.98); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.sq-modal .sqm-card.open { transform: translateY(0) scale(1); opacity: 1; }
.sq-modal .sqm-header { padding: 12px 16px; background: linear-gradient(180deg,#f9fafb,#f1f5f9); display: flex; align-items: center; justify-content: space-between; }
.sq-modal .sqm-header, .sq-modal .sqm-footer { direction: rtl; }
.sq-modal #sqm-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--blue); }
.sq-modal .sqm-close { position: relative; width: 40px; height: 40px; border: none; cursor: pointer; border-radius: 999px; background: rgba(30,41,59,.08); transition: background .25s ease, transform .1s ease, box-shadow .25s ease; color: transparent; font-size: 0; line-height: 0; }
.sq-modal .sqm-close::before,
.sq-modal .sqm-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 2px; border-radius: 2px; background-color: #334155; transform-origin: center; transform: translate(-50%, -50%) rotate(45deg); }
.sq-modal .sqm-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.sq-modal .sqm-close:hover { background: #ef4444; box-shadow: 0 6px 20px rgba(239,68,68,.35); }
.sq-modal .sqm-close:hover::before,
.sq-modal .sqm-close:hover::after { background-color: #fff; }
.sq-modal .sqm-close:active { transform: scale(.96); }
.sq-modal .sqm-close:focus-visible { outline: 3px solid rgba(239,68,68,.5); outline-offset: 2px; }
.sq-modal .sqm-body { padding: 16px 18px; overflow: auto; }
.sq-modal .sqm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sq-modal .sqm-list li { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; display: flex; align-items: center; justify-content: space-between; }
.sq-modal .sqm-footer { padding: 12px 16px; border-top: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }
.sq-modal .sqm-total strong { color: var(--blue); }

/* Prevent background scroll when modal is open */
body.ag-lightbox-open { overflow: hidden; }

/* Product image Lightbox */
#ag-lightbox { position: fixed; inset: 0; z-index: 2200; display: none; }
#ag-lightbox.open { display: block; }
#ag-lightbox .aglb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(2px); opacity: 1; }
#ag-lightbox .aglb-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
#ag-lightbox .aglb-figure { position: relative; display: inline-block; }
#ag-lightbox .aglb-img { order: 1; max-width: min(92vw, 1100px); max-height: min(82vh, 1100px); width: auto; height: auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #111; object-fit: contain; }
#ag-lightbox .aglb-close { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 999px; background: #ef4444; border: none; cursor: pointer; transition: background .15s ease, transform .1s ease, box-shadow .2s ease; box-shadow: 0 6px 18px rgba(239,68,68,.35); }
#ag-lightbox .aglb-close::before, #ag-lightbox .aglb-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 3px; background: #fff; border-radius: 2px; transform-origin: center; }
#ag-lightbox .aglb-close::before { transform: translate(-50%, -50%) rotate(45deg); }
#ag-lightbox .aglb-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
#ag-lightbox .aglb-close:hover { background: #dc2626; box-shadow: 0 8px 22px rgba(220,38,38,.42); }
#ag-lightbox .aglb-close:active { transform: scale(.96); }
#ag-lightbox .aglb-close:focus-visible { outline: 3px solid rgba(239,68,68,.6); outline-offset: 2px; }
#ag-lightbox .aglb-caption { order: 0; position: static; text-align: center; color: rgba(255,255,255,.95); font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.45); padding: 0 14px; font-size: clamp(16px, 2.4vw, 20px); line-height: 1.25; margin-bottom: 6px; }

@media (max-width: 640px){
  #ag-lightbox .aglb-card { padding: 16px; gap: 10px; }
  #ag-lightbox .aglb-close { top: 10px; left: 10px; width: 36px; height: 36px; }
  #ag-lightbox .aglb-img { max-height: 76vh; border-radius: 14px; }
}
/* Keyframes for bubble hover animations on sq-back */
@keyframes sqTopBubbles {
  0% { background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%; }
  50% { background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%; }
  100% { background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%; background-size: 0% 0%,0% 0%,0% 0%,0% 0%,0% 0%,0% 0%; }
}
@keyframes sqBottomBubbles {
  0% { background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%; }
  50% { background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%; }
  100% { background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%; background-size: 0% 0%,0% 0%,0% 0%,0% 0%,0% 0%,0% 0%; }
}
body.modal-open { overflow: hidden; }

/* Quote contact form */
.quote-contact { display: grid; gap: 10px; margin: 10px 0 14px; }
.quote-contact .ag-field { display: grid; gap: 6px; }
.quote-contact label { font-weight: 700; color: var(--blue); }
.quote-contact input { border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; font: inherit; }
.quote-contact input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.18); }

/* Date picker (Flatpickr) */
.quote-contact input.flatpickr-input,
.quote-contact .flatpickr-input[readonly],
.quote-contact .flatpickr-input[readonly].input { background: #fff; cursor: text; }
.flatpickr-calendar { font-family: 'Heebo', 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; box-shadow: 0 12px 30px rgba(11,27,59,.18); border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.flatpickr-months { background: #f9fafb; }
.flatpickr-months .flatpickr-month { height: 44px; }
.flatpickr-current-month { padding-top: 6px; }
.flatpickr-weekdays { background: #f3f4f6; }
.flatpickr-day { border-radius: 8px; }
.flatpickr-day:hover { background: #eef2ff; border-color: #e5e7eb; }
.flatpickr-day.today { border-color: var(--gold); }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange { background: var(--blue); border-color: var(--blue); color: #fff; }
.flatpickr-weekwrapper .flatpickr-weeks { background: #fafafa; border-inline-end: 1px solid #eee; }
.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after { display: none; }

/* Alt input (pretty display) */
.flatpickr-input[readonly] { background-color: #fff; }
.flatpickr-input { padding-inline-start: 40px; }

/* Ensure RTL alignment inside popup */
.flatpickr-calendar[dir="rtl"] .flatpickr-days,
.flatpickr-calendar[dir="rtl"] .flatpickr-weekdays { direction: rtl; }

/* Products panel (right) */
.products-panel { display: grid; gap: 14px; }
.product-cat { border: 1px dashed #e5e7eb; border-radius: 12px; padding: 10px; background: #fff; }
.cat-header { position: sticky; top: 0; background: #fff; z-index: 1; padding: 6px 4px 10px; display: flex; align-items: center; gap: 8px; }
.cat-title { display: inline-block; background: #f0f4ff; color: var(--blue); border: 1px solid #dbeafe; padding: 4px 10px; border-radius: 999px; font-weight: 800; }
.cat-toggle { inline-size: 28px; block-size: 28px; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff; color: var(--blue); font-weight: 900; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: background .2s ease; font-size: 0; position: relative; }
.cat-toggle:focus { outline: none; box-shadow: 0 0 0 3px rgba(11,27,59,.2); }
.cat-toggle::before { content: "▾"; font-size: 16px; line-height: 1; transform: rotate(0deg); display: inline-block; transition: transform .22s ease; }
.cat-toggle::after { content: none !important; }
.product-cat.collapsed .cat-toggle::before { transform: rotate(180deg); }
.product-cat .cat-list { overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-4px); transition: max-height .32s ease, opacity .22s ease, transform .22s ease; }
.product-cat:not(.collapsed) .cat-list { opacity: 1; transform: translateY(0); }
.no-anim .product-cat .cat-list { transition: none !important; }
.cat-list { display: grid; gap: 10px; }

/* Product row */
.product-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.02); }
.pi-media img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; }
.pi-title { font-size: 16px; font-weight: 800; margin: 0; color: #0b1b3b; }
.pi-desc { font-size: 13px; color: #6b7280; }
.pi-buy { display: grid; gap: 8px; justify-items: end; }
.pi-price { font-weight: 800; color: var(--blue); }
.pi-add { width: 36px; height: 36px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; color: var(--blue); font-weight: 900; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.06); transition: background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease; }
.pi-add:hover { background: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(11,27,59,.18); }
.pi-add:active { transform: translateY(0); }

/* Validation states */
.ag-field .req { color: #ef4444; }
.ag-field.invalid input { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.15); }
.ag-field .field-error { color: #ef4444; font-size: 12px; min-height: 16px; }

/* Toast */
#ag-toast { position: fixed; right: 16px; left: auto; bottom: 16px; background: #0b1b3b; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.25); opacity: 0; transform: translateX(120%); transition: transform .35s ease, opacity .35s ease; z-index: 9999; }
#ag-toast.show { opacity: 1; transform: translateX(0); }

/* Inline contact form (horizontal, RTL) */
.inline-contact { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: center; direction: rtl; }
.inline-contact input { border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; font: inherit; min-width: 0; }
.inline-contact input { width: 100%; }
.inline-contact input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,27,59,.18); }
.inline-contact .cta { white-space: nowrap; padding: 10px 16px; border-radius: 10px; font-weight: 700; letter-spacing: 0; font-family: inherit; }
.inline-contact .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(11,27,59,.20); border: 1px solid rgba(0,0,0,.06); }
.inline-contact .btn-primary:hover { background: var(--blue-600); }
.inline-contact .ic-status { color: var(--muted); min-width: 120px; text-align: start; font-size: 14px; display: block; grid-column: 1 / -1; }
/* Center contact section title and form */
#contact .section-title { text-align: center; }
/* Make the inline form span full container width (align with container edges) */
#contact .inline-contact { width: 100%; max-width: none; margin-inline: 0; justify-content: center; }
/* Native built-in form: 4 equal fields + auto submit at end (desktop). Lock order with grid areas */
#contact #ag-inline-form.inline-contact {
  grid-auto-flow: row;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) auto;
  grid-template-areas: 
    "name phone email msg submit"
    "status status status status status";
  align-items: center;
}
#contact #ag-inline-form #ic_name { grid-area: name; }
#contact #ag-inline-form #ic_phone { grid-area: phone; }
#contact #ag-inline-form #ic_email { grid-area: email; }
#contact #ag-inline-form #ic_msg { grid-area: msg; }
#contact #ag-inline-form .cta { grid-area: submit; justify-self: start; }
#contact #ag-inline-form .ic-status { grid-area: status; }
/* Hide status on desktop so the 5 controls align neatly; show on mobile below */
@media (min-width: 721px){
  #contact .inline-contact .ic-status { display: block; }
}
/* CF7 inline: keep centered but allow full width inside container */
#contact .ic-cf7 .wpcf7-form { justify-content: center; width: 100%; }

  /* Equal vertical spacing above and below the contact section */
  #contact.section { padding-block: 88px; padding-block-end: 240px; }
  @media (max-width: 720px){
    #contact.section { padding-block-end: 120px; }
  }
  /* Prevent extra space below from CF7 response box and trailing child margins */
  #contact .wpcf7-response-output { margin: 12px 0 0 !important; }
  #contact .container > :last-child { margin-bottom: 0; }
  .inline-contact.ic-cf7 .wpcf7-form { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: center; }
  .inline-contact.ic-cf7 .wpcf7-form p { margin: 0; }
  .inline-contact.ic-cf7 input[type="text"],
.inline-contact.ic-cf7 input[type="email"],
.inline-contact.ic-cf7 input[type="tel"],
.inline-contact.ic-cf7 textarea,
.inline-contact.ic-cf7 select { border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; font: inherit; min-width: 0; }
.inline-contact.ic-cf7 input:focus,
.inline-contact.ic-cf7 textarea:focus,
.inline-contact.ic-cf7 select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,27,59,.18); }
.inline-contact.ic-cf7 input[type="submit"],
.inline-contact.ic-cf7 button[type="submit"] { background: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(11,27,59,.20); border: 1px solid rgba(0,0,0,.06); border-radius: 10px; padding: 10px 16px; font-weight: 700; letter-spacing: 0; font-family: inherit; }
.inline-contact.ic-cf7 input[type="submit"]:hover,
.inline-contact.ic-cf7 button[type="submit"]:hover { background: var(--blue-600); }
/* Match contact form submit with sticky quote back button style */
#contact .inline-contact .cta.btn-primary:not(.animated-button),
#contact .inline-contact input[type="submit"]:not(.animated-button),
#contact .inline-contact button[type="submit"]:not(.animated-button) {
  position: relative;
  font-family: inherit;
  z-index: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  background-color: var(--blue-500, #2563eb);
  color: #fff;
  transition: all .2s ease;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  min-height: 42px;
  letter-spacing: .2px;
}
#contact .inline-contact .cta.btn-primary:not(.animated-button):active,
#contact .inline-contact input[type="submit"]:not(.animated-button):active,
#contact .inline-contact button[type="submit"]:not(.animated-button):active { transform: scale(.96); }
#contact .inline-contact .cta.btn-primary:not(.animated-button)::before,
#contact .inline-contact .cta.btn-primary:not(.animated-button)::after,
#contact .inline-contact input[type="submit"]:not(.animated-button)::before,
#contact .inline-contact input[type="submit"]:not(.animated-button)::after,
#contact .inline-contact button[type="submit"]:not(.animated-button)::before,
#contact .inline-contact button[type="submit"]:not(.animated-button)::after {
  position: absolute;
  content: "";
  width: 150%;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  background-repeat: no-repeat;
}
#contact .inline-contact .cta.btn-primary:not(.animated-button):hover::before,
#contact .inline-contact input[type="submit"]:not(.animated-button):hover::before,
#contact .inline-contact button[type="submit"]:not(.animated-button):hover::before {
  top: -70%;
  background-image: radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,transparent 20%,var(--blue-500, #2563eb) 20%,transparent 30%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,transparent 10%,var(--blue-500, #2563eb) 15%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%);
  background-size: 10% 10%,20% 20%,15% 15%,20% 20%,18% 18%,10% 10%,15% 15%,10% 10%,18% 18%;
  background-position: 50% 120%;
  animation: sqTopBubbles .6s ease;
}
#contact .inline-contact .cta.btn-primary:not(.animated-button):hover::after,
#contact .inline-contact input[type="submit"]:not(.animated-button):hover::after,
#contact .inline-contact button[type="submit"]:not(.animated-button):hover::after {
  bottom: -70%;
  background-image: radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,transparent 10%,var(--blue-500, #2563eb) 15%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%), radial-gradient(circle,var(--blue-500, #2563eb) 20%,transparent 20%);
  background-size: 15% 15%,20% 20%,18% 18%,20% 20%,15% 15%,20% 20%,18% 18%;
  background-position: 50% 0%;
  animation: sqBottomBubbles .6s ease;
}
/* Focus ring for accessibility */
#contact .inline-contact .cta.btn-primary:not(.animated-button):focus-visible,
#contact .inline-contact input[type="submit"]:not(.animated-button):focus-visible,
#contact .inline-contact button[type="submit"]:not(.animated-button):focus-visible {
  outline: 3px solid rgba(37,99,235,.45);
  outline-offset: 2px;
}
@media (max-width: 720px){
  .inline-contact { grid-auto-flow: row; grid-template-columns: 1fr; }
  .inline-contact.ic-cf7 .wpcf7-form { grid-auto-flow: row; grid-template-columns: 1fr; }
  .inline-contact .ic-status { min-width: 0; }
}
/* Ensure single-column layout on mobile also for the native form (override ID-specific rule) */
@media (max-width: 720px){
  #contact #ag-inline-form.inline-contact { 
    grid-template-columns: 1fr; 
    grid-template-areas:
      "name"
      "phone"
      "email"
      "msg"
      "submit"
      "status";
  }
  #contact #ag-inline-form .cta { justify-self: stretch; text-align: center; }
}
/* Stack the inline form earlier (tablets and below) to ensure top-to-bottom layout */
@media (max-width: 991px){
  /* Native inline form */
  #contact #ag-inline-form.inline-contact { 
    grid-auto-flow: row !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "name"
      "phone"
      "email"
      "msg"
      "submit"
      "status";
  }
  #contact #ag-inline-form .cta { justify-self: stretch; width: 100%; text-align: center; }
  /* CF7 variant inside inline-contact wrapper */
  #contact .inline-contact.ic-cf7 .wpcf7-form { 
    display: grid; grid-auto-flow: row !important; grid-template-columns: 1fr !important; 
  }
  #contact .inline-contact.ic-cf7 input[type="submit"],
  #contact .inline-contact.ic-cf7 button[type="submit"] { width: 100%; }
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; top: 0; left: 0; }
@media (max-width: 720px){
  .inline-contact { grid-auto-flow: row; grid-template-columns: 1fr; }
  .inline-contact .ic-status { min-width: 0; }
}

/* --- Mobile layout fixes (must be after base rules) --- */
@media (max-width: 991px){
  .calc-layout { display: block !important; }
  .calc-layout .quote-panel { position: static !important; position: initial !important; top: auto !important; z-index: auto !important; overflow: visible !important; margin-bottom: 32px !important; padding-bottom: 16px !important; }
  .quote-body { max-height: none !important; }
  .calc-layout .products-panel { margin-top: 0 !important; z-index: auto !important; clear: both !important; }
}

/* --- FINAL OVERRIDE: force single-column inline contact on mobile/tablet --- */
@media (max-width: 991px){
  #contact .inline-contact { display: grid; grid-auto-flow: row !important; grid-template-columns: 1fr !important; }
  #contact .inline-contact > * { width: 100% !important; min-width: 0; }
  #contact .inline-contact .ic-status { grid-column: 1 / -1 !important; }
}

/* Prevent stray horizontal scroll on the page */
html, body { max-width: 100%; overflow-x: hidden; }

/* Contain sticky-quote bubble pseudo-elements within the button */
.sticky-quote .sq-back { overflow: hidden; }

/* Contain sticky-quote to prevent horizontal overflow from children/pseudo-elements */
.sticky-quote { overflow-x: clip; contain: paint; max-width: 100vw; box-sizing: border-box; }
/* Ensure inner wrapper doesn't push layout horizontally */
.sticky-quote .sq-wrap { overflow-x: clip; }

/* Fallback for browsers that do not support overflow: clip */
@supports not (overflow: clip) {
  .sticky-quote, .sticky-quote .sq-wrap { overflow-x: hidden; }
}

  /* --- Animated contact submit button (global) --- */
  .submit-btn { background: transparent; border: none; padding: 0; }
  .animated-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    border: 2px solid #2563EB;
    border-radius: 100px;
    background: transparent;
    color: #2563EB;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    line-height: 1;
    min-height: 54px;
    height: 54px;
    white-space: nowrap;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .animated-button svg {
    position: absolute;
    width: 30px;
    fill: #2563EB;
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .animated-button .arr-1 { right: 24px; }
  .animated-button .arr-2 { left: -32%; }
  .animated-button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: #2563EB;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
  }
  .animated-button .text {
    position: relative;
    z-index: 3;
    transform: translateX(-14px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .animated-button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #ffffff;
    border-radius: 12px;
    background: transparent;
  }
  .animated-button:hover .arr-1 { right: -25%; }
  .animated-button:hover .arr-2 { left: 24px; }
  .animated-button:hover .text { transform: translateX(14px); }
  .animated-button:hover svg { fill: #ffffff; }
  .animated-button:hover .circle { width: 340px; height: 340px; opacity: 1; }
  .animated-button:active { transform: scale(0.97); }
  .animated-button:disabled { opacity: .6; cursor: not-allowed; }

 /* Respect reduced motion */
 @media (prefers-reduced-motion: reduce) {
   .animated-button,
   .animated-button svg,
   .animated-button .circle,
   .animated-button .text { transition: none !important; }
 }

  /* RTL tweaks for animated button */
  [dir="rtl"] .animated-button svg { transform: scaleX(-1); }
  [dir="rtl"] .animated-button .arr-1 { left: 24px; right: auto; }
  [dir="rtl"] .animated-button .arr-2 { right: -32%; left: auto; }
  [dir="rtl"] .animated-button:hover .arr-1 { left: -25%; right: auto; }
  [dir="rtl"] .animated-button:hover .arr-2 { right: 24px; left: auto; }
  [dir="rtl"] .animated-button .text { transform: translateX(14px); }
  [dir="rtl"] .animated-button:hover .text { transform: translateX(-14px); }
