/* ==========================================================
   Jose Got The Answer Right — shared site styles
   Every page links to this file, so design changes made here
   apply across the whole site.
   ========================================================== */

:root {
    /* Brand colors */
    --navy: #0f1f5c;          /* nav, headings */
    --blue: #0a5cff;          /* links, buttons (matches the cartoon title blue) */
    --blue-dark: #0846c4;
    --gold: #f5c518;          /* highlights */
    --yellow-1: #e3d462;      /* cartoon backdrop colors */
    --yellow-2: #d8c45a;
    --yellow-floor: #efe6a6;

    /* Neutrals */
    --bg: #fffdf5;            /* warm off-white page background */
    --card: #ffffff;
    --text: #1d2440;
    --muted: #59607a;
    --border: #ece6cf;

    --radius: 18px;
    --shadow: 0 10px 30px rgba(15, 31, 92, 0.08), 0 2px 6px rgba(15, 31, 92, 0.05);
    --max-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3 {
    font-family: 'Nunito', 'Inter', system-ui, sans-serif;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p {
    margin: 0 0 1.1em;
}

a {
    color: var(--blue);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--blue-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 72px 0;
}

.section-tight {
    padding: 48px 0;
}

.center {
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.65);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.lead {
    font-size: 1.2rem;
    color: var(--text);
}

/* ---------- Navigation ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 31, 92, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    white-space: nowrap;
}

.brand:hover {
    color: var(--gold);
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a,
.dropdown-toggle {
    display: block;
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.dropdown-toggle:hover,
.nav-links a.active,
.dropdown.open .dropdown-toggle {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold);
}

.nav-links .nav-cta {
    background: var(--gold);
    color: var(--navy);
    margin-left: 8px;
}

.nav-links .nav-cta:hover {
    background: #ffd84d;
    color: var(--navy);
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    border: 5px solid transparent;
    border-top-color: currentColor;
    border-bottom: 0;
    vertical-align: middle;
    transition: transform 0.15s;
}

.dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 31, 92, 0.2);
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: var(--text);
    border-radius: 10px;
    padding: 9px 14px;
    font-weight: 500;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: #fff5cc;
    color: var(--navy);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    border-radius: 2px;
}

/* Narrower screens: links collapse into the ☰ menu before they
   can run into the site name (the full menu needs ~1050px) */
@media (max-width: 1080px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        background: var(--navy);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

    .site-header.nav-open .nav-links {
        display: flex;
    }

    .nav-links a,
    .dropdown-toggle {
        width: 100%;
        text-align: left;
        border-radius: 12px;
        padding: 12px 16px;
    }

    .nav-links .nav-cta {
        margin: 8px 0 0;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.06);
        margin-top: 4px;
        display: none;
        grid-template-columns: 1fr 1fr;
    }

    .dropdown.open .dropdown-menu {
        display: grid;
    }

    .dropdown-menu a {
        color: #fff;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background: rgba(255, 255, 255, 0.12);
        color: var(--gold);
    }
}

/* ---------- Hero banners (cartoon-yellow backdrop) ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 85% 0%, rgba(160, 130, 40, 0.35), transparent 55%),
        linear-gradient(180deg, var(--yellow-1) 0%, var(--yellow-2) calc(100% - 64px), var(--yellow-floor) calc(100% - 64px), #f6efc4 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    gap: 32px;
    padding-top: 64px;
}

.hero-text {
    padding-bottom: 112px;
}

.hero-text h1 {
    margin-bottom: 18px;
}

.hero-text .lead {
    max-width: 36em;
}

.hero-art {
    align-self: end;
    display: flex;
    justify-content: center;
}

.hero-art img {
    width: 100%;
    max-width: 340px;
    /* Image has empty space around Jose; trim it visually */
    margin-bottom: -9%;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.12));
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(10, 92, 255, 0.3);
}

.button-primary:hover {
    background: var(--blue-dark);
    color: #fff;
}

.button-secondary {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 6px 16px rgba(15, 31, 92, 0.1);
}

.button-secondary:hover {
    color: var(--navy);
}

/* "Download on the App Store" button, styled like Apple's badge */
.app-badge {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 22px;
    background: #000;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    line-height: 1.15;
    transition: transform 0.15s;
}

.app-badge:hover {
    color: #fff;
    transform: translateY(-2px);
}

.app-badge small {
    font-size: 0.72rem;
    font-weight: 500;
}

.app-badge strong {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Shorter banner used at the top of inner pages */
.page-hero {
    padding: 56px 0 108px;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 8px;
}

.page-hero p {
    max-width: 40em;
    margin: 0 auto;
    color: var(--navy);
    font-size: 1.15rem;
}

/* ---------- Cards ---------- */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.card-overlap {
    margin-top: -40px;
    position: relative;
}

@media (max-width: 600px) {
    .card {
        padding: 24px;
    }
}

/* ---------- Video ---------- */

.video-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 12px;
    background: var(--navy);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 24px 50px rgba(15, 31, 92, 0.25);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.question {
    max-width: 22em;
    margin: 0 auto 32px;
    text-align: center;
}

/* Question + short description in each language, above the video */
.video-intro {
    text-align: center;
    margin-bottom: 32px;
}

.video-intro .question {
    margin-bottom: 12px;
}

.video-intro p {
    max-width: 36em;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--muted);
}

.question .highlight {
    background: linear-gradient(transparent 60%, rgba(245, 197, 24, 0.55) 60%);
}

/* ---------- Language chips ---------- */

.lang-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}

.lang-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 132px;
    padding: 14px 20px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--navy);
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.lang-grid a:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.lang-grid a.active {
    border-color: var(--blue);
    background: #eef4ff;
}

.lang-grid .native {
    font-weight: 800;
    font-size: 1.1rem;
}

.lang-grid .english {
    font-size: 0.85rem;
    color: var(--muted);
}

.native-title {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
}

/* ---------- App promo ---------- */

.app-promo {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 48px;
}

.app-icon {
    display: block;
    text-align: center;
    text-decoration: none;
}

.app-icon img {
    width: 200px;
    height: 200px;
    border-radius: 44px;
    box-shadow: 0 18px 40px rgba(15, 31, 92, 0.25);
    transition: transform 0.2s;
}

.app-icon:hover img {
    transform: scale(1.04) rotate(-2deg);
}

.app-icon .caption {
    display: block;
    margin-top: 16px;
    font-weight: 700;
    color: var(--blue);
}

/* ---------- About page ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.portrait {
    text-align: center;
    position: sticky;
    top: 100px;
}

.portrait img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 0 0 4px var(--gold), var(--shadow);
}

.portrait h2 {
    margin: 20px 0 4px;
    font-size: 1.6rem;
}

.portrait .role {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.form-card h2 {
    text-align: center;
}

.form-card > p {
    text-align: center;
    color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 0;
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
}

.site-footer a:first-child {
    margin-left: 0;
}

.site-footer a:hover {
    color: var(--gold);
}

/* ---------- Responsive layout ---------- */

@media (max-width: 860px) {
    .hero-grid,
    .app-promo,
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        padding-bottom: 0;
    }

    .hero-text .lead {
        margin: 0 auto;
    }

    .button-row {
        justify-content: center;
    }

    .hero-grid {
        padding-bottom: 48px;
    }

    .hero-art img {
        max-width: 220px;
    }

    .app-promo {
        gap: 24px;
    }

    .portrait {
        position: static;
    }

    .about-grid .bio {
        text-align: left;
    }

    .section {
        padding: 56px 0;
    }
}
