/* CSS Variables - New Overhauled Palette */
:root {
    --bg-cream: #FDFBF7;
    --sandstone: #E8724F;
    --sage-green: #c2d5b9;
    --teal-blue: #005353;
    --ocean-blue: #1E405A;
    --sandstone-light: #F08B6F;
    --bg-blue-light: #E8EDF0;
    --text-dark: #0F1923;
    --text-body: #2B3A42;
    --white: #FFFFFF;
    --spacing-section: 6rem 10%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-cream);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cardo', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--ocean-blue);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; font-size: 1.1rem; }
a { color: var(--teal-blue); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--sandstone); }
ul { list-style: none; }

.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border: 1px solid var(--sandstone);
    background-color: var(--sandstone);
    color: var(--white) !important;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    cursor: pointer;
}
.btn:hover {
    background-color: var(--sandstone-light);
    border-color: var(--sandstone-light);
    transform: translateY(-4px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
}

/* Navigation */
header {
    background-color: var(--white);
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    height: 90px;
}
.logo-container a { display: flex; flex-direction: column; text-decoration: none; }
.logo { font-family: 'Cardo', serif; font-size: 1.8rem; font-weight: 700; color: var(--ocean-blue); line-height: 1.1; }
.logo-subtitle { font-family: 'Work Sans', sans-serif; font-size: 0.95rem; font-weight: 400; color: var(--text-body); letter-spacing: 0.5px; margin-top: 0.2rem; }

nav ul.main-nav { display: flex; gap: 2.5rem; align-items: center; height: 100%;}
.nav-item { position: relative; padding: 2rem 0; }
.nav-item > a { font-size: 0.95rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; padding-bottom: 4px; color: var(--text-dark);}
.nav-item > a.active { color: var(--sandstone); border-bottom: 2px solid var(--sandstone); }

.dropdown {
    position: absolute; top: 100%; left: -1rem; background: var(--white); box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    display: none; flex-direction: column; min-width: 260px; border-top: 3px solid var(--sandstone); border-radius: 0 0 4px 4px; overflow: hidden; z-index: 1001;
}
.nav-item:hover .dropdown { display: flex; }
.dropdown a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--bg-blue-light); font-size: 0.9rem; color: var(--teal-blue); text-transform: none; font-weight: 400; transition: all 0.2s ease; }
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background-color: var(--bg-blue-light); color: var(--sandstone); padding-left: 1.8rem; }
.hamburger { display: none; cursor: pointer; font-size: 1.8rem; color: var(--teal-blue); user-select: none; }

/* Layout Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.section-padding { padding: var(--spacing-section); }
.text-center { text-align: center; }

/* Full Height & Background Colors */
.full-height-section { min-height: calc(100vh - 90px); display: flex; align-items: center; padding: var(--spacing-section); }
.full-height-content { width: 100%; max-width: 1400px; margin: 0 auto; }
.bg-cream { background-color: var(--bg-cream); color: var(--text-dark); }
.bg-sage { background-color: var(--sage-green); color: var(--text-dark); }
.bg-teal { background-color: var(--teal-blue); color: var(--bg-cream); }
.bg-ocean-blue { background-color: var(--ocean-blue); color: var(--bg-cream); }
.bg-blue-light { background-color: var(--bg-blue-light); color: var(--text-dark); }

.bg-cream h2, .bg-cream h3, .bg-cream h4, .bg-sage h2, .bg-sage h3, .bg-sage h4, .bg-blue-light h2, .bg-blue-light h3, .bg-blue-light h4 { color: var(--ocean-blue); }
.bg-teal h2, .bg-teal h3, .bg-teal h4, .bg-ocean-blue h2, .bg-ocean-blue h3, .bg-ocean-blue h4 { color: var(--white); }
.service-card h3, .tile-card h4, summary { color: var(--ocean-blue) !important; }
.service-card p, .tile-card p, details p, .accordion-content p { color: var(--text-body) !important; }

/* Heroes */
.hero {
    min-height: calc(100vh - 90px);
    background: linear-gradient(rgba(40, 100, 150, 0.4), rgba(20, 60, 90, 0.65)), url('images/hero-bg.jpg') center/cover no-repeat;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 0 10%;
}
.hero h1 { color: var(--white); font-size: 4.5rem; margin-bottom: 1rem; line-height: 1.1; max-width: 1000px;}
.hero h3 { font-family: 'Work Sans', sans-serif; color: var(--bg-cream); font-weight: 300; font-size: 1.35rem; margin-bottom: 2rem; line-height: 1.6;}
.inner-hero { background-color: var(--ocean-blue); color: var(--white); padding: 3.5rem 10% 2.5rem 10%; text-align: center; }
.inner-hero h1 { margin-bottom: 0.5rem; font-size: 3rem; color: var(--white); }
.inner-hero p { margin-bottom: 0; font-size: 1.15rem; color: var(--bg-blue-light); }

/* Quotes */
.quote-block blockquote { font-family: 'Cardo', serif; font-style: italic; font-size: 2.2rem; color: var(--bg-cream); max-width: 1200px; margin: 0 auto 2rem auto; line-height: 1.5; }
.quote-block cite { font-family: 'Work Sans', sans-serif; font-size: 1.1rem; color: var(--sandstone-light); font-style: normal; letter-spacing: 2px; text-transform: uppercase; }

/* Home Services Grid */
.intro-img { background: url('images/intro-approach.jpg') center/cover no-repeat; min-height: 500px; border-radius: 4px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.service-card { background-color: var(--white); padding: 3rem 2rem; text-align: center; border-top: 4px solid var(--sandstone); border-radius: 4px; box-shadow: 0 5px 25px rgba(0,0,0,0.04); transition: transform 0.3s ease; display: flex; flex-direction: column; align-items: center; text-decoration: none;}
.service-card:hover { transform: translateY(-8px); border-color: var(--sandstone-light); }
.service-card h3 { font-size: 1.5rem; min-height: 5rem; display: flex; align-items: flex-start; justify-content: center; margin-bottom: 0.5rem; width: 100%;}
.service-card p { font-size: 1rem; margin-bottom: 0; }

/* Inner Service Layout */
.service-header-top { text-align: center; font-size: 3rem; margin-bottom: 4rem; position: relative; }
.service-header-top::after { content: ''; display: block; width: 250px; height: 3px; background: var(--sandstone); margin: 1.5rem auto 0 auto; }
.service-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; max-width: 1400px; margin: 0 auto; }
.service-layout.flip .img-col { order: 2; }
.img-col { position: sticky; top: 120px; width: 100%; }
.service-img { width: 100%; height: 550px; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.tile-card { background: var(--white); padding: 2.2rem; border-radius: 4px; margin-bottom: 1.5rem; border-left: 4px solid var(--sandstone); }

/* Accordions */
details { background: var(--white); margin-bottom: 1rem; border: 1px solid var(--ocean-blue); border-radius: 4px; overflow: hidden; }
summary { font-family: 'Cardo', serif; font-size: 1.3rem; padding: 1.5rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: var(--white); transition: background 0.3s ease; }
summary:hover { background: var(--bg-blue-light); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: 'Work Sans', sans-serif; font-size: 1.5rem; color: var(--sandstone); }
details[open] summary { border-bottom: 1px solid var(--ocean-blue); }
details[open] summary::after { content: '-'; }
.accordion-content { padding: 1.5rem; font-size: 1.05rem; background: var(--white); }
.course-meta { font-size: 0.95rem; color: var(--sandstone); font-weight: 600; display: block; margin-top: 1rem; text-transform: uppercase; letter-spacing: 1px; }

/* About Page & Timeline */
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cred-card { background: var(--white); padding: 1.5rem; border-left: 4px solid var(--sandstone); border-radius: 4px; margin-bottom: 1.5rem; }
.cred-card h4 { color: var(--ocean-blue); margin-bottom: 0.3rem; font-size: 1.2rem; font-family: 'Work Sans', sans-serif; font-weight: 600; }
.timeline { position: relative; max-width: 1400px; margin: 0 auto; padding-left: 3rem; }
.timeline::before { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 2px; background: var(--ocean-blue); }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-item::before { content: ''; position: absolute; top: 0.4rem; left: calc(-3rem - 9px); width: 20px; height: 20px; border-radius: 50%; background-color: var(--white); border: 3px solid var(--ocean-blue); z-index: 1; }
.timeline-item-content { display: grid; grid-template-columns: 1fr 220px; gap: 2rem; align-items: start; }
.timeline-title { font-size: 1.35rem; color: var(--ocean-blue); margin-bottom: 0.5rem; font-family: 'Cardo', serif; font-weight: 700; }
.timeline-details { font-size: 1rem; color: var(--text-body); line-height: 1.8; }
.teacher-highlight { display: block; color: var(--sandstone); margin-top: 0.3rem; font-size: 0.95rem; }
.teacher-highlight strong { color: var(--sandstone); font-weight: 700; }
.timeline-date { font-family: 'Cardo', serif; font-size: 1.2rem; color: var(--ocean-blue); font-weight: 700; text-align: right; }

/* Contact Triptych */
.triptych-container { display: grid; grid-template-columns: repeat(3, 1fr); min-height: calc(100vh - 90px); width: 100%; }
.triptych-col { padding: 6rem 4rem; display: flex; flex-direction: column; justify-content: flex-start; }

/* Footer */
footer { background-color: var(--ocean-blue); color: var(--bg-cream); padding: 5rem 10% 2rem 10%; }
footer a { color: var(--sandstone-light); text-decoration: underline; }
footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand h2 { color: var(--white); margin-bottom: 0.2rem; font-size: 1.8rem;}
.footer-brand p { font-size: 1rem; margin-bottom: 0; }
.footer-emergency { font-size: 0.95rem; border-left: 3px solid var(--sandstone); padding-left: 1.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.9rem; }
.footer-links { display: flex; gap: 2rem; }

/* Animation */
.reveal-text { opacity: 0; transform: translateY(12px); transition: opacity 0.9s cubic-bezier(0.33, 1, 0.68, 1), transform 0.9s cubic-bezier(0.33, 1, 0.68, 1); will-change: opacity, transform; }
.reveal-text.is-revealed { opacity: 1; transform: translateY(0); }

/* Responsive Design */
@media (max-width: 1100px) {
    .triptych-container { grid-template-columns: 1fr; }
    .triptych-col { padding: 4rem 10%; }
}

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4, .service-layout { grid-template-columns: 1fr; gap: 2rem; }
    .service-layout.flip .img-col { order: 0; }
    .img-col { position: relative; top: 0; }
    .service-img { height: 400px; }
    .service-header-top { font-size: 2.2rem; }
    .cred-grid { grid-template-columns: 1fr; }
    .timeline-item-content { grid-template-columns: 1fr; gap: 0.5rem; }
    .timeline-date { text-align: left; padding-top: 0; margin-bottom: 0.5rem;}
    .hero h1 { font-size: 3.2rem; }
    .quote-block blockquote { font-size: 1.6rem; }
    .intro-img { min-height: 350px; order: -1; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    
    /* Elegant Mobile Menu Overhaul */
    .hamburger { display: block; }
    nav ul.main-nav {
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 90px; 
        left: 0; 
        width: 100%; 
        height: auto; 
        background-color: var(--white); 
        padding: 2rem 10%; 
        box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
        align-items: flex-start; 
        gap: 1.5rem; 
        z-index: 9999;
        border-top: 1px solid var(--bg-blue-light);
    }
    nav ul.main-nav.show { display: flex !important; }
    .nav-item { padding: 0; width: 100%; }
    .nav-item > a { font-size: 1.1rem; display: block; padding: 0.5rem 0; width: 100%; }
    .dropdown { display: none !important; }
}

/* Fix for Logo Text Spilling on Small Phones */
@media (max-width: 450px) {
    .logo { font-size: 1.3rem; }
    .logo-subtitle { font-size: 0.8rem; }
}