/* ==========================================================================
   1. GLOBAL SYSTEM RESETS & CORE TYPOGRAPHY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    overflow-x: hidden;
}


/* Global Heading Font Settings updated to feature your selected Georgia stack */
h1, h2, h3 {
    font-family: Georgia, serif !important; /* <-- UPDATED TO GEORGIA FOR PERFECT DESIGN SYSTEM CONTINUITY */
    text-transform: none;
    color: #111111;
}



/* Fluid UI Button Architecture */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    width: auto;
    text-align: center;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-white-solid {
    background-color: #ffa500;
    color: #111111;
}

.btn-white-solid:hover {
    background-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
}

.btn-white-outline {
    border: 1px solid #ffffff;
    color: #ffffff;
    background-color: transparent;
}

.btn-white-outline:hover {
    background-color: #ffffff;
    color: #111111;
    transform: translateY(-2px);
}

.btn-dark-outline {
    border: 1px solid #111111;
    color: #111111;
    background-color: transparent;
    padding: 12px 28px;
}

.btn-dark-outline:hover {
    background-color: #111111;
    color: #ffffff;
}

/* ==========================================================================
   2. FIXED TOP NAVBAR WITH LOGO-STACKING ALIGNMENT FIXED
   ========================================================================== */
.navbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Evenly floats content across Left, Center, and Right slots */
    align-items: center;
    padding: 20px 6%;
    z-index: 2000; 
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

/* ACTIVATED SCROLL STATE: Background shifts to solid white */
.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    padding: 15px 6%; 
}

/* 1. LEFT SIDE SLOT: Menu Toggle Container Bounds */
.menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 2005;
    width: 60px;          
    align-items: flex-start;
}

.menu-toggle .burger-line {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #ffffff; 
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease;
}

.navbar.scrolled .menu-toggle .burger-line {
    background-color: #111111;
}

/* 2. CENTER SLOT: Centered Graphic Logo Stacking Frame */
.logo-image-container {
    display: flex;
    align-items: center;
    justify-content: center; 
    z-index: 2005;
    position: relative; /* CRUCIAL: Creates the relative anchor point for the images */
    height: 80px;       /* Fixed structural height to match your image dimensions */
    width: 225px;       /* Gives the absolute images enough horizontal breathing room */
}

.brand-logo-img {
    height: 100%;       /* Fills the 55px container height constraints perfectly */
    width: auto;          
    object-fit: contain;
    transition: opacity 0.3s ease, filter 0.4s ease;
}

/* NATIVE OVERLAY LOOK: Default logo sits flat and fully visible */
.logo-image-container .default-logo {
    display: block;
    opacity: 1;
    position: relative;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.15));
}

/* SCROLLED LOOK: Scrolled logo is pulled completely out of line and layered behind */
.logo-image-container .scroll-logo {
    display: none;      /* CRUCIAL FIX: Hidden by default so it doesn't display side-by-side */
    opacity: 0;
    position: absolute; /* CRUCIAL: Strips image layout space to stack it underneath */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Keeps hidden image perfectly dead-centred */
}

/* ACTIVATED SCROLL STATE CROSSFADE SWAPS */
.navbar.scrolled .logo-image-container .default-logo {
    display: none;
    opacity: 0;
}

.navbar.scrolled .logo-image-container .scroll-logo {
    display: block;
    opacity: 1;
}

/* OVERLAY STATE MODIFIER: Turns logo dark when the full screen beige overlay opens */
.mobile-nav-active .brand-logo-img {
    filter: brightness(0); 
}

/* SCROLLED STATE MODIFIER: Removes white logo filter when scrolled over white navbar background */
.navbar.scrolled .brand-logo-img {
    filter: none; /* Fixed typo from 'brightness(none)' to prevent asset loading bugs */
}

/* 3. RIGHT SIDE SLOT: Premium SVG Envelope Link */
.nav-contact-link {
    display: flex;
    justify-content: flex-end; 
    width: 60px;               /* Symmetrically balances left slot to maintain absolute center alignment */
    z-index: 2005;
    cursor: pointer;
    transition: transform 0.25s ease, color 0.4s ease;
    color: #ffffff;            
}

.envelope-svg {
    width: 24px;               
    height: 24px;
    display: block;
}

.nav-contact-link:hover {
    transform: scale(1.08);    
}

/* INVERT ENVELOPE ON SCROLL: Changes white vector lines to dark slate over white navbar */
.navbar.scrolled .nav-contact-link {
    color: #111111;
}

/* ==========================================================================
   3. FULL SCREEN BEIGE OVERLAY MENU DRAWER
   ========================================================================== */
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f4efe6; /* Premium Solid Beige Overlay Canvas */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1500;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.nav-links a, .dropdown-btn {
    font-size: 32px; 
    color: #111111; /* Sharp charcoal text styling contrast over the warm canvas */
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 1px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    transition: opacity 0.2s ease;
}

.nav-links a:hover, .dropdown-btn:hover {
    opacity: 0.6;
}

/* Sub-Menu Drawer Layout inside central screen space streams */
.dropdown-item {
    width: 100%;
    text-align: center;
}

.dropdown-content {
    max-height: 0; /* Keeps elements hidden from layout view natively */
    overflow: hidden;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    width: 100%;
    margin-top: 0;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), margin-top 0.4s ease;
}

.dropdown-content a {
    font-size: 20px;
    padding: 10px 0;
    color: #555555;
}

/* Toggles accordion height expansion values safely when target handles are selected */
.dropdown-item.dropdown-open .dropdown-content {
    max-height: 250px;
    margin-top: 15px;
}

/* ==========================================================================
   4. ACTIVE STATE LAYOUT MUTATIONS (OPEN ACTIONS MODIFIERS)
   ========================================================================== */
.mobile-nav-active {
    overflow: hidden; /* Freezes scroll on back container layout when menu covers page */
}

/* Reveals overlay screens smoothly */
.mobile-nav-active .nav-drawer {
    opacity: 1;
    visibility: visible;
}

/* Forces menu items to match dark slate to look crisp over beige overlay */
.mobile-nav-active .logo { color: #111111; }
.mobile-nav-active .nav-contact-link { color: #111111; }

/* Rotates and shifts menu bar nodes into explicit close indicators */
.mobile-nav-active .menu-toggle .burger-line {
    background-color: #111111; 
}
.mobile-nav-active .menu-toggle .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-nav-active .menu-toggle .burger-line:nth-child(2) {
    opacity: 0;
}
.mobile-nav-active .menu-toggle .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================================================
   5. FULL SCREEN HERO SPECIFICS
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%),
        url('hero-bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: #ffffff;
    padding: 0 24px;
    max-width: 900px;
}

.hero-section h1 {
    font-family: Georgia, serif !important;
    /* <-- CHANGED TO GEORGIA FOR AN INSTANT SYSTEM SERIF LOOK */
    font-size: 50px;
    font-weight: 500;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 35px;
    color: #ffffff !important;
}




/* ==========================================================================
   6. ASYMMETRIC CONTENT SECTIONS (EDGE-TO-EDGE HYBRID GRID)
   ========================================================================== */
.split-section-container {
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

.split-layout-grid-fluid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

/* LEFT SIDE: Plain White Pane */
.split-title-block.left-white-pane {
    background-color: #ffffff;
    display: flex;
    justify-content: flex-end;
    padding: 100px;
}

/* RIGHT SIDE: Grey Pane */
.split-body-block.right-grey-pane {
    background-color: #f5f5f5;
    display: flex;
    justify-content: flex-start;
    padding: 100px 40px;
}

.inner-left-content {
    max-width: 560px;
    width: 100%;
    padding-left: 4%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inner-right-content {
    max-width: 560px;
    width: 100%;
    padding-right: 4%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* PHOTO PLACEHOLDER STYLING (Left Side) */
.photo-placeholder {
    width: 80%;
    height: 250px;
    background-color: #e9e9e9;
    border: 2px dashed #cccccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* BRONZE ACCENT CHUNK STYLING (Right Side) */
.bronze-accent-block {
    width: 45px;
    height: 6px;
    background-color: #ffa500;
    /* Rich bronze color token */
    border-radius: 2px;
    margin-bottom: 25px;
}

.split-body-block h2 {
    font-size: 40px;
    font-weight: 400;
    color: #2b3856;
   letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.split-body-block p {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* TYPOGRAPHIC LINK STYLING */
.content-inline-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111111;
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.content-inline-link:hover {
    opacity: 0.6;
    transform: translateX(4px);
}


/* ==========================================================================
   7. THREE-COLUMN SPLIT IMAGE SECTION
   ========================================================================== */
.image-split-section { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Splits the gallery grid into 3 matching fractions */
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.left-image-pane, .center-image-pane, .right-image-pane {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-image-pane { background-image: url('left-pane.jpg'); }
.center-image-pane { background-image: url('center-pane.jpg'); }
.right-image-pane { background-image: url('right-pane.jpg'); }

.pane-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease;
}

.pane-overlay h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    padding-bottom: 6px;
    transition: border-color 0.4s ease;
}

.left-image-pane:hover .pane-overlay,
.center-image-pane:hover .pane-overlay,
.right-image-pane:hover .pane-overlay {
    background-color: rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   8. HEALTHCARE BRANDING MODULE (THREE-COLUMN SIDEWAYS MATRIX)
   ========================================================================== */
.nhs-transition-section {
    padding: 120px 0;
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
}

.nhs-master-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
}

.nhs-logo-box {
    margin-bottom: 35px;
}

.simple-badge-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #111111;
    display: inline-block;
    border-bottom: 2px solid #111111;
    padding-bottom: 4px;
}

.simple-badge-logo span {
    font-weight: 300;
    color: #777777;
}

.nhs-bold-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    color: #111111;
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nhs-sideways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 side-by-side columns configuration */
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.nhs-column-card {
    padding: 10px;
}

.card-number {
    font-size: 13px;
    font-weight: 700;
    color: #777777;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.nhs-column-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.nhs-column-card p {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
}

.nhs-action-frame {
    margin-top: 20px;
}



/* ==========================================================================
   CONTACT FORM EMBED SECTION (OPTIMISED PADDING)
   ========================================================================== */
.embedded-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    
    /* Increased vertical spacing around the entire block */
    padding: 0 0 70px 0;
    
    background-color: #ffffff;
    box-sizing: border-box;
}

.embed-container {
    width: 50%;
    max-width: 800px;
    
    /* Generous inner breathing room around the third-party form elements */
    padding: 50px 60px;
    
    background-color: #f4efe6;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* ==========================================================================
   RESPONSIVE MEDIA LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .embed-container {
        width: 70%;
        /* Gently reduce spacing on tablets */
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .embed-section {
        /* Slightly tighter vertical spacing on mobile screens */
        padding: 80px 0;
    }
    
    .embed-container {
        width: 90%;
        /* Tighten internal space on mobile so fields have maximum width */
        padding: 30px 20px;
    }
}





/* ==========================================================================
   SITE FOOTER (UNIVERSAL FONT INHERITANCE)
   ========================================================================== */
.site-footer {
    width: 100%;
    padding: 60px;
    background-color: #f4efe6;
    color: #111111;
    box-sizing: border-box;
    
    /* Forces the entire footer to inherit the site's default font */
    font-family: inherit; 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    
    /* Centring line that aligns all 3 grid columns horizontally */
    justify-items: center;
}
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Inherits font style and weight for headings */
.footer-column h3 {
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #111111;
}

/* Inherits font style for all text and links */
.footer-column p,
.footer-column ul,
.footer-column a,
.footer-column li {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: #111111;
    margin: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.footer-column a:hover {
    opacity: 0.6;
}

/* ==========================================================================
   FOOTER RESPONSIVE MEDIA BREAKPOINTS
   ========================================================================== */
@media (max-width: 968px) {
    .footer-container {
        padding: 0 24px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 20px;
    }
}







/* ==========================================================================
   10. INTERACTIVE RESPONSIVE MOBILE MEDIA BREAKPOINTS MATRIX
   ========================================================================== */
@media (max-width: 968px) {
    .nhs-sideways-grid {
        grid-template-columns: 1fr; /* Stacks columns cleanly on tablet footprints */
        gap: 45px;
        text-align: center;
    }
    .nhs-column-card { max-width: 500px; margin: 0 auto; }
    .nhs-bold-title { font-size: 34px; margin-bottom: 45px; }
    .hero-section h1 { font-size: 54px; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 6%; }
    .navbar-right-group { gap: 18px; }
    .hero-section h1 { font-size: 38px; letter-spacing: -0.5px; line-height: 1.15; }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%; /* Stretches button touch bounds across mobile phone viewports */
    }

    .nav-links a, .dropdown-btn {
        font-size: 26px; /* Scales down internal overlay tray font vectors proportionally */
    }

    /* Column stacks asymmetric block module items */
    .split-layout-grid-fluid { grid-template-columns: 1fr; }
    .split-title-block, .split-body-block { padding: 60px 8%; justify-content: center; }
    .inner-left-content, .inner-right-content { max-width: 100%; padding: 0; }

    /* Column stacks image gallery blocks */
    .image-split-section { grid-template-columns: 1fr; height: auto; }
    .left-image-pane, .center-image-pane, .right-image-pane { height: 40vh; }

    .nhs-bold-title { font-size: 28px; }

    /* Stacks dual link sections atop one another inside the dark mobile footer layout */
    .footer-container { grid-template-columns: 1fr; gap: 45px; text-align: center; }
    .footer-links-list a:hover { padding-left: 0; }
    .footer-bottom-bar { margin-top: 40px; }
}
