/* Custom Properties (like theme colours) */
:root {
    --color-primary: #5940b3; /* Purple accent (No longer used for headings) */
    --color-secondary-accent: #14b8a6; /* VIBRANT GREEN/TEAL */
    --color-text: #FFFFFF; /* Main body text colour (light) */
    --color-light-overlay: rgba(255, 255, 255, 0.05); /* Reset to 5% OPAQUE WHITE for content sections */
    --color-light-grey: #f3f4f6; /* Very light grey (now only used for borders) */
    --max-width: 1200px;
}

/* General Resets and Typography */
body {
    font-family: 'Barlow Condensed', sans-serif; /* Set to Barlow Condensed for the whole site */
    color: var(--color-text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    /* --- BACKGROUND IMAGE STYLES --- */
    background-image: url('bkg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    background-color: #f3f4f6; /* Light grey fallback colour if image doesn't load */
    /* --- END BACKGROUND IMAGE STYLES --- */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    color: white;
    margin-top: 0;
    font-size: 2rem;
}

h2 {
    color: white;
    margin-top: 0;
    font-size: 2rem;
}

h3 {
    color: white;
    margin-top: 0;
    font-size: 1.5rem;
}



h4 {
    color: white;
    margin-top: 0;
    font-size: 1.2rem;
}






.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header/Navigation Styling */
.header {
    background-color: var(--color-secondary-accent); /* FALLBACK: Will show solid teal if image fails */
    background-image: url('headerbkg.png'); /* Set your header background image here */
    background-size: cover;
    border-bottom: 1px solid var(--color-light-grey);
    padding: 0 0; /* Changed to ZERO padding top and bottom */
    
    /* --- STICKY HEADER ADDITIONS --- */
    position: sticky; /* Makes the element stick when it hits a specified offset */
    top: 0;          /* The offset: it sticks to the very top of the screen */
    z-index: 1000;   /* Ensures the header appears *above* all other scrolling content */
    /* --- END STICKY HEADER ADDITIONS --- */
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 400; /* Set to normal weight (400) */
    color: var(--color-text); /* Keeps the logo text dark */
}

/* --- LOGO IMAGE STYLING --- */
.logo img {
    display: block; /* Removes any baseline spacing under the image */
    margin: 0;      /* Removes default vertical margins */
    padding: 0;     /* Removes default padding */
    height: 80px;   /* Image height moved here from inline style */
}
/* --- END LOGO IMAGE STYLING --- */


.nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: white; /* Changed top links to WHITE */
    font-weight: 400; /* Set to normal weight (400) */
}

.nav a:hover {
    color: var(--color-secondary-accent);
}

/* Hero Section Styling */
.hero {
    padding: .5rem 0;
    text-align: center;
    /* Uses 5% Opaque White Overlay */
    background-color: var(--color-light-overlay);
}

.hero h1 {
    font-size: 3rem;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.hero p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* The .cta-button class is no longer used, but kept for reference if you add a button back */
.cta-button {
    display: inline-block;
    background-color: var(--color-secondary-accent); /* Vibrant green/teal */
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 400; /* Set to normal weight (400) */
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0d9488;
}

/* Feature Grid Section Styling */
.features {
    padding: .8rem 0;
    text-align: center;
    /* Uses 5% Opaque White Overlay */
    background-color: var(--color-light-overlay);
}
/* *** MODIFICATION START *** */
/* Increased padding on the bottom of the .features section to double the space before the footer. */
.features {
    padding: .8rem 0;
    padding-bottom: 1.6rem; /* Doubled the bottom padding from 0.8rem to 1.6rem */
    text-align: center;
    /* Uses 5% Opaque White Overlay */
    background-color: var(--color-light-overlay);
}
/* *** MODIFICATION END *** */


.features h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    /* Uses 5% Opaque White Overlay for cards */
    background-color: var(--color-light-overlay);
    border: 1px solid var(--color-light-grey);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* NEW: Setup for smooth hover transition */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; 
    will-change: transform;
}

/* NEW: Hover effect for feature cards */
.feature-card:hover {
    transform: scale(1.03); /* Expands the card by 3% */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Slightly larger shadow on hover for depth */
    cursor: pointer; /* Reinforces the link/clickable feel */
}


.feature-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card h4 {
    margin-bottom: 0.3rem;
}

.feature-card p {
    margin-top: 0.5rem;
}

/* Content Block Styling */
.content-block {
    padding: 2rem 0;
    /* Uses 5% Opaque White Overlay */
    background-color: var(--color-light-overlay);
    flex: 1;
}

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

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.placeholder-image {
    background-color: var(--color-light-overlay); /* 5% opaque white */
    color: white;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400; /* Set to normal weight (400) */
    border-radius: 0.5rem;
}

/* Modal Styling for iframe Contact Form */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    display: none; /* Hidden by default */
    z-index: 2000; /* Above sticky header */
}

/* Pure CSS Modal Visibility (Activated when URL ends with #contact-modal) */
#contact-modal:target {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--color-text); /* Dark background for the form container */
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    height: 80%;
    position: relative;
}

.contact-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: black; 
    text-decoration: none;
    line-height: 1;
    z-index: 2001;
}

/* Footer Styling */
.footer {
    /* Set back to a solid dark background for a clean finish */
    background-color: #1f2937; /* Explicit dark grey/charcoal colour (FIXED) */
    color: #666A6D;
    padding: 0.2rem 0;
    text-align: center;
    font-size: 0.875rem;
    line-height: 0.8; 
    text-shadow: none;
    /* Inherits Barlow Condensed from body */
}

.footer p {
    color: #666A6D;
}

.footer a {
    text-decoration: none; /* <-- This removes the underline from footer links */
    color: #666A6D; /* Keep the existing colour */
}