/* ============================================
   Curiosity's Child — Website Stylesheet
   Troy, Michigan | curiosityschild.com
   Brand: Deep green + warm gold + earthy warmth
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Fredoka:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-deep: #3D5A4C;
    --green-mid: #6FA080;
    --green-light: #8FB89F;
    --green-pale: #f0f7ed;
    --gold: #C9A961;
    --gold-light: #e8d5a0;
    --cream: #fdfcf8;
    --warm-white: #faf9f5;
    --text: #2d2d2d;
    --text-light: #5a5a5a;
    --border: #e8e5dd;
    --shadow: rgba(61, 90, 76, 0.08);
    --shadow-hover: rgba(61, 90, 76, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text);
    background: var(--warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px var(--shadow);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-logo span {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    color: var(--green-deep);
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green-deep);
    background: var(--green-pale);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-deep);
    margin: 5px 0;
    transition: var(--transition);
}

/* ---- Hero Section ---- */
.hero {
    background: linear-gradient(135deg, #3D5A4C 0%, #6FA080 50%, #8FB89F 100%);
    color: white;
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
}

.hero .tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 24px;
    position: relative;
}

.hero .subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.85;
    line-height: 1.6;
    position: relative;
}

.hero-btn {
    display: inline-block;
    background: var(--gold);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.hero-btn:hover {
    background: #b8943e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

/* ---- Section Styling ---- */
.section {
    padding: 70px 0;
}

.section-alt {
    background: white;
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 32px;
    color: var(--green-deep);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 45px;
}

/* ---- Cards ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow-hover);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 24px;
}

.card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    color: var(--green-deep);
    margin-bottom: 10px;
}

.card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ---- Two Column Layout ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

.two-col-text h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    color: var(--green-deep);
    margin-bottom: 16px;
}

.two-col-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 15.5px;
}

.two-col-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow);
}

.two-col-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Image placeholder for when photos aren't loaded yet */
.photo-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--green-pale) 0%, #e8f0e4 100%);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--green-mid);
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    gap: 10px;
    border: 2px dashed var(--green-light);
}

.photo-placeholder .icon {
    font-size: 40px;
}

/* ---- Gallery Grid ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all var(--transition);
    aspect-ratio: 4/3;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    padding: 30px 16px 12px;
    font-size: 13px;
    font-family: 'Fredoka', sans-serif;
}

/* ---- Quote / Testimonial ---- */
.quote-block {
    background: white;
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 30px 35px;
    margin: 40px 0;
    box-shadow: 0 4px 15px var(--shadow);
}

.quote-block p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--green-deep);
    line-height: 1.6;
    margin-bottom: 12px;
}

.quote-block .attribution {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    font-style: normal;
}

/* ---- Enrolment Info ---- */
.info-box {
    background: var(--green-pale);
    border: 1px solid #d4e6ce;
    border-radius: var(--radius);
    padding: 28px 32px;
    margin: 20px 0;
}

.info-box h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--green-deep);
    font-size: 18px;
    margin-bottom: 12px;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
}

.info-box li::before {
    content: '\2022';
    color: var(--gold);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 3px;
}

/* ---- Contact Form ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--green-deep);
    font-size: 20px;
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-detail .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-detail .text {
    font-size: 15px;
}

.contact-detail .text strong {
    display: block;
    color: var(--green-deep);
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 2px;
}

.contact-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 14px;
    color: var(--green-deep);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    transition: border-color var(--transition);
    background: var(--warm-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(111, 160, 128, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    background: var(--green-deep);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 36px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
}

.form-submit:hover {
    background: var(--green-mid);
    transform: translateY(-2px);
}

/* ---- Footer ---- */
.footer {
    background: var(--green-deep);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 30px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    font-family: 'Fredoka', sans-serif;
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition);
}

.footer a:hover {
    color: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 20px 24px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--gold);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 15px var(--shadow);
    }
    .nav-toggle { display: block; }

    .hero { padding: 50px 20px; }
    .hero h1 { font-size: 32px; }
    .hero .tagline { font-size: 19px; }
    .hero .subtitle { font-size: 16px; }

    .section { padding: 45px 0; }
    .section-title { font-size: 26px; }

    .two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .two-col.reverse { direction: ltr; }

    .card-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .container { padding: 0 16px; }
}

/* ---- Print ---- */
@media print {
    .nav, .footer { display: none; }
    .hero {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 30px;
    }
    .section { padding: 20px 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}
