/* Final compatibility rules for the preserved design. */

body { overflow-x: clip; overflow-y: visible; }
*,*::before,*::after { box-sizing: border-box; }

:where(a,button,input,select,textarea):focus-visible { outline: 3px solid #e89c4a !important; outline-offset: 5px; }
.hero-ctas { flex-wrap: wrap; }
.hero-ctas .btn-outline { color:#fff; border:2px solid #c9e7d9; background:#123d2e; white-space:normal; text-align:center; line-height:1.4; }
.hero-ctas > * { flex: 0 1 auto; max-width:100%; }
.hero-title { overflow:visible; }
.hero-sub .word,.sec-sub .word { white-space:normal; }
.services-intro-content { position:relative;z-index:1; }
.services-intro-title,.services-intro-sub,.services-intro-scroll-hint { color:#fff !important; }
.services-intro-eyebrow { color:#bde8d5 !important; }
.ss-panel .ss-cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
  .ss-cta-primary,
  .ss-cta-wa {
    min-height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform .18s var(--ease-apple);
    -webkit-tap-highlight-color: transparent;
  }
  .ss-cta-primary {
    flex: 1 1 0;
    gap: 8px;
    padding: 0 14px;
    text-align: center;
    background: var(--accent);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 4px 14px rgba(12,114,103,.40);
  }
  .ss-cta-wa {
    width: 48px; flex: 0 0 48px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.04) 40%, rgba(255,255,255,.16) 100%);
    backdrop-filter: blur(10px) saturate(190%);
    -webkit-backdrop-filter: blur(10px) saturate(190%);
    border: 1px solid rgba(255,255,255,.30);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,.70);
  }
  /* emergency: danger fill + live dot */
  .ss-panel[data-slide="2"] .ss-cta-primary {
    background: var(--danger);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 14px rgba(196,75,43,.42);
  }
  .ss-panel[data-slide="2"] .ss-cta-primary::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.30);
    flex-shrink: 0;
  }

.ss-panel .sr-title { margin-top:0; }
.ss-nav { gap:0; padding:4px; }
.ss-dot,.cdot { position:relative; width:44px !important; height:44px !important; min-width:44px; padding:0; border:0 !important; background:transparent !important; transform:none !important; box-shadow:none !important; }
.ss-dot::before,.cdot::before { content:''; position:absolute; width:8px; height:8px; left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;background:#a4a79f; }
.ss-dot.ss-dot-active::before { background:#fff; width:11px;height:11px; }
.cdot.active::before { background:#155e45; width:11px;height:11px; }
#carouselDots { gap:0; flex-wrap:wrap; max-width:100%; }
.motion-paused .ticker-inner,.motion-paused .hero-logo-float,.animation-offscreen .ticker-inner,.animation-offscreen .hero-logo-float { animation-play-state:paused !important; }
.motion-toggle { background:none;border:0;color:inherit;text-decoration:underline;font:inherit;font-size:12px;min-height:44px;padding:8px 0;cursor:pointer; }
.hero-left .motion-toggle { color:rgba(255,255,255,.8); }
.contact-note { color:#d3dfd7 !important; line-height:1.6; }
.contact-note a,.contact-success-msg a,#quote-error { color:#f4d5a5 !important; }
.contact-success-msg { scroll-margin-top:120px;color:#d3dfd7 !important; }
.contact-success-msg p { margin:8px 0; }
.contact-form-submit { flex-wrap:wrap; }
.btn-contact-submit { white-space:normal;line-height:1.4;min-height:48px; }
.privacy-section { padding:80px var(--space-gutter,24px); background:#f2f3eb;color:#182e24; }
.privacy-section p { max-width:75ch;line-height:1.7;margin:24px auto;overflow-wrap:anywhere; }
.privacy-section .sec-title { text-align:center; }
.privacy-section .eyebrow { justify-content:center; }
.faq-ans[aria-hidden="true"] { visibility:hidden; transition:grid-template-rows .35s ease,visibility 0s .35s; }
.faq-ans[aria-hidden="false"] { visibility:visible; transition:grid-template-rows .35s ease,visibility 0s; }
/* Preserve the original glass treatment; only constrain geometry and text contrast. */
#ai-assistant .aia-window { width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 100px);display:flex;flex-direction:column;overflow:hidden; }
#ai-assistant .aia-window[hidden] { display:none !important; }
#ai-assistant .aia-header,#ai-assistant .aia-input-wrap,#ai-assistant .aia-footer { flex-shrink:0; }
#ai-assistant .aia-messages { min-height:60px;flex:1 1 auto;height:auto;overflow-y:auto; }
#ai-assistant .aia-footer { font-size:11px;line-height:1.5; }
#ai-assistant .aia-close,#ai-assistant .aia-send { min-width:44px;min-height:44px; }
#ai-assistant a { color:inherit;text-decoration:underline; }
#ai-assistant { --aia-scrim:color-mix(in oklab,rgba(16,15,12,.85),rgba(250,249,247,.92) var(--m)); }
/* Keep readable ink and a translucent text bed while the original glass morphs. */
#ai-assistant {
  --aia-ink:#fff; --aia-ink-2:rgba(255,255,255,.88);
  --aia-ink-3:rgba(255,255,255,.86); --aia-ink-mute:rgba(255,255,255,.86);
  --aia-readable-fill:rgba(16,15,12,.62);
}
#ai-assistant.aia-on-light {
  --aia-ink:#1a1814; --aia-ink-2:rgba(26,24,20,.86);
  --aia-ink-3:rgba(26,24,20,.86); --aia-ink-mute:rgba(26,24,20,.86);
  --aia-readable-fill:rgba(250,249,247,.68);
}
#ai-assistant .aia-msg-ai .aia-bubble,
#ai-assistant .aia-input,#ai-assistant .aia-footer,#ai-assistant .aia-recovery {
  background:var(--aia-readable-fill) !important;color:var(--aia-ink) !important;
}
.aia-recovery { padding:12px;font-size:13px;line-height:1.6;overflow-y:auto;flex-shrink:0;max-height:150px; }
.aia-recovery button { min-height:44px;padding:8px 12px;border:1px solid #9bc8b5;border-radius:10px;background:#235c46;color:white; }
[hidden] { display:none !important; }

@media(max-width:900px) {
  .ss-panel { height:auto !important;min-height:100dvh;overflow:visible; }
  #faq { height:auto !important;min-height:100svh !important;overflow:visible !important; }
  .faq-layout { max-height:none; }
  .faq-list { overflow:visible;flex-shrink:0; }
}
@media(max-width:900px) and (max-height:700px) {
  .ss-panel { padding-top:calc(var(--nav-h,68px) + 24px); }
  #faq { padding-top:calc(var(--nav-h,68px) + 24px) !important; }
}
@media(max-width:480px) {
  .hero-ctas > * { width:100%; }
  #ai-assistant { right:12px;bottom:12px; }
  #ai-assistant .aia-window { right:0; }
  .form-row-dark { grid-template-columns:1fr !important; }
  .services-intro-title { font-size:clamp(32px,10vw,48px); }
  .services-intro-sub br { display:none; }
}
@media(max-height:500px) {
  #ai-assistant .aia-window { bottom:0;right:62px;max-height:calc(100dvh - 24px);width:min(390px,calc(100vw - 90px)); }
  #ai-assistant .aia-header { padding:8px 12px; }
  #ai-assistant .aia-messages { min-height:0;flex:1 1 60px; }
  #ai-assistant .aia-recovery { flex:0 1 auto;min-height:44px;max-height:25dvh; }
  #ai-assistant .aia-footer { flex:0 1 auto;min-height:30px;overflow:auto; }
  .hero,.services-intro-screen { height:auto !important;min-height:100dvh;padding-top:100px;padding-bottom:48px; }
  .ss-panel { height:auto !important;min-height:100dvh;padding-top:100px;padding-bottom:48px; }
}

