/* =========================================================
   Shield & Protect Website Styles
   Brand: Shield & Protect
   File: assets/css/site.css
   ========================================================= */


/* =========================================================
   1. Theme variables
   ========================================================= */

:root {
    --navy: #0b2742;
    --navy2: #123653;
    --teal: #075e58;
    --teal2: #0f766e;
    --blue: #1457b8;
    --orange: #f59e0b;
    --purple: #7c3aed;
    --green: #4f7f3b;

    --mint: #e9f5f1;
    --mint-strong: #d7eee8;
    --paper: #f7f9f8;
    --white: #ffffff;
    --black: #000000;

    --ink: #000000;
    --muted: #000000;
    --line: #d9e3e5;

    --shadow: 0 16px 45px rgba(10, 39, 66, 0.13);
    --soft-shadow: 0 8px 24px rgba(10, 39, 66, 0.07);
    --radius: 22px;
}


/* =========================================================
   2. Reset and base styles
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    appearance: none;
    -webkit-appearance: none;
}

::selection {
    background: var(--navy);
    color: var(--white);
}


/* =========================================================
   3. Accessibility
   ========================================================= */

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 99999;
    padding: 0.7rem 1rem;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    border-radius: 10px;
}


/* =========================================================
   4. Header
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem clamp(1rem, 4vw, 4rem);
    background: var(--navy);
    color: var(--white);
    font-size: 0.83rem;
}

.topline a {
    color: var(--white);
    text-decoration: none;
}

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

.nav-wrap {
    position: relative;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.85rem clamp(1rem, 4vw, 4rem);
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
}


/* Legacy logo support */

.brand-mark {
    width: 58px;
    height: 58px;
    display: inline-flex;
}

.brand-text strong {
    display: block;
    color: var(--navy);
    font-size: 1.34rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-text small {
    display: block;
    margin-top: 0.2rem;
    color: var(--black);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}


/* =========================================================
   5. Main navigation
   ========================================================= */

.mainnav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mainnav a,
.nav-group > button {
    padding: 0.75rem 0.8rem;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: var(--navy);
    cursor: pointer;
    font: 700 0.88rem/1 Inter, Arial, sans-serif;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.mainnav a:hover,
.nav-group:hover > button,
.nav-group > button:focus {
    background: var(--mint);
}

.nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
}

.nav-cta:hover {
    background: var(--teal) !important;
}

.nav-group {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    min-width: 260px;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 0.85rem 1rem;
}

.menu-toggle {
    display: none;
    padding: 0.7rem 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}


/* =========================================================
   6. Hero
   ========================================================= */

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 680px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(11, 39, 66, 0.94), rgba(11, 39, 66, 0.75)),
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.eyebrow {
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.hero .eyebrow,
.page-hero .eyebrow,
.site-footer .eyebrow {
    color: var(--white);
}

.hero h1 {
    margin: 0.8rem 0 1.2rem;
    color: var(--white);
    font-size: clamp(2.4rem, 5vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.lead {
    max-width: 760px;
    color: var(--black);
    font-size: 1.18rem;
}

.hero .lead,
.page-hero .lead,
.page-hero p {
    color: var(--white);
}

.hero-panel {
    align-self: center;
    margin: clamp(2rem, 6vw, 5rem);
    padding: 2rem;
    background: rgba(5, 22, 39, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel .check {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-panel .check:last-child {
    border-bottom: 0;
}

.check strong {
    display: block;
    color: var(--white);
}

.check span {
    color: var(--white);
    font-size: 0.95rem;
}


/* =========================================================
   7. Buttons
   ========================================================= */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.1rem;
    background: var(--teal);
    border: 0;
    border-radius: 13px;
    color: var(--white);
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
}

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

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

.btn.secondary:hover,
.btn.light:hover {
    background: var(--mint);
    color: var(--navy);
}

.btn.dark {
    background: var(--navy);
}

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


/* =========================================================
   8. Sections and layout
   ========================================================= */

.section {
    padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.section.alt {
    background: var(--paper);
}

.content {
    max-width: 1180px;
    margin: auto;
}

.wide-copy {
    max-width: 940px;
    margin: auto;
    color: var(--black);
    font-size: 1.05rem;
}

.section-head {
    max-width: 900px;
    margin: 0 auto 2.2rem;
    text-align: center;
}

.section-head h2 {
    margin: 0.4rem 0;
    color: var(--navy);
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-head p {
    color: var(--black);
    font-size: 1.05rem;
}


/* =========================================================
   9. Grid helpers
   ========================================================= */

.grid {
    display: grid;
    gap: 1.25rem;
}

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

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

.grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

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


/* =========================================================
   10. Cards and media
   ========================================================= */

.card {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.card h3 {
    margin: 0.6rem 0;
    color: var(--navy);
    font-size: 1.25rem;
    line-height: 1.2;
}

.card p,
.card li {
    color: var(--black);
}

.i {
    width: 32px;
    height: 32px;
    color: var(--teal);
}

.photo-card {
    overflow: hidden;
    padding: 0;
}

.photo-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.photo-card .pad {
    padding: 1.35rem;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.photo-strip img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 18px;
}


/* =========================================================
   11. Lists
   ========================================================= */

.ticks {
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.ticks li {
    position: relative;
    padding: 0.55rem 0 0.55rem 2rem;
    color: var(--black);
}

.ticks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    background: var(--mint-strong);
    border-radius: 50%;
    color: var(--black);
    font-weight: 900;
}


/* =========================================================
   12. Stats and process
   ========================================================= */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    border-radius: var(--radius);
    color: var(--white);
}

.stat strong {
    display: block;
    color: var(--white);
    font-size: 2rem;
}

.stat p,
.stat span {
    color: var(--white);
}

.process {
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 4rem;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1.3rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    background: var(--teal);
    border-radius: 50%;
    color: var(--white);
    font-weight: 900;
}


/* =========================================================
   13. Inner page hero
   ========================================================= */

.page-hero {
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(11, 39, 66, 0.94), rgba(11, 39, 66, 0.75)),
        var(--hero-img) center / cover;
}

.page-hero h1 {
    max-width: 980px;
    color: var(--white);
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    color: var(--white);
    font-size: 1.18rem;
}


/* =========================================================
   14. Notice and quote blocks
   ========================================================= */

.notice {
    padding: 1rem;
    background: var(--mint);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--black);
}

.notice p,
.notice li,
.notice span,
.notice strong {
    color: var(--black);
}

.quote {
    padding: 2rem;
    background: var(--navy);
    border-radius: var(--radius);
    color: var(--white);
}

.quote p,
.quote span,
.quote strong {
    color: var(--white);
}


/* =========================================================
   15. Forms
   ========================================================= */

.form {
    display: grid;
    gap: 1rem;
}

.form label {
    color: var(--black);
    font-weight: 800;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--black);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 3px solid rgba(7, 94, 88, 0.18);
    border-color: var(--teal);
}

.form textarea {
    min-height: 150px;
}


/* =========================================================
   16. CTA band
   ========================================================= */

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem clamp(1rem, 4vw, 4rem);
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: var(--white);
}

.cta-band h2,
.cta-band h3,
.cta-band p,
.cta-band span,
.cta-band strong {
    color: var(--white);
}

.cta-band p {
    margin: 0.2rem 0 0;
}


/* =========================================================
   17. Footer
   ========================================================= */

.site-footer {
    padding: 3rem clamp(1rem, 4vw, 4rem) 1.5rem;
    background: #081d31;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
    gap: 2rem;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 1rem;
}

.site-footer h3 {
    margin-top: 0;
    color: var(--white);
}

.site-footer p,
.site-footer li,
.site-footer span,
.site-footer strong {
    color: var(--white);
}

.site-footer a {
    display: block;
    margin: 0.35rem 0;
    color: var(--white);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.subfooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.subfooter a {
    display: inline-block;
    margin: 0;
}


/* =========================================================
   18. Footer logo
   Header uses coloured logo. Footer forces it solid white.
   ========================================================= */

.site-footer .brand-logo,
.site-footer .footer-brand img,
.site-footer .footer-logo-card img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

.footer-logo-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}


/* =========================================================
   19. Legal pages
   ========================================================= */

.legal-copy h2 {
    margin-top: 2rem;
    color: var(--navy);
    font-size: 1.45rem;
    line-height: 1.2;
}

.legal-copy h3 {
    margin-top: 1.5rem;
    color: var(--navy);
}

.legal-copy p {
    margin: 0 0 1rem;
    color: var(--black);
}

.legal-copy ul {
    margin: 0 0 1.4rem;
    padding-left: 1.4rem;
}

.legal-copy li {
    margin-bottom: 0.45rem;
    color: var(--black);
}

.legal-copy .lead {
    color: var(--black);
    font-size: 1.15rem;
}

.small-print {
    margin-top: 2rem;
    color: var(--black);
    font-size: 0.92rem;
}


/* =========================================================
   20. Utilities
   ========================================================= */

.hidden {
    display: none !important;
}

.mini {
    color: var(--black);
    font-size: 0.9rem;
}

.accent,
.kicker,
.section-label {
    color: var(--black);
}


/* =========================================================
   21. Text colour safety overrides
   Normal content black. Dark sections white.
   ========================================================= */

body .section p,
body .section li,
body .wide-copy p,
body .wide-copy li,
body .legal-copy p,
body .legal-copy li,
body .content p,
body .content li,
body .card p,
body .card li,
body p.lead,
body .wide-copy p.lead,
body .legal-copy p.lead,
body .section .wide-copy.legal-copy p.lead {
    color: var(--black) !important;
}

body .hero p,
body .hero li,
body .hero span,
body .hero strong,
body .hero .lead,
body .hero .eyebrow,
body .hero h1,
body .hero h2,
body .hero h3,
body .page-hero p,
body .page-hero li,
body .page-hero span,
body .page-hero strong,
body .page-hero .lead,
body .page-hero .eyebrow,
body .page-hero h1,
body .page-hero h2,
body .page-hero h3,
body .site-footer p,
body .site-footer li,
body .site-footer span,
body .site-footer strong,
body .site-footer a,
body .site-footer h2,
body .site-footer h3,
body .cta-band p,
body .cta-band span,
body .cta-band strong,
body .cta-band h2,
body .cta-band h3,
body .quote p,
body .quote span,
body .quote strong,
body .stat p,
body .stat span,
body .stat strong {
    color: var(--white) !important;
}


/* =========================================================
   22. Responsive design
   ========================================================= */

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

@media (max-width: 1100px) {
    .brand-logo {
        width: 230px;
    }

    .mainnav a,
    .nav-group > button {
        padding: 0.7rem 0.65rem;
        font-size: 0.82rem;
    }
}


/* =========================================================
   23. Mobile menu fix for iPhone / Safari
   This section is deliberately explicit.
   ========================================================= */

@media (max-width: 980px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 9999;
    }

    .topline {
        display: none;
    }

    .nav-wrap {
        position: relative;
        z-index: 9999;
        gap: 1rem;
    }

    .menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10001;
        min-height: 44px;
        padding: 0.7rem 1rem;
        background: #ffffff;
        border: 1px solid #d9e3e5;
        border-radius: 12px;
        color: #0b2742;
        font-weight: 800;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .menu-toggle.active {
        background: #0b2742;
        color: #ffffff;
    }

    .mainnav {
        display: none !important;
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        right: 1rem;
        z-index: 10000;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 0.9rem;
        background: #ffffff;
        border: 1px solid #d9e3e5;
        border-radius: 18px;
        box-shadow: 0 16px 45px rgba(10, 39, 66, 0.22);
    }

    .mainnav.open {
        display: flex !important;
    }

    .mainnav a,
    .nav-group > button {
        width: 100%;
        min-height: 44px;
        padding: 0.8rem 0.9rem;
        text-align: left;
        color: #0b2742;
    }

    .nav-group {
        width: 100%;
    }

    .dropdown {
        position: static !important;
        display: block !important;
        min-width: 0;
        margin: 0.2rem 0 0.4rem 0.75rem;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .dropdown a {
        padding: 0.7rem 0.85rem;
        border-radius: 10px;
    }

    .dropdown a:hover {
        background: var(--mint);
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-panel {
        margin: 0 1rem 2rem;
    }

    .grid.cols-2,
    .grid.cols-3,
    .grid.cols-4,
    .split,
    .stat-row,
    .photo-strip {
        grid-template-columns: 1fr;
    }

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

    .split img {
        height: 300px;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .brand-logo {
        width: 210px;
    }

    .site-footer .brand-logo,
    .site-footer .footer-brand img,
    .site-footer .footer-logo-card img {
        width: 220px;
    }
}

@media (max-width: 620px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .nav-wrap {
        padding: 0.75rem 1rem;
    }

    .brand-logo {
        width: 185px;
    }

    .menu-toggle {
        padding: 0.65rem 0.85rem;
    }

    .hero-copy {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 13vw, 3.4rem);
    }

    .section,
    .page-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card {
        padding: 1.2rem;
    }

    .site-footer .brand-logo,
    .site-footer .footer-brand img,
    .site-footer .footer-logo-card img {
        width: 200px;
    }
}

/* =========================================================
   FINAL MOBILE MENU SAFETY FIX
   Keep this at the very bottom. It makes the menu work on iPhone/Safari.
   ========================================================= */
@media (max-width: 980px) {
    .site-header { position: sticky; top: 0; z-index: 9999; }
    .topline { display: none !important; }
    .nav-wrap { position: relative; z-index: 9999; gap: 1rem; }
    .menu-toggle {
        display: inline-flex !important; align-items: center; justify-content: center;
        position: relative; z-index: 10001; min-height: 44px; padding: 0.7rem 1rem;
        background: #ffffff; border: 1px solid #d9e3e5; border-radius: 12px;
        color: #0b2742; font-weight: 800; cursor: pointer;
        -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    }
    .menu-toggle.active { background: #0b2742; color: #ffffff; }
    .mainnav {
        display: none !important; position: absolute; top: calc(100% + 0.75rem);
        left: 1rem; right: 1rem; z-index: 10000; flex-direction: column;
        align-items: stretch; gap: 0.2rem; padding: 0.9rem; background: #ffffff;
        border: 1px solid #d9e3e5; border-radius: 18px;
        box-shadow: 0 16px 45px rgba(10, 39, 66, 0.22);
    }
    .mainnav.open { display: flex !important; }
    .mainnav a, .nav-group > button {
        width: 100%; min-height: 44px; padding: 0.8rem 0.9rem;
        text-align: left; color: #0b2742;
    }
    .nav-group { width: 100%; }
    .dropdown {
        position: static !important; display: block !important; min-width: 0;
        margin: 0.2rem 0 0.4rem 0.75rem; padding: 0; background: transparent;
        border: 0; border-radius: 0; box-shadow: none;
    }
    .dropdown a { padding: 0.7rem 0.85rem; border-radius: 10px; }
    .dropdown a:hover { background: #e9f5f1; }
}

/* =========================================================
   iPhone mobile menu scroll fix
   ========================================================= */

@media (max-width: 980px) {
    .mainnav {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    body.menu-open {
        overflow: hidden;
    }
}
