/*
Theme Name: Facility Management
Theme URI: https://example.com/facilitymanagement
Author: Crime Control
Author URI: https://example.com
Description: Starter custom theme for the Facility Management website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: facilitymanagement
*/

:root {
    --primary: #1F3A5F;
    --primary-dark: #132A44;
    --primary-soft: #2E5C89;
    --accent: #F57C00;
    --accent-soft: #FFB15A;
    --light: #F4F6F8;
    --text: #243241;
    --muted: #6B7280;
    --white: #ffffff;
    --border: rgba(31, 58, 95, 0.10);
    --shadow: 0 18px 50px rgba(19, 42, 68, 0.08);
    --radius: 22px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.topbar {
    background: var(--primary);
    color: #fff;
    font-size: 14px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.topbar a:hover {
    text-decoration: underline;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.navbar-drawer {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-toggle:hover {
    border-color: rgba(31, 58, 95, 0.22);
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
}

.menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.logo img,
.custom-logo-link img {
    height: 64px;
    width: auto;
}

.logo-text {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.menu,
.menu-wrapper .menu {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a,
.menu-wrapper .menu a {
    display: inline-block;
}

.menu a:hover,
.menu-wrapper .menu a:hover {
    color: var(--accent);
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 700;
}

.cta-btn:hover {
    opacity: 0.92;
}

/* Hero strip */
.hero-strip {
    background: linear-gradient(rgba(19, 42, 68, 0.28), rgba(19, 42, 68, 0.28)), var(--primary-dark);
    color: #fff;
    padding: 72px 0;
}

.hero-strip h1 {
    margin: 0 0 14px;
    font-size: 44px;
    line-height: 1.1;
    max-width: 680px;
}

.hero-strip p {
    margin: 0;
    max-width: 680px;
    font-size: 18px;
    line-height: 1.65;
}

.site-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0;
}

.entry-title {
    margin-top: 0;
    margin-bottom: 12px;
}

/* Home hero slider */
.home-page-template .hero-section {
    position: relative;
    --home-hero-height: clamp(520px, 85vh, 1000px);
}

.home-page-template #heroCarousel {
    position: relative;
    overflow: hidden;
    height: var(--home-hero-height);
    min-height: var(--home-hero-height);
}

/* Controls sit on .hero-section (sibling of #heroCarousel) so clicks work above slides/overflow */
.home-page-template .hero-section .hero-carousel-control {
    position: absolute;
    top: 50%;
    z-index: 30;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.home-page-template .hero-section .hero-carousel-control svg {
    pointer-events: none;
}

.home-page-template .hero-section .hero-carousel-control:hover {
    background: rgba(245, 124, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.55);
}

.home-page-template .hero-section .hero-carousel-control:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
}

.home-page-template .hero-section .hero-carousel-prev {
    left: max(12px, env(safe-area-inset-left, 0px));
}

.home-page-template .hero-section .hero-carousel-next {
    right: max(12px, env(safe-area-inset-right, 0px));
}

@media (max-width: 640px) {
    .home-page-template .hero-section .hero-carousel-control {
        display: none;
    }
}

.home-page-template .carousel-inner {
    position: relative;
    height: var(--home-hero-height);
    min-height: var(--home-hero-height);
}

/* Stacked slides + opacity crossfade (replaces display:none toggling) */
.home-page-template .carousel-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.65s ease-in-out;
}

.home-page-template .carousel-item.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.home-page-template .hero-slide {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

@media (prefers-reduced-motion: reduce) {
    .home-page-template .carousel-item {
        transition-duration: 0.01ms;
    }
}

.home-page-template .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
}

.home-page-template .hero-content {
    position: relative;
    color: #fff;
    max-width: 600px;
    z-index: 1;
}

.home-page-template .hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.15;
}

.home-page-template .hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.home-page-template .hero-content .btn-primary {
    background: var(--accent);
    border: 0;
    padding: 12px 25px;
    color: #fff;
}

.home-page-template .hero-content .btn-outline-light {
    margin-left: 10px;
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    background: transparent;
}

.home-page-template .hero-content .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Home sections */
.home-page-template {
    width: 100%;
    margin: 0;
    padding: 0;
}

.home-page-template .section {
    padding: 90px 0;
}

.home-page-template .section-title {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 720px;
}

.home-page-template .section-text {
    font-size: 17px;
    color: #667085;
    max-width: 720px;
}

.home-page-template .btn {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.home-page-template .btn:hover {
    transform: translateY(-2px);
}

.home-page-template .services-wrap {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 40px;
    align-items: center;
}

.home-page-template .services-image img {
    width: 100%;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.home-page-template .service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}

.home-page-template .service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(19, 42, 68, 0.04);
}

.home-page-template a.service-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-page-template a.service-card:hover,
.home-page-template a.service-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(19, 42, 68, 0.08);
}

.home-page-template a.service-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.home-page-template a.service-card:hover h3,
.home-page-template a.service-card:focus-visible h3 {
    color: var(--accent);
}

.home-page-template .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(31, 58, 95, 0.10), rgba(245, 124, 0, 0.10));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
}

.home-page-template .service-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.home-page-template .service-card p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.home-page-template .why-section {
    background: var(--primary-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.home-page-template .why-wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 42px;
    align-items: center;
}

.home-page-template .why-image img {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.home-page-template .why-section .section-title,
.home-page-template .why-section .section-text {
    color: #fff;
}

.home-page-template .why-section .section-text {
    opacity: 0.84;
}

.home-page-template .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}

.home-page-template .why-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 22px;
    backdrop-filter: blur(6px);
}

.home-page-template .why-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.home-page-template .why-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
}

.home-page-template .section-alt {
    background: linear-gradient(180deg, #fff, #F8FAFC);
}

.home-page-template .process-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-page-template .process-card {
    position: relative;
    padding: 28px 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.home-page-template .step-no {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.home-page-template .process-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.home-page-template .process-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.home-page-template .cta-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(rgba(31, 58, 95, 0.92), rgba(31, 58, 95, 0.92)),
        url('assets/home-cta-section.svg') center/cover no-repeat;
    color: #fff;
    padding: 64px;
    box-shadow: 0 25px 60px rgba(19, 42, 68, 0.15);
}

.home-page-template .cta-wrap.cta-wrap-no-image {
    background: linear-gradient(rgba(31, 58, 95, 0.92), rgba(31, 58, 95, 0.92));
}

.home-page-template .services-cta-box {
    background: linear-gradient(rgba(31, 58, 95, 0.92), rgba(31, 58, 95, 0.92)),
        url('assets/services-cta.svg') center/cover no-repeat;
    border-radius: 30px;
    padding: 44px;
    color: #fff;
    box-shadow: 0 25px 60px rgba(19, 42, 68, 0.14);
}

.home-page-template .services-cta-box h2 {
    font-size: 42px;
    line-height: 1.12;
    margin-bottom: 16px;
    max-width: 760px;
}

.home-page-template .services-cta-box p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 24px;
    max-width: 760px;
}

.home-page-template .services-cta-box .btn-outline-light {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.home-page-template .cta-wrap h2 {
    font-size: 42px;
    line-height: 1.12;
    max-width: 700px;
    margin-bottom: 16px;
}

.home-page-template .cta-wrap p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin-bottom: 26px;
}

.home-page-template .cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-page-template .btn-light {
    background: #fff;
    color: var(--primary);
}

.home-page-template .btn-ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Footer */
.site-footer {
    margin-top: 60px;
    background: linear-gradient(rgba(19, 42, 68, 0.94), rgba(19, 42, 68, 0.94)), var(--primary-dark);
    color: #fff;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 60px 0 30px;
}

.footer-main > * {
    width: 100%;
    max-width: 520px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo .custom-logo-link {
    display: inline-block;
    margin-bottom: 0;
}

.footer-logo a {
    display: inline-block;
    margin-bottom: 0;
}

.footer-logo img {
    width: min(240px, 100%);
    height: auto;
}

.footer-logo .custom-logo-link img {
    width: min(240px, 100%);
    height: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.logo-text--light {
    background: #fff;
    color: var(--primary-dark);
}

.footer-text {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    font-size: 15px;
    margin: 0 auto;
    max-width: 520px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
}

.footer-links,
.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a,
.footer-contact a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-contact div {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 auto 12px;
    font-size: 15px;
    max-width: 36em;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 18px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px 20px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.footer-bottom .footer-legal a {
    display: inline;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.footer-bottom .footer-legal a:hover {
    color: #fff;
}

.footer-legal-sep {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.5);
}

/* About Us (aligned with home-page-template) */
.about-page-template.site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.about-page-template .hero-section .hero-slide {
    min-height: 520px;
    height: 70vh;
}

.about-page-template.home-page-template .section {
    padding: 64px 0;
}

.about-page-template .about-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 22px;
}

.about-page-template .about-hero-trust span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.about-page-template .about-stats-grid {
    margin-top: 28px;
    grid-template-columns: repeat(4, 1fr);
}

.about-page-template .about-stat-card {
    text-align: center;
}

.about-page-template .about-stat-value {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.about-page-template .about-stat-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.about-page-template .about-values-grid {
    margin-top: 28px;
}

.about-page-template .about-value-card-wide {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.about-page-template .about-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.about-page-template .about-team-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.about-page-template .about-team-card img {
    width: 100%;
    border-radius: 0;
}

.about-page-template .about-team-card-body {
    padding: 18px 16px 22px;
}

.about-page-template .about-team-card-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.about-page-template .about-team-card-body p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.about-page-template .about-page-cta {
    background: linear-gradient(rgba(31, 58, 95, 0.92), rgba(31, 58, 95, 0.92)),
        url('assets/about-cta.svg') center/cover no-repeat;
}

.about-page-template .services-cta-box {
    background: linear-gradient(rgba(31, 58, 95, 0.92), rgba(31, 58, 95, 0.92)),
        url('assets/services-cta.svg') center/cover no-repeat;
    border-radius: 30px;
    padding: 44px;
    color: #fff;
    box-shadow: 0 25px 60px rgba(19, 42, 68, 0.14);
}

.about-page-template .services-cta-box h2 {
    font-size: 42px;
    line-height: 1.12;
    margin-bottom: 16px;
    max-width: 760px;
}

.about-page-template .services-cta-box p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 24px;
    max-width: 760px;
}

.about-page-template .about-editor-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Services page template */
.services-page-template.site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.services-page-template .section {
    padding: 56px 0;
}

.services-page-template .section-title {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 800px;
}

.services-page-template .section-text {
    font-size: 17px;
    color: #667085;
    max-width: 760px;
}

.services-page-template .btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.25s ease;
}

.services-page-template .btn:hover {
    transform: translateY(-2px);
}

.services-page-template .btn-primary {
    background: var(--accent);
    color: #fff;
}

.services-page-template .btn-secondary {
    background: var(--primary);
    color: #fff;
}

.services-page-template .btn-light {
    background: #fff;
    color: var(--primary);
}

.services-page-template .btn-outline-light {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.services-page-template .services-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.65)),
        url('assets/page-top.png') center/cover no-repeat;
    color: #fff;
    min-height: 520px;
    height: 70vh;
    display: flex;
    align-items: center;
}

.services-page-template .services-hero h1 {
    font-size: 54px;
    line-height: 1.08;
    margin-bottom: 18px;
    max-width: 720px;
}

.services-page-template .services-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.84);
    max-width: 760px;
    margin-bottom: 28px;
}

.services-page-template .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.services-page-template .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.services-page-template .intro-image img {
    width: 100%;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(19, 42, 68, 0.08);
}

.services-page-template .check-list {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.services-page-template .check-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(19, 42, 68, 0.04);
    font-weight: 600;
}

.services-page-template .services-light-bg {
    background: var(--light);
}

.services-page-template .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.services-page-template .services-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(19, 42, 68, 0.08);
    transition: 0.25s ease;
}

.services-page-template a.services-card--link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.services-page-template a.services-card--link:hover h3,
.services-page-template a.services-card--link:focus-visible h3 {
    color: var(--accent);
}

.services-page-template a.services-card--link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.services-page-template .services-card:hover {
    transform: translateY(-6px);
}

.services-page-template .services-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(31, 58, 95, 0.10), rgba(245, 124, 0, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.services-page-template .services-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.services-page-template .services-card p {
    color: #667085;
    font-size: 15px;
    margin-bottom: 16px;
}

.services-page-template .services-card ul {
    padding-left: 18px;
    color: var(--text);
    font-size: 15px;
    margin: 0;
}

.services-page-template .services-card ul li {
    margin-bottom: 8px;
}

.services-page-template .services-process-section {
    background: linear-gradient(180deg, #fff, #F8FAFC);
}

.services-page-template .services-process-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.services-page-template .services-process-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: 0 18px 45px rgba(19, 42, 68, 0.08);
}

.services-page-template .services-step-no {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
}

.services-page-template .services-process-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.services-page-template .services-process-card p {
    color: #667085;
    font-size: 15px;
    margin: 0;
}

.services-page-template .services-why-section {
    background: var(--primary-dark);
    color: #fff;
}

.services-page-template .services-why-section .section-title {
    color: #fff;
}

.services-page-template .services-why-lead {
    color: rgba(255, 255, 255, 0.80);
}

.services-page-template .services-why-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.services-page-template .services-why-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 24px;
}

.services-page-template .services-why-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.services-page-template .services-why-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    margin: 0;
}

.services-page-template .services-cta-box {
    background: linear-gradient(rgba(31, 58, 95, 0.92), rgba(31, 58, 95, 0.92)),
        url('assets/services-cta.svg') center/cover no-repeat;
    border-radius: 30px;
    padding: 44px;
    color: #fff;
    box-shadow: 0 25px 60px rgba(19, 42, 68, 0.14);
}

.services-page-template .services-cta-box h2 {
    font-size: 42px;
    line-height: 1.12;
    margin-bottom: 16px;
    max-width: 760px;
}

.services-page-template .services-cta-box p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 24px;
    max-width: 760px;
}

.services-page-template .services-cta-box .cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.services-page-template .services-editor-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Us page (uses service-page-template + contact-page-template) */
.contact-page-template.service-page-template.site-main {
    background: #fff;
}

.contact-page-template .btn-outline-muted {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.25s ease;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary);
}

.contact-page-template .btn-outline-muted:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-page-template .contact-notice-wrap {
    padding: 24px 0 0;
}

.contact-page-template .contact-notice {
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.contact-page-template .contact-notice--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

.contact-page-template .contact-notice--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

.contact-page-template .contact-intro-grid {
    align-items: start;
}

.contact-page-template .contact-info-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.contact-page-template .contact-info-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(19, 42, 68, 0.04);
    font-size: 15px;
    color: var(--text);
}

.contact-page-template .contact-info-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.contact-page-template .contact-info-item a {
    color: var(--primary);
    font-weight: 600;
}

.contact-page-template .contact-info-item a:hover {
    color: var(--accent);
}

.contact-page-template .contact-actions-row {
    margin-top: 22px;
}

.contact-page-template .contact-pillars .cards-grid {
    margin-top: 0;
}

.contact-page-template .contact-form-section .grid-2 {
    align-items: start;
}

.contact-page-template .contact-form-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(19, 42, 68, 0.08);
}

.contact-page-template .contact-form-heading {
    font-size: 34px;
    margin-bottom: 22px;
}

.contact-page-template .contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-page-template .contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-page-template .contact-form-field-full {
    grid-column: 1 / -1;
}

.contact-page-template .contact-form-field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.contact-page-template .contact-form-input,
.contact-page-template .contact-form-select,
.contact-page-template .contact-form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(31, 58, 95, 0.14);
    border-radius: 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
    box-sizing: border-box;
}

.contact-page-template .contact-form-textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-page-template .contact-form-input:focus,
.contact-page-template .contact-form-select:focus,
.contact-page-template .contact-form-textarea:focus {
    outline: 2px solid rgba(245, 124, 0, 0.35);
    outline-offset: 1px;
    border-color: var(--accent);
}

.contact-page-template .contact-form-submit {
    border: none;
    cursor: pointer;
    width: auto;
}

.contact-page-template .contact-list-clean {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.contact-page-template .contact-list-clean > div {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(19, 42, 68, 0.04);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.contact-page-template .map-section {
    padding: 0 0 56px;
}

.contact-page-template .map-section iframe {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 26px;
    display: block;
    box-shadow: 0 18px 45px rgba(19, 42, 68, 0.08);
}

.contact-page-template .contact-editor-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Get a Quote page */
.quote-page-template.service-page-template.site-main {
    background: #fff;
}

.quote-page-template .quote-notice-wrap {
    padding: 24px 0 0;
}

.quote-page-template .quote-notice {
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.quote-page-template .quote-notice--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

.quote-page-template .quote-notice--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

.quote-page-template .quote-intro-grid {
    align-items: start;
}

.quote-page-template .quote-feature-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.quote-page-template .quote-feature-item {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(19, 42, 68, 0.04);
}

.quote-page-template .quote-feature-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--text);
}

.quote-page-template .quote-feature-item span {
    font-size: 15px;
    color: #667085;
    line-height: 1.5;
}

.quote-page-template .quote-main-grid {
    align-items: start;
}

.quote-page-template .quote-form-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(19, 42, 68, 0.08);
}

.quote-page-template .quote-form-heading {
    font-size: 34px;
    margin-bottom: 22px;
}

.quote-page-template .quote-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.quote-page-template .quote-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-page-template .quote-form-field-full {
    grid-column: 1 / -1;
}

.quote-page-template .quote-form-field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.quote-page-template .quote-form-input,
.quote-page-template .quote-form-select,
.quote-page-template .quote-form-textarea,
.quote-page-template .quote-form-file {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(31, 58, 95, 0.14);
    border-radius: 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
    box-sizing: border-box;
}

.quote-page-template .quote-form-textarea {
    min-height: 140px;
    resize: vertical;
}

.quote-page-template .quote-form-file {
    padding: 10px 12px;
}

.quote-page-template .quote-file-hint {
    margin: 0;
    font-size: 13px;
    color: #667085;
}

.quote-page-template .quote-form-input:focus,
.quote-page-template .quote-form-select:focus,
.quote-page-template .quote-form-textarea:focus {
    outline: 2px solid rgba(245, 124, 0, 0.35);
    outline-offset: 1px;
    border-color: var(--accent);
}

.quote-page-template .quote-form-submit {
    border: none;
    cursor: pointer;
    width: auto;
}

.quote-page-template .quote-process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.quote-page-template .quote-editor-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Plumbing service page template */
.service-page-template.site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

.service-page-template .section {
    padding: 56px 0;
}

.service-page-template .section-title {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 800px;
}

.service-page-template .section-text {
    font-size: 17px;
    color: #667085;
    max-width: 760px;
}

.service-page-template .btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.25s ease;
}

.service-page-template .btn:hover {
    transform: translateY(-2px);
}

.service-page-template .btn-primary {
    background: var(--accent);
    color: #fff;
}

.service-page-template .btn-secondary {
    background: var(--primary);
    color: #fff;
}

.service-page-template .btn-light {
    background: #fff;
    color: var(--primary);
}

.service-page-template .btn-outline-light {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.service-page-template .hero {
    background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.65)),
        url('assets/page-top.png') center/cover no-repeat;
    color: #fff;
    min-height: 520px;
    height: 70vh;
    display: flex;
    align-items: center;
}

.service-page-template .hero h1 {
    font-size: 54px;
    line-height: 1.08;
    margin-bottom: 18px;
    max-width: 760px;
}

.service-page-template .hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.84);
    max-width: 760px;
    margin-bottom: 28px;
}

.service-page-template .hero-actions,
.service-page-template .cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.service-page-template .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
}

.service-page-template .image-box img {
    width: 100%;
    display: block;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(19, 42, 68, 0.08);
}

.service-page-template .feature-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.service-page-template .feature-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(19, 42, 68, 0.04);
    font-weight: 600;
}

.service-page-template .service-light-bg {
    background: var(--light);
}

.service-page-template .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.service-page-template .service-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(19, 42, 68, 0.08);
}

.service-page-template .service-detail-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service-page-template .service-detail-card p {
    color: #667085;
    font-size: 15px;
    margin: 0 0 8px;
}

.service-page-template .service-detail-card ul {
    padding-left: 18px;
    margin: 12px 0 0;
    font-size: 15px;
    color: var(--text);
}

.service-page-template .service-detail-card li {
    margin-bottom: 8px;
}

.service-page-template .service-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 34px;
}

.service-page-template .service-process-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 22px;
    box-shadow: 0 18px 45px rgba(19, 42, 68, 0.08);
}

.service-page-template .service-process-card .step-no {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-page-template .service-process-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.service-page-template .service-process-card p {
    color: #667085;
    font-size: 15px;
    margin: 0;
}

.service-page-template .dark-section {
    background: var(--primary-dark);
    color: #fff;
}

.service-page-template .dark-section .section-title {
    color: #fff;
}

.service-page-template .dark-section .section-text {
    color: rgba(255, 255, 255, 0.80);
}

.service-page-template .dark-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 34px;
}

.service-page-template .dark-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 24px;
}

.service-page-template .dark-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.service-page-template .dark-card p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    margin: 0;
}

.service-page-template .cta-box {
    background: linear-gradient(rgba(31, 58, 95, 0.92), rgba(31, 58, 95, 0.92)),
        var(--service-cta-bg, url('assets/plumbing-cta.svg')) center/cover no-repeat;
    border-radius: 30px;
    padding: 44px;
    color: #fff;
    box-shadow: 0 25px 60px rgba(19, 42, 68, 0.14);
}

.service-page-template .cta-box h2 {
    font-size: 42px;
    line-height: 1.12;
    margin-bottom: 16px;
    max-width: 760px;
}

.service-page-template .cta-box p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 24px;
    max-width: 760px;
}

.service-page-template .service-editor-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Careers page */
.careers-page-template .careers-notice-wrap {
    padding: 24px 0 0;
}

.careers-page-template .careers-notice {
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.careers-page-template .careers-notice--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

.careers-page-template .careers-notice--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

.careers-page-template .careers-list-clean {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.careers-page-template .careers-list-clean > div {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(19, 42, 68, 0.04);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.careers-page-template .careers-roles-grid {
    grid-template-columns: repeat(3, 1fr);
}

.careers-page-template .careers-role-card p {
    margin-bottom: 0;
}

.careers-page-template .careers-role-actions {
    margin-top: 16px;
}

.careers-page-template .careers-app-section .careers-app-grid {
    align-items: start;
}

.careers-page-template .careers-app-process {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.careers-page-template .careers-form-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(19, 42, 68, 0.08);
}

.careers-page-template .careers-form-title {
    font-size: 34px;
    margin-bottom: 22px;
}

.careers-page-template .careers-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.careers-page-template .careers-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.careers-page-template .careers-field-full {
    grid-column: 1 / -1;
}

.careers-page-template .careers-field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.careers-page-template .careers-input,
.careers-page-template .careers-select,
.careers-page-template .careers-textarea,
.careers-page-template .careers-file {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(31, 58, 95, 0.14);
    border-radius: 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
    box-sizing: border-box;
}

.careers-page-template .careers-textarea {
    min-height: 140px;
    resize: vertical;
}

.careers-page-template .careers-file {
    padding: 10px 12px;
}

.careers-page-template .careers-file-hint {
    margin: 0;
    font-size: 13px;
    color: #667085;
}

.careers-page-template .careers-submit {
    border: none;
    cursor: pointer;
    width: auto;
}

/* Legal pages (Privacy Policy, Terms & Conditions) */
.legal-page-template.service-page-template.site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.legal-page-template.service-page-template .hero {
    background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.65)),
        url('assets/page-top.png') center/cover no-repeat;
    min-height: 520px;
    height: 70vh;
    display: flex;
    align-items: center;
}

.legal-page-template .legal-meta {
    margin: 0 0 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.legal-page-template .legal-prose {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

.legal-page-template .legal-prose h2 {
    font-size: 24px;
    margin: 2.25rem 0 0.75rem;
    line-height: 1.25;
    color: var(--primary-dark);
}

.legal-page-template .legal-prose h2:first-child {
    margin-top: 0;
}

.legal-page-template .legal-prose h3 {
    font-size: 17px;
    margin: 1.5rem 0 0.5rem;
    color: var(--text);
}

.legal-page-template .legal-prose p {
    margin: 0 0 1rem;
}

.legal-page-template .legal-prose ul,
.legal-page-template .legal-prose ol {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.legal-page-template .legal-prose li {
    margin-bottom: 0.5rem;
}

.legal-page-template .legal-prose a {
    color: var(--primary-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page-template .legal-prose a:hover {
    color: var(--accent);
}

.legal-page-template .legal-disclaimer {
    margin-top: 2rem;
    padding: 16px 18px;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 14px;
    color: #667085;
}

.legal-page-template .legal-editor-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .topbar {
        display: none;
    }

    .navbar {
        flex-wrap: wrap;
        position: relative;
    }

    .navbar .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .navbar-drawer {
        display: none;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        order: 3;
        padding: 12px 0 8px;
        margin-top: 4px;
        border-top: 1px solid var(--border);
        gap: 0;
    }

    .navbar-drawer.is-open {
        display: flex;
    }

    .navbar-drawer .menu,
    .navbar-drawer .menu-wrapper .menu {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
    }

    .navbar-drawer .menu a,
    .navbar-drawer .menu-wrapper .menu a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .navbar-drawer .menu li:last-child a,
    .navbar-drawer .menu-wrapper .menu li:last-child a {
        border-bottom: none;
    }

    .navbar-drawer .cta-btn {
        margin-top: 16px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 980px) {
    .navbar {
        flex-wrap: wrap;
    }

    .menu,
    .menu-wrapper .menu {
        flex-wrap: wrap;
        gap: 16px;
    }

    .about-page-template .about-team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-page-template .about-value-card-wide {
        max-width: none;
    }

    .contact-page-template .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .quote-page-template .quote-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .home-page-template .services-wrap,
    .home-page-template .why-wrap {
        grid-template-columns: 1fr;
    }

    .home-page-template .process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-page-template .section-title {
        font-size: 36px;
    }

    .home-page-template .cta-wrap {
        padding: 42px;
    }

    .home-page-template .services-cta-box {
        padding: 44px 34px;
    }

    .home-page-template .cta-wrap h2 {
        font-size: 34px;
    }

    .home-page-template .services-cta-box h2 {
        font-size: 38px;
    }

    .home-page-template .hero-content h1 {
        font-size: 40px;
    }

    .services-page-template .intro-grid,
    .services-page-template .services-grid,
    .services-page-template .services-process-grid,
    .services-page-template .services-why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-page-template .services-hero h1,
    .services-page-template .section-title,
    .services-page-template .services-cta-box h2 {
        font-size: 38px;
    }

    .service-page-template .grid-2,
    .service-page-template .cards-grid,
    .service-page-template .dark-grid,
    .service-page-template .service-process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-page-template .hero h1,
    .service-page-template .section-title,
    .service-page-template .cta-box h2 {
        font-size: 38px;
    }
}

@media (max-width: 640px) {
    .hero-strip h1 {
        font-size: 32px;
    }

    .hero-strip p {
        font-size: 16px;
    }

    /* Full-width stacked CTA button pairs (heroes, cta-actions, contact row) */
    .cta-actions,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cta-actions .btn,
    .hero-actions .btn {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        text-align: center;
    }

    .home-page-template .hero-content .btn,
    .about-page-template .hero-content .btn {
        display: block;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        text-align: center;
        margin-left: 0;
    }

    .home-page-template .hero-content .btn + .btn,
    .about-page-template .hero-content .btn + .btn {
        margin-top: 12px;
    }

    .logo img,
    .custom-logo-link img {
        height: 54px;
    }

    .home-page-template .service-grid,
    .home-page-template .why-grid,
    .home-page-template .process-grid {
        grid-template-columns: 1fr;
    }

    .home-page-template .section {
        padding: 70px 0;
    }

    .home-page-template .section-title {
        font-size: 30px;
    }

    .home-page-template .cta-wrap {
        padding: 30px;
    }

    .home-page-template .services-cta-box {
        padding: 28px 22px;
    }

    .home-page-template .cta-wrap h2 {
        font-size: 28px;
    }

    .home-page-template .services-cta-box h2 {
        font-size: 30px;
    }

    .home-page-template .cta-wrap p {
        font-size: 16px;
    }

    .home-page-template .services-cta-box p {
        font-size: 16px;
    }

    .home-page-template .hero-section {
        --home-hero-height: clamp(460px, 74vh, 900px);
    }

    .home-page-template .hero-content h1 {
        font-size: 32px;
    }

    .home-page-template .hero-content p {
        font-size: 16px;
    }

    .about-page-template .about-team-grid {
        grid-template-columns: 1fr;
    }

    .services-page-template .intro-grid,
    .services-page-template .services-grid,
    .services-page-template .services-process-grid,
    .services-page-template .services-why-grid {
        grid-template-columns: 1fr;
    }

    .services-page-template .services-hero {
        min-height: 460px;
        height: 62vh;
    }

    .services-page-template .services-hero h1,
    .services-page-template .section-title,
    .services-page-template .services-cta-box h2 {
        font-size: 30px;
    }

    .services-page-template .services-cta-box {
        padding: 28px 22px;
    }

    .about-page-template .services-cta-box {
        padding: 28px 22px;
    }

    .about-page-template .services-cta-box h2 {
        font-size: 30px;
    }

    .services-page-template .section {
        padding: 52px 0;
    }

    .contact-page-template .contact-form-wrap,
    .quote-page-template .quote-form-wrap {
        padding: 24px;
    }

    .contact-page-template .contact-form-heading,
    .quote-page-template .quote-form-heading {
        font-size: 26px;
    }

    .service-page-template .grid-2,
    .service-page-template .cards-grid,
    .service-page-template .dark-grid,
    .service-page-template .service-process-grid,
    .careers-page-template .careers-app-process,
    .careers-page-template .careers-form-grid,
    .contact-page-template .contact-form-grid,
    .quote-page-template .quote-form-grid,
    .quote-page-template .quote-process-grid {
        grid-template-columns: 1fr;
    }

    .careers-page-template .careers-form-wrap {
        padding: 24px;
    }

    .careers-page-template .careers-form-title {
        font-size: 26px;
    }

    .service-page-template .hero,
    .legal-page-template.service-page-template .hero {
        min-height: 460px;
        height: 62vh;
    }

    .service-page-template .hero h1,
    .service-page-template .section-title,
    .service-page-template .cta-box h2 {
        font-size: 30px;
    }

    .service-page-template .cta-box {
        padding: 28px 22px;
    }

    .service-page-template .section {
        padding: 52px 0;
    }

    .about-page-template.home-page-template .section {
        padding: 52px 0;
    }
}
