:root{--ink:#20262d;--muted:#626d77;--blue:#285f91;--blue-dark:#204e78;--line:#e5e9ed;--soft:#f7f8f9;--white:#fff;--max:1180px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;color:var(--ink);background:#fff;font-family:'DM Sans',Arial,sans-serif;font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}h1,h2,h3{font-family:Manrope,'DM Sans',Arial,sans-serif;line-height:1.15;letter-spacing:-.035em;margin:0 0 18px;font-weight:700}p{margin:0 0 16px}.container{width:min(var(--max),calc(100% - 48px));margin:0 auto}.site-header{height:104px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:35px}.brand{display:block;flex:0 1 330px;line-height:0}.brand img{display:block;width:100%;max-width:330px;height:auto}.main-nav{display:flex;align-items:center;gap:30px}.main-nav a{color:#303942;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap;transition:color .2s}.main-nav a:hover{color:var(--blue)}.main-nav .nav-cta{padding:12px 19px;border-radius:5px;background:var(--blue);color:#fff;font-weight:700}.main-nav .nav-cta:hover{background:var(--blue-dark);color:#fff}.menu-toggle{display:none;border:0;background:none;padding:10px}.menu-toggle span{display:block;width:24px;height:2px;background:var(--ink);margin:5px}.hero{padding:66px 0 60px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:55px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;color:var(--blue);margin:0 0 18px}.hero h1{font-size:clamp(42px,5.1vw,66px);max-width:650px;margin-bottom:22px}.hero h1 span{display:block;color:#343d46}.hero-lead{font-size:18px;line-height:1.62;color:#4f5a64;max-width:610px;margin-bottom:28px}.hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:13px 24px;border-radius:5px;text-decoration:none;font-weight:700;font-size:15px;transition:all .2s}.button-primary{background:var(--blue);color:#fff;border:1px solid var(--blue);padding:14px 25px}.button-primary:hover{background:var(--blue-dark)}.button-secondary{border:1px solid #bfc8d0;color:var(--ink);background:#fff}.button-secondary:hover{border-color:var(--blue);color:var(--blue)}.hero-note{font-size:13px;line-height:1.6;color:#66727d;margin-top:20px;max-width:570px}.hero-note strong{color:#344b60;font-weight:700}.hero-visual{min-width:0}.hero-benefit-panel{min-height:420px;border-radius:4px;background:linear-gradient(145deg,#263e53,#315a78);color:#fff;padding:42px 42px 30px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;box-shadow:0 18px 45px rgba(32,55,75,.12)}.hero-benefit-panel:before,.hero-benefit-panel:after{content:'';position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:50%;pointer-events:none}.hero-benefit-panel:before{width:390px;height:390px;right:-160px;top:-190px}.hero-benefit-panel:after{width:260px;height:260px;right:-90px;bottom:-150px}.hero-panel-mark{font-family:Manrope,sans-serif;font-size:45px;line-height:1;font-weight:800;color:#fff;letter-spacing:-.08em;margin-bottom:35px}.hero-panel-mark span{color:#a9c8e1}.hero-panel-kicker{font-size:11px;letter-spacing:.13em;font-weight:700;color:#b9d2e7;margin:0 0 24px;max-width:280px}.hero-panel-points{display:grid;gap:19px;position:relative;z-index:1}.hero-panel-points>div{display:flex;align-items:center;gap:14px}.panel-check{width:30px;height:30px;border:1px solid rgba(185,210,231,.65);border-radius:50%;display:grid;place-items:center;color:#c6dced;font-size:15px;flex:0 0 30px}.hero-panel-points strong{display:block;font-family:Manrope,sans-serif;font-size:17px;line-height:1.2}.hero-panel-points small{display:block;color:#d1dce5;font-size:13px;margin-top:3px}.hero-panel-footer{border-top:1px solid rgba(255,255,255,.2);padding-top:17px;margin-top:30px;color:#c0d2e1;font-size:10px;letter-spacing:.13em;font-weight:700;position:relative;z-index:1}.hero-caption{display:flex;align-items:center;gap:12px;margin-top:15px;color:#6e7881;font-size:12px}.caption-line{width:34px;height:2px;background:var(--blue)}.trust-strip{background:#f7f8f9;border-top:1px solid #f0f2f4;border-bottom:1px solid #f0f2f4;padding:27px 0}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr)}.trust-item{display:flex;align-items:flex-start;gap:17px;padding:7px 35px;border-right:1px solid #dce1e5}.trust-item:first-child{padding-left:12px}.trust-item:last-child{border:0}.line-icon{width:34px;height:34px;flex:0 0 34px;border:1.7px solid var(--blue);border-radius:50%;display:grid;place-items:center;color:var(--blue);font-size:22px;font-weight:600}.bubble-icon{font-size:18px;letter-spacing:1px}.calendar-icon{border-radius:5px;font-size:20px}.trust-item h2{font-size:19px;margin:0 0 5px;letter-spacing:-.02em}.trust-item p{font-size:13px;line-height:1.5;color:var(--muted);margin:0;max-width:260px}.section-pad{padding:92px 0}.recognition{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:7%;padding-top:85px;padding-bottom:85px}.recognition-image{min-height:390px;background:linear-gradient(0deg,rgba(20,35,48,.05),rgba(20,35,48,.05)),url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=85') center/cover no-repeat}.recognition-copy{max-width:540px;padding:20px 30px 20px 0}.recognition-copy h2{font-size:clamp(32px,3.4vw,43px)}.recognition-copy p:not(.eyebrow){color:var(--muted);font-size:16px}.recognition-copy .emphasis-copy{font-weight:700;color:var(--ink)!important;margin-top:24px}.approach{background:#263e53;color:#fff;border-top:1px solid #263e53;border-bottom:1px solid #263e53}.approach .eyebrow{color:#b9d2e7}.approach .section-heading h2{color:#fff}.approach .section-heading>p:last-child{color:#d4dde5}.approach .benefit-card{border-right-color:rgba(255,255,255,.2)}.approach .benefit-card h3{color:#fff}.approach .benefit-card p{color:#d4dde5}.approach .benefit-icon{color:#b9d2e7}.section-heading{max-width:680px;margin-bottom:42px}.section-heading.centered{text-align:center;margin-left:auto;margin-right:auto}.section-heading h2{font-size:clamp(32px,3.6vw,44px)}.section-heading>p:last-child{color:var(--muted);font-size:16px}.benefit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}.benefit-card{padding:12px 27px 10px;border-right:1px solid #e0e5e9}.benefit-card:first-child{padding-left:0}.benefit-card:last-child{border:0}.benefit-icon{display:block;color:var(--blue);font-size:32px;line-height:1;margin-bottom:20px}.benefit-card h3{font-size:19px;margin-bottom:10px}.benefit-card p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}.about-band{padding:78px 0;background:#f6f8f9}.about-grid{display:grid;grid-template-columns:.72fr 1.28fr;align-items:center;gap:70px}.about-photo-placeholder{min-height:330px;background:linear-gradient(145deg,#e7ebee,#d6dee4);display:flex;flex-direction:column;justify-content:flex-end;padding:25px;color:#52606c}.about-photo-placeholder span{font-family:Manrope,sans-serif;font-size:21px;font-weight:700}.about-photo-placeholder small{font-size:12px}.about-copy{max-width:650px}.about-copy h2{font-size:clamp(30px,3.3vw,42px)}.about-copy p:not(.eyebrow){color:var(--muted)}.signature{font-weight:700;color:var(--ink)!important;margin-top:25px}.signature span{display:block;font-weight:400;font-size:13px;color:var(--muted)}.services .section-heading{margin-bottom:25px}.service-list{border-top:1px solid var(--line)}.service-row{display:grid;grid-template-columns:1fr 1fr;gap:50px;padding:23px 0;border-bottom:1px solid var(--line);align-items:center}.service-row>div{display:flex;align-items:center;gap:22px}.service-row>div span{font-size:12px;color:var(--blue);font-weight:700;letter-spacing:.1em}.service-row h3{font-size:19px;margin:0}.service-row p{color:var(--muted);font-size:14px;margin:0;max-width:520px}.contact-section{background:#263e53;color:#fff;padding:66px 0}.contact-inner{display:flex;align-items:center;justify-content:space-between;gap:50px}.contact-inner>div{max-width:720px}.contact-inner .eyebrow{color:#b9d2e7}.contact-inner h2{font-size:clamp(30px,3.5vw,43px);margin-bottom:13px}.contact-inner p:not(.eyebrow){color:#d4dde5;margin:0}.button-light{background:#fff;color:#263e53;border:1px solid #fff;flex:0 0 auto}.button-light:hover{background:#eaf0f4}.site-footer{background:#fff}.footer-main{display:grid;grid-template-columns:1.3fr .7fr 1fr;gap:70px;padding-top:55px;padding-bottom:50px}.footer-brand img{width:260px;max-width:100%;height:auto}.footer-brand p,.footer-contact p{font-size:14px;color:var(--muted);max-width:320px;margin-top:18px}.footer-links,.footer-contact{display:flex;flex-direction:column;align-items:flex-start}.footer-links h3,.footer-contact h3{font-size:15px;letter-spacing:0;margin-bottom:14px}.footer-links a,.text-link{color:#58636d;text-decoration:none;font-size:13px;margin:4px 0}.footer-links a:hover,.text-link:hover{color:var(--blue)}.text-link{font-weight:700;color:var(--blue)}.footer-bottom{border-top:1px solid var(--line);padding:17px 0}.footer-bottom-inner{display:flex;justify-content:space-between;gap:20px;color:#7b858e;font-size:12px}
@media(max-width:980px){.main-nav{gap:17px}.main-nav a{font-size:13px}.brand{flex-basis:270px}.hero-grid{gap:30px}.trust-item{padding-left:20px;padding-right:20px}.benefit-card{padding-left:18px;padding-right:18px}.about-grid{gap:40px}}
@media(max-width:760px){.site-header{height:82px}.container{width:min(var(--max),calc(100% - 36px))}.brand{flex-basis:245px}.menu-toggle{display:block;cursor:pointer}.main-nav{display:none;position:absolute;top:81px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:15px 22px 22px;flex-direction:column;align-items:stretch;gap:0;box-shadow:0 12px 20px rgba(20,30,40,.06)}.main-nav.is-open{display:flex}.main-nav a{padding:12px 4px}.main-nav .nav-cta{text-align:center;margin-top:8px}.hero{padding:48px 0}.hero-grid{grid-template-columns:1fr;gap:30px}.hero h1{font-size:clamp(39px,10vw,55px)}.hero-lead{font-size:17px}.hero-benefit-panel{min-height:340px;padding:32px}.trust-grid{grid-template-columns:1fr;gap:15px}.trust-item,.trust-item:first-child{padding:10px 0;border-right:0;border-bottom:1px solid #e0e5e9}.trust-item:last-child{border-bottom:0}.recognition{grid-template-columns:1fr;gap:28px;padding-top:55px;padding-bottom:55px}.recognition-image{min-height:260px;order:2}.recognition-copy{padding:0}.section-pad{padding:65px 0}.benefit-grid{grid-template-columns:1fr 1fr;row-gap:30px}.benefit-card:nth-child(2){border-right:0}.benefit-card:nth-child(3){padding-left:0}.about-grid{grid-template-columns:1fr;gap:28px}.about-photo-placeholder{min-height:280px;max-width:430px;width:100%}.service-row{grid-template-columns:1fr;gap:8px;padding:20px 0}.contact-inner{align-items:flex-start;flex-direction:column;gap:25px}.footer-main{grid-template-columns:1fr 1fr;gap:35px}.footer-brand{grid-column:1/-1}.footer-bottom-inner{flex-direction:column;gap:5px}}
@media(max-width:440px){.brand{flex-basis:205px}.hero-actions{align-items:stretch;flex-direction:column}.hero-actions .button{width:100%}.benefit-grid{grid-template-columns:1fr}.benefit-card,.benefit-card:first-child,.benefit-card:nth-child(3){padding:0 0 20px;border-right:0;border-bottom:1px solid #e0e5e9}.benefit-card:last-child{border:0}.footer-main{grid-template-columns:1fr}.footer-brand{grid-column:auto}}


/* Level-two pages and contact experience */
.page-hero{padding:76px 0 72px;background:linear-gradient(115deg,#f5f8fa 0%,#fff 72%);border-bottom:1px solid #edf0f2}.page-hero-inner{max-width:900px}.page-hero h1{font-size:clamp(39px,5vw,58px);max-width:850px;margin-bottom:20px}.page-lead{font-size:19px;line-height:1.7;color:#56616c;max-width:760px;margin:0 0 28px}.page-cta{background:#263e53;color:#fff;padding:65px 0}.page-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:45px}.page-cta-inner>div{max-width:760px}.page-cta h2{font-size:clamp(29px,3.5vw,42px);margin-bottom:12px}.page-cta p:not(.eyebrow){color:#d4dde5;margin:0}.contact-layout{display:grid;grid-template-columns:.82fr 1.18fr;gap:70px;align-items:start}.contact-intro{max-width:470px}.contact-intro h2,.two-col-content h2,.about-story-copy h2{font-size:clamp(30px,3.4vw,42px)}.contact-intro>p:not(.eyebrow),.two-col-content p:not(.eyebrow),.about-story-copy p:not(.eyebrow){color:var(--muted)}.contact-promise{display:flex;gap:14px;padding:20px 0;margin:27px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.promise-mark{width:30px;height:30px;border:1px solid var(--blue);color:var(--blue);border-radius:50%;display:grid;place-items:center;flex:0 0 30px}.contact-promise strong{font-family:Manrope,sans-serif}.contact-promise p{font-size:14px;color:var(--muted);margin:4px 0 0}.contact-email{font-size:14px}.contact-email a{color:var(--blue);font-weight:700}.contact-form-card{background:#fff;border:1px solid #e5e9ed;border-radius:7px;padding:34px;box-shadow:0 12px 34px rgba(30,48,64,.06)}.form-heading h2{font-size:24px;margin-bottom:6px}.form-heading p{font-size:13px;color:var(--muted);margin-bottom:24px}.form-heading p span,.contact-form label span{color:#b34b42}.contact-form{display:grid;gap:17px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.contact-form label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#35414c}.contact-form input,.contact-form select,.contact-form textarea{width:100%;border:1px solid #d9dfe4;border-radius:4px;padding:12px 13px;font:400 15px 'DM Sans',Arial,sans-serif;color:var(--ink);background:#fff;outline:none;transition:border-color .2s,box-shadow .2s}.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(40,95,145,.12)}.contact-form textarea{resize:vertical;min-height:125px}.form-submit{justify-self:start;cursor:pointer}.form-privacy{font-size:12px;color:#7b858e;margin:-7px 0 0}.form-error{padding:12px 14px;background:#fff3f1;border:1px solid #f0d2cc;color:#8a352d;font-size:13px;margin:0 0 18px;border-radius:4px}.form-success{padding:28px 0}.success-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eaf3ed;color:#2f7147;font-size:22px;margin-bottom:20px}.form-success h2{font-size:28px}.form-success p{color:var(--muted)}.form-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.service-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.service-detail-card{border:1px solid var(--line);border-radius:5px;padding:28px;background:#fff;min-height:245px;display:flex;flex-direction:column;align-items:flex-start}.detail-number{font-size:11px;letter-spacing:.13em;font-weight:700;color:var(--blue);margin-bottom:22px}.service-detail-card h2{font-size:21px;line-height:1.25;margin-bottom:11px}.service-detail-card p{font-size:14px;color:var(--muted);margin-bottom:18px}.service-detail-card .text-link{margin-top:auto}.service-detail-card-featured{background:#f4f7fa;border-color:#e4ebf0}.service-detail-card-featured .button{margin-top:auto}.two-col-content{display:grid;grid-template-columns:1fr .9fr;gap:70px;align-items:center}.soft-panel{background:#f5f8fa;border:1px solid #e9eef2;padding:32px;border-radius:5px}.soft-panel h3{font-size:21px;margin-bottom:20px}.check-list{list-style:none;padding:0;margin:0;display:grid;gap:13px}.check-list li{position:relative;padding-left:28px;color:#4f5b65;font-size:14px}.check-list li:before{content:'✓';position:absolute;left:0;top:0;color:var(--blue);font-weight:700}.process-band{background:#f6f8f9;padding:80px 0}.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:35px}.process-grid article{border-top:2px solid #cbd9e4;padding-top:22px}.process-grid article>span,.value-grid article>span{display:block;color:var(--blue);font-family:Manrope,sans-serif;font-size:13px;font-weight:800;letter-spacing:.1em;margin-bottom:17px}.process-grid h3,.value-grid h3{font-size:20px;margin-bottom:9px}.process-grid p,.value-grid p{font-size:14px;color:var(--muted);margin:0}.about-story-grid{display:grid;grid-template-columns:.78fr 1.22fr;gap:70px;align-items:center}.about-photo-large{min-height:430px;background:linear-gradient(145deg,#e7ebee,#d6dee4);display:flex;flex-direction:column;justify-content:flex-end;padding:28px;color:#52606c}.about-photo-large span{font-family:Manrope,sans-serif;font-size:23px;font-weight:700}.about-photo-large small{font-size:12px}.about-story-copy{max-width:680px}.about-story-copy .signature{color:var(--ink)!important}.approach-values{background:#f6f8f9}.value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:35px}.value-grid article{padding:24px 25px;border-left:2px solid #d4e0e9;background:#fff}.value-grid article>span{margin-bottom:12px}
@media(max-width:850px){.contact-layout,.two-col-content,.about-story-grid{grid-template-columns:1fr;gap:35px}.contact-intro{max-width:680px}.service-card-grid{grid-template-columns:repeat(2,1fr)}.page-cta-inner{align-items:flex-start;flex-direction:column}.about-photo-large{min-height:300px;max-width:500px;width:100%}}
@media(max-width:600px){.page-hero{padding:55px 0}.page-hero h1{font-size:39px}.page-lead{font-size:17px}.contact-form-card{padding:23px 19px}.form-row{grid-template-columns:1fr}.service-card-grid,.process-grid,.value-grid{grid-template-columns:1fr}.service-detail-card{min-height:0}.process-grid{gap:25px}.process-grid article{padding-top:17px}.page-cta{padding:52px 0}}

/* Phase 2 refinements: linked service headings and editorial photography */
.service-row-link{color:inherit;text-decoration:none;transition:color .2s}.service-row-link:hover{color:var(--blue)}.service-row-link:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:2px}
.photo-story{padding:68px 0;background:#f6f8f9}.photo-story-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}.photo-story-image{height:350px;overflow:hidden;border-radius:4px;background:#e9eef2}.photo-story-image img{display:block;width:100%;height:100%;object-fit:cover}.photo-story-copy{max-width:520px}.photo-story-copy h2{font-size:clamp(29px,3.2vw,39px);margin-bottom:15px}.photo-story-copy p:not(.eyebrow){color:var(--muted);margin:0}.photo-story-job-costing{background:#fff}.photo-story-job-costing .photo-story-image{order:2}.photo-story-payroll-accounts-payable{background:#f3f6f8}.services-intro-image{position:relative;height:300px;margin:30px 0 35px;overflow:hidden;border-radius:4px;background:#263e53}.services-intro-image img{width:100%;height:100%;object-fit:cover;display:block;filter:brightness(.68)}.services-intro-image>div{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:32px 38px;color:#fff;background:linear-gradient(0deg,rgba(20,37,52,.72),transparent 80%)}.services-intro-image span{font-size:11px;letter-spacing:.14em;font-weight:700;color:#d3e3ef;margin-bottom:10px}.services-intro-image strong{font-family:Manrope,sans-serif;font-size:clamp(22px,3vw,34px);line-height:1.2;max-width:620px}
@media(max-width:760px){.photo-story{padding:48px 0}.photo-story-grid{grid-template-columns:1fr;gap:25px}.photo-story-image{height:250px}.photo-story-job-costing .photo-story-image{order:0}.services-intro-image{height:240px}.services-intro-image>div{padding:23px}}

/* Image sizing safeguards: keep editorial photos inside their grid columns */
.photo-story-grid,
.photo-story-grid > *,
.services-intro-image,
.recognition,
.recognition-image,
.about-story-grid,
.about-photo-large { min-width:0; max-width:100%; }
.photo-story-image,
.services-intro-image { width:100%; max-width:100%; min-width:0; position:relative; overflow:hidden; }
.photo-story-image img,
.services-intro-image img,
.recognition-image img {
    display:block;
    width:100%;
    max-width:100%;
    height:100%;
    object-fit:cover;
}
.photo-story-image img,
.services-intro-image img { position:absolute; inset:0; }
.footer-note { color:var(--muted); font-size:13px; margin-top:4px; }
#contact-form { scroll-margin-top:120px; }

/* Service cards: the entire tile is one clear, keyboard-accessible link */
.service-detail-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-detail-card:hover {
    background-color: #f2f6f9;
    border-color: #cbd9e4;
    box-shadow: 0 8px 22px rgba(32, 62, 83, .08);
    transform: translateY(-2px);
}
.service-detail-card:focus-visible {
    outline: 3px solid rgba(40, 95, 145, .35);
    outline-offset: 3px;
}
.service-detail-card-featured:hover { background-color: #eaf1f6; }
.service-detail-card .text-link { display:inline-block; }
.service-detail-card .button { pointer-events:none; }

/* A restrained blue-tinted wash gives page heroes depth without competing with photos. */
.hero {
    background:
      radial-gradient(ellipse at 88% 8%, rgba(204, 222, 237, .42) 0%, rgba(204, 222, 237, 0) 42%),
      linear-gradient(112deg, #f4f7fa 0%, #ffffff 56%, #f7f9fb 100%);
}
.page-hero {
    background:
      radial-gradient(ellipse at 92% 0%, rgba(203, 221, 237, .48) 0%, rgba(203, 221, 237, 0) 43%),
      linear-gradient(112deg, #f0f5f9 0%, #fbfcfd 58%, #f4f7fa 100%);
}
@media (prefers-reduced-motion: reduce) {
    .service-detail-card { transition: none; }
    .service-detail-card:hover { transform:none; }
}


/* Kraft & Sons brand refinement: confident blue, warm brass, clean neutrals */
:root { --accent:#bd9458; --accent-dark:#9d753e; --accent-soft:#f5efe5; }
.site-header { position:sticky; top:0; background:#fff; border-bottom:1px solid #e8ebee; }
.site-header::before { content:""; position:absolute; left:0; right:0; top:0; height:4px; background:linear-gradient(90deg,#a77d45 0%,#d2b17d 48%,#bd9458 100%); }
.header-inner { padding-top:3px; }
.main-nav { gap:30px; }
.main-nav a:not(.nav-cta) { position:relative; padding:9px 0; }
.main-nav a:not(.nav-cta)::after { content:""; position:absolute; left:0; right:100%; bottom:2px; height:2px; background:var(--accent); transition:right .2s ease; }
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after { right:0; }
.main-nav .nav-cta { background:var(--accent); color:#fff; border:1px solid var(--accent); border-radius:5px; padding:12px 19px; box-shadow:0 4px 12px rgba(157,117,62,.18); }
.main-nav .nav-cta:hover { background:var(--accent-dark); border-color:var(--accent-dark); color:#fff; }
.main-nav a:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.button-primary { box-shadow:0 5px 14px rgba(40,95,145,.15); }
.button-primary:hover { box-shadow:0 8px 20px rgba(32,78,120,.22); transform:translateY(-1px); }
.button-light { background:var(--accent); border-color:var(--accent); color:#fff; }
.button-light:hover { background:var(--accent-dark); border-color:var(--accent-dark); color:#fff; }
/* Footer becomes a deliberate navy anchor, with warm brass details. */
.site-footer { background:#263e53; color:#fff; }
.footer-main { padding-top:58px; padding-bottom:48px; }
.footer-brand p,.footer-contact p { color:#d4dde5; }
.footer-links h3,.footer-contact h3 { color:#fff; }
.footer-links h3::after,.footer-contact h3::after { content:""; display:block; width:30px; height:2px; margin-top:10px; background:var(--accent); }
.footer-links a { color:#d4dde5; transition:color .2s ease; }
.footer-links a:hover,.footer-links a:focus-visible { color:#e2c99f; }
.footer-contact .text-link { display:inline-flex; align-items:center; gap:8px; background:var(--accent); color:#fff; padding:11px 16px; border-radius:5px; margin-top:5px; font-weight:700; }
.footer-contact .text-link:hover { background:var(--accent-dark); color:#fff; }
.footer-note { color:#e2c99f; font-size:14px; }
.footer-bottom { background:#203447; border-top:1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { color:#bdcbd6; }
/* Use the warm accent sparingly throughout the content. */
.eyebrow::before { content:""; display:inline-block; width:18px; height:2px; background:var(--accent); vertical-align:middle; margin:0 9px 3px 0; }
.detail-number,.process-grid article>span,.value-grid article>span { color:var(--accent-dark); }
.service-detail-card { border-top:3px solid #dce6ee; transition:background-color .2s,border-color .2s,box-shadow .2s,transform .2s; }
.service-detail-card:hover { border-top-color:var(--accent); background:#fbf8f2; box-shadow:0 8px 22px rgba(32,62,83,.08); transform:translateY(-2px); }
.promise-mark,.line-icon { border-color:var(--accent); color:var(--accent-dark); background:var(--accent-soft); }
.check-list li:before { color:var(--accent-dark); }
.process-grid article { border-top-color:var(--accent); }
.value-grid article { border-left-color:var(--accent); }
.page-cta { background:radial-gradient(ellipse at 90% 0%,rgba(189,148,88,.2),transparent 42%),linear-gradient(115deg,#233b50,#2d4c66); }
.contact-form-card { border-top:3px solid var(--accent); }
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(189,148,88,.15); }
@media(max-width:760px) {
 .site-header::before { height:3px; }
 .main-nav { border-top:2px solid var(--accent); }
 .main-nav .nav-cta { text-align:center; margin-top:8px; }
 .footer-contact .text-link { align-self:flex-start; }
}
@media(prefers-reduced-motion:reduce) {
 .main-nav a:not(.nav-cta)::after,.service-detail-card { transition:none; }
 .service-detail-card:hover,.button-primary:hover { transform:none; }
}


/* Final header and footer refinements */
.site-header::before { display:none; }
.header-inner { padding-top:0; }
.main-nav .nav-cta {
    background:var(--blue);
    color:#fff;
    border:1px solid var(--blue);
    box-shadow:none;
}
.main-nav .nav-cta:hover {
    background:var(--blue-dark);
    border-color:var(--blue-dark);
    color:#fff;
}
/* Keep the navy footer field and the darker copyright bar as approved. */
.site-footer { background:#263e53; color:#fff; }
.footer-bottom { background:#203447; }

/* A stronger feature panel for service-specific support lists. */
.soft-panel {
    position:relative;
    overflow:hidden;
    background:linear-gradient(135deg,#f1f5f8 0%,#e8eff4 100%);
    border:1px solid #d5e0e8;
    border-left:5px solid var(--accent);
    border-radius:7px;
    padding:38px 40px;
    box-shadow:0 12px 30px rgba(32,62,83,.08);
}
.soft-panel h3 {
    color:#263e53;
    font-size:clamp(23px,2.5vw,28px);
    font-weight:800;
    margin-bottom:24px;
}
.soft-panel h3::after {
    content:"";
    display:block;
    width:46px;
    height:3px;
    background:var(--accent);
    margin-top:15px;
    border-radius:2px;
}
.soft-panel .check-list { gap:16px; }
.soft-panel .check-list li {
    padding-left:34px;
    color:#43515d;
    font-size:16px;
    line-height:1.65;
    font-weight:600;
}
.soft-panel .check-list li::before {
    content:"✓";
    left:0;
    top:1px;
    color:var(--accent-dark);
    font-size:20px;
    font-weight:800;
}
@media(max-width:600px) {
    .soft-panel { padding:27px 23px; }
    .soft-panel h3 { font-size:23px; }
    .soft-panel .check-list li { font-size:15px; }
}


/* Editorial photo headers: each interior page gets its own relevant image.
   The left-to-right wash keeps headlines readable and blends into the brand blue-gray. */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    background: linear-gradient(112deg, #f0f5f9 0%, #f8fafb 58%, #edf3f7 100%);
    border-bottom: 1px solid #e5ebf0;
}
.page-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0 0 0 auto;
    width: 76%;
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
}
.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg,
        #f0f5f9 0%,
        rgba(240,245,249,.99) 28%,
        rgba(240,245,249,.91) 43%,
        rgba(240,245,249,.62) 59%,
        rgba(240,245,249,.16) 100%);
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
}
.page-hero h1 { max-width: 790px; }
.page-hero .page-lead { max-width: 730px; }
.page-hero-services::before { background-image: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=85'); }
.page-hero-bookkeeping::before { background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=85'); }
.page-hero-job-costing::before { background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=85'); }
.page-hero-payroll::before { background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=85'); }
.page-hero-invoicing::before { background-image: url('https://images.unsplash.com/photo-1554224154-22dec7ec8818?auto=format&fit=crop&w=1800&q=85'); }
.page-hero-about::before { background-image: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1800&q=85'); }
.page-hero-contact::before { background-image: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1800&q=85'); }
@media (max-width: 760px) {
    .page-hero { min-height: 0; padding-top: 55px; padding-bottom: 55px; }
    .page-hero::before { width: 100%; opacity: .55; background-position: center; }
    .page-hero::after { background: linear-gradient(90deg, rgba(240,245,249,.98) 0%, rgba(240,245,249,.91) 58%, rgba(240,245,249,.72) 100%); }
    .page-hero-inner { padding-top: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .page-hero::before { scroll-behavior: auto; } }


/* Final page-hero and footer refinements (November 2026). */
.page-hero-inner {
    width: min(var(--max), calc(100% - 48px));
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}
.page-hero h1 { max-width: 760px; }
.page-hero .page-lead { max-width: 690px; }
.page-hero::after {
    background: linear-gradient(90deg,
        #f0f5f9 0%,
        rgba(240,245,249,.995) 34%,
        rgba(240,245,249,.97) 48%,
        rgba(240,245,249,.86) 60%,
        rgba(240,245,249,.48) 76%,
        rgba(240,245,249,.12) 100%);
}
/* Restore the approved light main footer while retaining the dark bottom bar. */
.site-footer { background:#f4f7f9; color:var(--ink); }
.footer-brand p,.footer-contact p { color:#626d77; }
.footer-links h3,.footer-contact h3 { color:#263e53; }
.footer-links a { color:#58636d; }
.footer-links a:hover,.footer-links a:focus-visible { color:var(--accent-dark); }
.footer-note { color:var(--accent-dark); }
.footer-bottom { background:#203447; border-top:1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { color:#bdcbd6; }
@media (max-width:760px) {
    .page-hero-inner { max-width:none; }
    .page-hero::after {
        background:linear-gradient(90deg,rgba(240,245,249,.99) 0%,rgba(240,245,249,.96) 62%,rgba(240,245,249,.82) 100%);
    }
}


/* Align interior hero copy with the shared site container and brighten CTA kicker. */
.page-hero-inner {
    width: min(var(--max), calc(100% - 48px));
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}
.page-cta .eyebrow { color: #ffffff; }


/* About page introductory video */
.about-video-section {
  background: #fff;
  padding-top: 76px;
  padding-bottom: 82px;
}
.about-video-container {
  max-width: 1120px;
}
.about-video-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}
.about-video-heading h2 {
  color: var(--ink, #263e53);
  font-size: clamp(30px, 3.5vw, 42px);
  margin: 0 0 12px;
}
.about-video-heading > p:last-child {
  color: var(--muted, #56616c);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}
.about-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #172b3b;
  box-shadow: 0 16px 42px rgba(30, 48, 64, .13);
}
.about-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 600px) {
  .about-video-section {
    padding-top: 54px;
    padding-bottom: 58px;
  }
  .about-video-heading {
    margin-bottom: 22px;
  }
  .about-video-heading > p:last-child {
    font-size: 16px;
  }
  .about-video-frame {
    border-radius: 5px;
  }
}


/* Expanded service-page content and related-service navigation */
.service-detail-content { background:#fff; }
.service-topic-list { border-top:1px solid var(--line); }
.service-topic { display:grid; grid-template-columns:1.15fr .85fr; gap:58px; padding:34px 0; border-bottom:1px solid var(--line); align-items:start; }
.service-topic-copy h3 { font-size:clamp(21px,2.2vw,27px); margin-bottom:12px; }
.service-topic-copy p { color:var(--muted); max-width:720px; margin:0; }
.service-topic-value { padding:19px 22px; background:#f5f8fa; border-left:3px solid #bd9458; }
.service-topic-value span { display:block; color:#9b7138; font-size:10px; font-weight:800; letter-spacing:.14em; margin-bottom:8px; }
.service-topic-value p { color:#53616d; font-size:14px; margin:0; }
.related-services { background:#fff; }
.related-service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.related-service-card { min-height:170px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:24px; border:1px solid var(--line); border-top:3px solid #dce6ee; border-radius:5px; text-decoration:none; transition:border-color .2s,background .2s,transform .2s; }
.related-service-card:hover { border-top-color:#bd9458; background:#fbf8f2; transform:translateY(-2px); }
.related-service-card strong { color:var(--ink); font-family:Manrope,'DM Sans',Arial,sans-serif; font-size:17px; line-height:1.3; }
.related-service-card span { color:var(--muted); font-size:14px; }
.related-service-card em { color:var(--blue); font-size:13px; font-style:normal; font-weight:700; margin-top:auto; }
@media(max-width:850px) { .service-topic { grid-template-columns:1fr; gap:18px; } .related-service-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px) { .service-topic { padding:27px 0; } .service-topic-value { padding:17px; } .related-service-grid { grid-template-columns:1fr; } .related-service-card { min-height:145px; } }


/* Invoicing resource pages: long-form educational content */
.resource-hero .page-hero-inner { max-width: 920px; }
.resource-breadcrumb { font-size:13px; color:#68747e; margin:0 0 22px; }
.resource-breadcrumb a { color:var(--blue); text-decoration:none; }
.resource-breadcrumb a:hover { text-decoration:underline; }
.resource-layout { display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:64px; align-items:start; }
.resource-article { max-width:790px; }
.resource-article h2 { font-size:clamp(26px,3vw,34px); margin:48px 0 16px; }
.resource-article h2:first-child { margin-top:0; }
.resource-article p { color:#4f5b65; font-size:16px; line-height:1.8; margin:0 0 18px; }
.resource-article .resource-callout { background:#f5f8fa; border-left:3px solid #bd9458; padding:22px 25px; margin:30px 0; color:#45525e; }
.resource-article .resource-callout strong { display:block; color:var(--ink); margin-bottom:6px; font-family:Manrope,'DM Sans',Arial,sans-serif; }
.resource-sidebar { position:sticky; top:130px; border:1px solid var(--line); border-radius:5px; padding:25px; background:#fff; }
.resource-sidebar h2 { font-size:18px; margin:0 0 15px; }
.resource-sidebar ol { margin:0; padding-left:19px; display:grid; gap:11px; }
.resource-sidebar li { color:#66727d; font-size:13px; line-height:1.45; }
.resource-sidebar a { color:#40566a; text-decoration:none; }
.resource-sidebar a:hover { color:var(--blue); text-decoration:underline; }
.resource-backlink { margin-top:38px; padding-top:25px; border-top:1px solid var(--line); }
.resource-backlink a { color:var(--blue); font-weight:700; text-decoration:none; }
.resource-next { background:#f6f8f9; padding:65px 0; }
.resource-next-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; }
.resource-next a { display:block; padding:18px 20px; border:1px solid var(--line); border-radius:4px; background:#fff; color:var(--ink); text-decoration:none; font-weight:700; }
.resource-next a span { display:block; color:var(--blue); font-size:11px; letter-spacing:.1em; margin-bottom:5px; }
.resource-next a:hover { border-color:#bd9458; }
@media(max-width:850px) { .resource-layout { grid-template-columns:1fr; gap:35px; } .resource-sidebar { position:static; order:-1; } .resource-article h2 { margin-top:38px; } }
@media(max-width:600px) { .resource-next-grid { grid-template-columns:1fr; } .resource-sidebar { padding:20px; } }

/* Full-card links on the Services page */
.service-detail-card-link { display:flex; color:inherit; text-decoration:none; cursor:pointer; }
.service-detail-card-link:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
.service-detail-card-link .text-link { display:inline-block; margin-top:auto; }


/* Founder portraits: home-page feature and About-page team photos */
.home-founder-photo {
    min-height: 330px;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #e7ebee;
    box-shadow: 0 14px 34px rgba(32, 55, 75, .10);
}
.home-founder-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    object-position: center 23%;
}
.about-people-section .container { max-width: 980px; }
.about-people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    max-width: 760px;
    margin: 0 auto 58px;
}
.about-person { margin: 0; min-width: 0; }
.about-person-photo {
    height: 390px;
    overflow: hidden;
    border-radius: 4px;
    background: #e7ebee;
}
.about-person-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}
.about-person figcaption {
    padding-top: 13px;
    font-family: Manrope, 'DM Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}
.about-person-title {
    display: block;
    margin-top: 3px;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted, #68727b);
}
.about-people-section .about-story-copy { max-width: 760px; margin: 0 auto; }
@media (max-width: 760px) {
    .home-founder-photo, .home-founder-photo img { min-height: 300px; }
    .home-founder-photo { max-width: 430px; }
    .about-people-grid { gap: 18px; margin-bottom: 40px; }
    .about-person-photo { height: 280px; }
}
@media (max-width: 480px) {
    .about-people-grid { grid-template-columns: 1fr; max-width: 360px; }
    .about-person-photo { height: 390px; }
}

/* About page: story, team biographies, and video are distinct sections */
.about-story-section { background:#fff; padding-top:72px; padding-bottom:72px; }
.about-story-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr); gap:70px; align-items:center; max-width:1080px; }
.about-story-copy { max-width:720px; }
.about-story-copy h2 { margin-bottom:18px; }
.about-story-copy p:not(.eyebrow) { color:var(--muted); line-height:1.8; }
.about-story-aside { padding:34px 32px; background:#f5f8fa; border-left:3px solid #bd9458; }
.about-story-mark { display:block; color:#bd9458; font-family:Georgia,serif; font-size:58px; line-height:.7; margin-bottom:18px; }
.about-story-aside p { color:#40505e; font-family:Manrope,'DM Sans',Arial,sans-serif; font-size:19px; line-height:1.55; font-weight:600; margin:0; }
.about-people-section { background:#f6f8f9; padding-top:76px; padding-bottom:82px; }
.about-people-section .container { max-width:1120px; }
.about-people-heading { max-width:760px; margin:0 auto 38px; }
.about-people-heading h2 { font-size:clamp(30px,3.5vw,42px); margin-bottom:12px; }
.about-people-heading > p:last-child { color:var(--muted); font-size:17px; line-height:1.7; }
.about-people-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px; max-width:100%; margin:0; align-items:stretch; }
.about-person { min-width:0; margin:0; background:#fff; border:1px solid #e5eaee; border-radius:5px; overflow:hidden; }
.about-person-photo { height:360px; border-radius:0; background:#e7ebee; }
.about-person-photo img { object-position:center 25%; }
.about-person-copy { padding:27px 29px 30px; }
.about-person-copy h3 { color:var(--ink); font-family:Manrope,'DM Sans',Arial,sans-serif; font-size:25px; margin:0 0 3px; }
.about-person-title { margin:0 0 20px; color:var(--blue); font-size:13px; font-weight:700; }
.about-person-copy p:not(.about-person-title) { color:var(--muted); font-size:15px; line-height:1.75; margin:0 0 15px; }
.about-person-copy p:last-child { margin-bottom:0; }
.about-video-section { padding-top:76px; padding-bottom:82px; }
@media(max-width:850px) {
  .about-story-layout { grid-template-columns:1fr; gap:28px; }
  .about-story-aside { max-width:600px; }
  .about-person-photo { height:300px; }
  .about-person-copy { padding:23px; }
}
@media(max-width:600px) {
  .about-story-section,.about-people-section,.about-video-section { padding-top:54px; padding-bottom:58px; }
  .about-people-grid { grid-template-columns:1fr; max-width:460px; margin:0 auto; gap:22px; }
  .about-person-photo { height:390px; }
  .about-people-heading { margin-bottom:28px; }
  .about-story-aside { padding:27px 24px; }
}


/* Services dropdown navigation — desktop hover/focus and mobile tap */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-dropdown-link { display: inline-flex; align-items: center; }
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}
.nav-dropdown-toggle span {
    display: inline-block;
    font-size: 17px;
    line-height: 1;
    transition: transform .2s ease;
}
.nav-submenu {
    position: absolute;
    z-index: 100;
    top: 100%;
    left: -18px;
    display: none;
    min-width: 250px;
    /* The transparent top padding bridges the gap from Services to the menu. */
    padding: 10px 9px 9px;
    background: transparent;
    border: 0;
    border-radius: 5px;
    box-shadow: none;
}
.nav-submenu::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 10px;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    border: 1px solid #e5eaee;
    border-radius: 5px;
    box-shadow: 0 12px 28px rgba(32, 55, 75, .14);
}
.nav-submenu a { position: relative; z-index: 1; }
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.is-open .nav-submenu { display: block; }
.nav-submenu a {
    display: block;
    padding: 11px 12px !important;
    color: #354555 !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal !important;
    border-radius: 3px;
    text-decoration: none;
}
.nav-submenu a::after { display: none !important; }
.nav-submenu a:hover,
.nav-submenu a:focus-visible {
    color: var(--blue) !important;
    background: #f3f6f8;
}
.nav-dropdown-toggle:focus-visible,
.nav-submenu a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.nav-dropdown.is-open .nav-dropdown-toggle span { transform: rotate(180deg); }

@media (max-width: 760px) {
    .main-nav .nav-dropdown {
        display: grid;
        grid-template-columns: 1fr 38px;
        gap: 0;
        align-items: center;
    }
    .main-nav .nav-dropdown-link { padding: 12px 4px; }
    .main-nav .nav-dropdown-toggle { width: 38px; height: 42px; }
    .main-nav .nav-submenu {
        position: static;
        grid-column: 1 / -1;
        min-width: 0;
        padding: 4px 8px 8px 15px;
        border: 0;
        border-left: 2px solid var(--accent);
        border-radius: 0;
        box-shadow: none;
        background: #f8fafb;
    }
    .main-nav .nav-submenu::before { display: none; }
    .main-nav .nav-dropdown:not(.is-open) .nav-submenu { display: none; }
    .main-nav .nav-dropdown:hover .nav-submenu,
    .main-nav .nav-dropdown:focus-within .nav-submenu { display: none; }
    .main-nav .nav-dropdown.is-open .nav-submenu { display: block; }
    .main-nav .nav-submenu a { padding: 10px 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-dropdown-toggle span { transition: none; }
}

/* Keep in-page contact links clear of the sticky/header area. */
#contact-form { scroll-margin-top: 110px; }


/* Keep required markers on the same line as their field labels. */
.contact-form label .field-label {
    display: inline;
    line-height: 1.4;
}
.contact-form label .required-mark {
    display: inline;
    color: #b34b42;
    margin-left: 2px;
}

/* Homepage hero: full-width accounting workspace photograph, styled to match the interior page heroes. */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 76px 0 70px;
    background: #eef4f8;
    border-bottom: 1px solid #e5ebf0;
}
.hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1779729686198-117c1307894d?auto=format&fit=crop&fm=jpg&q=85&w=2200");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(240,245,249,.99) 0%,
        rgba(240,245,249,.98) 35%,
        rgba(240,245,249,.88) 51%,
        rgba(240,245,249,.48) 69%,
        rgba(240,245,249,.12) 100%);
}
.hero-grid {
    display: block;
    position: relative;
    width: min(var(--max), calc(100% - 48px));
}
.hero-copy { max-width: 760px; }
.hero h1 { max-width: 700px; }
.hero-lead { max-width: 650px; }
.hero-visual { display: none; }
@media (max-width: 760px) {
    .hero { min-height: 0; padding: 58px 0 55px; }
    .hero::before { background-position: 62% center; }
    .hero::after {
        background: linear-gradient(90deg,
            rgba(240,245,249,.99) 0%,
            rgba(240,245,249,.96) 65%,
            rgba(240,245,249,.82) 100%);
    }
    .hero-grid { width: min(var(--max), calc(100% - 36px)); }
    .hero-copy { max-width: 100%; }
}


/* Local page-hero photography: images are semantic HTML <img> elements. */
.page-hero {
    position: relative;
    isolation: isolate;
}
.page-hero::before {
    content: none !important;
    background-image: none !important;
}
.page-hero-image {
    position: absolute;
    z-index: -2;
    top: 0;
    right: 0;
    width: 76%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center right;
}
.page-hero::after {
    z-index: -1;
}
@media (max-width: 760px) {
    .page-hero-image {
        width: 100%;
        opacity: .55;
        object-position: center;
    }
}


/* Mobile polish: keep the header in normal document flow and give full-bleed
   homepage recognition copy the same side gutters as the rest of the site. */
@media (max-width: 760px) {
    .site-header {
        position: relative;
        top: auto;
    }

    .main-nav {
        max-height: calc(100svh - 82px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .recognition-copy {
        padding-left: 18px;
        padding-right: 18px;
    }
}
