/* --------------------------------------------------
   GLOBAL COLOURS (easy to edit)
-------------------------------------------------- */
:root {
    --color-bg: #ffffff;
    --color-text: #222222;

    --color-primary: #000000; /* Header & footer */
    --color-secondary: #f5f5f5;
    --color-accent: #8460A9;  /* Buttons, hovers */

    --color-header-text: #ffffff;
    --color-footer-text: #ffffff;

    --color-highlight-bg: #8460A9; /* Home text box stripe */

    --transition-fast: 0.25s ease;
    --transition-med: 0.45s ease;
    
    --faq-bg: #8460A9;
    --faq-bg-selected: #B092D1;
}

/* --------------------------------------------------
   GLOBAL BASE + PAGE FADE
-------------------------------------------------- */
body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

body.page-fade {
    opacity: 0;
    transition: opacity var(--transition-med);
}

body.page-fade.page-fade-in {
    opacity: 1;
}

body.page-fade.page-fade-out {
    opacity: 0;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.site-header {
    background: var(--color-primary);
    color: var(--color-header-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding var(--transition-fast), background var(--transition-fast);
}

.top-bar {
    padding: 0.75rem 0;
}

.logo-img {
    height: 100px;
    transition: height var(--transition-fast);
}

.site-header.shrink .logo-img {
    height: 40px;
}

/* CONTACT LINKS */
.contact-details .contact-link,
.mobile-contact-details .contact-link {
    color: #ffffff;
    font-size: 0.9rem;
}
.contact-details .contact-link i,
.mobile-contact-details .contact-link i {
    margin-right: 0.35rem;
}
.contact-separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

/* Desktop nav */
.main-nav {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    display: flex;
    gap: 1.7rem;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-header-text);
    position: relative;
    letter-spacing: 0.06em;
}
.nav-link::after {
    content: "";
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    position: absolute;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}
.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* --------------------------------------------------
   MOBILE HEADER LAYOUT
-------------------------------------------------- */
.mobile-header-wrapper {
    padding: 1rem 0;
    text-align: center;
}

.mobile-contact-details {
    color: #fff;
}
.mobile-contact-details .contact-link {
    color: #fff;
    font-size: 0.95rem;
}

/* Mobile menu bar (black bar under logo/contact) */
.mobile-menu-bar {
    width: 100%;
    background: var(--color-primary);
    padding: 0.6rem 0;
}
.mobile-menu-bar .menu-toggle-bar {
    background: #ffffff;
}

/* FORCE MOBILE MENU BUTTON TO DISPLAY ON MOBILE */
@media (max-width: 991px) {
    .mobile-menu-bar {
        display: block !important;
        background: #000;
        padding: 0.7rem 0;
        z-index: 2000;
        position: relative;
    }
    .mobile-menu-bar .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        padding: 0.25rem;
        margin: 0;
        cursor: pointer;
        z-index: 3000;
    }
    .mobile-menu-bar .menu-toggle-bar {
        display: block !important;
        width: 28px;
        height: 3px;
        background: #ffffff !important;
        margin: 5px 0;
    }

    /* Hide desktop contact row */
    .desktop-header-wrapper {
        display: none !important;
    }
}

/* --------------------------------------------------
   MOBILE MENU OVERLAY
-------------------------------------------------- */
.menu-toggle {
    border: none;
    background: none;
    padding: 0.25rem;
}

.menu-toggle-bar {
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
}

/* FULLSCREEN OVERLAY */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: #000 !important; /* FULL BLACK */
    color: #fff;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-med), opacity var(--transition-med);
    z-index: 9999;
}
.mobile-menu-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* INNER WRAPPER */
.mobile-menu-inner {
    height: 100%;
    padding: 2rem 2rem; /* content nearer top */
    background: #000 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: flex-start;
}

/* CLOSE BUTTON */
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff !important;
    font-size: 2rem;
}

/* MENU LIST */
.mobile-nav {
    width: 100%;
    margin-top: 3.5rem; /* below close button */
}
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-link {
    display: block;
    width: 100%;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 1rem 0;
    color: #fff !important;
    text-decoration: none !important;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus {
    opacity: 0.75;
    text-decoration: none !important;
}

/* --------------------------------------------------
   HERO BANNER
-------------------------------------------------- */
.hero-banner {
    width: 100%;
    height: 60vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.3)
    );
}
.hero-text {
    color: #ffffff;
}
.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 0.7rem;
}
.hero-subtitle {
    max-width: 480px;
    font-size: 1.05rem;
}
body.page-fade {
    background: #000 !important;
}

.hero-overlay {
    background: rgba(0,0,0,0.6) !important;
}
/* Fade-in on load */
.fade-in-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn .8s ease-out forwards;
}
@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------
   HOME PAGE
-------------------------------------------------- */
.home-content {
    background: #ffffff;
}
.section-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* FULL-WIDTH STRIPE ONLY FOR TEXT BOX */
.home-text-stripe {
    width: 100vw;                       /* full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;                 /* break out of container */
    margin-right: -50vw;
    background: var(--color-highlight-bg);
    padding: 2rem 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Inner text box: no background, just spacing/text */
.highlight-text-box {
    background: transparent;
    padding: 0;
    color: #ffffff;
}

/* --------------------------------------------------
   FEATURE CARDS — ANIMATION
-------------------------------------------------- */
.feature-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease-out, transform .6s ease-out;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.feature-card img {
    object-fit: cover;
}
.feature-card.in-view {
    opacity: 1;
    transform: translateY(0);
    animation: cardBounce .6s ease-out;
}
@keyframes cardBounce {
    0% { transform: translateY(40px); opacity: 0; }
    60% { transform: translateY(-6px); opacity: 1; }
    100% { transform: translateY(0); }
}
.feature-card.pressed {
    filter: brightness(0.9);
    opacity: 0.85;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
    background: var(--color-primary);
    color: var(--color-footer-text);
    padding-top: 3rem;
    margin-top: 3rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.2);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}
.site-footer ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.site-footer li {
    margin: 0.4rem 0;
}

.site-footer a {
    color: var(--color-footer-text);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .footer-menu a {
    display: inline-block;           / prevents full-width underline /
    position: relative;
    padding-bottom: 2px;             / space for underline /
}

.site-footer .footer-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent); / your highlight colour /
    transition: width 0.25s ease;
}

.site-footer .footer-menu a:hover::after {
    width: 100%;                     / underline grows under text only */
}
/* ============================================================
   TABLET FOOTER CUSTOM LAYOUT (768px – 991px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {

    /* Hide right-hand Contact column */
    .footer-contact {
        display: none !important;
    }

    /* Move the Menu column to the right */
    .footer-menu-col {
        margin-left: auto;
        text-align: right;
    }

    /* Tablet Contact Box styling */
    .tablet-contact-box {
        display: block;
        background: #000;
        color: #fff;
        padding: 1.5rem 0;
        margin-top: 2rem;
        border-top: 1px solid rgba(255,255,255,0.2);
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .tablet-contact-box h3 {
        margin-bottom: 0.75rem;
    }

    .tablet-contact-box p {
        margin: 0;
        line-height: 1.6;
    }
}

/* Hide tablet contact box on mobile + desktop */
@media (max-width: 767px), (min-width: 992px) {
    .tablet-contact-box {
        display: none !important;
    }
}
/* ===============================
   SERVICES QUESTION LIST
=============================== */

.service-link {
    display: block;
    padding: 0.9rem 1rem;
    background: var(--faq-bg);
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #222;
    text-decoration: none;
    transition: 0.25s ease;
}

.service-link:hover {
    background: var(--faq-bg-selected);
}

.service-link.active {
    background: var(--faq-bg-selected);
    border-color: #999;
}

/* Right column background */
.service-detail {
    background: var(--faq-bg);
    padding: 2rem;
    border-radius: 8px;
}
.service-detail {
    background: var(--faq-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 0 !important;
}
.service-detail h2 {
    margin-top: 0 !important;
}
.service-html p {
    margin-top: 0;
}
.service-html p:first-child {
    margin-top: 0;
}
.service-list li {
    margin-bottom: 1rem !important;
}

.service-link,
.service-link.active {
    color: #ffffff !important;
}

