/*
=========================================================
*
* mrcem.uk - Main Stylesheet
* Version: 1.0
*
* COLORS:
* - Primary: #572565 (Deep Purple)
* - Accent:  #d70950 (Vibrant Magenta)
*
=========================================================

    TABLE OF CONTENTS
    ---------------------------
    1.  Global Styles & CSS Variables
    2.  Layout & Container
    3.  Typography
    4.  Buttons & Links
    5.  Header & Navigation
        - Top Bar & Social Links
        - Main Header
        - Mobile Navigation
    6.  Page Sections & Hero
    7.  Component Styles
        - About Page: Team Grid
        - Syllabus Page: Accordion
        - Packages Page: Pricing Table
    8.  Footer
        - Footer Widgets
        - Footer Social Links
        - Footer Bottom
    9.  Responsive Media Queries
        - Tablet (768px and up)
        - Desktop (992px and up)

=========================================================
*/

/* * 1. Global Styles & CSS Variables
 * ----------------------------------------------------- 
 */
:root {
    --primary-color: #572565;
    --secondary-color: #7b4a86;
    --accent-color: #d70950;
    --accent-color-hover: #b80744;
    
    --text-color: #212529;
    --text-light: #495057;
    --background-color: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --footer-bg: #381a40;

    --heading-font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --body-font: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --header-height-mobile: 70px;
    --header-height-desktop: 70px; /* Can be adjusted if top bar is added */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}


/* * 2. Layout & Container
 * ----------------------------------------------------- 
 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* * 3. Typography
 * ----------------------------------------------------- 
 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 0.75em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.7rem; color: var(--secondary-color); }
p { margin-bottom: 1.25rem; }
p.lead { font-size: 1.2rem; color: var(--text-light); }
ul, ol { padding-left: 20px; margin-bottom: 1.25rem; }
ul li, ol li { margin-bottom: 0.75rem; }


/* * 4. Buttons & Links
 * ----------------------------------------------------- 
 */
a { 
    color: var(--accent-color); 
    text-decoration: none; 
    transition: color 0.3s ease; 
}
a:hover { 
    color: var(--accent-color-hover); 
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--heading-font);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary { 
    background-color: var(--accent-color); 
    color: white; 
    border-color: var(--accent-color); 
}
.btn-primary:hover { 
    background-color: var(--accent-color-hover); 
    border-color: var(--accent-color-hover); 
}
.btn-secondary { 
    background-color: transparent; 
    color: var(--primary-color); 
    border: 2px solid var(--primary-color); 
}
.btn-secondary:hover { 
    background-color: var(--primary-color); 
    color: white; 
}


/* * 5. Header & Navigation
 * ----------------------------------------------------- 
 */

/* Top Bar */
.header-top-bar {
    background-color: var(--light-gray);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: none; /* Hidden on mobile by default */
}
.header-top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.social-links-header {
    display: flex;
    align-items: center;
    gap: 15px;
}
.social-links-header a {
    display: inline-block;
    line-height: 0;
}
.social-links-header svg {
    height: 18px;
    width: 18px;
    fill: var(--text-light);
    transition: fill 0.3s ease;
}
.social-links-header a:hover svg {
    fill: var(--primary-color);
}

/* Main Header */
.site-header {
    background: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: var(--header-height-mobile);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 45px;
    width: auto;
}

/* Main Navigation (Desktop) - hidden on mobile */
.main-navigation {
    display: none;
}
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}
.main-navigation a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.main-navigation a:hover, 
.main-navigation a.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}
.header-actions {
    display: none; /* Hidden on mobile */
    gap: 10px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}
.mobile-menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s;
}
/* Mobile Flyout Menu */
#main-nav.is-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height-mobile);
    left: 0;
    width: 100%;
    background: var(--background-color);
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
}
#main-nav.is-active ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
}
#main-nav.is-active li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
#main-nav.is-active a {
    display: block;
    padding: 15px;
}
/* Mobile Social Links */
.mobile-social-links {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.mobile-social-links svg {
    height: 24px;
    width: 24px;
    fill: var(--text-light);
}


/* * 6. Page Sections & Hero
 * ----------------------------------------------------- 
 */
.site-main {
    padding-top: var(--header-height-mobile); /* Push content below fixed header */
}
.page-section {
    padding: 60px 0;
}
.page-section.bg-light {
    background-color: var(--light-gray);
}
.hero {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
}
.hero h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 0.5em;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}


/* * 7. Component Styles
 * ----------------------------------------------------- 
 */

/* About Page: Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.team-member-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Syllabus Page: Accordion */
.accordion-trigger {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    margin-top: 10px;
}
.accordion-trigger:hover { background-color: #e9ecef; }
.accordion-trigger::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}
.accordion-trigger.active::after { transform: rotate(45deg); }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: white;
    padding: 0 20px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 5px 5px;
}
.accordion-content .content-inner { padding: 20px 0; }
.accordion-content ul { list-style-type: '» '; padding-left: 20px; }

/* Packages Page: Pricing Table */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    align-items: stretch; /* Make cards same height */
}
.pricing-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.pricing-card h3 { font-size: 1.5rem; color: var(--primary-color); }
.price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}
.price span { font-size: 1rem; color: var(--text-light); }
.pricing-card p { color: var(--text-light); flex-grow: 1; } /* Allows cards to align buttons */
.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}
.features-list li { display: flex; align-items: center; margin-bottom: 12px; }
.features-list li::before {
    content: '✔';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
}
.pricing-card.highlight {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}
.popular-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}


/* * 8. Footer
 * ----------------------------------------------------- 
 */
.site-footer {
    background-color: var(--footer-bg);
    color: #ecf0f1;
    padding: 50px 0 20px 0;
}
.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.widget-title { color: white; margin-bottom: 20px; font-size: 1.2rem; }
.widget p, .widget a { color: #bdc3c7; }
.widget ul { list-style: none; padding: 0; }
.widget a:hover { color: white; }
.social-links-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.social-links-footer a { display: inline-block; line-height: 0; }
.social-links-footer svg {
    height: 28px;
    width: 28px;
    fill: #bdc3c7;
    transition: fill 0.3s ease, transform 0.3s ease;
}
.social-links-footer a:hover svg {
    fill: white;
    transform: scale(1.1);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--primary-color);
    padding-top: 20px;
    font-size: 0.9em;
    color: #bdc3c7;
}


/* * 9. Responsive Media Queries
 * ----------------------------------------------------- 
 */

/* Tablet (iPad) Styles - 768px and up */
@media (min-width: 768px) {
    .site-main {
        padding-top: var(--header-height-desktop);
    }
    .header-top-bar {
        display: block; /* Show top bar */
    }
    .site-header {
        top: 37px; /* Position below top bar, adjust as needed */
    }
    .mobile-menu-toggle {
        display: none; /* Hide hamburger */
    }
    .main-navigation {
        display: flex; /* Show desktop nav */
    }
    .header-actions {
        display: flex;
    }
    .mobile-social-links {
        display: none; /* Hide mobile social links */
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Desktop Styles - 992px and up */
@media (min-width: 992px) {
    .hero { padding: 120px 0; }
    h1 { font-size: 3.2rem; }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .pricing-card.highlight {
        /* Make highlighted card taller on desktop */
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}