/*
Theme Name: Atlantic Blue OnePage
Author: Atlantic Blue modernization project
Description: Lightweight corporate presentation, standalone slider and secure estimate request form.
Version: 1.8.1
Requires PHP: 8.0
Text Domain: atlanticblue
*/
:root{--navy:#092c48;--blue:#1474a5;--pale:#edf6fa;--white:#fff;--gold:#cfad73}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#19354b;background:#fff;font:16px/1.65 system-ui,-apple-system,Segoe UI,sans-serif}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto}.wrap{width:min(1160px,92%);margin:auto}.topline{background:#08283f;color:#deedf4;font-size:.83rem;padding:.35rem 0}.topline .wrap{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}header{position:sticky;top:0;z-index:30;background:#fff;box-shadow:0 2px 18px #071e3020}.nav{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:2rem}.brand{display:flex;align-items:center;gap:.7rem;font-weight:850;font-size:1.05rem;line-height:1.25;color:var(--navy)}.brand img{width:72px;max-height:68px;object-fit:contain}.links{display:flex;gap:1.4rem;align-items:center;font-weight:650;font-size:.92rem}.links a:hover{color:var(--blue)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;border:0;background:var(--blue);color:white;padding:.88rem 1.45rem;border-radius:5px;font-weight:800;cursor:pointer}.btn:hover{background:#0a5683}.btn.light{background:#fff;color:var(--navy)}.hero{min-height:610px;position:relative;background:var(--navy);color:white;overflow:hidden}.hero-slide{position:absolute;inset:0;background-position:center;background-size:cover;opacity:0;transform:scale(1.07);transition:opacity 1.1s ease,transform 7s ease}.hero-slide.active{opacity:1;transform:scale(1)}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,21,37,.86),rgba(3,23,39,.3))}.hero-inner{position:relative;z-index:1;min-height:610px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;max-width:780px;margin-left:max(4%,calc((100vw - 1160px)/2));margin-right:4%;padding:5rem 0}.eyebrow{color:var(--gold);font-size:.84rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase}h1{font-size:clamp(2.7rem,5.2vw,5.3rem);line-height:1.06;margin:.65rem 0 1.25rem;letter-spacing:-.04em}h2{font-size:clamp(2rem,3.5vw,3rem);line-height:1.2;letter-spacing:-.03em;margin:.5rem 0 1.4rem}h3{margin:.4rem 0 .7rem;font-size:1.3rem}.hero p{font-size:1.13rem;max-width:620px;line-height:1.8}.hero-controls{position:absolute;z-index:2;bottom:24px;right:5%;display:flex;gap:.65rem}.control{border:1px solid #ffffff7d;background:#05223888;color:#fff;padding:.5rem .85rem;border-radius:4px;cursor:pointer;font:inherit}.control:hover{background:#125a81}.section{padding:88px 0}.soft{background:var(--pale)}.intro{text-align:center;max-width:775px;margin:0 auto 45px}.intro p,.lead{color:#516b7b}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}.service{border:1px solid #e2edf2;border-radius:9px;overflow:hidden;background:white;box-shadow:0 7px 22px #0b34420a}.service img{width:100%;height:220px;object-fit:cover}.service .inside{padding:25px}.service ul{padding-left:1.2rem;color:#4c6370}.about{display:grid;grid-template-columns:1.3fr 1fr;gap:4rem;align-items:center}.about img{border-radius:9px;object-fit:cover;max-height:430px;width:100%}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.feature{background:white;padding:28px;border-left:4px solid var(--blue);box-shadow:0 9px 30px #0a31400a}.cta{background:linear-gradient(100deg,#09283f,#145c80);color:white;text-align:center;padding:75px 0}.cta p{color:#d3e7f1}.formbox{max-width:800px;margin:auto;background:white;border-radius:10px;padding:34px;box-shadow:0 12px 35px #08283f12}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:5px}.field label{font-weight:700;font-size:.9rem}.field input,.field select,.field textarea{width:100%;border:1px solid #c9d9e2;border-radius:5px;padding:12px;font:inherit;background:#fff;color:#123}.field.wide{grid-column:1/-1}.field textarea{min-height:145px}.quiet{font-size:.85rem;color:#607684}.notice{padding:1rem;border-radius:5px;margin:0 0 1.3rem;background:#f0f8fc}.notice.error{background:#fff1ed}.foot{background:#071f31;color:#d4e4ed;padding:55px 0 20px}.footcols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:3rem}.foot small{color:#9bb2c1}footer a:hover{color:#fff}.hp{position:absolute!important;left:-9999px!important;height:0;overflow:hidden}.mobiletoggle{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:800px){.mobiletoggle{display:inline-block;border:0;background:var(--navy);color:#fff;padding:.5rem .8rem;border-radius:3px}.links{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:1rem 5%;box-shadow:0 10px 20px #0002;flex-direction:column;align-items:flex-start}.links.open{display:flex}.topline{display:none}.hero,.hero-inner{min-height:570px}.hero-inner{padding:5rem 3%}.grid3,.features,.about,.footcols{grid-template-columns:1fr}.about{gap:1.5rem}.fields{grid-template-columns:1fr}.field.wide{grid-column:auto}.section{padding:65px 0}.formbox{padding:20px}.brand img{width:55px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-slide{transition:none;transform:none}}
/* v1.1: readable anchored navigation under sticky header */
#home,#services,#about,#why-us,#estimate-form { scroll-margin-top: 104px; }
.links a:focus-visible,.control:focus-visible,.btn:focus-visible {outline:3px solid #cfad73;outline-offset:3px}
@media(max-width:800px){#home,#services,#about,#why-us,#estimate-form {scroll-margin-top:82px}}

/* v1.2: use the supplied horizontal brand artwork in the sticky header */
.brand img{width:min(250px,38vw);height:auto;max-height:64px;object-fit:contain}
.brand span{display:none}
@media(max-width:700px){.brand img{width:min(190px,48vw)}}

/* v1.3: layout isolation and high-specificity guards against legacy builder CSS */
body.home main#home .section .wrap {width:min(1160px,92%);margin-inline:auto}
body.home main#home .grid3 {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem}
body.home main#home .service {display:block;min-width:0}
body.home main#home .service img {display:block;max-width:100%;width:100%;height:220px;object-fit:cover}
body.home main#home .features {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
body.home main#home .about {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:4rem;align-items:center}
body.home main#home #services,body.home main#home #about,body.home main#home #why-us {scroll-margin-top:110px}
@media(max-width:800px){body.home main#home .grid3,body.home main#home .features,body.home main#home .about{grid-template-columns:1fr}body.home main#home #services,body.home main#home #about,body.home main#home #why-us{scroll-margin-top:84px}}

/* v1.4: service image hover, accessible back-to-top and refreshed contact intro */
.service-photo{overflow:hidden;height:220px;background:#edf6fa}
.service .service-photo img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1);transition:transform .65s cubic-bezier(.2,.7,.3,1)}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.service:hover .service-photo img,.service:focus-within .service-photo img{transform:scale(1.085)}}
.back-to-top{position:fixed;right:24px;bottom:88px;z-index:60;display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:50%;background:#1474a5;color:white;font-size:1.65rem;line-height:1;box-shadow:0 6px 22px #092c4859;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s,transform .25s,visibility .25s}
.back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover,.back-to-top:focus-visible{background:#092c48;outline-offset:3px}
.contact-hero{padding:66px 0 55px;background:linear-gradient(120deg,#edf6fa,#fff)}
.contact-hero .intro{margin-bottom:0}.contact-hero h1{font-size:clamp(2.6rem,5vw,4.2rem);font-weight:800;color:#092c48;margin:.6rem 0 1rem;letter-spacing:-.04em}.contact-hero p{font-size:1.05rem}
@media(prefers-reduced-motion:reduce){.service .service-photo img,.back-to-top{transition:none}}

/* v1.5: clear separation between floating WhatsApp and return-to-top controls. */
.back-to-top{left:24px;right:auto;bottom:24px}
/* Contact page: dedicated layout, independent of older WordPress page-builder content. */
.ab-contact-page .contact-banner{padding:82px 0 76px;background:linear-gradient(130deg,#eaf4f9,#ffffff 72%);border-bottom:1px solid #dce9f0}
.ab-contact-page .contact-banner-content{text-align:center;max-width:850px;margin-inline:auto}
.ab-contact-page .contact-banner h1{font-size:clamp(2.65rem,5vw,4.35rem);font-weight:850;color:var(--navy);letter-spacing:-.035em;margin:.6rem 0 1rem}
.ab-contact-page .contact-banner p{max-width:660px;color:#526c7c;font-size:clamp(1rem,1.6vw,1.2rem);line-height:1.8;margin:1rem auto 0}
.ab-contact-page .title-rule{display:block;width:72px;height:4px;background:var(--gold);border-radius:4px;margin:auto}
.ab-contact-page .contact-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:52px;align-items:start}
.ab-contact-page .contact-details h2{font-size:clamp(1.7rem,2.8vw,2.45rem);color:var(--navy)}
.ab-contact-page .contact-details .lead{margin-bottom:26px}
.ab-contact-page .location-card{background:#f3f8fb;border:1px solid #dfebf1;border-left:4px solid var(--blue);padding:21px 24px;border-radius:6px;margin-bottom:16px}
.ab-contact-page .location-kicker{font-size:.75rem;font-weight:800;letter-spacing:.11em;color:#23749c}
.ab-contact-page .location-card h3{color:var(--navy);margin:.55rem 0;font-size:1.16rem}
.ab-contact-page .location-card address{font-style:normal;line-height:1.8;color:#375b70}
.ab-contact-page .location-card a,.ab-contact-page .contact-direct a{color:#11648e;text-decoration:underline;text-underline-offset:3px}
.ab-contact-page .contact-direct{padding:6px 2px}.ab-contact-page .contact-direct h3{color:var(--navy)}
.ab-contact-page .contact-direct p{margin:.4rem 0}
.ab-contact-page .contact-form-card{max-width:none;width:100%;padding:34px;box-shadow:0 14px 38px #08283f16;border:1px solid #e4edf2}
.ab-contact-page .contact-form-card h2{font-size:clamp(1.6rem,2.5vw,2.25rem);margin:8px 0 8px;color:var(--navy)}
.ab-contact-page .form-intro{color:#597485;margin:0 0 22px}
.ab-contact-page .contact-form-card .btn{width:100%}
.ab-contact-page .contact-map-section{padding:65px 0 80px;background:#f2f7fa;text-align:center}
.ab-contact-page .contact-map-section h2{color:var(--navy);font-size:clamp(1.7rem,3vw,2.5rem);margin-bottom:.25rem}
.ab-contact-page .contact-map-section p{color:#516b7b}
.ab-contact-page .contact-map-section iframe{display:block;width:100%;height:385px;border:0;border-radius:9px;margin-top:24px;box-shadow:0 10px 28px #092c481c}
.ab-contact-page .map-note a{color:#126f9c;text-decoration:underline}
.footcols{grid-template-columns:2fr 1fr 1fr 1fr;gap:2rem}
@media(max-width:850px){.ab-contact-page .contact-layout{grid-template-columns:1fr;gap:30px}.footcols{grid-template-columns:1fr 1fr}.ab-contact-page .contact-banner{padding:60px 0}}
@media(max-width:540px){.back-to-top{left:16px;bottom:18px;width:44px;height:44px}.ab-contact-page .contact-form-card{padding:23px 18px}.ab-contact-page .contact-map-section iframe{height:300px}.footcols{grid-template-columns:1fr}}

/* v1.8: stronger masthead and hero company identity */
.nav{min-height:94px}
.brand img{width:min(320px,34vw);max-height:82px;height:auto;object-fit:contain}
.hero .hero-inner>.eyebrow{font-size:clamp(1.05rem,1.55vw,1.4rem);line-height:1.35;letter-spacing:.13em;color:#f0c66e;text-shadow:0 2px 6px rgba(0,0,0,.45)}
@media(max-width:800px){.nav{min-height:78px}.brand img{width:min(240px,54vw);max-height:65px}}
@media(max-width:420px){.brand img{width:min(215px,58vw)}}
