/* DigiQuin approved visual patch v4 — loaded after the base stylesheet. */

/* --- Sticky header on desktop and mobile --- */
.site-header{
  position:sticky !important;
  top:0 !important;
  left:auto !important;
  right:auto !important;
  z-index:9999 !important;
  background:rgba(4,11,17,.985) !important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 6px 24px rgba(0,0,0,.16);
}
.header-inner{height:76px !important;}
.brand img{width:280px !important;max-height:58px !important;}
.main-nav{gap:28px !important;font-size:.91rem !important;}
.header-cta{padding:12px 22px !important;border-radius:9px !important;}
html{scroll-padding-top:86px !important;}

/* --- Hero: match the approved composition and proportions --- */
.hero{background:#071018 !important;overflow:hidden;}
.hero-grid{
  min-height:560px !important;
  display:grid !important;
  grid-template-columns:49% 51% !important;
  position:relative !important;
  align-items:stretch !important;
}
.hero-copy{
  padding:48px 34px 28px 0 !important;
  position:relative !important;
  z-index:3 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}
.hero-copy:after{
  content:"" !important;
  position:absolute !important;
  right:-140px !important;
  top:0 !important;
  bottom:0 !important;
  width:240px !important;
  background:linear-gradient(90deg,#071018 0%,rgba(7,16,24,.88) 38%,rgba(7,16,24,0) 100%) !important;
  pointer-events:none !important;
  z-index:-1 !important;
}
.hero .eyebrow{font-size:.72rem !important;letter-spacing:.15em !important;}
.hero h1{
  font-size:clamp(3rem,4vw,4.6rem) !important;
  line-height:.98 !important;
  letter-spacing:-.045em !important;
  margin:18px 0 16px !important;
  max-width:650px !important;
}
.hero-copy>p{
  font-size:1.04rem !important;
  line-height:1.45 !important;
  max-width:630px !important;
  margin:0 0 22px !important;
}
.hero-buttons{gap:12px !important;margin-bottom:24px !important;}
.hero-buttons .btn{padding:13px 22px !important;border-radius:8px !important;}
.hero-icons{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:14px !important;
  max-width:620px !important;
  padding-top:0 !important;
}
.hero-icon{font-size:.76rem !important;gap:6px !important;}
.hero-icon svg{width:31px !important;height:31px !important;}
.hero-image-panel{
  min-height:560px !important;
  margin:0 !important;
  position:relative !important;
  overflow:hidden !important;
  background:#071018 !important;
  align-self:stretch !important;
}
.hero-image-panel:after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  background:linear-gradient(90deg,rgba(7,16,24,.52) 0%,rgba(7,16,24,.16) 12%,rgba(7,16,24,0) 25%) !important;
  pointer-events:none !important;
}
.hero-image-panel img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:right center !important;
}

/* Keep the approved compact feel on large screens. */
@media (min-width:1401px){
  .hero-grid{min-height:570px !important;}
  .hero-image-panel{min-height:570px !important;}
}

@media (max-width:1180px){
  .header-inner{height:72px !important;}
  .brand img{width:240px !important;max-height:54px !important;}
  .hero-grid{grid-template-columns:50% 50% !important;min-height:500px !important;}
  .hero-image-panel{min-height:500px !important;}
  .hero-copy{padding:38px 24px 24px 0 !important;}
  .hero h1{font-size:clamp(2.9rem,5.6vw,4rem) !important;}
  .hero-copy>p{font-size:.98rem !important;}
  .hero-icons{gap:10px !important;}
}

/* Tablet/mobile: keep the hero readable and intentional. */
@media (max-width:860px){
  .site-header{position:sticky !important;top:0 !important;}
  .header-inner{height:68px !important;}
  .brand img{width:205px !important;max-height:50px !important;}
  .main-nav{
    top:68px !important;
    z-index:10000 !important;
    max-height:calc(100dvh - 76px) !important;
  }
  .hero-grid{grid-template-columns:1fr !important;min-height:auto !important;}
  .hero-copy{padding:34px 0 26px !important;}
  .hero-copy:after{display:none !important;}
  .hero h1{font-size:clamp(2.75rem,10vw,4rem) !important;max-width:680px !important;}
  .hero-copy>p{max-width:680px !important;}
  .hero-image-panel{min-height:430px !important;margin:0 -20px !important;}
  .hero-image-panel img{object-position:right center !important;}
  .hero-image-panel:after{background:linear-gradient(180deg,rgba(7,16,24,.25),rgba(7,16,24,0) 24%) !important;}
}

@media (max-width:560px){
  .header-inner{height:64px !important;}
  .brand img{width:186px !important;max-height:46px !important;}
  .main-nav{top:64px !important;max-height:calc(100dvh - 72px) !important;}
  html{scroll-padding-top:72px !important;}
  .hero-copy{padding:28px 0 22px !important;}
  .hero h1{font-size:clamp(2.55rem,12vw,3.25rem) !important;line-height:.98 !important;margin:14px 0 14px !important;}
  .hero-copy>p{font-size:.96rem !important;}
  .hero-buttons{margin-bottom:22px !important;}
  .hero-icons{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:16px 20px !important;}
  .hero-image-panel{min-height:360px !important;margin:0 -14px !important;}
}

/* --- Contact modal: genuinely mobile-safe, including browser chrome and keyboard --- */
@media (max-width:720px){
  body.modal-open{overflow:hidden !important;touch-action:none;}
  .contact-modal{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:var(--modal-vh,100dvh) !important;
    max-height:var(--modal-vh,100dvh) !important;
    padding:0 !important;
    margin:0 !important;
    align-items:stretch !important;
    justify-content:stretch !important;
    overflow:hidden !important;
    z-index:20000 !important;
  }
  .contact-modal.open{display:block !important;}
  .modal-backdrop{position:fixed !important;inset:0 !important;}
  .modal-card{
    position:relative !important;
    width:100vw !important;
    height:var(--modal-vh,100dvh) !important;
    max-height:var(--modal-vh,100dvh) !important;
    min-height:0 !important;
    margin:0 !important;
    border-radius:0 !important;
    padding:18px 16px calc(28px + env(safe-area-inset-bottom)) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
    scroll-padding-bottom:96px !important;
  }
  .modal-close{
    position:sticky !important;
    top:0 !important;
    float:right !important;
    width:40px !important;
    height:40px !important;
    margin:-4px -2px -30px 0 !important;
    z-index:20 !important;
  }
  .modal-card .eyebrow{font-size:.66rem !important;padding-right:44px !important;}
  .modal-card h2{font-size:1.65rem !important;line-height:1.05 !important;margin:10px 0 8px !important;padding-right:38px !important;}
  .modal-card>p{font-size:.88rem !important;line-height:1.35 !important;margin:0 0 10px !important;}
  .modal-form-grid{display:grid !important;grid-template-columns:1fr !important;gap:9px !important;margin-top:10px !important;}
  .modal-form-grid .full{grid-column:auto !important;}
  .modal-form-grid label{font-size:.8rem !important;gap:4px !important;}
  .modal-form-grid input,.modal-form-grid select,.modal-form-grid textarea{padding:10px 11px !important;border-radius:8px !important;font-size:16px !important;}
  .modal-form-grid textarea{min-height:82px !important;max-height:130px !important;}
  .modal-form-grid .full:last-child{
    position:sticky !important;
    bottom:calc(-28px - env(safe-area-inset-bottom)) !important;
    z-index:30 !important;
    margin:2px -16px calc(-28px - env(safe-area-inset-bottom)) !important;
    padding:14px 16px calc(14px + env(safe-area-inset-bottom)) !important;
    background:linear-gradient(180deg,rgba(255,255,255,0),#fff 22%,#fff 100%) !important;
  }
  .modal-form-grid .full:last-child .btn{width:100% !important;min-height:48px !important;}
}

/* ============================================================
   v5 viewport/header/contact corrections — 11 Sep 2026
   ============================================================ */
:root{--dq-header-h:76px;}
body{padding-top:var(--dq-header-h) !important;}
.site-header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
}

/* Give the portrait genuine breathing room below the navigation. */
.hero-image-panel img{
  top:18px !important;
  bottom:auto !important;
  height:calc(100% - 18px) !important;
}

/* Desktop modal begins BELOW the fixed navigation rather than behind it. */
.contact-modal{
  top:var(--dq-header-h) !important;
  right:0 !important;
  bottom:0 !important;
  left:0 !important;
  height:calc(100dvh - var(--dq-header-h)) !important;
  max-height:calc(100dvh - var(--dq-header-h)) !important;
  z-index:9000 !important;
}
.contact-modal .modal-card{
  max-height:calc(100dvh - var(--dq-header-h) - 28px) !important;
}

/* Detail pages previously contained their own fixed-header allowance. */
.detail-hero{padding-top:74px !important;}

/* Dedicated mobile contact screen */
.mobile-contact-page{background:#f5f8fb;min-height:calc(100dvh - var(--dq-header-h));padding:28px 0 44px;}
.mobile-contact-shell{width:min(760px,calc(100% - 32px));margin:0 auto;background:#fff;border:1px solid #e2e9ef;border-radius:16px;box-shadow:0 18px 50px rgba(7,17,26,.08);padding:26px;}
.mobile-contact-shell .contact-back{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#294157;font-weight:800;margin-bottom:18px;}
.mobile-contact-shell h1{font-size:clamp(2rem,7vw,3rem);line-height:1.02;margin:12px 0 10px;letter-spacing:-.035em;}
.mobile-contact-shell>p{color:#4b6074;margin:0 0 22px;}
.mobile-contact-shell .modal-form-grid{margin-top:0;}
.mobile-contact-shell .modal-form-grid input,.mobile-contact-shell .modal-form-grid select,.mobile-contact-shell .modal-form-grid textarea{font-size:16px;}

@media (max-width:1180px){
  :root{--dq-header-h:72px;}
  .detail-hero{padding-top:68px !important;}
}

@media (max-width:860px){
  :root{--dq-header-h:68px;}
  body{padding-top:var(--dq-header-h) !important;}
  .site-header{position:fixed !important;}
  .hero-image-panel img{top:14px !important;height:calc(100% - 14px) !important;}
  .detail-hero{padding-top:56px !important;}
  /* Mobile uses contact.php instead of the modal. Keep this as a fallback only. */
  .contact-modal{top:var(--dq-header-h) !important;height:calc(100dvh - var(--dq-header-h)) !important;max-height:calc(100dvh - var(--dq-header-h)) !important;}
}

@media (max-width:560px){
  :root{--dq-header-h:64px;}
  .hero-image-panel img{top:12px !important;height:calc(100% - 12px) !important;}
  .mobile-contact-page{padding:16px 0 28px;}
  .mobile-contact-shell{width:calc(100% - 20px);border-radius:12px;padding:18px 14px 24px;box-shadow:none;}
  .mobile-contact-shell h1{font-size:1.9rem;}
  .mobile-contact-shell .modal-form-grid{grid-template-columns:1fr !important;gap:12px !important;}
  .mobile-contact-shell .modal-form-grid .full{grid-column:auto !important;}
  .mobile-contact-shell .modal-form-grid textarea{min-height:120px !important;}
  .mobile-contact-shell .modal-form-grid .full:last-child{position:static !important;margin:0 !important;padding:4px 0 0 !important;background:none !important;}
  .mobile-contact-shell .modal-form-grid .full:last-child .btn{width:100% !important;min-height:50px;}
}

/* ============================================================
   v7 MOBILE CONTACT PAGE ONLY — 11 Sep 2026
   Keep the rest of the website unchanged.
   ============================================================ */
@media (max-width:720px){
  .contact-page-body,
  .contact-page-body *{
    box-sizing:border-box;
  }

  .contact-page-body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  .contact-page-body .mobile-contact-page{
    width:100%;
    max-width:100%;
    min-width:0;
    padding:12px 10px calc(34px + env(safe-area-inset-bottom));
    overflow-x:hidden;
  }

  .contact-page-body .mobile-contact-shell{
    width:100%;
    max-width:100%;
    min-width:0;
    margin:0 auto;
    padding:16px 14px 24px;
    border-radius:12px;
    overflow:visible;
  }

  .contact-page-body .mobile-contact-shell form,
  .contact-page-body .modal-form-grid,
  .contact-page-body .modal-form-grid label,
  .contact-page-body .modal-form-grid .full{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .contact-page-body .modal-form-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
    margin-top:0 !important;
  }

  .contact-page-body .modal-form-grid input,
  .contact-page-body .modal-form-grid select,
  .contact-page-body .modal-form-grid textarea{
    display:block;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    font-size:16px !important;
    line-height:1.35;
    padding:12px 12px !important;
    border-radius:9px !important;
  }

  .contact-page-body .modal-form-grid input,
  .contact-page-body .modal-form-grid select{
    min-height:48px;
  }

  .contact-page-body .modal-form-grid textarea{
    min-height:132px !important;
    max-height:none !important;
    resize:vertical;
  }

  .contact-page-body .modal-form-grid input:focus,
  .contact-page-body .modal-form-grid select:focus,
  .contact-page-body .modal-form-grid textarea:focus{
    scroll-margin-top:calc(var(--dq-header-h) + 18px);
    scroll-margin-bottom:170px;
  }

  .contact-page-body .modal-form-grid .full:last-child{
    position:static !important;
    width:100% !important;
    margin:2px 0 0 !important;
    padding:0 !important;
    background:none !important;
  }

  .contact-page-body .modal-form-grid .full:last-child .btn{
    width:100% !important;
    max-width:100% !important;
    min-height:50px;
  }

  .contact-page-body .contact-back{
    margin-bottom:13px;
  }

  .contact-page-body .mobile-contact-shell h1{
    font-size:clamp(1.75rem,8vw,2.15rem);
    line-height:1.05;
    margin:9px 0 8px;
  }

  .contact-page-body .mobile-contact-shell>p{
    font-size:.94rem;
    line-height:1.45;
    margin-bottom:18px;
  }

  /* Extra breathing room while a phone keyboard is visible. */
  .contact-page-body.keyboard-visible .mobile-contact-page{
    padding-bottom:calc(190px + env(safe-area-inset-bottom));
  }
}

@media (max-width:380px){
  .contact-page-body .mobile-contact-page{padding-left:7px;padding-right:7px;}
  .contact-page-body .mobile-contact-shell{padding-left:11px;padding-right:11px;}
}
\n\n/* V8: desktop contact success confirmation — intentionally prominent. */\n.contact-success-panel{\n  min-height:420px;\n  display:flex;\n  flex-direction:column;\n  align-items:center;\n  justify-content:center;\n  text-align:center;\n  padding:34px 34px 40px;\n}\n.contact-success-icon{\n  width:86px;height:86px;border-radius:50%;\n  display:grid;place-items:center;\n  margin:0 auto 22px;\n  background:var(--lime);color:#07111a;\n  font-size:3.2rem;font-weight:900;line-height:1;\n  box-shadow:0 14px 34px rgba(172,255,0,.28);\n}\n.contact-success-panel .contact-success-eyebrow{justify-content:center;margin-bottom:12px;}\n.contact-success-panel h2{max-width:580px;margin:6px auto 14px;font-size:2.35rem;line-height:1.05;}\n.contact-success-panel p{max-width:560px;margin:0 auto 26px;color:#4b6074;font-size:1.05rem;line-height:1.55;}\n.contact-success-button{min-width:180px;justify-content:center;}\n@media(max-width:767px){\n  .contact-success-panel{min-height:360px;padding:26px 18px 34px;}\n  .contact-success-icon{width:72px;height:72px;font-size:2.6rem;}\n  .contact-success-panel h2{font-size:1.85rem;}\n}\n