/* Layout fixes - loaded last so it wins over style.css, revision3.css and v1-revision5.css */

/* 1. Header: same container width as the page content, so logo/CTA line up with the sections below.
   (Logo size, position and image are NOT touched - they stay as set in the admin panel.) */
.site-header .header-inner{width:min(1280px,calc(100% - 96px))}
@media(max-width:1100px){.site-header .header-inner{width:calc(100% - 64px)}}
@media(max-width:600px){.site-header .header-inner{width:calc(100% - 40px)}}

/* 2. Hero photo must fill the hero on every screen (was letterboxed with object-fit:contain) */
.hero-one .hero-bg{object-fit:cover!important;object-position:65% center;background:#0c2533}
@media(max-width:900px){.hero-one .hero-bg{object-position:62% center}}
.hero-one .actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.v1 .hero-one .actions .call-now,.v1 .hero-one .call-now{margin-top:0}
@media(max-width:600px){.hero-one .actions{gap:10px}}

/* 3. Banners no longer touch the header; breathing room above the first block */
.inner-title.wrap,.service-hero.wrap{margin-top:24px;border-radius:24px}
.v1 .inner-title.wrap{border-radius:24px}
.v1 .service-hero.wrap{padding-inline:32px;border-radius:24px}
@media(max-width:900px){.inner-title.wrap,.service-hero.wrap,.v1 .inner-title.wrap,.v1 .service-hero.wrap{margin-top:16px;border-radius:18px}.v1 .service-hero.wrap{padding-inline:20px}}
.service-hero + .wrap .actions{margin-top:24px}

/* 4. Equal-height service cards with the link pinned to the bottom */
.service-grid{align-items:stretch}
.service-card{display:flex;flex-direction:column}
.service-card .card-copy{flex:1;display:flex;flex-direction:column}
.service-card .card-copy>.text-link,.service-card .card-copy>.actions,.service-card .card-copy>.btn{margin-top:auto;align-self:flex-start}
.service-card .card-copy>p:not(.eyebrow){margin-bottom:18px}

/* 5. Header links never break letter by letter */
.site-header .desktop-nav a,.site-header .desktop-nav button,.site-header .header-cta{white-space:nowrap}

/* 7. Mobile hero buttons: tidy full-width primary + two equal buttons */
@media(max-width:600px){
  .hero-one .actions .btn{flex:1 1 calc(50% - 5px);justify-content:center;min-width:0}
  .hero-one .actions .btn:first-child{flex-basis:100%}
}

/* 8. Typing Services chip list: two columns on wide screens so that card is not much taller than its neighbours */
@media(min-width:1000px){.v1 .service-chip-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v1 .service-chip-links a{font-size:11.5px;padding-inline:10px}}

/* 9. Our Team: gap between banner and the photo band */
.team-setting.wrap{margin-top:24px;margin-bottom:8px}

/* 10. Header logo: the admin rule width:min(var(--admin-header-logo),100%) makes the .brand box
   size itself from the image's natural width (percentages are ignored for intrinsic sizing), so a large
   uploaded logo pushed the nav and CTA off-screen. Use the same admin size variables WITHOUT the % so the
   box is exactly the chosen logo size. Logo image and size still come from the admin panel. */
.v1 .site-header .brand{flex:0 1 auto;min-width:0;max-width:100%}
.v1 .site-header .brand .logo{width:var(--admin-header-logo,160px);max-width:100%;height:auto}
.v1 .footer-brand .brand{max-width:100%}
.v1 .footer-brand .brand .logo{width:var(--admin-footer-logo,170px);max-width:100%;height:auto}
@media(max-width:767px){.v1 .site-header .brand .logo{width:var(--admin-mobile-logo,120px)}}
/* mid widths: keep the nav on one line without crowding the logo */
@media(min-width:901px) and (max-width:1180px){
  .v1 .site-header .desktop-nav{gap:14px;font-size:12px}
  .v1 .site-header .header-cta{padding:10px 13px;font-size:12px}
}
/* small phones: logo + CTA + menu button must fit one row */
@media(max-width:420px){
  .site-header .header-inner{gap:8px}
  .v1 .site-header .brand .logo{width:min(var(--admin-mobile-logo,120px),34vw)}
  .site-header .header-cta{padding:10px 10px}
  .site-header .header-cta span{white-space:nowrap}
}

/* 11. "Services" toggle lines up with the other nav links (same padding/border box) */
.site-header .desktop-nav .dropdown{display:flex;align-items:center}
.site-header .desktop-nav .services-toggle{padding:14px 0;border:0;border-bottom:2px solid transparent;background:none;font:inherit;color:inherit;line-height:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
