/* ============================================================
   Children of Life MDO — Stylesheet
   ============================================================ */

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

:root {
    --coral:       #E8756A;
    --coral-dark:  #C9574C;
    --coral-light: #FDECEA;
    --sage:        #6A9B7E;
    --sage-dark:   #4E7D62;
    --sage-light:  #EBF4EF;
    --gold:        #D4A017;
    --gold-light:  #FDF5DC;
    --cream:       #FDF8F4;
    --dark:        #2D3142;
    --mid:         #5C6278;
    --muted:       #8E92A4;
    --border:      #E5E1DC;
    --white:       #FFFFFF;

    --radius-sm:   0.5rem;
    --radius-md:   0.875rem;
    --radius-lg:   1.25rem;
    --shadow-sm:   0 1px 8px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 2rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
    white-space: nowrap;
}

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

.btn-coral {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}
.btn-coral:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--coral);
    border-color: var(--coral);
}
.btn-outline:hover {
    background: var(--coral);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-1px);
}


/* ============================================================
   BACKGROUNDS
   ============================================================ */
.bg-cream       { background: var(--cream); }
.bg-sage-light  { background: var(--sage-light); }
.bg-coral-light { background: var(--coral-light); }
.bg-coral-light-inner { background: var(--coral-light); }

.bg-coral-light-tag { background: var(--coral-light); color: var(--coral); }
.bg-sage-light-tag  { background: var(--sage-light);  color: var(--sage);  }
.bg-gold-light-tag  { background: var(--gold-light);  color: var(--gold);  }


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1.5px solid var(--border);
    padding: 0.875rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.logo-leaf {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--coral);
}

.logo-sub {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--mid);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.main-nav a:hover { color: var(--coral); }
.main-nav .btn-coral,
.main-nav .btn-coral:hover { color: var(--white); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 88vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 34, 50, 0.55) 0%,
        rgba(30, 34, 50, 0.3) 60%,
        rgba(30, 34, 50, 0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 2rem 1.5rem;
    max-width: 720px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
    margin-bottom: 1.1rem;
}

.hero-contact-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
    transition: color 0.2s;
}

.hero-contact-link:hover {
    color: #fff;
}


/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 5rem 0; }

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3.5rem;
}

.section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 0.65rem;
}

.section-head p {
    color: var(--mid);
    font-size: 1rem;
}


/* ============================================================
   FEATURE CARDS (About)
   ============================================================ */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.feature-icon svg { width: 26px; height: 26px; }

.bg-coral-light { background: var(--coral-light); }
.bg-sage-light  { background: var(--sage-light); }
.bg-gold-light  { background: var(--gold-light); }

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--mid);
    font-size: 0.92rem;
}


/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule-wrap { max-width: 860px; margin: 0 auto; }

.day-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.day-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.4rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.day-card.open {
    border-color: var(--sage);
}

.day-card.closed {
    opacity: 0.45;
}

.day-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--dark);
}

.day-card.open .day-name { color: var(--sage-dark); }

.day-hours {
    font-size: 0.78rem;
    color: var(--mid);
}

.day-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.6rem;
    border-radius: 2rem;
}

.day-card.open  .day-badge { background: var(--sage-light); color: var(--sage-dark); }
.day-card.closed .day-badge { background: var(--border);     color: var(--muted); }

.schedule-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--mid);
    box-shadow: var(--shadow-sm);
}

.schedule-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.1rem; }


/* ============================================================
   RATES
   ============================================================ */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}

.rate-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.rate-card.rate-featured {
    border: 2.5px solid var(--coral);
    box-shadow: 0 8px 30px rgba(232, 117, 106, 0.18);
}

.featured-badge {
    position: absolute;
    top: -0.8rem;
    background: var(--coral);
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.9rem;
    border-radius: 2rem;
}

.rate-card h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.rate-price {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--coral);
    margin-bottom: 1.4rem;
    line-height: 1;
}

.rate-price span {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 600;
}

.rate-list {
    list-style: none;
    width: 100%;
    text-align: left;
    margin-bottom: 1.75rem;
}

.rate-list li {
    padding: 0.45rem 0;
    font-size: 0.88rem;
    color: var(--mid);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



/* ============================================================
   AGE GROUP LABELS (Rates)
   ============================================================ */
.rates-age-group {
    margin-bottom: 3rem;
}

.age-group-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border);
}

.age-group-label span:first-child {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--dark);
}

.age-range {
    display: inline-block;
    background: var(--sage-light);
    color: var(--sage-dark);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    padding: 0.2rem 0.7rem;
    border-radius: 2rem;
}

.rates-grid-single {
    max-width: 320px;
}


/* ============================================================
   CONTACT / ENROLL
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-centered {
    max-width: 420px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-item strong {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.5;
}

.contact-item p a {
    color: var(--coral);
    text-decoration: none;
}

.contact-item p a:hover {
    text-decoration: underline;
}

.enroll-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mid);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--cream);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6278' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.25rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232, 117, 106, 0.12);
}

.form-group textarea { resize: vertical; line-height: 1.55; }

.enroll-form .btn { align-self: flex-start; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    padding: 2.75rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-leaf { width: 32px; height: 32px; }

.footer-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--white);
    line-height: 1.1;
}

.footer-tagline {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    transition: color 0.2s;
}

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

.footer-contact { font-size: 0.82rem; }

.footer-copy {
    font-size: 0.72rem;
    opacity: 0.35;
    margin-top: 0.25rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
    .main-nav a:not(.btn-coral) { display: none; }
    .day-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .section { padding: 3.5rem 0; }
    .hero { height: 100svh; min-height: 480px; }
    .day-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .rates-grid { gap: 1.25rem; }
    .hero-actions { flex-direction: column; align-items: center; }
}
