/* =========================
   PSE Group - style.css
   ========================= */

:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --white: #ffffff;
    --grey: #f8fafc;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;

    --container: 1200px;
    --radius: 10px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: min(90%, var(--container));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.section-header {
    max-width: 760px;
    margin-bottom: 50px;
}

.eyebrow {
    display: inline-block;
    color: var(--amber);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

h1,
h2,
h3,
h4 {
    color: var(--navy);
    line-height: 1.15;
}

h1 {
    font-size: clamp(44px, 6vw, 72px);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

p {
    font-size: 17px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--amber);
    color: var(--white);
    padding: 14px 24px;
}

.btn-primary:hover {
    background: var(--amber-dark);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.65);
    color: var(--white);
    padding: 14px 24px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

/* Header */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: #5f6876;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
    padding: 16px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    width: 120px;
    height: auto;
    display: block;
}

.site-header.scrolled .site-logo {
    color: var(--navy);
}

.site-header.scrolled .site-logo img {
    filter: none;
}

.logo-main {
    font-size: 26px;
    font-weight: 800;
}

.logo-tagline {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.85;
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
}

.site-header.scrolled .site-nav > ul > li > a {
    color: var(--white);
}

.site-nav a:hover {
    color: var(--amber);
}

/* Dropdowns */

.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 9px;
    margin-bottom: 3px;
}

.sub-menu {
    position: absolute;
    top: calc(100% + 24px);
    left: 0;
    min-width: 250px;
    background: var(--white);
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.site-nav .sub-menu {
    display: block;
}

.sub-menu li {
    display: block;
}

.sub-menu a {
    display: block;
    color: var(--navy);
    padding: 11px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.sub-menu a:hover {
    background: var(--grey);
    color: var(--amber);
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    margin: 6px 0;
    transition: var(--transition);
}

.site-header.scrolled .mobile-menu-toggle span {
    background: var(--white);
}

.site-header.scrolled .site-logo img {
    width: 120px;
}

/* Hero */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: rgba(15, 23, 42, 0.68);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin-left: 5%;
    padding-top: 220px;
}

.hero h1,
.hero h2 {
    color: var(--white);
}

.hero h2 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 600;
    margin-bottom: 22px;
    max-width: 700px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin-bottom: 34px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Trust Bar */

.trust-bar {
    padding: 38px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.trust-bar p {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.trust-logos span,
.accreditation-logos span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 26px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-weight: 700;
    background: var(--white);
}

/* Cards */

.card-grid {
    display: grid;
    gap: 26px;
}

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

.service-grid {
    grid-template-columns: repeat(2, 1fr);
}

.image-card {
    position: relative;
    min-height: 360px;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    background: var(--navy);
}

.service-card {
    min-height: 430px;
}

.large-card {
    grid-row: span 2;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9), rgba(15,23,42,0.15));
}

.image-card:hover img {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute;
    z-index: 2;
    inset: auto 0 0 0;
    padding: 30px;
    color: var(--white);
}

.card-overlay h3 {
    color: var(--white);
}

.card-overlay p {
    color: rgba(255,255,255,0.88);
    max-width: 420px;
}

.card-overlay span {
    display: inline-block;
    margin-top: 18px;
    color: var(--amber);
    font-weight: 800;
}

/* Feature Cards */

.why-pse {
    background: var(--grey);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.feature-card,
.process-step {
    background: var(--white);
    padding: 34px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.feature-card h3,
.process-step h3 {
    color: var(--navy);
}

/* Process */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.process-step span {
    display: inline-flex;
    color: var(--amber);
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 14px;
}

/* Supporting Requirements */

.supporting-requirements {
    background: var(--navy);
    color: var(--white);
    padding: 90px 0;
}

.supporting-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.supporting-requirements h2 {
    color: var(--white);
}

.supporting-requirements p {
    color: rgba(255,255,255,0.85);
    font-size: 19px;
}

/* Case Studies */

.case-studies {
    background: var(--grey);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.case-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--navy-light);
}

.case-content {
    padding: 28px;
}

.case-content a {
    display: inline-block;
    margin-top: 18px;
    color: var(--amber);
    font-weight: 800;
    text-decoration: none;
}

.case-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-details {
    list-style: none;
    margin: 22px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
}

.case-details li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.case-details strong {
    color: var(--navy);
}

/* Accreditations */

.accreditations {
    padding: 80px 0;
    background: var(--white);
}

.accreditation-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.accreditation-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* CTA */

.cta-banner {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-banner h2 {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 20px;
}

.cta-banner p {
    max-width: 680px;
    margin: 0 auto 32px;
    color: rgba(255,255,255,0.86);
}

/* Footer */

.site-footer {
    background: #070d1a;
    color: rgba(255,255,255,0.78);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.site-footer h3,
.site-footer h4 {
    color: var(--white);
    margin-bottom: 18px;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    margin-bottom: 9px;
}

.site-footer a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--amber);
}

.footer-bottom {
    margin-top: 60px;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */

@media (max-width: 1100px) {
    .site-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .site-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 5%;
        right: 5%;
        background: var(--navy);
        padding: 26px;
        border-radius: var(--radius);
    }

    .site-nav.active ul {
        display: block;
    }

    .site-nav.active li {
        margin-bottom: 14px;
    }

    .site-nav.active a {
        color: var(--white);
        font-size: 18px;
    }

    .site-nav.active .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 10px 0 0 16px;
        min-width: auto;
    }

    .site-nav.active .sub-menu a {
        color: rgba(255,255,255,0.78);
        font-size: 16px;
        padding: 7px 0;
    }

    .sector-grid,
    .service-grid,
    .feature-grid,
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid,
    .accreditation-container,
    .supporting-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .section {
        padding: 70px 0;
    }

    .site-header {
        padding: 18px 0;
    }

    .hero {
        min-height: 820px;
    }

    .hero-content {
        margin-left: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .sector-grid,
    .service-grid,
    .feature-grid,
    .process-grid,
    .case-grid,
    .footer-grid,
    .accreditation-container,
    .supporting-container {
        grid-template-columns: 1fr;
    }

    .large-card {
        grid-row: auto;
    }

    .image-card,
    .service-card {
        min-height: 330px;
    }

    .trust-logos span,
    .accreditation-logos span {
        width: 100%;
    }
}

/* =========================
   Service Page Template
   ========================= */

.page-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.page-hero-media,
.page-hero-overlay {
    position: absolute;
    inset: 0;
}

.page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-top: 120px;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(44px, 5vw, 66px);
    margin-bottom: 20px;
}

.page-hero p {
    max-width: 620px;
    color: rgba(255,255,255,0.9);
    font-size: 20px;
    margin-bottom: 34px;
}

.content-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.content-split img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
}

.content-split p + p {
    margin-top: 18px;
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.related-services .simple-grid {
    align-items: stretch;
}

.related-services .simple-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.simple-card {
    display: block;
    min-height: 120px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.simple-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--navy);
}

.simple-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

a.simple-card:hover {
    border-color: var(--amber);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.related-services {
    background: var(--grey);
}

.related-services .section-header {
    margin-bottom: 50px;
}

@media (max-width: 1100px) {
    .content-split {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .simple-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .page-hero {
        min-height: 620px;
    }

    .page-hero-content {
        padding-top: 150px;
    }

    .content-split {
        grid-template-columns: 1fr;
    }

    .content-split img {
        height: 300px;
    }

    .simple-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   Contact Page
   ========================= */

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: start;
}

.contact-intro {
    position: sticky;
    top: 140px;
}

.contact-intro > p {
    margin-bottom: 18px;
}

.contact-details {
    display: grid;
    gap: 16px;
    margin-top: 35px;
}

.contact-detail-card {
    padding: 24px;
    background: var(--grey);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-detail-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-detail-card p {
    margin: 0;
    font-size: 16px;
}

.contact-detail-card a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.contact-detail-card a:hover {
    color: var(--amber);
}

.contact-form-wrap {
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.form-header {
    margin-bottom: 32px;
}

.form-header p {
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 700;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 170px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 0;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-top: 6px;
}

.checkbox-label span {
    color: var(--text);
    font-weight: 400;
    line-height: 1.6;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-intro {
        position: static;
    }
}

@media (max-width: 700px) {
    .contact-form-wrap {
        padding: 28px 22px;
    }

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

    .form-group-full {
        grid-column: auto;
    }
}