/* --- regularisation.co.uk | Asplan Dark Aesthetic --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #000000; /* Pure Black Background */
    --secondary-color: #121212; /* Section separation */
    --accent-color: #D62828; /* Asplan Red */
    --text-main: #FFFFFF;
    --text-light: #A0A0A0;
    --white: #FFFFFF;
    --transition-speed: 0.4s;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* --- Global Reset & Scroll Lock --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Removed html from here to protect sticky header */
body {
    max-width: 100%;
    overflow-x: hidden; /* Locks horizontal scroll for mobile */
    background-color: var(--primary-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    font-weight: 300;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--primary-color);
    padding: 25px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color);
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color var(--transition-speed);
}

nav a:hover {
    color: var(--accent-color);
}

/* Click-to-Call specific styling */
.nav-phone {
    font-weight: 700;
    color: var(--white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-phone:hover {
    color: var(--accent-color);
    transform: scale(1.05); /* Slight pop-out effect on hover */
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    padding: 140px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

/* --- Informative / Authority Sections --- */
.info-section, .authority-section {
    padding: 100px 0;
    border-top: 1px solid #222;
}

.accent-title {
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.lead-text {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.authority-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.usp-item strong {
    color: var(--accent-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* --- Cards & Process --- */
.services, .process-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.card-grid, .process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card, .process-step {
    background: var(--primary-color);
    padding: 50px 40px;
    border: 1px solid #333;
    transition: all var(--transition-speed);
}

.card:hover, .process-step:hover {
    border-color: var(--accent-color);
}

/* --- Fees Section --- */
.fees-section {
    padding: 120px 0;
    background-color: var(--primary-color);
    border-top: 1px solid #222;
}

.fees-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.fee-card {
    background-color: var(--secondary-color);
    border: 1px solid #333;
    padding: 50px;
    position: relative;
    transition: var(--transition-speed);
}

.fee-card:hover {
    border-color: var(--accent-color);
}

.fee-header h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
}

.fee-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 15px;
    margin-bottom: 30px;
}

.fee-features {
    list-style: none;
    margin-top: 30px;
}

.fee-features li {
    color: var(--text-light);
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.fee-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.fee-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.fee-footer p {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-light);
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
    border-top: 1px solid #222;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--primary-color);
    border: 1px solid #333;
    margin-bottom: 15px;
    transition: var(--transition-speed);
}

.faq-item:hover {
    border-color: var(--accent-color);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 30px;
    background-color: #0a0a0a;
}

.faq-answer p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Active State for Accordion */
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 30px 30px 30px;
    border-top: 1px solid #222;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* --- Triage Form --- */
.triage-section {
    padding: 100px 0;
    text-align: center;
}

#interactive-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 50px;
    background: var(--secondary-color);
    border: 1px solid #333;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
/* --- Footer Accreditations --- */

.accreditation-container {
    display: flex;
    align-items: center;
    justify-content: center; /* This centers the logos */
    gap: 30px; /* Controls the space between the two logos */
    margin-top: 25px;
    width: 100%;
}

.accreditation-container img {
    height: 50px; /* Locks both logos to the exact same height */
    width: auto;  /* Prevents the logos from stretching or squishing */
    filter: brightness(0) invert(1); /* Forces any colored logo to become pure white */
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.accreditation-container a:hover img {
    transform: scale(1.05); /* Slight pop effect when hovered */
    opacity: 1;
}
.site-footer {
    border-top: 1px solid #333;
    padding: 80px 0 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px; /* Pushes it down from the main footer links */
    padding-top: 20px;
    border-top: 1px solid #222; /* Adds a subtle dark line above the copyright */
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-color); /* Turns red when hovered to match the rest of the site */
}

/* =========================================
   --- CONSOLIDATED MOBILE ADJUSTMENTS --- 
   ========================================= */
@media (max-width: 768px) {
    /* Header stacking */
    .site-header .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* FIX: Stack the navigation links neatly so they don't squish */
    nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    /* Center the phone icon and number */
    .nav-phone {
        justify-content: center;
    }

    /* Hero Text Scaling */
    .hero-content h1 { font-size: 2.2rem; }
    
    /* Grid Collapses */
    .authority-grid, 
    .fees-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    /* iOS Form Zoom Fix */
    #interactive-form-container input,
    #interactive-form-container button {
        font-size: 16px !important;
        padding: 15px;
    }
}