/*
 * Agency theme (Branding tab → Theme). Loaded after style.css; every rule is scoped to body.theme-agency.
 * Flat colours, a short photo hero with a left-aligned headline, photo page headers, a slim footer,
 * plus section classes for page and homepage HTML: .split-section, .steps, .card-grid, .band-gradient.
 */

/* ------- Base ------- */
.theme-agency { --secondaryFont: 'Montserrat', sans-serif; color: rgb(68,68,68); overflow-x: clip; }
.theme-agency h1, .theme-agency h2, .theme-agency h3,
.theme-agency h4, .theme-agency h5, .theme-agency h6 { font-weight: 600; }
.theme-agency p { font-size: 15px; }
.theme-agency .btn { border-radius: 50rem; }
.theme-agency .section-transition { display: none; }

/* ------- Navigation ------- */
.theme-agency .navbar-expand-lg .navbar-nav .nav-link { color: #6c757d; font-weight: 400; }
.theme-agency.theme-agency .navbar-nav .nav-link:hover,
.theme-agency.theme-agency .navbar-nav .nav-link:focus,
.theme-agency.theme-agency .navbar-nav .show > .nav-link { color: rgb(var(--colorPrimary)); }

/* ------- Homepage hero: short, photo, left-aligned white headline ------- */
.theme-agency #hero.min-vh-100,
.theme-agency #hero .min-vh-100 { min-height: 0 !important; }
.theme-agency #hero::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(var(--colorPrimary), .45), rgba(var(--colorPrimary), .05)); }
.theme-agency #hero .container-fluid { position: relative; }
.theme-agency #hero .headline { min-height: 360px; padding-top: 80px; }
.theme-agency #hero .hero-headline { flex: 0 0 100%; max-width: 960px; margin-left: 0; padding: 2rem 1.25rem; }
.theme-agency #hero .hp-headline,
.theme-agency #hero .hp-headline span { color: #fff !important; }
.theme-agency #hero .hp-headline { font-size: 28px; font-weight: 700; text-align: left; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.theme-agency #hero .hp-lead { color: #fff !important; font-size: 16px; font-weight: 600; text-align: left !important; padding: 0; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.theme-agency #hero .hero-phone { display: none; }
/* Hero cards become a row of flat bars */
.theme-agency #hero .hero-cards > div { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.theme-agency #hero .hero-cards .svg-wrapper { display: none; }
.theme-agency #hero .hero-cards h2 { font-size: 22px; font-weight: 600; }

/* ------- Inner page header: page title over the header background ------- */
.theme-agency #hero-short { min-height: 260px; padding-top: 80px; padding-bottom: 0 !important; }
.theme-agency #hero-short::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(var(--colorPrimary), .35); }
.theme-agency #hero-short .container { position: relative; align-items: flex-start !important; }
.theme-agency #hero-short .row { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.theme-agency #hero-short .col-12 { text-align: left !important; }
.theme-agency #hero-short .page-title { color: #fff !important; font-size: 26px; font-weight: 600; text-align: left; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.25); }

/* ------- Footer: one slim band ------- */
.theme-agency #footer { background-color: rgb(var(--colorPrimary)) !important; }
.theme-agency #footer .row { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.theme-agency #footer p { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: .25rem; }

/* ------- Section classes for page / homepage HTML ------- */
/* Full-bleed wrapper: spans the window even inside a centred container */
.theme-agency .full-bleed,
.theme-agency .split-section { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
/* At the top or bottom of a homepage section, sit flush against the next section (no white gap) */
.theme-agency .home-content .container > .full-bleed:first-child,
.theme-agency .home-content .container > .split-section:first-child { margin-top: -3rem; }
.theme-agency .home-content .container > .full-bleed:last-child,
.theme-agency .home-content .container > .split-section:last-child { margin-bottom: -3rem; }

/* Image half + text half; stacks with the image on top on phones. order-lg-2 on .split-img puts it right. */
.theme-agency .split-img { min-height: 260px; background-size: cover; background-position: center; }
.theme-agency .split-text { display: flex; align-items: center; padding: 2.5rem 1.5rem; background: #dedede; }
.theme-agency .split-text > div { width: 100%; max-width: 560px; margin: 0 auto; }
.theme-agency .split-text h2, .theme-agency .split-text h3 { text-align: left; color: rgb(68,68,68); }
.theme-agency .split-text h2 { font-size: 26px; }
.theme-agency .split-text h3 { font-size: 18px; }
.theme-agency .split-text p { font-size: 14px; }

/* Numbered steps in dashed boxes: <div class="row steps"><div class="col-md-4"><div class="step">…</div></div>…</div> */
.theme-agency .steps { counter-reset: step; }
.theme-agency .step { position: relative; height: 100%; margin-top: 25px; padding: 2.25rem 1rem 1.25rem; border: 2px dashed rgb(var(--colorSecondary)); border-radius: 6px; text-align: center; }
.theme-agency .step::before { counter-increment: step; content: counter(step); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; line-height: 44px; border-radius: 50%; background: rgb(var(--colorPrimary)); color: #fff; font-family: var(--primaryFont); font-size: 20px; font-weight: 700; }
.theme-agency .step h3 { color: rgb(var(--colorSecondary)); font-size: 18px; }
.theme-agency .step p { font-size: 13px; margin: 0; }

/* Coloured cards, alternating primary / secondary: <div class="row card-grid"><div class="col-md-4"><div class="grid-card">…</div></div>…</div> */
.theme-agency .card-grid > div { margin-bottom: 30px; }
.theme-agency .grid-card { height: 100%; padding: 2rem 1.5rem; border-radius: 6px; background: rgb(var(--colorPrimary)); color: #fff; text-align: center; }
.theme-agency .card-grid > div:nth-child(even) .grid-card { background: rgb(var(--colorSecondary)); }
.theme-agency .grid-card h3 { color: #fff; font-size: 20px; }
.theme-agency .grid-card p { color: #fff; font-size: 13px; font-weight: 600; margin: 0; }

/* Gradient band (e.g. behind an accordion); put .full-bleed on it to span the window */
.theme-agency .band-gradient { padding: 3rem 1rem; background: linear-gradient(160deg, rgb(var(--colorPrimary)), rgb(var(--colorSecondary)) 60%, #4fa8ee); }
.theme-agency .band-gradient > * { max-width: 1110px; margin-left: auto; margin-right: auto; }
.theme-agency .band-gradient h2 { color: #fff; }
.theme-agency .band-gradient .card { border: 0; border-radius: 2px; margin-bottom: 4px; }
.theme-agency .band-gradient .card-header { padding: 0; background: #f5f5f5; }
.theme-agency .band-gradient .card-header button { width: 100%; padding: .65rem 1rem; color: rgb(68,68,68); font-weight: 600; text-align: center; }
.theme-agency .band-gradient .card-body { font-size: 13px; }

/* ------- Larger screens ------- */
@media (min-width: 768px) {
  .theme-agency #hero .headline { min-height: 420px; }
  .theme-agency #hero .hero-headline { padding-left: 3vw; }
  .theme-agency #hero .hp-headline { font-size: 34px; }
  .theme-agency #hero .hp-lead { font-size: 20px; }
  .theme-agency #hero-short { min-height: 420px; }
  .theme-agency #hero-short .page-title { font-size: 32px; }
}
@media (min-width: 992px) {
  .theme-agency .split-img, .theme-agency .split-text { min-height: 500px; }
  .theme-agency .split-text { padding: 3rem; }
  .theme-agency .split-text h2 { font-size: 30px; }
}
