/* ============================================
   KAIDA CHILDCARE - MAIN STYLESHEET
   Clean, accessible, performance optimized
   ============================================ */

/* ===== CSS RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, picture { max-width: 100%; display: block; height: auto; }
input, button, textarea, select { font: inherit; }
button { background: none; border: none; cursor: pointer; color: inherit; }
a { color: inherit; }
ul { list-style: none; }

/* ===== DESIGN TOKENS ===== */
:root {
    --color-teal: #4FB3B5;
    --color-teal-dark: #3a8f91;
    --color-yellow: #F5C544;
    --color-cyan: #7FD4DE;
    --color-orange: #F39C5F;
    --color-pink: #F0858F;

    --color-text: #2d3a4a;
    --color-text-light: #5a6878;
    --color-bg: #ffffff;
    --color-bg-soft: #f8fafc;
    --color-border: #e2e8f0;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    --font-display: 'Nunito', system-ui, sans-serif;
    --font-body: 'Quicksand', system-ui, sans-serif;

    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}

/* ===== BASE TYPOGRAPHY ===== */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: var(--space-sm); }

a { text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-teal-dark); }

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

main > section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-sub {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-teal);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 179, 181, 0.3);
}

.btn-primary:hover {
    background: var(--color-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 179, 181, 0.4);
    color: white;
}

.btn-large {
    padding: 1.1rem 2.25rem;
    font-size: 1.1rem;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: var(--space-md);
}

.main-nav a {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text);
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-teal);
    transition: width 0.2s;
}

.main-nav a:hover::after { width: 100%; }

.header-cta {
    margin-left: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #fff7ec 0%, #e8f7f8 100%);
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-location {
    color: var(--color-teal-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.hero h1 {
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

/* ===== VALUE PROPS ===== */
.value-props {
    background: var(--color-bg);
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.prop-card {
    background: var(--color-bg-soft);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-top: 4px solid var(--color-teal);
    transition: transform 0.2s, box-shadow 0.2s;
}

.prop-card:nth-child(2) { border-top-color: var(--color-yellow); }
.prop-card:nth-child(3) { border-top-color: var(--color-orange); }

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

.prop-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.prop-card ul li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--color-text-light);
}

.prop-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-teal);
    font-weight: 700;
}

.enrolling-banner {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-cyan) 100%);
    color: white;
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.enrolling-banner h2 {
    color: white;
    margin-bottom: var(--space-xs);
    font-size: 2rem;
}

.enrolling-banner p {
    font-size: 1.15rem;
    margin: 0;
}

.enrolling-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--color-bg-soft);
    text-align: center;
}

.about-section .lead {
    max-width: 800px;
    margin: 0 auto var(--space-md);
    font-size: 1.15rem;
    color: var(--color-text-light);
}

.about-section .tagline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-teal-dark);
    margin: 0;
}

/* ===== GALLERY ===== */
.gallery-section {
    background: var(--color-bg);
}

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

.gallery-grid a {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: zoom-in;
    background: var(--color-bg-soft);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid a:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-grid a:hover img {
    transform: scale(1.08);
}

/* ===== CURRICULUM TABS ===== */
.curriculum-section {
    background: var(--color-bg-soft);
}

.curriculum-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.tab-card {
    padding: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    transition: transform 0.2s;
    background: transparent;
    opacity: 0.65;
}

.tab-card:hover {
    transform: translateY(-4px);
    opacity: 1;
}

.tab-card.active {
    opacity: 1;
    transform: translateY(2px);
}

.tab-card img {
    width: 100%;
    height: auto;
    display: block;
}

.curriculum-panel {
    background: var(--color-teal);
    color: white;
    padding: var(--space-lg) var(--space-xl);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.3s ease;
}

.curriculum-panel[hidden] { display: none; }

.curriculum-panel h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.curriculum-list dt {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: var(--space-md);
    margin-bottom: 0.25rem;
}

.curriculum-list dt:first-child { margin-top: 0; }

.curriculum-list dd {
    margin-left: 0;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CONTACT ===== */
.contact-section {
    background: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.info-block {
    margin-bottom: var(--space-md);
}

.info-block h3 {
    color: var(--color-teal-dark);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.info-block a:hover {
    color: var(--color-teal);
}

.map-wrap {
    margin-top: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
    display: block;
}

/* ===== FORM ===== */
.form-wrap {
    background: var(--color-bg-soft);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-wrap h3 {
    margin-bottom: var(--space-md);
    color: var(--color-teal-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.form-group label span {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(79, 179, 181, 0.15);
}

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

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-submit {
    width: 100%;
    margin-top: var(--space-sm);
    position: relative;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-submit.loading .btn-text { opacity: 0.5; }
.btn-submit.loading .btn-spinner { display: inline-block; }
.btn-submit:disabled { cursor: not-allowed; opacity: 0.7; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-message {
    margin-top: var(--space-sm);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: none;
    font-size: 0.95rem;
}

.form-message.success {
    display: block;
    background: #d4f4dd;
    color: #1a6b32;
    border-left: 4px solid #28a745;
}

.form-message.error {
    display: block;
    background: #fde4e4;
    color: #8a1a1a;
    border-left: 4px solid #e74c3c;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 100%);
    color: white;
}

.cta-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.cta-text h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.cta-text p {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.cta-image {
    text-align: center;
}

.cta-image img {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.cta-banner .btn-primary {
    background: white;
    color: var(--color-teal-dark);
    box-shadow: var(--shadow-md);
}

.cta-banner .btn-primary:hover {
    background: var(--color-text);
    color: white;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-text);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul li {
    padding: 0.3rem 0;
}

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

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

.footer-logo {
    margin-bottom: var(--space-sm);
    background: white;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
}

.lic {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-cyan);
}

.footer-col address {
    font-style: normal;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.social-links a:hover {
    background: var(--color-teal);
    transform: translateY(-2px);
}

.social-links img {
    width: 22px;
    height: 22px;
}

.disclaimer {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* ===== FLOATING CTA (mobile) ===== */
.floating-cta {
    display: none;
    position: fixed;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: var(--color-teal);
    color: white;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-display);
    font-weight: 700;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    text-decoration: none;
}

.floating-cta:hover {
    background: var(--color-teal-dark);
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-image { order: -1; }
    .contact-grid { grid-template-columns: 1fr; }
    .curriculum-tabs { grid-template-columns: repeat(2, 1fr); }
    .curriculum-panel { padding: var(--space-md); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .header-cta { display: none; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.open { max-height: 400px; }

    .main-nav ul {
        flex-direction: column;
        padding: var(--space-md);
        gap: 0;
    }

    .main-nav li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav li:last-child { border-bottom: none; }

    main > section { padding: var(--space-lg) 0; }

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

    .floating-cta { display: inline-flex; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cta-image { order: -1; }
    .cta-image img { max-width: 200px; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    .container { padding: 0 var(--space-sm); }
    .form-wrap { padding: var(--space-md); }
}

@media print {
    .site-header, .floating-cta, .form-wrap, .cta-banner { display: none; }
}
