/*
Theme Name: Advanced Drying and Restoration
Description: Custom Tallahassee water mitigation and restoration website.
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: advanced-restoration
*/
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;font:16px/1.65 Arial,sans-serif;color:#10243b;background:#f4f7fb}a{color:inherit}button,input,select{font:inherit}button,a.btn{cursor:pointer}header{position:sticky;top:0;z-index:30;background:#06182c;color:white;box-shadow:0 4px 18px #0002}.bar{max-width:1440px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:12px 4%;gap:20px}.logo{width:275px;max-width:100%;display:block}nav{display:flex;gap:22px;align-items:center;font-size:13px;font-weight:bold}nav a{text-decoration:none}nav a:hover{color:#ff9a35}.btn{display:inline-block;background:#f87513;color:#07192e;font-weight:800;padding:13px 21px;border:0;border-radius:5px;text-decoration:none}.btn:hover{background:#ffad53}.outline{background:transparent;border:1px solid #9cc5df;color:inherit}.hero-track{height:185vh;background:#071a30}.hero{height:calc(100vh - 80px);min-height:530px;position:sticky;top:80px;overflow:hidden;color:white;display:flex;align-items:center}.hero video,.hero .poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#031326f5 0%,#031326df 30%,#03132655 72%,#03132633)}.hero-copy{position:relative;z-index:2;padding:5%;max-width:830px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:#ff963d}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(40px,5.4vw,78px);line-height:1.04;letter-spacing:-2px;margin-bottom:20px}h2{font-size:clamp(30px,4vw,49px);line-height:1.1;letter-spacing:-1.2px;margin-bottom:18px}h3{line-height:1.25}em{font-style:normal;color:#ff8a25}.hero-copy p{max-width:550px;font-size:19px;color:#e3eaf3}.controls{position:absolute;z-index:3;bottom:24px;left:5%;right:5%;display:flex;align-items:center;gap:15px;font-size:12px;font-weight:bold}.controls input{flex:1;accent-color:#ff8a25;min-width:30px}.controls button{background:#071a30cc;color:white;border:1px solid #fff6;border-radius:4px;padding:6px 10px}.strip{background:#0d385b;color:white;display:grid;grid-template-columns:repeat(4,1fr);padding:22px 5%;gap:15px;text-align:center;font-size:13px;font-weight:bold}.wrap{max-width:1380px;margin:auto;padding:80px 5%}.dark{background:#071d34;color:#f3f7fc}.dark p{color:#bfd1e3}.lead{max-width:820px;color:#53677c;font-size:18px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.tile{background:white;border:1px solid #dbe4ee;border-radius:12px;padding:25px;box-shadow:0 9px 26px #0a284609}.tile h3{font-size:23px}.num{color:#0075b9;font-size:13px;font-weight:bold;letter-spacing:1px}.process{display:grid;grid-template-columns:repeat(5,1fr);gap:13px}.step{background:#102b43;border:1px solid #31506a;border-radius:12px;padding:16px;cursor:pointer;color:white;text-align:left}.step[aria-pressed=true]{border-color:#ff8a25;box-shadow:0 0 0 2px #ff8a2544}.step img{width:100%;aspect-ratio:1.45;object-fit:cover;border-radius:6px;margin:10px 0}.step b{display:block;color:#ff963d;font-size:22px}.step strong{display:block;min-height:65px}.step small{color:#c3d6e8}.detail{margin-top:20px;background:#102b43;border-left:4px solid #ff8a25;padding:24px;border-radius:5px}.cat{border-top:8px solid #0aa6cf}.cat:nth-child(2){border-color:#006ac0}.cat:nth-child(3){border-color:#ef7817}.cat .num{font-size:15px}.cat h3{font-size:30px}.split{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:center}.thermal{position:relative;overflow:hidden;border-radius:12px;background:#172e47;min-height:285px}.thermal img{width:100%;display:block}.thermal .heat{position:absolute;inset:0;opacity:0;background:radial-gradient(ellipse at 45% 70%,#f6ff00 0%,#f43b00 13%,#8926ca 30%,transparent 58%);mix-blend-mode:screen;transition:.3s}.thermal.active .heat{opacity:.8}.thermal.active img{filter:grayscale(1) brightness(.55)}.thermal-tag{position:absolute;bottom:10px;left:10px;background:#06182c;color:white;padding:5px 10px;font-size:12px}.tabs{display:flex;gap:10px;flex-wrap:wrap}.tabs button{border:1px solid #c2d2e1;background:white;color:#122f4a;border-radius:5px;padding:8px 14px}.tabs button[aria-pressed=true]{background:#0b65a2;color:white}.notice{background:#fff0e1;border-left:4px solid #ef7817;padding:20px;border-radius:5px}details{padding:19px 0;border-bottom:1px solid #cbd9e6}summary{cursor:pointer;font-weight:700;font-size:18px}details p{margin:12px 0 0}.area{display:flex;flex-wrap:wrap;gap:10px}.area span{padding:8px 15px;border:1px solid #bccfe0;border-radius:30px}.footer{background:#06182c;color:#aebfd0;padding:35px 5%;font-size:14px}.footer a{color:white}.mobile{display:none}.skip{position:absolute;left:-999px}.skip:focus{left:10px;top:10px;z-index:99;background:white;padding:10px}.service-links a{display:block;color:#086eae;font-weight:bold;text-decoration:none;margin:12px 0}.subhero{background:#071d34;color:white;padding:75px 5%}.subhero h1{max-width:1000px}.subhero p{max-width:740px}.menu{display:none}@media(max-width:900px){nav{display:none}.menu{display:block;background:none;border:1px solid #ffffff66;color:white;padding:8px}nav.open{display:flex;position:absolute;top:100%;left:0;right:0;background:#071d34;flex-direction:column;padding:25px}.logo{width:210px}.bar>.btn{display:none}.grid{grid-template-columns:1fr 1fr}.process{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.strip{grid-template-columns:repeat(2,1fr)}.hero{top:65px;height:calc(100svh - 65px)}.wrap{padding:55px 5%}}@media(max-width:540px){.grid{grid-template-columns:1fr}.hero-track{height:165vh}.hero-copy{padding:20px}.hero-copy p{font-size:16px}.controls{bottom:15px;gap:7px}.controls button{font-size:11px}.step{padding:12px}.step strong{min-height:0}.mobile{display:block;position:fixed;bottom:0;left:0;right:0;z-index:40;text-align:center;border-radius:0}.footer{padding-bottom:80px}.hero:after{background:linear-gradient(90deg,#031326e8,#03132691)}.hero-copy .btn{margin-bottom:8px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-track{height:auto}.hero{position:relative;top:0}.thermal .heat{transition:none}}
.ad-contact-link{display:inline-block;margin:8px 8px 8px 0}.admin-bar header{top:32px}@media(max-width:782px){.admin-bar header{top:46px}}

/* Version 1.1: measured sticky header and responsive, touch-first hero. */
:root{--ad-header-height:80px;--ad-sticky-offset:0px}
html{scroll-padding-top:calc(var(--ad-header-height) + var(--ad-sticky-offset) + 12px)}
.hero-media{position:absolute;inset:0;overflow:hidden;background:#071a30}
.hero{top:calc(var(--ad-header-height) + var(--ad-sticky-offset));height:calc(100vh - var(--ad-header-height) - var(--ad-sticky-offset));height:calc(100svh - var(--ad-header-height) - var(--ad-sticky-offset))}
.hero-copy,.tile,.split>*,.step,.bar>*{min-width:0}
.hero-copy a,.controls button,.menu,.tabs button{touch-action:manipulation}
:focus-visible{outline:3px solid #ff963d;outline-offset:3px}
@media(max-width:900px), (hover:none) and (pointer:coarse), (max-height:600px){
  .bar{padding:10px 5%;gap:12px}.bar>a:first-child{flex:0 1 220px}.logo{width:100%;max-width:220px;height:auto}.bar>.btn{display:none}
  .menu{display:block;flex:none;min-height:44px;padding:7px 14px;border-radius:6px;font-weight:700}
  nav{display:none}nav.open{display:flex;position:absolute;top:100%;left:0;right:0;background:#071d34;flex-direction:column;align-items:stretch;gap:0;padding:8px 5% 16px;max-height:calc(100dvh - var(--ad-header-height) - var(--ad-sticky-offset) - 75px);overflow-y:auto;box-shadow:0 10px 24px #0004}nav a{padding:14px 4px;border-bottom:1px solid #ffffff20;font-size:14px}
  .hero-track{height:auto}.hero{position:relative;top:auto;display:flex;flex-direction:column;align-items:stretch;height:auto;min-height:0;overflow:visible;background:#071a30}.hero:after{display:none}
  .hero-copy{order:0;padding:28px 5% 22px;max-width:780px}.hero-copy h1{font-size:clamp(36px,7vw,58px);letter-spacing:-1.4px;margin-bottom:12px}.hero-copy p{font-size:16px;line-height:1.55;margin-bottom:16px}.hero-copy .btn{font-size:14px;padding:12px 16px;min-height:46px;margin:0 6px 8px 0}.eyebrow{font-size:11px;letter-spacing:1.3px}
  .hero-media{order:1;position:relative;inset:auto;aspect-ratio:16/9;width:100%;max-height:500px}.hero video,.hero .poster{object-fit:contain}
  .controls{order:2;position:relative;inset:auto;padding:12px 5% 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:center;background:#0d2943}.controls #stage{grid-column:1;grid-row:1;line-height:1.3}.controls #scrub{grid-column:1/-1;grid-row:2;width:100%;min-height:28px;margin:0}.controls #play{grid-column:2;grid-row:1;min-height:44px;padding:8px 14px;font-size:13px}.controls #sync{display:none}
  .wrap{padding:44px 5%}.subhero{padding:42px 5%}.subhero h1{font-size:clamp(34px,7vw,54px);letter-spacing:-1px;overflow-wrap:anywhere}.tile{padding:20px}.tile h3{font-size:21px}.detail{padding:18px}.step strong{min-height:0}.step small{display:block;line-height:1.5}.tabs button{min-height:44px}.thermal{min-height:0}.thermal-tag{max-width:calc(100% - 20px);line-height:1.35}.split{grid-template-columns:minmax(0,1fr);gap:22px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.process{grid-template-columns:repeat(2,minmax(0,1fr))}.strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px 5%}.mobile{display:block;position:fixed;bottom:0;left:0;right:0;z-index:40;text-align:center;border-radius:0;padding:14px 12px calc(14px + env(safe-area-inset-bottom,0px));font-size:14px;line-height:1.35;box-shadow:0 -3px 16px #0003}.footer{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px));overflow-wrap:anywhere}.ad-contact-link{max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:540px){.grid{grid-template-columns:minmax(0,1fr)}.hero-copy .btn{display:block;width:100%;text-align:center;margin:0 0 9px}.hero-copy .btn:last-child{margin-bottom:0}.process{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.step{padding:10px}.step b{font-size:18px}.step strong{font-size:14px}.step small{font-size:12px}.strip{font-size:12px}.bar>a:first-child{flex-basis:185px}.wrap h2{font-size:30px}.footer .logo{width:200px}}
@media(max-width:350px){.bar>a:first-child{flex-basis:165px}.process{grid-template-columns:minmax(0,1fr)}.hero-copy h1{font-size:33px}}
@media(prefers-reduced-motion:reduce){.hero-track{height:auto}.hero{position:relative;top:auto}.controls #sync{display:none}}

/* 1.2: mobile scroll-synced frames, no video seeking required on touch devices. */
#mobile-frames,.mobile-scroll-status{display:none}
@media (max-width:900px), (hover:none) and (pointer:coarse), (max-height:600px){
  .hero-track{height:auto;padding-bottom:clamp(420px,75svh,700px)}
  .hero{position:sticky;top:calc(var(--ad-header-height) + var(--ad-sticky-offset));min-height:0;height:auto;overflow:hidden}
  .hero-copy{padding:16px 5% 12px}.hero-copy h1{font-size:clamp(28px,7vw,44px);line-height:1.05;margin-bottom:8px}.hero-copy p{font-size:14px;line-height:1.4;margin-bottom:8px}.hero-copy .eyebrow{font-size:10px;letter-spacing:.8px;margin-bottom:5px}
  .hero-copy .btn{display:none}.hero-media{aspect-ratio:16/9;max-height:34svh}.hero-media .poster{object-fit:contain}.hero-media video{display:none}
  #mobile-frames{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0}#mobile-frames.ready{opacity:1}
  .controls{display:none}.mobile-scroll-status{order:2;display:grid;grid-template-columns:1fr auto;gap:7px 10px;padding:10px 5% 12px;background:#0d2943;color:#fff;font-size:12px;font-weight:700;line-height:1.3}.mobile-scroll-status>span:first-child{color:#ff963d}.mobile-progress{grid-column:1/-1;height:4px;background:#ffffff30;border-radius:3px;overflow:hidden}.mobile-progress i{display:block;height:100%;background:#ff8a25;width:0}
}
@media (max-height:540px) and (orientation:landscape){
  .hero{display:grid;grid-template-columns:1fr 1fr;align-items:center}.hero-copy{grid-column:1;grid-row:1;padding:10px 5%}.hero-media{grid-column:2;grid-row:1;max-height:46svh}.hero-copy h1{font-size:clamp(24px,4vw,36px)}.hero-copy p{font-size:12px}.mobile-scroll-status{grid-column:1/-1;grid-row:2;padding:7px 5%}.hero-track{padding-bottom:420px}.bar{padding-block:5px}.bar>a:first-child{max-width:160px}
}
@media(prefers-reduced-motion:reduce){.hero-track{height:auto;padding-bottom:0}.hero{position:relative;top:auto}.mobile-scroll-status{display:none}#mobile-frames{display:none}.hero-media video{display:block}.controls{display:flex}.controls #sync{display:none}}

/* 1.2.1: exact-photo infrared comparison, instrument-style display. */
.thermal-instrument{min-width:0;background:#071a30;border:1px solid #264b6d;border-radius:17px;padding:12px;color:#e2edf8;box-shadow:0 16px 35px #081e3c22}
.instrument-head,.instrument-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 3px 12px;font-size:11px;letter-spacing:1px;font-weight:800}.sim-indicator{color:#ff9c43}.thermal-instrument .thermal{position:relative;aspect-ratio:16/9;min-height:0;overflow:hidden;background:#1b102d;border-radius:7px;isolation:isolate}.thermal-instrument .thermal img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:none}.thermal-instrument .infrared-room{clip-path:inset(0 0 0 calc(100% - var(--reveal)))}.ir-labels{position:absolute;inset:8px 8px auto;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;font-weight:800;pointer-events:none}.ir-labels span{background:#06182ce0;padding:4px 8px;border-radius:3px;color:white}.ir-divider{position:absolute;top:0;bottom:0;left:calc(100% - var(--reveal));width:2px;background:white;pointer-events:none;transform:translateX(-50%);box-shadow:0 0 6px #0008}.ir-divider span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:2px solid white;border-radius:50%;background:#071a30;color:white;font-size:21px;line-height:38px;width:42px;height:42px;text-align:center}.ir-crosshair{position:absolute;right:10%;top:65%;font-size:28px;line-height:1;color:white;text-shadow:0 1px 3px black;pointer-events:none}.thermal-instrument[data-mode=off] .ir-crosshair,.thermal-instrument[data-mode=off] .ir-labels span:last-child,.thermal-instrument[data-mode=on] .ir-labels span:first-child,.thermal-instrument:not([data-mode=compare]) .ir-divider{display:none}#thermal-reveal{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:ew-resize;touch-action:pan-y}#thermal-reveal:focus-visible{opacity:1;height:24px;top:auto;bottom:5px;accent-color:#ff963d}#thermal-reveal:disabled{display:none}.instrument-foot{padding:12px 3px 6px;font-size:11px;letter-spacing:.3px}.ir-palette{height:10px;flex:1;border-radius:3px;background:linear-gradient(90deg,#080420,#420f81,#841a8f,#cf2f5f,#f46a2c,#ffb52e,#ffed8a,#ffffeb)}.ir-disclaimer{font-size:11px;line-height:1.5;margin:4px 3px 10px;color:#b6c7d8}.ir-insight{font-size:13px;line-height:1.5;border-top:1px solid #294761;padding:10px 3px 2px;color:#d4e3f1}.thermal-help{font-size:14px;line-height:1.5;margin:12px 0 0;color:#52677e}.tabs button{font-weight:700}.tabs button[aria-pressed=true]{background:#0b65a2;color:white}.dark .thermal-help{color:#bfd1e3}
@media(max-width:540px){.thermal-instrument{padding:8px}.instrument-head{font-size:9px;letter-spacing:.3px}.tabs{gap:5px}.tabs button{padding:8px 10px;font-size:13px}.ir-insight{font-size:12px}}
#thermal-reveal{direction:rtl}
