/* ================================
   OLLEY - Landing Page Styles
   ================================ */

/* CSS Variables - Brand Colors & Typography */
:root {
    /* Colors */
    --yellow: #eeca73;
    --teal: #92cdc9;
    --dark-blue: #072b49;
    --light-yellow: #fbf5b0;
    --gray: #9e9e9e;
    --light-pink: #ecc7d1;
    --white: #ffffff;
    --off-white: #fafafa;
    --text-dark: #1a1a1a;
    --text-light: #555555;

    /* Typography */
    --font-headline: 'Nunito', sans-serif;
    --font-subhead: 'Caveat', cursive;
    --font-body: 'Nunito', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ================================
   Reset & Base Styles
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================
   Layout
   ================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4 {
    font-family: var(--font-headline);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-blue);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2, .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: var(--space-lg);
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--dark-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0a3d66;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 43, 73, 0.3);
}

.btn-large {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

/* ================================
   Header
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: var(--space-sm) 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-weight: 600;
    color: var(--dark-blue);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--teal);
}

/* Mobile nav toggle - hidden for now */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
}

/* ================================
   Hero Section
   ================================ */
.hero {
    padding-top: calc(var(--space-xl) + 80px);
    padding-bottom: var(--space-xl);
    background: linear-gradient(135deg, var(--white) 0%, #f8fcfc 100%);
    overflow: hidden;
}

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

.hero-content {
    max-width: 600px;
}

.hero-title {
    color: var(--dark-blue);
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.hero-image {
    position: relative;
}

.hero-image img:first-child {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(7, 43, 73, 0.15);
}

.hero-doodle {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    opacity: 0.8;
    z-index: -1;
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ================================
   Problem Section
   ================================ */
.problem {
    background-color: var(--dark-blue);
    color: var(--white);
}

.problem .section-title {
    color: var(--white);
    text-align: center;
}

.problem .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin: 0 auto var(--space-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: var(--space-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-family: var(--font-headline);
    font-size: 3rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.stat-source {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-xs);
}

.problem-callout {
    text-align: center;
    font-family: var(--font-subhead);
    font-size: 1.75rem;
    color: var(--teal);
}

@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ================================
   Solution Section
   ================================ */
.solution {
    background-color: var(--off-white);
}

.solution .section-title {
    text-align: center;
}

.solution .lead {
    text-align: center;
    margin: 0 auto var(--space-lg);
}

.approach-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.approach-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.approach-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 43, 73, 0.9) 0%, rgba(7, 43, 73, 0.4) 50%, rgba(7, 43, 73, 0.1) 100%);
}

.approach-card-content {
    position: relative;
    z-index: 1;
    padding: var(--space-md);
}

.approach-card h3 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: var(--space-xs);
}

.approach-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .approach-cards {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Learn Section
   ================================ */
.learn {
    background-color: var(--white);
}

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

.learn-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(7, 43, 73, 0.1);
}

.learn-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.learn-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 1.125rem;
    color: var(--text-dark);
}

.learn-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 4px;
    background-color: var(--teal);
    border-radius: 50%;
    position: relative;
}

.learn-icon::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    width: 6px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .learn .container {
        grid-template-columns: 1fr;
    }

    .learn-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ================================
   Philosophy Section
   ================================ */
.philosophy {
    background: linear-gradient(135deg, var(--teal) 0%, #7bc4c0 100%);
    padding: var(--space-lg) 0;
}

.philosophy-quote {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-quote p {
    font-family: var(--font-subhead);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--dark-blue);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.philosophy-quote cite {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-blue);
    opacity: 0.85;
}

/* ================================
   Audience Section
   ================================ */
.audience {
    background-color: var(--white);
    text-align: center;
}

.audience .section-title {
    margin-bottom: var(--space-sm);
}

.audience-text {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.audience-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.audience-images img {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    object-fit: cover;
}

.audience-image-wide {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.audience-image-wide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 30%;
}

.audience-image-featured {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(7, 43, 73, 0.2);
}

.audience-image-featured img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .audience-images {
        grid-template-columns: 1fr;
    }

    .audience-image-wide img {
        height: 200px;
    }
}

/* ================================
   Signup Section
   ================================ */
.signup {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #0a3d66 100%);
    color: var(--white);
    text-align: center;
}

.signup .section-title {
    color: var(--white);
}

.signup-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto var(--space-md);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 400px;
    margin: 0 auto;
}

.signup-form input {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    background-color: var(--white);
    color: var(--text-dark);
}

.signup-form input::placeholder {
    color: var(--gray);
}

.signup-form input:focus {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

.signup-form .btn {
    margin-top: var(--space-xs);
    background-color: var(--yellow);
    color: var(--dark-blue);
}

.signup-form .btn:hover {
    background-color: #e0bb5c;
}

.signup-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-sm);
}

/* Form success state */
.signup-form.success {
    display: none;
}

.signup-success {
    display: none;
    text-align: center;
    padding: var(--space-md);
}

.signup-success.show {
    display: block;
}

.signup-success p {
    font-size: 1.25rem;
    color: var(--teal);
}

/* ================================
   Footer
   ================================ */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: var(--space-lg) 0 var(--space-md);
}

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

.footer-logo {
    height: 60px;
    margin: 0 auto var(--space-md);
}

.footer-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
    margin: 0 auto var(--space-md);
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image {
    animation-delay: 0.2s;
}

/* ================================
   Utility Classes
   ================================ */
.text-center {
    text-align: center;
}

.text-teal {
    color: var(--teal);
}

.text-yellow {
    color: var(--yellow);
}

.bg-dark {
    background-color: var(--dark-blue);
    color: var(--white);
}
