/* =============================================
   appi4 Website - Faithful Recreation
   Color Palette (matched from original):
   - Navy top bar:       #2d3a5c
   - Gold/Mustard:       #e8b430 / #d4a825
   - Green (buttons):    #5a7a6b
   - Teal/Green accent:  #6b9e8a
   - Light blue section: #b8cfe0 / #c7d9e8
   - Light gray bg:      #f0ece4 / #f5f2eb
   - Red/Orange (logo):  #c0392b / #e74c3c
   - Off-white:          #faf8f4
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --navy: #2d3a5c;
    --gold: #e8b430;
    --gold-dark: #d4a825;
    --green: #5a7a6b;
    --green-hover: #4a6a5b;
    --teal: #6b9e8a;
    --light-blue: #c7d9e8;
    --light-blue-darker: #aec5d6;
    --light-gray: #f0ece4;
    --off-white: #faf8f4;
    --red: #c0392b;
    --text-dark: #2c2c2c;
    --text-body: #444;
    --text-muted: #666;
    --white: #ffffff;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Offset anchor scroll targets so the sticky navbar doesn't cover them */
section[id] {
    scroll-margin-top: 110px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: disc; padding-left: 1.2rem; }
img { max-width: 100%; height: auto; }

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

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

/* ===== TOP ACCENT BAR (Navy) ===== */
.top-accent-bar {
    height: 8px;
    background: var(--navy);
    width: 100%;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--off-white);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.logo a {
    display: inline-block;
    font-size: 2rem;
    font-weight: 600;
}

/* Logo images - sizing for each context */
.logo-img-nav {
    height: 52px;
    object-fit: contain;
    vertical-align: middle;
}

.logo-img-hero {
    height: 72px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 0;
    margin-right: 4px;
}

.logo-img-section {
    height: 78px;
    object-fit: contain;
}

.logo-img-card {
    height: 36px;
    object-fit: contain;
    margin-bottom: 6px;
}

.logo-img-footer {
    height: 58px;
    object-fit: contain;
}

.logo-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.01em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    padding-left: 0;
    padding-top: 10px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding-top: 10px;
}

.mobile-menu-btn span {
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 13px 30px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.btn-green {
    background: linear-gradient(to bottom, #7ab899, #5a7a6b);
    color: var(--white);
    border: 2px solid #2d3a5c;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.8);
}

.btn-green:hover {
    background: linear-gradient(to bottom, #8bccaa, #6b9e8a);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.8);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--off-white);
    padding: 50px 0 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.funding-badge {
    color: var(--red);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 35px;
    text-align: right;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 30px;
}

.hero-with {
    margin-bottom: 30px;
}

.hero-with p {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.8;
    color: var(--text-dark);
}

.hero-with ul {
    list-style: disc;
    padding-left: 1.8rem;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.8;
}

.hero-with ul li {
    margin-bottom: 6px;
}

.hero-badges {
    display: flex;
    gap: 28px;
    margin-top: 35px;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero illustration + soft floor shadow (original site look) */
.hero-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 12px;
}

.hero-photo-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: min(90%, 420px);
    height: 40px;
    background: radial-gradient(
        ellipse 100% 42% at 50% 50%,
        rgba(45, 58, 92, 0.2) 0%,
        rgba(45, 58, 92, 0.09) 55%,
        transparent 74%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-photo-wrap .hero-photo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 520px;
    object-fit: contain;
}

.hero-right .hero-perfect-text {
    margin-top: 28px;
    font-size: 1.05rem;
    color: #5a7a6b;
    line-height: 1.6;
    max-width: 420px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ===== INDIVIDUALIZED SECTION (Gold/Mustard) ===== */
.section-individualized {
    background: var(--gold);
    padding: 65px 0 75px;
}

.section-logo-center {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.individualized-title {
    text-align: center;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.55rem;
    letter-spacing: 0.16em;
    color: var(--text-dark);
    margin-bottom: 45px;
    text-transform: uppercase;
}

.individualized-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: flex-start;
}

.individualized-left {
    position: relative;
}

/* Kids features illustration */
.kids-illustration {
    width: 100%;
    max-width: 480px;
    border-radius: 14px;
    display: block;
}

.individualized-right .intro-text {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 35px;
    color: var(--text-dark);
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item strong {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 1.02rem;
    color: var(--text-body);
    line-height: 1.75;
    font-weight: 400;
}

/* ===== TURNKEY SOLUTION SECTION ===== */
.section-turnkey {
    background: var(--white);
    padding: 75px 0 85px;
}

.turnkey-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 55px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.turnkey-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.turnkey-card {
    text-align: left;
}

.turnkey-card-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2.5px solid #333;
}

.turnkey-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.turnkey-card-logo {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.turnkey-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.turnkey-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 8px;
}

.turnkey-card ul {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ===== EXPERIENCE SECTION (Steel blue) ===== */
.section-experience {
    background: var(--light-blue);
    padding: 75px 0 65px;
}

.experience-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 28px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.experience-text {
    max-width: 500px;
    margin-bottom: 45px;
}

.experience-text p {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 18px;
    line-height: 1.6;
}

/* Partner logos - real images */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 35px;
    align-items: center;
}

.partner-logo-item {
    background: rgba(255,255,255,0.65);
    padding: 22px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.partner-logo-item img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

/* ===== CTA SECTION (Periwinkle/Light blue) ===== */
.section-cta {
    background: linear-gradient(180deg, var(--light-blue) 0%, var(--light-blue-darker) 100%);
    padding: 65px 0 85px;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 30px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

/* CTA illustration - real image */
.cta-illustration {
    max-width: 620px;
    margin: 45px auto 0;
}

.cta-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTACT SECTION (Gold/Mustard footer) ===== */
.section-contact {
    background: var(--gold);
    padding: 65px 0 75px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 45px;
    align-items: flex-start;
}

.contact-logo {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.contact-tagline {
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: 45px;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.25;
}

.contact-phone {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.contact-email {
    font-size: 0.95rem;
    color: var(--text-body);
}

.contact-email a {
    color: var(--text-dark);
    text-decoration: underline;
    transition: color 0.2s;
}

.contact-email a:hover {
    color: var(--green);
}

.contact-form-card {
    background: var(--white);
    border-radius: 10px;
    padding: 38px 32px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-form-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 28px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 12px;
    border: none;
    background: #e8e8e8;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: background 0.2s;
}

.form-control:focus {
    outline: none;
    background: #ddd;
    box-shadow: 0 0 0 2px rgba(90, 122, 107, 0.2);
}

select.form-control {
    -webkit-appearance: auto;
    appearance: auto;
}

textarea.form-control {
    resize: vertical;
}

.btn-send {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 12px;
    border-radius: 0;
}

.success-message {
    text-align: center;
    color: var(--green);
    font-weight: 500;
    margin-top: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .individualized-content {
        grid-template-columns: 1fr;
    }

    .turnkey-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        position: sticky;
    }

    .nav-content {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--off-white);
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .logo-img-hero {
        height: 50px;
    }

    .logo-img-nav {
        height: 40px;
    }

    .turnkey-cards {
        grid-template-columns: 1fr;
    }

    .hero-badges {
        flex-direction: column;
        gap: 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .partner-logos {
        grid-template-columns: 1fr 1fr;
    }

    .funding-badge {
        text-align: left;
    }

    .experience-title,
    .turnkey-title,
    .cta-title {
        font-size: 1.8rem;
    }

    .individualized-title {
        font-size: 1.2rem;
        letter-spacing: 0.08em;
    }
}

/* ===== ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.reveal-fade.active {
    opacity: 1;
}

/* Staggered delay for child elements */
.reveal-stagger-parent .reveal-up:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger-parent .reveal-up:nth-child(2) { transition-delay: 0.25s; }
.reveal-stagger-parent .reveal-up:nth-child(3) { transition-delay: 0.4s; }
.reveal-stagger-parent .reveal-up:nth-child(4) { transition-delay: 0.55s; }
