/* =============================================
   FINLANDWAY – Warm & Playful Redesign
   ============================================= */

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

:root {
    --sun:       #FFD747;   /* sunny yellow */
    --coral:     #FF6B5B;   /* warm coral */
    --teal:      #3EC9C9;   /* playful teal */
    --mint:      #A8E6CF;   /* soft mint */
    --sky:       #EAF6FF;   /* pale sky background */
    --lavender:  #F0EDFF;
    --white:     #FFFFFF;
    --ink:       #2B2B3B;   /* deep navy ink */
    --ink-light: #5A5A72;
    --cream:     #FFFBF0;

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

    --r-sm:  12px;
    --r-md:  20px;
    --r-lg:  32px;
    --r-xl:  48px;
    --r-full:9999px;

    --shadow-soft: 0 8px 32px rgba(0,0,0,.08);
    --shadow-pop:  0 12px 40px rgba(0,0,0,.14);
    --transition: 0.28s cubic-bezier(.34,1.56,.64,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

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

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

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 3px 16px rgba(0,0,0,.07);
    border-bottom: 3px solid var(--sun);
}

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

.nav-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 3px;
    background: var(--coral);
    border-radius: 2px;
    transition: width .25s ease;
}

.nav-links a:hover { color: var(--coral); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--coral) !important;
    color: var(--white) !important;
    padding: 10px 26px !important;
    border-radius: var(--r-full) !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(255,107,91,.35);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition) !important;
}

.nav-cta:hover {
    background: #e85a49 !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 8px 24px rgba(255,107,91,.45) !important;
}

.nav-cta::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block; width: 26px; height: 3px;
    background: var(--ink);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 28px 22px;
    border-top: 2px dashed var(--sun);
    gap: 14px;
    background: var(--cream);
}

.mobile-menu a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

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

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 72px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--sky);
}

/* Decorative blobs in hero background */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .18;
    pointer-events: none;
}
.hero::before {
    width: 500px; height: 500px;
    background: var(--sun);
    top: -120px; left: -120px;
}
.hero::after {
    width: 350px; height: 350px;
    background: var(--teal);
    bottom: -80px; right: 10%;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(255,215,71,.82) 0%,
        rgba(255,107,91,.55) 40%,
        rgba(30,30,60,.25) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 28px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
    margin-bottom: 18px;
}

.hero-copy h1 span {
    display: inline-block;
    background: var(--sun);
    color: var(--ink);
    padding: 2px 14px;
    border-radius: var(--r-full);
    text-shadow: none;
    transform: rotate(-1.5deg);
    line-height: 1.3;
}

.hero-copy p {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255,255,255,.92);
    max-width: 400px;
    text-shadow: 0 1px 6px rgba(0,0,0,.2);
}

/* Form card — now wraps NoPaperForms widget */
.hero-form-card {
    background: var(--white);
    border-radius: var(--r-xl);
    padding: 28px 24px 24px;
    box-shadow: var(--shadow-pop);
    border: 3px solid var(--sun);
    position: relative;
    width: 100%;
    max-width: 440px;
    height: auto;
    overflow: visible;
}

/* Colourful top stripe */
.hero-form-card::before {
    content: '';
    position: absolute;
    left: 20px; right: 20px;
    height: 6px;
    background: linear-gradient(90deg, var(--coral), var(--sun), var(--teal));
    border-radius: var(--r-full);
    top: -6px;
}

/* Make the widget & its iframe fill card with no scroll */
.hero-form-card .npf_wgts {
    width: 100% !important;
}

.hero-form-card iframe {
    border: none !important;
    border-radius: var(--r-md);
    width: 100% !important;
    overflow: hidden !important;
}

.form-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 22px;
    text-align: center;
}

.form-title .title-dot {
    display: inline-block;
    width: 10px; height: 10px;
    background: var(--coral);
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
}

/* ====== WAVE DIVIDER ====== */
.wave {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave svg { width: 100%; height: auto; display: block; }

/* ============ WHO SECTION ============ */
.who-section {
    padding: 80px 0 40px;
    background: var(--cream);
}

.section-tag {
    display: inline-block;
    background: var(--sun);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: var(--r-full);
    margin-bottom: 14px;
}

.who-section .container { text-align: center; }

.section-heading {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-heading em {
    font-style: normal;
    color: var(--coral);
    position: relative;
}

/* Squiggly underline on em */
.section-heading em::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='4'%3E%3Cpath d='M0 2 Q5 0 10 2 Q15 4 20 2' stroke='%23FF6B5B' fill='none' stroke-width='2'/%3E%3C/svg%3E") repeat-x;
}

.section-subheading {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-light);
    margin-bottom: 52px;
}

.who-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 760px;
    margin: 0 auto;
}

.who-card {
    background: var(--white);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2.5px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.who-card:nth-child(1) { border-color: var(--sun); }
.who-card:nth-child(2) { border-color: var(--teal); }

.who-card:hover {
    transform: translateY(-8px) rotate(.5deg);
    box-shadow: var(--shadow-pop);
}

.who-card-img {
    height: 220px;
    overflow: hidden;
}

.who-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.who-card:hover .who-card-img img { transform: scale(1.06); }

.who-card p {
    padding: 20px 22px 26px;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink-light);
    line-height: 1.7;
}

/* ============ WHY US ============ */
.why-section {
    padding: 80px 0 90px;
    background: var(--sky);
}

.why-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--ink);
    text-align: center;
    margin-bottom: 64px;
}

.why-heading span {
    background: linear-gradient(135deg, var(--coral), var(--sun));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pedagogy-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 80px;
}

.pedagogy-item:last-child { margin-bottom: 0; }

.pedagogy-right { direction: rtl; }
.pedagogy-right > * { direction: ltr; }

/* Pill label before each pedagogy */
.pedagogy-text { position: relative; }

.pedagogy-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 5px 14px;
    border-radius: var(--r-full);
    margin-bottom: 14px;
}

.label-play    { background: #FFF3D0; color: #B07D00; }
.label-phenom  { background: #D0F5F5; color: #0A7575; }
.label-part    { background: #FFE5E2; color: #B03525; }

.pedagogy-text h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.25;
}

.pedagogy-text p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-light);
    line-height: 1.8;
}

.pedagogy-img {
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 3px solid var(--white);
    outline: 3px solid var(--sun);
    outline-offset: 4px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pedagogy-item:nth-child(odd) .pedagogy-img  { outline-color: var(--sun); }
.pedagogy-item:nth-child(even) .pedagogy-img { outline-color: var(--teal); }

.pedagogy-img:hover {
    transform: rotate(-1deg) scale(1.02);
    box-shadow: var(--shadow-pop);
}

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

/* ============ CONTACT STRIP ============ */
.contact-strip {
    background: linear-gradient(135deg, var(--coral) 0%, #FF9A3C 100%);
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Big circle decorations */
.contact-strip::before, .contact-strip::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    pointer-events: none;
}
.contact-strip::before { width: 400px; height: 400px; top: -200px; left: -100px; }
.contact-strip::after  { width: 300px; height: 300px; bottom: -150px; right: -60px; }

.contact-strip h4 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 36px;
    position: relative;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    background: var(--white);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: var(--r-full);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-link svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: var(--coral);
}

.contact-link:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.contact-link-btn {
    background: var(--ink);
    color: var(--white);
}

.contact-link-btn svg { color: var(--sun); }

/* ============ FOOTER ============ */
.footer {
    background: #1C1B2E;
    color: rgba(255,255,255,.75);
    position: relative;
}

.footer-wave {
    display: block;
    line-height: 0;
    background: #FF6B5B; /* same as contact strip bottom */
}

.footer-wave svg {
    display: block;
    width: 100%;
}

.footer-body {
    padding: 60px 0 48px;
}

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

/* Brand row: logo + tagline centered */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 48px;
}

.footer-logo-wrap {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 18px 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.footer-logo {
    height: auto;
    width: auto;
    max-width: 260px;
    max-height: 90px;
    object-fit: contain;
    display: block;
    /* no invert — white card shows real logo colours */
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    max-width: 520px;
    line-height: 1.7;
}

/* 3-col grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

/* --- Image col --- */
.footer-img-frame {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 3px solid rgba(255,215,71,.3);
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.footer-img-frame img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;  /* show full image, no cropping */
    display: block;
    transition: transform .5s ease;
    padding: 8px;
}

.footer-img-frame:hover img { transform: scale(1.04); }

.footer-img-caption {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--sun);
    text-align: center;
}

/* --- Contact col --- */
.footer-col-heading {
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--sun);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(255,215,71,.25);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    line-height: 1.6;
}

.fc-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-contact-list a {
    color: rgba(255,255,255,.85);
    transition: color .2s;
}

.footer-contact-list a:hover { color: var(--sun); }

.footer-contact-list address {
    font-style: normal;
    color: rgba(255,255,255,.6);
}

/* --- Social col --- */
.footer-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.fsocial-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.fsocial-card svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
}

.fsocial-card:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.fsocial-fb { background: #1877F2; }
.fsocial-yt { background: #FF0000; }
.fsocial-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.fsocial-li { background: #0A66C2; }

.footer-enquiry-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--coral), #FF9A3C);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 900;
    padding: 13px 24px;
    border-radius: var(--r-full);
    box-shadow: 0 6px 20px rgba(255,107,91,.4);
    transition: transform var(--transition), box-shadow var(--transition);
    letter-spacing: .02em;
}

.footer-enquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,107,91,.5);
}

/* Bottom bar */
.footer-bottom {
    background: rgba(0,0,0,.25);
    padding: 16px 28px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,.3);
}

/* ============ RESPONSIVE — FOOTER ============ */
@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-img-col { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; width: 100%; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-img-col { grid-column: auto; max-width: 100%; }
    .footer-social-grid { grid-template-columns: 1fr 1fr; }
    .footer-logo { max-width: 200px; }
}

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

    .hero-copy h1 { font-size: 2.2rem; }
    .hero-copy p  { max-width: 100%; }

    .hero-form-card {
        max-width: 480px;
        margin: 0 auto;
    }

    .pedagogy-item,
    .pedagogy-right {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 28px;
    }

    .pedagogy-right .pedagogy-img { order: -1; }

}

@media (max-width: 600px) {
    .nav-links  { display: none; }
    .nav-toggle { display: flex; }

    .hero { min-height: 100svh; }

    .hero-inner { padding: 40px 20px; }
}

/* ============ REVEAL ANIMATION ============ */
/* Default: visible. JS adds .js-reveal-ready to <body> to opt-in to animation */
.reveal {
    opacity: 1;
    transform: none;
}

body.js-reveal-ready .reveal {
    opacity: 0;
    transform: translateY(28px) scale(.98);
    transition: opacity .55s ease, transform .55s cubic-bezier(.34,1.3,.64,1);
}

body.js-reveal-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    body.js-reveal-ready .reveal,
    body.js-reveal-ready .reveal.visible {
        opacity: 1; transform: none; transition: none;
    }
    .who-card:hover, .pedagogy-img:hover, .btn-submit:hover, .contact-link:hover { transform: none; }
}
