/* =========================================
   1. Colour Palette & Base Variables
   ========================================= */
:root {
    --deep-teal: #1A535C;
    --mustard-gold: #F7AF3F;
    --terracotta-red: #D85941;
    --light-grey: #F1F1F1;
    --pure-white: #FFFFFF;
    --text-dark: #333333;
}

/* =========================================
   2. Global Reset & Typography
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--pure-white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--deep-teal);
    margin-bottom: 15px;
}

html {
    scroll-behavior: smooth; /* ADD THIS LINE! */
}

/* =========================================
   3. Navigation
   ========================================= */
header {
    background-color: var(--pure-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--deep-teal);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--terracotta-red);
}

/* =========================================
   4. Buttons
   ========================================= */
.btn-primary {
    background-color: var(--mustard-gold);
    color: var(--deep-teal);
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s;
    border: 2px solid var(--mustard-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #e59e2f;
}

.btn-secondary {
    background-color: transparent;
    color: var(--deep-teal);
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--deep-teal);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--deep-teal);
    color: var(--pure-white);
}

/* =========================================
   5. Heroes (The visual visual hero)
   ========================================= */

/* 5.5 Index Hero with Background Image (Your Spectacular Visual) */
.index-hero {
    background-image: url('kinnear-hero-visual.png');
    background-size: cover;
    background-position: center center; 
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: none;
}

/* Redundant overlay and redundant logo div REMOVED. The visual is the statement. */

.hero-content {
    position: relative;
    z-index: 2;
    /* Adds breathing room around the text for the glow */
    padding: 50px 20px; 
    
    /* Creates the Option 1 Gradient Glow dynamically */
    /* It blends your Deep Teal into a soft dark shadow that fades to transparent */
    background: radial-gradient(circle, rgba(26, 83, 92, 0.8) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0) 75%);
    
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto; /* Keeps it perfectly centered */
}

/* CRUCIAL: Make the paragraph text white to pop against the dark visualization details */
.index-hero p {
    color: var(--pure-white);
    font-size: 1.5rem; /* Slightly larger for better readability */
    font-weight: 500; /* Makes the font a tiny bit thicker */
    max-width: 650px;
    margin: 0 auto 30px;
    opacity: 1; /* Ensures the text is bright and crisp */
    
    /* Adds a sharp, dark shadow directly to the letters themselves */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9); 
}

/* Standard plain white hero for About page */
.hero:not(.index-hero) {
    background-color: var(--pure-white);
    padding: 100px 20px;
    border-bottom: 5px solid var(--mustard-gold);
    text-align: center;
}

.hero:not(.index-hero) h1 {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero:not(.index-hero) p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #555;
}

/* =========================================
   6. Services Section
   ========================================= */
.services {
    background-color: var(--light-grey);
    padding: 80px 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.service-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-card {
    background-color: var(--pure-white);
    padding: 40px 30px;
    border-radius: 8px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--terracotta-red);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.category-label {
    display: inline-block;
    color: var(--terracotta-red);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* =========================================
   7. Affiliations & Podcast Section
   ========================================= */
.affiliations {
    background-color: var(--pure-white);
    padding: 80px 0;
}

.split-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.content-block {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: var(--light-grey);
    border-radius: 8px;
    border-left: 5px solid var(--deep-teal);
}

.podcast-block {
    border-left-color: var(--mustard-gold);
}

.content-block h2 {
    margin-bottom: 15px;
}

.content-block p {
    margin-bottom: 20px;
}

/* =========================================
   8. Contact Section & Form
   ========================================= */
.contact-section {
    background-color: var(--pure-white);
    padding: 80px 0;
    border-top: 5px solid var(--terracotta-red);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    background-color: var(--light-grey);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--deep-teal);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--pure-white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mustard-gold);
    box-shadow: 0 0 0 3px rgba(247, 175, 63, 0.2);
}

.form-submit {
    cursor: pointer;
    font-size: 1.1rem;
    border: none;
    width: 100%;
    margin-top: 10px;
}

/* =========================================
   9. Footer
   ========================================= */
footer {
    background-color: var(--deep-teal);
    color: var(--pure-white);
    text-align: center;
    padding: 40px 20px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* =========================================
   10. Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .hero:not(.index-hero) h1 {
        font-size: 2.2rem;
    }
    .index-hero {
        height: 80vh; 
    }
    .hero-content {
        padding-top: 0;
    }
}

/* =========================================
   11. Custom Form Popup
   ========================================= */
.form-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: var(--pure-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-top: 5px solid var(--mustard-gold);
}

.popup-content h3 {
    font-size: 1.8rem;
    color: var(--deep-teal);
    margin-bottom: 10px;
}

/* =========================================
   12. Cookie Consent Banner
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--deep-teal);
    color: var(--pure-white);
    padding: 20px;
    display: none; /* Hidden by default until JS checks for consent */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.cookie-text {
    font-size: 0.95rem;
    max-width: 800px;
}

.cookie-text a {
    color: var(--mustard-gold);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 40px;
        text-align: left;
    }
}


/* =========================================
   13. Mobile aspects
   ========================================= */


@media (max-width: 768px) {
    /* Align logo and links into a balanced vertical column layout */
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        padding: 0;
    }

    /* Make the action button fluid and well-proportioned on mobile displays */
    nav ul li a[href="#contact"], 
    nav ul li a.btn-primary,
    .btn-primary {
        display: inline-block;
        padding: 6px 14px !important;
        font-size: 0.9rem;
        border-radius: 4px;
    }
}