/* ============================================
   Vastcore - Main Stylesheet
   ============================================ */

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

:root {
    /* Brand Colors */
    --teal: #2AAFC9;
    --teal-soft: rgba(42, 175, 201, 0.1);
    --magenta: #D4267A;
    --magenta-soft: rgba(212, 38, 122, 0.08);
    
    /* Neutrals */
    --dark: #2d2d2d;
    --darker: #1a1a1a;
    --body: #4a4a4a;
    --muted: #555555;
    --cream: #fdfbf9;
    --warm-white: #fefefe;
    --card: #ffffff;
    --border: rgba(0,0,0,0.06);
    
    /* Effects */
    --shadow: 0 2px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 30px rgba(0,0,0,0.08);
    
    /* Layout */
    --nav-height: 60px;
    --line-color: rgba(255,255,255,0.06);
    
    /* Animated gradient blob positions */
    --blob1-x: 15%;
    --blob1-y: 10%;
    --blob2-x: 85%;
    --blob2-y: 90%;
    --blob3-x: 50%;
    --blob3-y: 50%;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
}

body {
    font-family: 'Libre Franklin', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--body);
    background: var(--cream);
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-padding-top: var(--nav-height);
    overscroll-behavior: none;
}

/* ============================================
   Animated Gradient Background
   ============================================ */
.gradient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(ellipse 120% 80% at var(--blob1-x) var(--blob1-y), rgba(42, 175, 201, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at var(--blob2-x) var(--blob2-y), rgba(212, 38, 122, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at var(--blob3-x) var(--blob3-y), rgba(42, 175, 201, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #fdfbf9 0%, #ffffff 50%, #fdfbf9 100%);
    transition: background 0.3s ease-out;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3 {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--magenta);
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    height: var(--nav-height);
    box-shadow: var(--shadow);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 36px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--magenta);
}

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

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Scroll Snap Sections */
section {
    height: calc(100vh - var(--nav-height));
    min-height: calc(100vh - var(--nav-height));
    max-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

/* Hero is special - full viewport height with its own handling */
#hero {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
}

section:not(#hero) {
    /* Equal padding for true centering - scroll-padding-top handles nav clearance */
    padding-top: 4vh;
    padding-bottom: 4vh;
}

section > .container {
    width: 100%;
}

/* Cards */
.card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.6);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    background: var(--darker);
    position: relative;
    overflow: hidden;
}

/* Grid lines background */
.hero-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.line {
    position: absolute;
    background: var(--line-color);
}

.line-h {
    height: 1px;
    left: 0;
    right: 0;
}

.line-v {
    width: 1px;
    top: 0;
    bottom: 0;
}

.line-1 { top: 20%; }
.line-2 { top: 40%; }
.line-3 { top: 60%; }
.line-4 { top: 80%; }
.line-5 { left: 10%; }
.line-6 { left: 30%; }
.line-7 { left: 70%; }
.line-8 { left: 90%; }

/* Corner accents */
.corner-accent {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 2;
    pointer-events: none;
}

.corner-tl {
    top: 15%;
    left: 8%;
    border-top: 2px solid var(--teal);
    border-left: 2px solid var(--teal);
    opacity: 0.5;
}

.corner-br {
    bottom: 15%;
    right: 8%;
    border-bottom: 2px solid var(--magenta);
    border-right: 2px solid var(--magenta);
    opacity: 0.5;
}

/* Hero content */
#hero .container {
    position: relative;
    z-index: 5;
}

.hero-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2.5rem;
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

#hero h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--teal), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero .subhead {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    margin: 0 auto 1rem;
    max-width: 600px;
}

#hero .subhead-secondary {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    margin: 0 auto 1rem;
    max-width: 560px;
}

/* Hero standout line - subtle glow effect */
#hero .subhead-secondary.standout-line {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
    margin: 1.25rem auto;
    text-shadow: 0 0 30px rgba(42, 175, 201, 0.4);
}

#hero .invitation {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.45);
    margin: 0 auto 2rem;
    max-width: 500px;
}

/* Hero CTA Button */
#hero .cta-primary {
    position: relative;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    overflow: hidden;
    z-index: 1;
}

#hero .cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal), var(--magenta));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

#hero .cta-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

#hero .cta-primary:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(42, 175, 201, 0.4);
}

#hero .cta-primary:hover::before {
    opacity: 1;
}

#hero .cta-primary:hover::after {
    left: 100%;
}

/* Generic CTA */
.cta-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--teal) 0%, var(--magenta) 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 175, 201, 0.3);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    background: rgba(42, 175, 201, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

/* Content sections on gradient */
#how, #challenges, #together, #testimonials, #about, #contact {
    background: transparent;
}

/* ============================================
   Philosophy Section
   ============================================ */
.philosophy-card {
    max-width: 700px;
    margin: 0 auto;
}

.philosophy-card p {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--dark);
    text-align: center;
    margin: 0 auto 1rem;
    max-width: 100%;
}

.philosophy-card p:last-child {
    margin-bottom: 0;
}

.philosophy-card .emphasis {
    font-style: italic;
    color: var(--magenta);
}

/* Philosophy standout line - subtle magenta highlight */
.philosophy-card .standout-line {
    font-family: 'Libre Franklin', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    text-align: center;
    position: relative;
    display: block;
}

.philosophy-card .standout-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80%;
    max-width: 500px;
    height: 40%;
    background: rgba(212, 38, 122, 0.12);
    z-index: -1;
    border-radius: 2px;
}

/* ============================================
   Challenges Section
   ============================================ */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.challenge-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(212, 38, 122, 0.06);
    border: 1px solid rgba(212, 38, 122, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.challenge-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: var(--magenta);
    opacity: 0.7;
    margin-top: 0.1rem;
}

.challenge-card p {
    color: var(--dark);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
    max-width: 100%;
}

/* Blue variant challenge card */
.challenge-card-blue {
    background: rgba(42, 175, 201, 0.08);
    border: 1px solid rgba(42, 175, 201, 0.15);
}

.challenge-card-blue .challenge-icon {
    color: var(--teal);
}

/* Challenges Footer */
.challenges-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.challenges-footer p {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.challenges-footer .emphasis {
    color: var(--magenta);
    font-style: italic;
    font-weight: 500;
}

/* Challenges standout line - left accent bar */
.challenges-footer .standout-line {
    font-family: 'Libre Franklin', sans-serif;
    font-style: normal;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    display: inline-block;
    padding-left: 1rem;
    border-left: 3px solid var(--magenta);
    margin-top: 0.75rem;
}

/* ============================================
   Together Section
   ============================================ */
.together-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.together-card p {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--dark);
    margin: 0 auto 1rem;
    max-width: 100%;
}

.together-card p:last-child {
    margin-bottom: 0;
}

.together-card .outcomes {
    margin: 1.25rem auto;
    font-style: italic;
    color: var(--muted);
}

.together-card .emphasis {
    color: var(--dark);
    font-style: normal;
    margin-top: 1rem;
}

/* Together standout line - caps with letter spacing */
.together-card .standout-line:not(.emphasis) {
    font-family: 'Libre Franklin', sans-serif;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
    margin-bottom: 1.25rem;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    text-align: center;
    position: relative;
    margin: 0;
    max-width: none;
}

.quote-mark {
    font-size: 3rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--teal), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.testimonial-card blockquote {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 100%;
}

.testimonial-card cite {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--muted);
}

.testimonial-card cite strong {
    color: var(--dark);
    font-weight: 500;
    display: block;
}

.testimonial-card cite span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

/* ============================================
   About Section
   ============================================ */
.about-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 750px;
    margin: 0 auto;
}

.about-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.about-text h2 {
    margin-bottom: 0.75rem;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 100%;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.8);
    padding: 0;
    overflow: hidden;
    max-height: calc(100vh - var(--nav-height) - 4rem);
    display: flex;
    flex-direction: column;
}

.contact-header {
    text-align: center;
    padding: 1.25rem 1.5rem 1rem;
    flex-shrink: 0;
}

.contact-header h2 {
    color: var(--dark);
    margin-bottom: 0.35rem;
    font-size: 1.5rem;
}

.contact-header p {
    color: var(--muted);
    margin: 0 auto 0.35rem;
    font-size: 0.85rem;
    max-width: 100%;
    line-height: 1.5;
}

.contact-header p:last-of-type {
    margin-bottom: 0;
}

.contact-header .emphasis {
    color: var(--dark);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Contact standout line - subtle teal highlight */
.contact-header .standout-line {
    font-family: 'Libre Franklin', sans-serif;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    background: linear-gradient(180deg, transparent 60%, rgba(42, 175, 201, 0.15) 60%);
    display: inline;
    padding: 0 0.25rem;
}

/* Tabs */
.contact-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.contact-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.contact-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.contact-tab:hover {
    color: var(--dark);
    background: rgba(0,0,0,0.02);
}

.contact-tab.active {
    color: var(--teal);
}

.contact-tab.active::after {
    background: linear-gradient(90deg, var(--teal), var(--magenta));
}

.contact-tab svg {
    width: 18px;
    height: 18px;
}

/* Tab Panels */
.tab-panels {
    position: relative;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.tab-panel {
    display: none;
    padding: 1rem 1.5rem;
    height: 100%;
}

.tab-panel.active {
    display: block;
}

/* Embedded form styling */
#panel-message {
    overflow-y: auto;
}

#panel-message iframe,
#panel-message form,
#panel-message > div {
    max-height: 100%;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--dark);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(42, 175, 201, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
    font-weight: 300;
}

.btn-submit {
    padding: 0.875rem 2rem;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal), var(--magenta));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit span {
    position: relative;
    z-index: 1;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 175, 201, 0.3);
}

.btn-submit:hover::before {
    opacity: 1;
}

/* Schedule Tab - Google Calendar Embed */
#panel-schedule iframe {
    border-radius: 8px;
}

/* Honeypot field - hidden from humans */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */
.footer-note {
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted);
    flex-shrink: 0;
}

/* ============================================
   Responsive - Medium Viewports
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    section:not(#hero) {
        padding-top: 5vh;
        padding-bottom: 5vh;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        box-shadow: var(--shadow);
    }

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

    .hamburger {
        display: flex;
    }

    section {
        height: calc(100svh - var(--nav-height));
        min-height: calc(100svh - var(--nav-height));
        max-height: calc(100svh - var(--nav-height));
    }

    #hero {
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
    }

    section:not(#hero) {
        padding-top: 3vh;
        padding-bottom: 3vh;
    }

    .card {
        padding: 1.75rem 1.25rem;
    }

    .hero-card {
        padding: 2rem 1.25rem;
    }

    #hero h1 {
        font-size: 1.75rem;
    }

    .corner-accent {
        display: none;
    }

    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .challenge-card {
        padding: 1.25rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    .quote-mark {
        font-size: 2.5rem;
    }

    .testimonial-card blockquote {
        font-size: 0.95rem;
    }

    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .about-image {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }

    .contact-card {
        max-height: calc(100svh - var(--nav-height) - 2rem);
    }

    .contact-header {
        padding: 1rem 1rem 0.75rem;
    }

    .contact-header h2 {
        font-size: 1.25rem;
    }

    .contact-header p {
        font-size: 0.8rem;
    }

    .contact-tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .tab-panel {
        padding: 0.75rem 1rem;
    }

    .footer-note {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

}

/* ============================================
   Responsive - Very Small Screens
   ============================================ */
@media (max-width: 400px) {
    h1 {
        font-size: 1.5rem;
    }

    #hero h1 {
        font-size: 1.5rem;
    }

    .hero-card .subhead {
        font-size: 0.95rem;
    }

    .contact-tab {
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .contact-tab svg {
        width: 16px;
        height: 16px;
    }
}
