/* --- style.css --- */

/* --- RESET & VARS --- */
:root {
    --primary: #1f3a52; /* Navy */
    --accent: #7ab800;  /* Green */
    --highlight: #fdb913; /* Yellow */
    --light-bg: #f4f7f6;
    --text-dark: #2d3748;
    --text-light: #718096;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Open Sans', sans-serif; 
    line-height: 1.7; 
    color: var(--text-dark); 
    background-color: var(--light-bg); 
}

h1, h2, h3, h4, .btn { font-family: 'Poppins', sans-serif; }

/* --- NAVIGATION --- */
nav { 
    background-color: #ffffff; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    padding: 0 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    height: 150px;
    transition: height 0.3s ease;
}

.logo-img { 
    max-height: 130px; 
    width: auto; 
    display: block;
    transition: transform 0.3s;
}

.logo-container:hover .logo-img { transform: scale(1.03); }

.nav-links { list-style: none; display: flex; gap: 35px; }
.nav-links a { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: ''; display: block; width: 0; height: 3px; 
    background: var(--accent); transition: width .3s; margin-top: 4px;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn { display: none; font-size: 2rem; background: none; border: none; cursor: pointer; color: var(--primary); }

/* --- HEADERS (HERO) --- */
header {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 10rem 1rem 8rem;
    text-align: center;
}

/* Unique backgrounds for each page */
.hero-home { background-image: linear-gradient(rgba(31, 58, 82, 0.8), rgba(31, 58, 82, 0.7)), url('side-view-woman-girl-playing-together.jpg'); }
.hero-early { background-image: linear-gradient(rgba(31, 58, 82, 0.85), rgba(31, 58, 82, 0.8)), url('service-early.jpg'); }
.hero-social { background-image: linear-gradient(rgba(31, 58, 82, 0.85), rgba(31, 58, 82, 0.8)), url('service-social.jpg'); }
.hero-parent { background-image: linear-gradient(rgba(31, 58, 82, 0.85), rgba(31, 58, 82, 0.8)), url('service-parent.jpg'); }
.hero-assess { background-image: linear-gradient(rgba(31, 58, 82, 0.85), rgba(31, 58, 82, 0.8)), url('service-assess.jpg'); }
.hero-school { background-image: linear-gradient(rgba(31, 58, 82, 0.85), rgba(31, 58, 82, 0.8)), url('service-school.jpg'); }

header h1 { font-size: 3.5rem; margin-bottom: 1.5rem; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
header p { font-size: 1.3rem; max-width: 700px; margin: 0 auto 2.5rem auto; opacity: 0.95; }

.btn { 
    background-color: var(--highlight); color: var(--primary); 
    padding: 18px 45px; text-decoration: none; border-radius: 50px; 
    font-weight: 700; font-size: 1.1rem; border: 2px solid var(--highlight);
    display: inline-block; transition: transform 0.2s, box-shadow 0.2s; 
}
.btn:hover { background-color: transparent; color: #fff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(253, 185, 19, 0.4); }

/* --- SECTIONS --- */
section { padding: 7rem 10%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { color: var(--primary); font-size: 2.5rem; position: relative; display: inline-block; margin-bottom: 1rem; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin: 10px auto 0; border-radius: 2px; }

/* --- SERVICES GRID --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transition: transform 0.3s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-10px); }
.service-img { width: 100%; height: 200px; object-fit: cover; }
.service-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.service-card h3 { color: var(--primary); margin-bottom: 0.8rem; font-size: 1.3rem; }
.read-more { color: var(--accent); font-weight: 700; text-decoration: none; }

/* --- CONTACT --- */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 2rem; }
.contact-form-container { flex: 1; min-width: 300px; padding: 2rem; background: var(--light-bg); border-radius: 12px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--primary); font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; }
.contact-details { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-icon { font-size: 1.5rem; color: var(--accent); }
.map-frame { width: 100%; height: 250px; border-radius: 12px; overflow: hidden; background: #eee; margin-top: auto; }

/* --- TEAM --- */
.team-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.team-card { text-align: center; width: 280px; padding: 20px; }
.img-wrapper { width: 180px; height: 180px; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden; border: 4px solid var(--light-bg); position: relative; }
.team-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.3s, transform 0.3s; }
.team-card:hover .team-img { filter: grayscale(0%); transform: scale(1.1); }
.team-role { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }

/* --- FOOTER --- */
footer { background-color: var(--primary); color: rgba(255,255,255,0.7); text-align: center; padding: 4rem 10% 2rem; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    nav { height: 100px; padding: 0 1.5rem; }
    .logo-img { max-height: 80px; }
    .nav-links { display: none; flex-direction: column; width: 100%; text-align: center; padding: 1rem 0; background: white; position: absolute; top: 100px; left: 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; margin-left: auto; }
    header h1 { font-size: 2.2rem; }
    section { padding: 4rem 5%; }
    .contact-wrapper { flex-direction: column-reverse; }
}