/* 
   TinyTrails Montessori - Design System 
   Theme: Nature, Montessori, Ease, Playfulness
*/

:root {
    /* Color Palette */
    --clr-sage: #8BA896;
    --clr-sage-light: #A3C4B0;
    --clr-sage-dark: #6C8575;

    --clr-terracotta: #DFA06F;
    --clr-terracotta-light: #F2BFA0;

    --clr-mustard: #E6BE6D;

    --clr-cream: #FDFBF7;
    --clr-white: #FFFFFF;

    --clr-text-main: #2C3E50;
    --clr-text-light: #5D6D7E;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --banner-height: 40px;
    --section-spacing: 4rem;
    --radius-soft: 12px;
    --radius-pill: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.05);
    --shadow-md: 0 8px 24px rgba(44, 62, 80, 0.08);
    --shadow-hover: 0 12px 32px rgba(44, 62, 80, 0.12);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-cream);
    color: var(--clr-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-soft);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-sage-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-light);
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
    /* For decorative shapes */
}

.text-center {
    text-align: center;
}

.text-terracotta {
    color: var(--clr-terracotta);
}

.bg-sage {
    background-color: var(--clr-sage-light);
}

.bg-cream {
    background-color: var(--clr-cream);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: var(--clr-terracotta);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: #d3915e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--clr-sage);
    color: var(--clr-white);
}

.btn-secondary:hover {
    background-color: var(--clr-sage-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Header & Nav */
header {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    height: auto;
    min-height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.announcement-bar {
    background-color: var(--clr-terracotta);
    color: var(--clr-white);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    height: var(--banner-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    min-height: 100px;
    /* Increased for larger logo */
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px !important;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Removed the "outer round" styling (border, background, padding, border-radius) */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15));
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
    justify-content: center;
}

.logo-title {
    font-family: var(--font-body);
    /* Matching menu font family (Inter) */
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--clr-sage-dark);
    /* Dark Green like Montessori */
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-title .highlight {
    color: var(--clr-terracotta);
    /* Orange like Trails */
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    /* Slight increase for readability */
    color: var(--clr-text-light);
    /* Dark/Greyish */
    font-weight: 400;
    /* Lighter weight for caption look */
    margin-top: 0;
    margin-left: 3.5rem;
    /* approximate width of 'Tiny' to align with 'Trails' */
    font-style: italic;
    /* Caption style */
    display: block;
    /* Ensure it takes its own line */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--clr-text-main);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-terracotta);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--clr-sage-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + var(--banner-height) + 2rem);
    padding-bottom: 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--clr-cream) 0%, #F5F0E6 100%);
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 span {
    color: var(--clr-sage);
    position: relative;
}

/* Decoration Curves */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider .shape-fill {
    fill: var(--clr-white);
}

/* Feature Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--clr-white);
    padding: 2.5rem;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--clr-mustard);
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--clr-sage-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--clr-sage-dark);
}

/* Footer */
footer {
    background-color: var(--clr-sage-dark);
    color: var(--clr-cream);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--clr-mustard);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--clr-mustard);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-container {
        min-height: 70px;
    }

    .logo-img {
        height: 60px !important;
    }

    .logo-text-group {
        margin-left: 0.5rem;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .logo-tagline {
        font-size: 0.75rem;
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        padding-left: 1rem;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: var(--clr-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .card-icon {
        margin-bottom: 0;
        min-width: 50px;
        min-height: 50px;
        width: 50px;
        height: 50px;
    }
    
    .card h3 {
        margin-bottom: 0;
        text-align: left;
    }
}

/* Page Header (Internal Pages) */
.page-header {
    background-color: var(--clr-sage-light);
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    text-align: center;
    position: relative;
    border-radius: 0 0 50% 50% / 20px;
}

.page-header h1 {
    color: var(--clr-white);
    margin: 0;
}

.page-header p {
    color: var(--clr-sage-dark);
    font-weight: 500;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.team-member-img {
    width: 180px;
    height: 180px;
    background-color: var(--clr-cream);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 5px solid var(--clr-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Content Layout */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .content-split {
        grid-template-columns: 1fr;
    }
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-soft);
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
}

/* Contact Form */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--clr-terracotta);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--clr-sage-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-sage);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-card {
    background: var(--clr-white);
    padding: 2rem;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Founder Section - Added for About Page */
.founder-profile {
    background: var(--clr-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.founder-badges {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.founder-badges .badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    color: var(--clr-white);
    font-weight: 500;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.founder-badges .badge-cert {
    background: var(--clr-sage);
}

.founder-badges .badge-exp {
    background: var(--clr-terracotta);
}

.founder-quote {
    background: var(--clr-cream);
    padding: 1.5rem;
    border-radius: var(--radius-soft);
    border-left: 4px solid var(--clr-terracotta);
    text-align: left;
    margin-top: 1.5rem;
}

.founder-bio h3 {
    color: var(--clr-sage-dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.founder-bio p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: var(--clr-text-main);
}

.montessori-banner {
    margin-top: 5rem;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--clr-sage-light) 0%, var(--clr-sage) 100%);
    border-radius: var(--radius-soft);
    position: relative;
    overflow: hidden;
    color: var(--clr-white);
    box-shadow: var(--shadow-md);
}

.montessori-banner h3 {
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.montessori-banner p {
    color: var(--clr-white);
    position: relative;
    z-index: 2;
}

.deco-circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.deco-1 {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
}

.deco-2 {
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
}

.deco-3 {
    bottom: 20%;
    right: 20%;
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .content-split.founder-layout {
        grid-template-columns: 1fr;
    }

    .founder-profile {
        position: static;
        max-width: 500px;
        margin: 0 auto 3rem;
    }
}


.founder-quote p {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
}

.founder-quote p:last-child {
    font-weight: 700;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--clr-sage-dark);
    margin-bottom: 0;
}

/* Compact Layout for About Page - Added for Compact View */
.compact-section {
    padding: 1rem 0 3rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.founder-sidebar {
    background: var(--clr-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.profile-img-small {
    width: 160px !important;
    height: 160px !important;
    margin-bottom: 1rem;
    font-size: 4rem;
    border: 4px solid var(--clr-terracotta);
}

.intro-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--clr-sage-light);
}

.bio-block h3 {
    color: var(--clr-sage-dark);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.bio-block p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.mini-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mini-card {
    background: var(--clr-cream);
    padding: 1rem;
    border-radius: var(--radius-soft);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mini-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.mini-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--clr-sage-dark);
}

.mini-card p {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.quote-small {
    font-size: 0.9rem;
    padding: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .founder-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}


/* Accordion Styles - Added for Redesign */
.about-accordions {
    margin-bottom: 2rem;
    border-radius: var(--radius-soft);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--clr-white);
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: var(--clr-white);
    padding: 1rem 1.5rem;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-sage-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: var(--clr-cream);
}

.accordion-header .icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--clr-terracotta);
    transition: transform 0.3s ease;
}

.accordion-header.active {
    background: var(--clr-sage-light);
    color: var(--clr-white);
}

.accordion-header.active .icon {
    color: var(--clr-white);
    transform: rotate(45deg);
    /* Turn + into x */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--clr-white);
    padding: 0 1.5rem;
}

.accordion-content p {
    margin: 1rem 0;
    font-size: 0.95rem;
    color: var(--clr-text-main);
}