/* ==========================================================================
   British PAT Testing — Section Styles
   Dedicated visual theme for the PAT Testing microsite
   ========================================================================== */

/* ── PAT Brand Colors ── */
:root {
    --pat-primary: #0f4c3a;
    --pat-primary-light: #1a6b52;
    --pat-primary-dark: #0a3628;
    --pat-secondary: #d4a843;
    --pat-secondary-light: #e0be6a;
    --pat-secondary-dark: #b8912e;
    --pat-accent: #e8432a;
    --pat-success: #22a45d;
    --pat-bg-light: #f7f8fa;
    --pat-bg-white: #ffffff;
    --pat-bg-dark: #0c1e17;
    --pat-text-primary: #1a1a2e;
    --pat-text-secondary: #4a5568;
    --pat-text-muted: #718096;
    --pat-text-white: #ffffff;
    --pat-border: #e2e8f0;
    --pat-border-light: #edf2f7;
}

/* ── Topbar ── */
.pat-topbar {
    background-color: var(--pat-bg-dark);
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pat-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pat-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.pat-topbar-link:hover {
    color: var(--pat-secondary);
}

.pat-topbar-link i {
    font-size: 0.75rem;
}

.pat-topbar-right {
    display: flex;
    gap: 1.5rem;
}

/* ── PAT Header ── */
.pat-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pat-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.pat-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 72px;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .pat-header-inner {
        padding: 0 2rem;
        gap: 2rem;
    }
}

/* ── Logo ── */
.pat-header-logo,
.pat-footer-logo,
.pat-mobile-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.pat-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--pat-primary) 0%, var(--pat-primary-light) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pat-logo-icon--sm {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.pat-logo-name {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pat-primary);
    line-height: 1.2;
}

.pat-logo-tagline {
    display: block;
    font-size: 0.7rem;
    color: var(--pat-text-muted);
    letter-spacing: 0.025em;
}

/* ── Navigation ── */
.pat-main-nav {
    justify-self: center;
}

.pat-nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pat-nav-link {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pat-text-secondary);
    position: relative;
    transition: color 0.3s ease;
}

.pat-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--pat-primary);
    transition: width 0.3s ease;
}

.pat-nav-link:hover {
    color: var(--pat-primary);
}

.pat-nav-link:hover::after {
    width: 60%;
}

.pat-nav-item.is-active .pat-nav-link {
    color: var(--pat-primary);
    font-weight: 600;
}

.pat-nav-item.is-active .pat-nav-link::after {
    width: 60%;
}

@media (min-width: 1024px) {
    .pat-nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9375rem;
    }
}

/* ── Header Actions ── */
.pat-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ── Mobile Toggle ── */
.pat-mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.pat-hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--pat-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.pat-mobile-toggle.is-active .pat-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.pat-mobile-toggle.is-active .pat-hamburger-line:nth-child(2) {
    opacity: 0;
}

.pat-mobile-toggle.is-active .pat-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Overlay ── */
.pat-mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pat-mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ── Mobile Nav ── */
.pat-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 500;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.pat-mobile-nav.is-open {
    transform: translateX(0);
}

.pat-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--pat-border);
    min-height: 70px;
}

.pat-mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--pat-border);
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--pat-text-primary);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.pat-mobile-close:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

.pat-mobile-nav-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pat-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 1.5rem;
}

.pat-mobile-nav-item {
    border-bottom: 1px solid var(--pat-border-light);
}

.pat-mobile-nav-item:last-child {
    border-bottom: none;
}

.pat-mobile-nav-link {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--pat-text-secondary);
    transition: all 0.3s ease;
}

.pat-mobile-nav-link:hover {
    color: var(--pat-primary);
    padding-left: 0.5rem;
}

.pat-mobile-nav-item.is-active .pat-mobile-nav-link {
    color: var(--pat-primary);
    font-weight: 600;
}

.pat-mobile-nav-actions {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pat-border);
}

.pat-mobile-contact {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pat-border);
}

.pat-mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--pat-text-secondary);
}

.pat-mobile-contact-item i {
    color: var(--pat-primary);
    width: 16px;
}

.pat-mobile-contact-item a {
    color: var(--pat-text-secondary);
}

.pat-mobile-contact-item a:hover {
    color: var(--pat-primary);
}

.pat-mobile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--pat-text-muted);
    transition: color 0.3s ease;
}

.pat-mobile-back-link:hover {
    color: var(--pat-primary);
}

/* ── PAT Hero ── */
.pat-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--pat-primary);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.pat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 76, 58, 0.94) 0%, rgba(10, 54, 40, 0.88) 100%);
}

.pat-hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pat-hero-shape {
    position: absolute;
    border-radius: 50%;
}

.pat-hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--pat-secondary);
    opacity: 0.04;
    top: -200px;
    right: -100px;
}

.pat-hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--pat-secondary);
    opacity: 0.06;
    bottom: -150px;
    left: -100px;
}

.pat-hero-shape-3 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(212, 168, 67, 0.1);
    top: 40%;
    right: 20%;
    animation: patFloat 6s ease-in-out infinite;
}

@keyframes patFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.pat-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.pat-hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: 9999px;
    color: var(--pat-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.pat-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.pat-hero-desc {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.8);
}

.pat-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pat-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.pat-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
}

.pat-hero-trust-item i {
    color: var(--pat-secondary);
    font-size: 1rem;
}

.pat-hero-logo {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0.12;
    font-size: 12rem;
    color: #ffffff;
    pointer-events: none;
}

@media (max-width: 1023px) {
    .pat-hero-logo {
        display: none;
    }
}

@media (max-width: 639px) {
    .pat-hero {
        min-height: 75vh;
    }
    .pat-hero-buttons {
        flex-direction: column;
    }
    .pat-hero-buttons .btn {
        width: 100%;
    }
    .pat-hero-trust {
        gap: 1rem;
    }
}

/* ── PAT Buttons ── */
.pat-section .btn-primary,
.pat-btn-primary {
    background-color: var(--pat-primary);
    color: #ffffff;
    border-color: var(--pat-primary);
}

.pat-section .btn-primary:hover,
.pat-btn-primary:hover {
    background-color: var(--pat-primary-light);
    border-color: var(--pat-primary-light);
}

.pat-section .btn-secondary,
.pat-btn-secondary {
    background-color: var(--pat-secondary);
    color: var(--gray-900);
    border-color: var(--pat-secondary);
}

.pat-section .btn-secondary:hover,
.pat-btn-secondary:hover {
    background-color: var(--pat-secondary-light);
    border-color: var(--pat-secondary-light);
}

/* ── PAT Feature Cards ── */
.pat-feature-card {
    background: var(--pat-bg-white);
    border-radius: 0.75rem;
    border: 1px solid var(--pat-border);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.pat-feature-card:hover {
    border-color: var(--pat-primary);
    box-shadow: 0 10px 30px rgba(15, 76, 58, 0.1);
    transform: translateY(-4px);
}

.pat-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--pat-primary) 0%, var(--pat-primary-light) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.pat-feature-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin-bottom: 0.75rem;
}

.pat-feature-card p {
    color: var(--pat-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ── PAT Service Cards ── */
.pat-service-card {
    background: var(--pat-bg-white);
    border-radius: 0.75rem;
    border: 1px solid var(--pat-border);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pat-service-card:hover {
    border-color: var(--pat-primary);
    box-shadow: 0 10px 30px rgba(15, 76, 58, 0.1);
    transform: translateY(-4px);
}

.pat-service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background-color: rgba(15, 76, 58, 0.08);
    color: var(--pat-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.pat-service-card:hover .pat-service-card-icon {
    background: linear-gradient(135deg, var(--pat-primary) 0%, var(--pat-primary-light) 100%);
    color: #ffffff;
}

.pat-service-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin-bottom: 0.75rem;
}

.pat-service-card p {
    color: var(--pat-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

.pat-service-card .btn {
    align-self: flex-start;
}

/* ── Process Timeline ── */
.pat-process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .pat-process-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .pat-process-timeline {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pat-process-step {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}

.pat-process-number {
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--pat-primary) 0%, var(--pat-primary-light) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.pat-process-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin-bottom: 0.5rem;
}

.pat-process-step p {
    font-size: 0.875rem;
    color: var(--pat-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.pat-process-arrow {
    display: none;
}

@media (min-width: 768px) {
    .pat-process-arrow {
        display: flex;
        position: absolute;
        right: -14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--pat-secondary);
        font-size: 1.25rem;
        z-index: 2;
    }
}

/* ── Industry Cards ── */
.pat-industry-card {
    background: var(--pat-bg-white);
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pat-industry-card:hover {
    border-color: var(--pat-primary);
    box-shadow: 0 8px 24px rgba(15, 76, 58, 0.08);
    transform: translateY(-3px);
}

.pat-industry-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background-color: rgba(15, 76, 58, 0.08);
    color: var(--pat-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
}

.pat-industry-card h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pat-text-primary);
    margin-bottom: 0;
}

/* ── Equipment Cards ── */
.pat-equipment-card {
    background: var(--pat-bg-white);
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.pat-equipment-card:hover {
    border-color: var(--pat-primary);
    background-color: rgba(15, 76, 58, 0.02);
}

.pat-equipment-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    background-color: rgba(15, 76, 58, 0.08);
    color: var(--pat-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.pat-equipment-card h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pat-text-primary);
    margin-bottom: 0;
}

/* ── Stats ── */
.pat-stats-section {
    background: linear-gradient(135deg, var(--pat-primary) 0%, var(--pat-primary-dark) 100%);
    padding: 4rem 0;
}

.pat-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .pat-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pat-stat-item {
    text-align: center;
}

.pat-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--pat-secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pat-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ── Trust Logos ── */
.pat-trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.pat-trust-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    min-width: 140px;
    padding: 0 1.5rem;
    border: 1px solid var(--pat-border);
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--pat-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pat-trust-logo-item:hover {
    border-color: var(--pat-primary);
    box-shadow: 0 4px 12px rgba(15, 76, 58, 0.08);
}

/* ── FAQ Styles ── */
.pat-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pat-faq-item {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid var(--pat-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pat-faq-item:hover {
    border-color: var(--gray-300);
}

.pat-faq-item.is-open {
    border-color: var(--pat-primary);
    box-shadow: 0 4px 12px rgba(15, 76, 58, 0.08);
}

.pat-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.pat-faq-question:hover {
    background-color: var(--gray-50);
}

.pat-faq-question-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pat-text-primary);
    line-height: 1.4;
}

.pat-faq-toggle {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background-color: var(--gray-100);
    color: var(--pat-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pat-faq-item.is-open .pat-faq-toggle {
    background-color: var(--pat-primary);
    color: #ffffff;
    transform: rotate(45deg);
}

.pat-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pat-faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
}

.pat-faq-answer-inner p {
    font-size: 0.9375rem;
    color: var(--pat-text-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.pat-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* ── FAQ Search ── */
.pat-faq-search {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.pat-faq-search-input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    border: 2px solid var(--pat-border);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--pat-text-primary);
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.pat-faq-search-input:focus {
    outline: none;
    border-color: var(--pat-primary);
}

.pat-faq-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pat-text-muted);
    font-size: 0.875rem;
}

/* ── FAQ Category Tabs ── */
.pat-faq-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.pat-faq-tab {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: 1px solid transparent;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pat-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pat-faq-tab:hover {
    background: rgba(15, 76, 58, 0.08);
    color: var(--pat-primary);
}

.pat-faq-tab.is-active {
    background: var(--pat-primary);
    color: #ffffff;
    border-color: var(--pat-primary);
}

/* ── Quote Form ── */
.pat-quote-form {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid var(--pat-border);
    padding: 2.5rem;
}

.pat-quote-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .pat-quote-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pat-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.pat-form-group.full-width {
    grid-column: 1 / -1;
}

.pat-form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pat-text-primary);
}

.pat-form-label .required {
    color: var(--pat-accent);
}

.pat-form-input,
.pat-form-select,
.pat-form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--pat-border);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: var(--pat-text-primary);
    background: #ffffff;
    transition: border-color 0.3s ease;
    width: 100%;
}

.pat-form-input:focus,
.pat-form-select:focus,
.pat-form-textarea:focus {
    outline: none;
    border-color: var(--pat-primary);
}

.pat-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.pat-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.pat-form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--pat-primary);
}

.pat-form-checkbox label {
    font-size: 0.875rem;
    color: var(--pat-text-secondary);
    cursor: pointer;
}

.pat-form-error {
    font-size: 0.75rem;
    color: var(--pat-accent);
    display: none;
}

.pat-form-error.is-visible {
    display: block;
}

.pat-form-input.is-error,
.pat-form-select.is-error,
.pat-form-textarea.is-error {
    border-color: var(--pat-accent);
}

.pat-form-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.pat-form-success i {
    font-size: 3rem;
    color: var(--pat-success);
    margin-bottom: 1rem;
}

.pat-form-success h3 {
    font-size: 1.5rem;
    color: var(--pat-text-primary);
    margin-bottom: 0.75rem;
}

.pat-form-success p {
    color: var(--pat-text-muted);
    font-size: 1rem;
}

/* ── Sidebar ── */
.pat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pat-sidebar-card {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid var(--pat-border);
    padding: 1.5rem;
}

.pat-sidebar-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--pat-secondary);
}

.pat-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pat-sidebar-links li {
    border-bottom: 1px solid var(--pat-border-light);
}

.pat-sidebar-links li:last-child {
    border-bottom: none;
}

.pat-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0;
    font-size: 0.875rem;
    color: var(--pat-text-secondary);
    transition: all 0.3s ease;
}

.pat-sidebar-links a i {
    font-size: 0.625rem;
    color: var(--pat-primary);
}

.pat-sidebar-links a:hover {
    color: var(--pat-primary);
    padding-left: 0.25rem;
}

.pat-sidebar-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--pat-text-secondary);
}

.pat-sidebar-contact-item:last-child {
    margin-bottom: 0;
}

.pat-sidebar-contact-item i {
    color: var(--pat-primary);
    margin-top: 0.25rem;
    width: 16px;
    flex-shrink: 0;
}

.pat-sidebar-contact-item a {
    color: var(--pat-text-secondary);
}

.pat-sidebar-contact-item a:hover {
    color: var(--pat-primary);
}

/* ── Page Layout ── */
.pat-page-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
}

@media (min-width: 1024px) {
    .pat-page-content {
        grid-template-columns: 1fr 300px;
        gap: 3rem;
        padding: 4rem 0;
    }
}

/* ── PAT Page Hero ── */
.pat-page-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #0a2818 0%, #0f4c3a 50%, #0a3628 100%);
    overflow: hidden;
}

.pat-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 76, 58, 0.92) 0%, rgba(10, 54, 40, 0.85) 100%);
}

.pat-page-hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pat-page-hero-shape {
    position: absolute;
    border-radius: 50%;
}

.pat-page-hero-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--pat-secondary);
    opacity: 0.04;
    top: -200px;
    right: -150px;
}

.pat-page-hero-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--pat-secondary);
    opacity: 0.06;
    bottom: -120px;
    left: -80px;
}

.pat-page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.pat-page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.pat-page-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.pat-page-hero-breadcrumb a:hover {
    color: #ffffff;
}

.pat-page-hero-breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
}

.pat-page-hero-breadcrumb strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.pat-page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.pat-page-hero-badge i {
    color: var(--pat-secondary);
}

.pat-page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.pat-page-hero-desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    max-width: 600px;
}

@media (max-width: 768px) {
    .pat-page-hero {
        padding: 6rem 0 3rem;
    }
}

/* ── CTA Section ── */
.pat-cta-section {
    background: linear-gradient(135deg, var(--pat-primary) 0%, var(--pat-primary-dark) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pat-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.05);
}

.pat-cta-content {
    position: relative;
    z-index: 1;
}

.pat-cta-content h2 {
    color: #ffffff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.pat-cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.pat-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Client Logos ── */
.pat-clients-section {
    padding: 3rem 0;
    border-top: 1px solid var(--pat-border);
    border-bottom: 1px solid var(--pat-border);
}

.pat-clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.pat-client-logo-placeholder {
    height: 50px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    border: 1px dashed var(--pat-border);
    border-radius: 0.5rem;
    color: var(--pat-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ── Accreditations ── */
.pat-accred-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .pat-accred-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pat-accred-item {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    background: #ffffff;
}

.pat-accred-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    background-color: var(--gray-100);
    color: var(--pat-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
}

.pat-accred-item h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pat-text-primary);
    margin-bottom: 0.25rem;
}

.pat-accred-item p {
    font-size: 0.75rem;
    color: var(--pat-text-muted);
}

/* ── Map ── */
.pat-map-container {
    width: 100%;
    min-height: 400px;
    background-color: var(--gray-100);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--pat-text-muted);
    border: 2px dashed var(--pat-border);
}

.pat-map-container i {
    font-size: 3rem;
}

/* ── Contact Quick Actions ── */
.pat-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .pat-contact-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pat-contact-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: #ffffff;
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pat-contact-action:hover {
    border-color: var(--pat-primary);
    box-shadow: 0 8px 24px rgba(15, 76, 58, 0.08);
}

.pat-contact-action i {
    font-size: 1.5rem;
    color: var(--pat-primary);
}

.pat-contact-action span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pat-text-primary);
}

/* ── Training Card ── */
.pat-training-card {
    background: #ffffff;
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pat-training-card:hover {
    border-color: var(--pat-primary);
    box-shadow: 0 10px 30px rgba(15, 76, 58, 0.1);
}

.pat-training-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: rgba(15, 76, 58, 0.08);
    color: var(--pat-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.pat-training-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin-bottom: 0.75rem;
}

.pat-training-card p {
    color: var(--pat-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

.pat-training-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pat-training-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--pat-text-muted);
}

.pat-training-meta-item i {
    color: var(--pat-primary);
    font-size: 0.75rem;
}

/* ── Report Cards ── */
.pat-report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .pat-report-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pat-report-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    background: #ffffff;
}

.pat-report-card i {
    font-size: 2rem;
    color: var(--pat-primary);
    margin-bottom: 0.75rem;
}

.pat-report-card h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pat-text-primary);
    margin-bottom: 0.25rem;
}

.pat-report-card p {
    font-size: 0.8125rem;
    color: var(--pat-text-muted);
    margin-bottom: 0;
}

/* ── Compliance Notice ── */
.pat-compliance-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: rgba(212, 168, 67, 0.06);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--pat-text-secondary);
    line-height: 1.6;
}

.pat-compliance-notice i {
    color: var(--pat-secondary);
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* ── Service Area ── */
.pat-service-area {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
    border: 1px dashed var(--pat-border);
}

.pat-service-area i {
    font-size: 2rem;
    color: var(--pat-primary);
    margin-bottom: 1rem;
}

.pat-service-area h3 {
    font-size: 1.25rem;
    color: var(--pat-text-primary);
    margin-bottom: 0.5rem;
}

.pat-service-area p {
    color: var(--pat-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   GLOBAL UTILITY OVERRIDES — Scoped to PAT Testing section
   Re-themes buttons, backgrounds, headings, grids from global.css
   ========================================================================== */

/* ── Body & Headings inside PAT section ── */
.pat-section body,
.pat-section,
body.pat-section {
    color: var(--pat-text-primary);
}

.pat-section h1,
.pat-section h2,
.pat-section h3,
.pat-section h4,
.pat-section h5,
.pat-section h6,
body.pat-section h1,
body.pat-section h2,
body.pat-section h3,
body.pat-section h4,
body.pat-section h5,
body.pat-section h6 {
    color: var(--pat-text-primary);
}

/* ── Paragraphs ── */
.pat-section p {
    color: var(--pat-text-secondary);
}

/* ── Buttons ── */
.pat-section .btn:focus-visible {
    outline-color: var(--pat-secondary);
}

.pat-section .btn-primary {
    background-color: var(--pat-primary);
    border-color: var(--pat-primary);
    color: #ffffff;
}

.pat-section .btn-primary:hover {
    background-color: var(--pat-primary-light);
    border-color: var(--pat-primary-light);
}

.pat-section .btn-secondary {
    background-color: var(--pat-secondary);
    border-color: var(--pat-secondary);
    color: var(--gray-900);
}

.pat-section .btn-secondary:hover {
    background-color: var(--pat-secondary-light);
    border-color: var(--pat-secondary-light);
}

.pat-section .btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.pat-section .btn-outline:hover {
    background-color: #ffffff;
    color: var(--pat-primary);
}

.pat-section .btn-outline-primary {
    background-color: transparent;
    border-color: var(--pat-primary);
    color: var(--pat-primary);
}

.pat-section .btn-outline-primary:hover {
    background-color: var(--pat-primary);
    color: #ffffff;
}

.pat-section .btn-white {
    background-color: #ffffff;
    color: var(--pat-primary);
    border-color: #ffffff;
}

.pat-section .btn-white:hover {
    background-color: var(--gray-100);
}

/* ── Background Variants ── */
.pat-section.bg-light {
    background-color: var(--pat-bg-light);
}

.pat-section.bg-dark,
body.pat-section .bg-dark {
    background-color: var(--pat-bg-dark);
    color: var(--pat-text-white);
}

.pat-section.bg-white,
body.pat-section .bg-white {
    background-color: #ffffff;
}

.pat-section.bg-primary,
body.pat-section .bg-primary {
    background-color: var(--pat-primary);
    color: #ffffff;
}

/* ── Hero section button overrides (dark background context) ── */
.pat-hero .btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.pat-hero .btn-outline:hover {
    background-color: #ffffff;
    color: var(--pat-primary);
}

.pat-hero .btn-secondary {
    background-color: var(--pat-secondary);
    border-color: var(--pat-secondary);
    color: var(--gray-900);
}

.pat-hero .btn-secondary:hover {
    background-color: var(--pat-secondary-light);
    border-color: var(--pat-secondary-light);
}

/* ── Page hero button overrides (dark background context) ── */
.pat-page-hero .btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.pat-page-hero .btn-outline:hover {
    background-color: #ffffff;
    color: var(--pat-primary);
}

.pat-page-hero .btn-secondary {
    background-color: var(--pat-secondary);
    border-color: var(--pat-secondary);
    color: var(--gray-900);
}

/* ── CTA section button overrides (dark background context) ── */
.pat-cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.pat-cta-section .btn-outline:hover {
    background-color: #ffffff;
    color: var(--pat-primary);
}

.pat-cta-section .btn-secondary {
    background-color: var(--pat-secondary);
    border-color: var(--pat-secondary);
    color: var(--gray-900);
}

/* ── Stats section button overrides (dark background context) ── */
.pat-stats-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.pat-stats-section .btn-outline:hover {
    background-color: #ffffff;
    color: var(--pat-primary);
}

/* ── Grid overrides ── */
.pat-section .grid {
    gap: 1.5rem;
}

.pat-section .grid-2 {
    grid-template-columns: 1fr;
}

.pat-section .grid-3 {
    grid-template-columns: 1fr;
}

.pat-section .grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .pat-section .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .pat-section .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .pat-section .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pat-section .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .pat-section .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Section spacing (override global defaults if needed) ── */
.pat-section .section-heading {
    margin-bottom: 3rem;
}

.pat-section .section-heading h2 {
    color: var(--pat-text-primary);
    margin-bottom: 0.75rem;
}

.pat-section .section-heading p {
    color: var(--pat-text-muted);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Skip link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--pat-primary);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    z-index: 999;
    font-size: 0.875rem;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ── Back to top ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pat-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--pat-primary-light);
    transform: translateY(-2px);
}

/* ── Animations (fade-up) ── */
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"].is-animated {
    opacity: 1;
    transform: translateY(0);
}

/* ── Contact section layout ── */
.pat-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .pat-contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Contact Info Card ── */
.pat-contact-info {
    background: #ffffff;
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    padding: 2rem;
}

.pat-contact-info h3 {
    font-size: 1.25rem;
    color: var(--pat-text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--pat-secondary);
}

.pat-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--pat-border-light);
}

.pat-contact-info-item:last-child {
    border-bottom: none;
}

.pat-contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    background-color: rgba(15, 76, 58, 0.08);
    color: var(--pat-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.pat-contact-info-details h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pat-text-primary);
    margin-bottom: 0.25rem;
}

.pat-contact-info-details p {
    font-size: 0.875rem;
    color: var(--pat-text-muted);
    margin-bottom: 0;
}

.pat-contact-info-details a {
    color: var(--pat-primary);
    font-weight: 500;
}

.pat-contact-info-details a:hover {
    color: var(--pat-primary-light);
}

/* ── Contact Quote Form (full width) ── */
.pat-contact-form {
    background: #ffffff;
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    padding: 2rem;
}

.pat-contact-form h3 {
    font-size: 1.25rem;
    color: var(--pat-text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--pat-secondary);
}

/* ==========================================================================
   Sprint F-013 — Visual Consistency Layer
   Audits section rhythm, footer styling, button/form control consistency,
   card behaviour, and mobile behaviour across the PAT Testing microsite.
   ========================================================================== */

/* ── 1. Section rhythm (`.pat-section` previously had NO vertical padding) ── */
/* NOTE: scoped to actual <section> elements — the <body> also carries the
   `pat-section` class and must NOT receive section padding. */
section.pat-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

body.pat-section {
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width: 640px) {
    section.pat-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1024px) {
    section.pat-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (max-width: 639px) {
    section.pat-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .pat-stats-section,
    .pat-cta-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Consistent spacing between cards and section headings */
.pat-section .section-heading {
    margin-bottom: 2.5rem;
}

/* ── 2. Footer (`.pat-footer` was previously completely unstyled) ── */
.pat-footer {
    background-color: var(--pat-bg-dark);
    color: rgba(255, 255, 255, 0.72);
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.pat-footer-main {
    padding-bottom: 2.5rem;
}

.pat-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .pat-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pat-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    }
}

.pat-footer-col {
    min-width: 0;
}

.pat-footer-logo .pat-logo-name {
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 700;
}

.pat-footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 1rem 0 1.5rem;
    max-width: 320px;
}

.pat-footer-social {
    display: flex;
    gap: 0.625rem;
}

.pat-footer-social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pat-footer-social-link:hover {
    background: var(--pat-secondary);
    border-color: var(--pat-secondary);
    color: var(--pat-bg-dark);
}

.pat-footer-heading {
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.pat-footer-links li {
    margin-bottom: 0.625rem;
}

.pat-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pat-footer-links a i {
    font-size: 0.55rem;
    color: var(--pat-secondary);
    transition: transform 0.3s ease;
}

.pat-footer-links a:hover {
    color: var(--pat-secondary);
}

.pat-footer-links a:hover i {
    transform: translateX(2px);
}

.pat-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.pat-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.pat-footer-contact-item i {
    color: var(--pat-secondary);
    margin-top: 0.3rem;
    width: 1rem;
    text-align: center;
}

.pat-footer-contact-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    word-break: break-word;
}

.pat-footer-contact-item a:hover {
    color: var(--pat-secondary);
}

.pat-footer-trust {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pat-footer-trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

.pat-footer-trust-item i {
    color: var(--pat-secondary);
}

.pat-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (min-width: 640px) {
    .pat-footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.pat-footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.pat-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.pat-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pat-footer-bottom-links a:hover {
    color: var(--pat-secondary);
}

/* ── 3. Buttons — consistent touch targets & radius ── */
.pat-section .btn,
.pat-quote-form .btn,
.pat-contact-form .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pat-hero-buttons .btn,
.pat-cta-buttons .btn {
    min-height: 50px;
    padding: 0.875rem 1.75rem;
}

/* ── 4. Forms — consistent control heights & focus affordance ── */
.pat-form-input,
.pat-form-select {
    min-height: 48px;
}

.pat-form-input:focus,
.pat-form-select:focus,
.pat-form-textarea:focus {
    border-color: var(--pat-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.12);
}

.pat-quote-form,
.pat-contact-form {
    padding: 2.5rem;
}

@media (max-width: 639px) {
    .pat-quote-form,
    .pat-contact-form {
        padding: 1.5rem;
    }
}

/* Select placeholder/default colour */
.pat-form-select {
    color: var(--pat-text-muted);
}

/* ── 5. Cards — uniform hover behaviour across card families ── */
.pat-feature-card,
.pat-service-card,
.pat-industry-card,
.pat-equipment-card,
.pat-training-card,
.pat-report-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.pat-feature-card:hover,
.pat-service-card:hover,
.pat-industry-card:hover,
.pat-equipment-card:hover,
.pat-training-card:hover,
.pat-report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 76, 58, 0.1);
}

/* Consistent card titles */
.pat-feature-card h3,
.pat-service-card h3,
.pat-industry-card h3,
.pat-equipment-card h3,
.pat-training-card h3,
.pat-report-card h3 {
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 0.625rem;
}

/* Card body copy — slightly darker than brand default for legibility */
.pat-feature-card p,
.pat-service-card p,
.pat-industry-card p,
.pat-equipment-card p,
.pat-training-card p,
.pat-report-card p,
.pat-safety-checklist li,
.pat-inspection-notes p {
    color: var(--pat-text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ── 6. Stats & CTA sections — match the section rhythm ── */
.pat-stats-section {
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .pat-stats-section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .pat-stats-section {
        padding: 6rem 0;
    }
}

.pat-cta-section {
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .pat-cta-section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .pat-cta-section {
        padding: 6rem 0;
    }
}

/* ── 7. Page hero — tuned mobile rhythm ── */
.pat-page-hero {
    padding: 8rem 0 5rem;
}

@media (max-width: 768px) {
    .pat-page-hero {
        padding: 5.5rem 0 3rem;
    }
    .pat-page-hero-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }
}

/* ── 8. Media safety & overflow guards ── */
.pat-section img,
.pat-section video,
.pat-section iframe,
.pat-hero img,
.pat-page-hero img {
    max-width: 100%;
    height: auto;
}

/* ── 9. Hero polish ── */
.pat-hero-desc {
    color: rgba(255, 255, 255, 0.85);
}

.pat-hero-logo {
    opacity: 0.1;
    font-size: 11rem;
}

@media (max-width: 639px) {
    .pat-hero-trust {
        gap: 0.875rem 1.25rem;
    }
}

/* ==========================================================================
   Sprint F-013.2 — Section Headers & Typography Hierarchy
   The PAT views previously repeated 3-line inline heading blocks with
   mismatched colours. A single `.pat-section-head` component centralises
   label / title / description styling for every section.
   ========================================================================== */

/* ── 1. Consistent section heading block ── */
.pat-section-head {
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 820px;
}

.pat-section-head .subtitle {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pat-primary);
    margin-bottom: 0.75rem;
}

.pat-section-head h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin-bottom: 0.875rem;
}

.pat-section-head h2:last-child {
    margin-bottom: 0;
}

.pat-section-head p {
    color: var(--pat-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 640px;
}

/* Headings without a heading block (e.g. small centered titles) */
.pat-section-head-sm {
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 720px;
}

.pat-section-head-sm h2 {
    font-size: clamp(1.375rem, 2vw, 1.625rem);
    font-weight: 700;
    color: var(--pat-text-primary);
    margin-bottom: 0.5rem;
}

.pat-section-head-sm p {
    color: var(--pat-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* ── 2. Consistent card & panel typography ── */
.pat-section h3,
.pat-section h4,
.pat-section h5,
.pat-section h6 {
    color: var(--pat-text-primary);
}

/* Body copy (views previously forced low-contrast --pat-text-muted) */
.pat-section p,
.pat-section li {
    color: var(--pat-text-secondary);
    line-height: 1.7;
}

/* ── 3. Compliance callout — spacing baked in (was inline margin-top) ── */
.pat-compliance-notice {
    margin-top: 2rem;
}

/* ── 4. Service detail panels (services page) ── */
.pat-service-panel {
    background: #ffffff;
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.pat-service-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .pat-service-panel-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pat-service-panel-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pat-service-panel-title-row .pat-service-card-icon {
    margin-bottom: 0;
}

.pat-service-panel-title-row h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin: 0;
}

.pat-panel-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pat-text-primary);
    margin-bottom: 0.5rem;
}

.pat-panel-text {
    color: var(--pat-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.pat-panel-list {
    list-style: none;
    margin: 0 0 1.25rem 0;
    padding: 0;
}

.pat-panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    color: var(--pat-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.pat-panel-list li i {
    color: var(--pat-success);
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.pat-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ── 5. Training cards (training page) ── */
.pat-training-card {
    margin-bottom: 1.5rem;
}

.pat-training-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .pat-training-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pat-training-card-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pat-training-card-title-row .pat-training-card-icon {
    margin-bottom: 0;
}

.pat-training-card-title-row h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin: 0;
}

.pat-training-suitable {
    font-size: 0.8125rem;
    color: var(--pat-text-secondary);
    margin-bottom: 1rem;
}

.pat-training-suitable strong {
    color: var(--pat-text-primary);
}

/* ── 6. Footer separation from dark CTA ── */
.pat-footer {
    border-top: 4px solid var(--pat-secondary);
}

/* ── 7. Additional utilities consumed by helper classes ── */
.pat-head-copy {
    color: var(--pat-text-secondary) !important;
    line-height: 1.8 !important;
    margin-bottom: 1rem !important;
}

.pat-head-copy:last-child {
    margin-bottom: 0 !important;
}

.pat-grid-center {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pat-section-cta-bottom {
    text-align: center;
    margin-top: 2.5rem;
}

.pat-section-cta-bottom p {
    color: var(--pat-text-secondary);
    margin-bottom: 1rem;
}

.pat-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .pat-contact-grid {
        grid-template-columns: 1.6fr 2fr;
        align-items: start;
    }
}

.pat-contact-info-card {
    background: #ffffff;
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.pat-contact-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--pat-secondary);
}

.pat-field-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pat-text-secondary);
}

.pat-quote-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin-bottom: 0.5rem;
}

.pat-quote-form-intro {
    color: var(--pat-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ── 8. Home specific helpers ── */
.pat-left-head {
    max-width: 640px;
}

.pat-left-head .subtitle {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pat-primary);
    margin-bottom: 0.75rem;
}

.pat-left-head h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--pat-text-primary);
    margin-bottom: 1rem;
}

.pat-head-gap {
    margin-bottom: 2rem !important;
}

.pat-quote-note {
    font-size: 1.0625rem;
    color: var(--pat-text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 0;
}

.pat-icon-block {
    background: linear-gradient(135deg, rgba(15, 76, 58, 0.04), rgba(15, 76, 58, 0.01));
    border: 1px solid var(--pat-border);
    border-radius: 0.75rem;
    padding: 2.5rem;
    text-align: center;
}

.pat-icon-big {
    font-size: 4rem;
    color: var(--pat-primary);
    opacity: 0.15;
    margin-bottom: 1rem;
}
