/*
Theme Name: Cable Insight Theme
Theme URI: https://cableinsight.co.uk/ (Placeholder - update with your actual theme URL)
Author: Your Name
Author URI: Your Website (Placeholder - update with your actual author URL)
Description: A custom WordPress theme for Cable Insight, focusing on safeguarding, child engagement, and trauma-informed responses.
Version: 1.0
Text Domain: cable-insight-theme
*/

/* --- CSS Custom Properties (Variables) for NEW, Lighter Green Color Palette --- */
:root {
    --ci-green-dark: #3A5C4A;       /* A slightly lighter, muted dark green for contrast */
    --ci-green-medium: #6B9E88;     /* A clear, mid-tone green, softer than before */
    --ci-green-light: #A0C4B4;      /* A true, soft sage green */
    --ci-green-lighter: #CDE0D8;    /* A very pale, almost minty green */
    --ci-green-lightest: #F2F7F5;   /* A near-white with a subtle hint of green */
    --ci-white: #FFFFFF;
    --ci-text-dark: #333;
    --ci-text-medium: #666;
    /* --ci-red-hoarding variable removed as it is not relevant to Cable Insight. */
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif; /* Body font */
    line-height: 1.7; /* Increased line height for readability */
    color: var(--ci-text-dark); /* Default text color */
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-lightest) 0%, var(--ci-green-lighter) 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Heading font */
    line-height: 1.2; /* Tighter line height for headings */
    margin-bottom: 0.8em; /* General heading spacing */
}

p {
    margin-bottom: 1em; /* Ensure consistent spacing between paragraphs */
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--ci-white); /* White background for the main content container */
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); /* Lighter shadow */
    border-radius: 20px;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* --- Header Styles --- */
.header {
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-medium) 0%, var(--ci-green-dark) 100%);
    color: var(--ci-white);
    padding: 4rem 2rem; /* Increased padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.05"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.05"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.header-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.header-photo {
    width: 220px; /* Increased size */
    height: 220px; /* Increased size */
    border-radius: 50%;
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-light) 0%, var(--ci-green-lighter) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ci-white); /* Ensures placeholder text is white */
    font-size: 1rem;
    font-weight: 600;
    /* Updated box-shadow color to reflect new palette */
    box-shadow: 0 15px 35px rgba(107, 158, 136, 0.4); /* Using a mid-green-tinted shadow */
    transition: transform 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    overflow: hidden; /* Ensure image stays within circle */
}

.header-photo:hover {
    transform: scale(1.05);
}

.header-photo img {
    display: block; /* Remove extra space below image */
}

.header-text {
    text-align: center;
}

.header h1 {
    font-size: 4rem; /* Significantly Increased Font Size */
    margin-bottom: 0.8rem;
    font-weight: 800; /* Bolder font weight */
    letter-spacing: 0px; /* Adjusted letter spacing for bolder look */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2); /* Lighter text shadow */
}

.header h1 a {
    color: inherit;
    text-decoration: none;
}

.header h1 a:hover {
    opacity: 0.9;
}

.header .tagline {
    font-size: 1.5rem; /* Increased font size for tagline */
    margin-bottom: 1.2rem;
    opacity: 0.95; /* Slightly less opaque */
    font-weight: 400; /* Slightly more weight for readability */
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Main Content Sections Styles --- */
.main-content {
    padding: 0;
}

.hero-section {
    padding: 4rem 2rem;
    /* Updated background to new lighter green gradient */
    background: linear-gradient(45deg, var(--ci-green-lightest) 0%, var(--ci-green-lighter) 100%);
    text-align: center;
}

.experience-badge {
    display: inline-block;
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-dark) 0%, var(--ci-green-medium) 100%);
    color: var(--ci-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    /* Updated box-shadow color to reflect new palette */
    box-shadow: 0 10px 20px rgba(58, 92, 74, 0.3); /* Using a dark green-tinted shadow */
}

.profile-section {
    padding: 5rem 2rem; /* Increased vertical padding for more breathing room */
    background: var(--ci-white); /* White background */
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Ensures two columns for text and image */
    gap: 4rem; /* Increased gap between text and image */
    align-items: center;
}

.profile-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--ci-green-dark); /* Updated to dark green for heading */
    font-weight: 700;
}

.profile-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--ci-text-medium); /* Grey text on white background */
    line-height: 1.8;
}

/* Make strong text within profile-text paragraph stronger with shadow */
.profile-text p strong {
    font-weight: 900; /* Even bolder */
    color: var(--ci-green-dark); /* Make bold text stand out with dark green */
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.15); /* Lighter text shadow */
}

/* Styles for the new profile image container */
.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-section-image {
    max-width: 200px; /* Significantly reduced size for the profile image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 15px; /* Rounded corners for the image */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Lighter shadow for depth */
    display: block; /* Ensure it behaves as a block element */
}


.specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem; /* Increased margin above tags */
}

.specialization-tag {
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-lightest) 0%, var(--ci-green-lighter) 100%);
    color: var(--ci-green-dark); /* Updated to dark green text */
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.services-section {
    padding: 5rem 2rem; /* Increased vertical padding */
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-lightest) 0%, var(--ci-green-lighter) 100%);
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--ci-green-dark); /* Updated to dark green for heading */
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem; /* Slightly increased gap between service cards */
}

.service-card {
    background: var(--ci-white); /* White background */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Lighter shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12); /* Lighter shadow on hover */
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--ci-green-dark); /* Updated to dark green for heading */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-dark) 0%, var(--ci-green-medium) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ci-white); /* White icon color */
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-card p {
    color: var(--ci-text-medium); /* Grey text on white background */
    line-height: 1.7;
}

/* --- Testimonial section styles --- */
.testimonial-section {
    padding: 5rem 2rem;
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-medium) 0%, var(--ci-green-dark) 100%);
    color: var(--ci-white); /* White text on dark green background */
    text-align: center;
    position: relative;
}

.testimonial-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: rgba(255, 255, 255, 0.15); /* Slightly more transparent white for testimonial card */
    padding: 3rem;
    border-radius: 20px;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.25); /* Slightly more prominent border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Lighter shadow */
    backdrop-filter: blur(8px); /* Slightly less blur */
    margin-bottom: 2rem;
}

.testimonial::before,
.testimonial::after {
    content: '"';
    font-size: 6rem;
    position: absolute;
    opacity: 0.2; /* Lighter opacity */
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.5); /* Lighter quote color */
}

.testimonial::before {
    top: -1rem;
    left: 1rem;
}

.testimonial::after {
    bottom: -3rem;
    right: 1rem;
}

.testimonial-attribution {
    font-family: 'Montserrat', sans-serif; /* Use heading font for attribution */
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ci-white); /* White text */
    opacity: 0.0; /* This line is removed in HTML, setting opacity to 0 just in case */
    margin-top: -1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Lighter text shadow */
}

/* --- Contact section styles (Enhanced) --- */
.contact-section {
    padding: 5rem 2rem;
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-medium) 0%, var(--ci-green-dark) 100%);
    color: var(--ci-white); /* White text on dark green background */
    text-align: center;
    /* Enhancements for standing out */
    border-top: 8px solid var(--ci-green-light); /* A prominent top border using new lighter green */
    box-shadow: 0 -15px 30px rgba(0,0,0,0.2); /* Lighter shadow to lift it */
    position: relative; /* Ensure shadow works */
    z-index: 1; /* Ensure it's above other elements if needed */
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for paragraph */
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Increased gap for icon spacing */
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item i {
    font-size: 1.5rem; /* Make icons slightly larger */
    color: var(--ci-white); /* Ensure icon color is white */
}

.contact-item a {
    color: var(--ci-white); /* White links on dark green background */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background: var(--ci-white); /* White button background */
    color: var(--ci-green-dark); /* Updated to dark green text on white button */
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Lighter shadow */
}

/* --- New Intro Statement Section --- */
.intro-statement {
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-lightest) 0%, var(--ci-green-lighter) 100%);
    padding: 5rem 2rem;
    text-align: center;
    border-bottom: 5px solid var(--ci-green-dark); /* Updated to dark green border */
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.03); /* Very light shadow */
}

.intro-statement .intro-heading {
    font-size: 2.8rem;
    color: var(--ci-green-dark); /* Updated to dark green */
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.intro-statement .intro-text {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
    color: var(--ci-text-dark); /* Using your default dark text color */
    line-height: 1.7;
}

.intro-statement .intro-cta {
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-light) 0%, var(--ci-green-medium) 100%);
    color: var(--ci-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Updated box-shadow color to reflect new palette */
    box-shadow: 0 10px 20px rgba(107, 158, 136, 0.3);
}

.intro-statement .intro-cta:hover {
    transform: translateY(-3px);
    /* Updated box-shadow color to reflect new palette */
    box-shadow: 0 15px 30px rgba(107, 158, 136, 0.4);
}

/* --- New "Who Can I Help?" Section Styles --- */
.who-can-help-section {
    padding: 5rem 2rem;
    background: var(--ci-white); /* White background for contrast */
    text-align: center;
}

.who-can-help-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--ci-green-dark); /* Updated to dark green */
    font-weight: 700;
}

.profession-buttons-grid {
    display: flex; /* Use flexbox for wrapping buttons */
    flex-wrap: wrap;
    justify-content: center; /* Center buttons */
    gap: 1.2rem; /* Space between buttons */
    max-width: 1000px; /* Constrain width */
    margin: 0 auto; /* Center the grid */
}

.profession-button {
    display: inline-block; /* Make them act like buttons */
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-light) 0%, var(--ci-green-medium) 100%);
    color: var(--ci-white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px; /* Rounded pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Lighter shadow */
    white-space: nowrap; /* Prevent text wrapping inside button */
}

.profession-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Lighter shadow on hover */
    /* Updated background to new lighter green on hover */
    background: linear-gradient(135deg, var(--ci-green-lighter) 0%, var(--ci-green-light) 100%);
}


/* --- Footer Styles --- */
.site-footer {
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-medium) 0%, var(--ci-green-dark) 100%);
    color: var(--ci-white);
    text-align: center;
    padding: 3rem 2rem; /* Ample padding */
    font-size: 0.95rem;
    line-height: 1.6;
}

.site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer p {
    margin-bottom: 0.5em; /* Tighter spacing for footer paragraphs */
    color: rgba(255, 255, 255, 0.8); /* Slightly subdued white for text */
}

.site-footer p:last-child {
    margin-bottom: 0; /* Remove margin from last paragraph */
}

/* --- Sticky CTA Button in Footer --- */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-medium) 0%, var(--ci-green-dark) 100%);
    color: var(--ci-white);
    padding: 15px 30px; /* Larger padding for prominence */
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 700; /* Bolder text */
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Lighter shadow */
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-cta:hover {
    transform: translateY(-5px); /* Lift on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3); /* Lighter shadow on hover */
}

/* --- FAQ Page Specific Styles --- */
#faq-hero.small-hero {
    /* Updated background to new lighter green gradient */
    background: linear-gradient(135deg, var(--ci-green-lightest) 0%, var(--ci-green-lighter) 100%);
    padding: 4rem 2rem; /* Smaller padding than main hero */
    text-align: center;
    border-bottom: 5px solid var(--ci-green-dark); /* Subtle separator */
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.02); /* Very light shadow */
}

#faq-hero .hero-title {
    font-size: 2.8rem;
    color: var(--ci-green-dark); /* Dark green for heading */
    margin-bottom: 1rem;
    font-weight: 700;
}

#faq-hero .hero-text {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--ci-text-dark);
    line-height: 1.7;
}

#faq-content {
    padding: 5rem 2rem;
    background: var(--ci-white); /* White background for FAQ content */
}

#faq-content .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--ci-green-dark); /* Dark green for heading */
    font-weight: 700;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--ci-green-lighter); /* Light green border */
    border-radius: 10px;
    overflow: hidden; /* Ensures rounded corners apply to items */
}

.faq-item {
    border-bottom: 1px solid var(--ci-green-lighter); /* Separator between items */
}

.faq-item:last-child {
    border-bottom: none; /* No border on the last item */
}

.faq-question {
    background: var(--ci-green-lightest); /* Very light green background */
    color: var(--ci-green-dark); /* Dark green text */
    padding: 1.2rem 1.5rem;
    width: 100%;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question::after {
    content: '\2b'; /* Plus sign */
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-question.active {
    background-color: var(--ci-green-lighter); /* Lighter green when active */
}

.faq-question.active::after {
    content: '\2212'; /* Minus sign */
    transform: rotate(180deg); /* Optional: rotate for visual effect */
}

.faq-answer {
    background-color: var(--ci-white); /* White background for answer */
    padding: 0 1.5rem;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
    padding: 1rem 0; /* Padding for the text inside the answer */
    color: var(--ci-text-medium);
    line-height: 1.6;
}

.faq-answer.open {
    max-height: 500px; /* Adjust as needed for content height */
    padding: 1.2rem 1.5rem; /* Restore padding when open */
}


/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem; /* Adjusted for mobile */
    }
    
    .header .tagline {
        font-size: 1.2rem; /* Adjusted for mobile */
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .profile-grid {
        grid-template-columns: 1fr; /* Stack image and text on mobile */
        gap: 2rem;
    }
    .profile-image-container {
        order: -1; /* Place image above text on mobile */
        margin-bottom: 2rem; /* Add space below image */
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container {
        margin: 1rem;
        border-radius: 10px;
    }

    .intro-statement {
        padding: 3rem 1.5rem;
    }
    .intro-statement .intro-heading {
        font-size: 2rem;
    }
    .intro-statement .intro-text {
        font-size: 1rem;
    }

    .profile-section, .services-section, .testimonial-section, .contact-section, .who-can-help-section, #faq-content {
        padding: 3rem 1.5rem;
    }

    .site-footer {
        padding: 2rem 1rem;
    }

    .under-construction-banner {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    .profession-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    .sticky-cta {
        bottom: 15px;
        right: 15px;
        padding: 12px 25px;
        font-size: 1rem;
    }
    #faq-hero.small-hero {
        padding: 3rem 1.5rem;
    }
    #faq-hero .hero-title {
        font-size: 2rem;
    }
    #faq-hero .hero-text {
        font-size: 1rem;
    }
    .faq-question {
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }
    .faq-answer p {
        padding: 0.8rem 0;
    }
}
