/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --color-bg: #FBF3E7;          /* Exact custom warm cream background */
    --color-navy: #132E35;        /* Deep elegant slate/navy */
    --color-coral: #E05A3E;       /* Warm accent coral */
    --color-tan: #EDE0CB;         /* Updated warmer tan background for secondary cards */
    --color-tan-dark: #E5DEC9;    /* Borders & lines */
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-navy);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Resets */
h1, h2, h3, h4 {
    font-weight: normal;
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   REUSABLE UTILITIES & COMPONENTS
   ========================================================================== */
.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tagline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-coral);
}

.highlight-serif {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-coral);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    font-family: var(--font-sans);
    text-align: center;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-dark {
    background-color: var(--color-navy);
    color: var(--color-bg);
    border: 1px solid var(--color-navy);
}

.btn-dark:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-coral {
    background-color: var(--color-coral);
    color: var(--color-white);
    border: 1px solid var(--color-coral);
    box-shadow: 0 4px 14px rgba(224, 90, 62, 0.25);
}

.btn-coral:hover {
    background-color: #cb4f34;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(224, 90, 62, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-navy);
    border: 1.5px solid var(--color-navy);
}

.btn-outline:hover {
    background-color: var(--color-navy);
    color: var(--color-bg);
}

.link-underlined {
    font-weight: 600;
    color: var(--color-navy);
    border-bottom: 2px solid var(--color-navy);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.link-underlined:hover {
    color: var(--color-coral);
    border-color: var(--color-coral);
}

/* Logo block */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(19, 46, 53, 0.3);
    font-family: var(--font-serif);
    font-weight: bold;
    font-size: 1.125rem;
    color: var(--color-navy);
}

.logo-icon.white-border {
    border-color: rgba(251, 243, 231, 0.3);
    color: var(--color-bg);
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.logo-text .dot {
    color: var(--color-coral);
}

/* Section Header standardizer */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4vw, 3rem);
    margin-top: 1rem;
    max-width: 800px;
}

/* Responsive helper */
.desktop-only {
    display: none;
}
@media (min-width: 768px) {
    .desktop-only {
        display: inline;
    }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.main-header {
    width: 100%;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: none;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.nav-links a {
    color: rgba(19, 46, 53, 0.8);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-navy);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 3rem 1.5rem 6rem;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 300;
    max-width: 580px;
    color: rgba(19, 46, 53, 0.85);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

/* Chat Visual Component */
.hero-visual {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-visual {
        justify-content: flex-end;
    }
}

.chat-card {
    background-color: var(--color-navy);
    width: 100%;
    max-width: 420px;
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(19, 46, 53, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quote-bg {
    position: absolute;
    right: 2rem;
    top: 1rem;
    font-family: var(--font-serif);
    font-size: 7.5rem;
    color: rgba(251, 243, 231, 0.08);
    line-height: 0;
    pointer-events: none;
}

.chat-bubble {
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 85%;
}

.bubble-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.bubble-student {
    background-color: var(--color-bg);
    color: var(--color-navy);
    border-top-left-radius: 0;
    align-self: flex-start;
}

.bubble-student .bubble-label {
    color: rgba(19, 46, 53, 0.5);
}

.bubble-teacher {
    background-color: var(--color-coral);
    color: var(--color-white);
    border-top-right-radius: 0;
    align-self: flex-end;
}

.bubble-teacher .bubble-label {
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   VALUES SECTION
   ========================================================================== */
.values-section, .steps-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1.5rem;
    border-top: 1px solid rgba(19, 46, 53, 0.1);
}

.values-panel {
    display: grid;
    grid-template-columns: 1fr;
    background-color: rgba(239, 234, 226, 0.2); /* Ultra-soft background panel */
    border: 1px solid rgba(19, 46, 53, 0.03);   /* Subtle container boundary */
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .values-panel {
        grid-template-columns: repeat(3, 1fr);
        padding: 4.5rem 2rem; /* Matches the breathing room of the reference */
    }
}

.value-column {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

@media (min-width: 768px) {
    .value-column {
        border-right: 1px solid rgba(19, 46, 53, 0.12); /* Clean vertical divider */
        padding: 1rem 3rem;
    }
    
    .value-column:last-child {
        border-right: none; /* Removes the border on the last column */
    }
    
    /* Adjust outer margins so the content aligns perfectly with the header edges */
    .value-column:first-child {
        padding-left: 1.5rem;
    }
    
    .value-column:last-child {
        padding-right: 1.5rem;
    }
}

/* Quote Icon */
.card-quote {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-coral);
    line-height: 0.8;
    margin-bottom: 0.5rem;
    display: block;
}

/* Column Headings (Serif Font) */
.value-column h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-navy);
    letter-spacing: -0.01em;
}

/* Column Body */
.value-column p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(19, 46, 53, 0.8);
}

/* ==========================================================================
   STEP CARDS (MATCHING THE ASYMMETRIC REFERENCE IMAGE)
   ========================================================================== */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .steps-container {
        flex-direction: row;
        align-items: stretch; /* Cards stretch to uniform height */
        gap: 1rem;
    }
}

.step-card {
    flex: 1;
    padding: 3rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Precise gap between heading and content */
}

/* Custom Asymmetric Corner Radii (Left, Middle, Right) */
.step-card.left-card {
    border-radius: 32px 0 32px 32px;
}

.step-card.middle-card {
    border-radius: 0;
}

.step-card.right-card {
    border-radius: 0 32px 32px 32px;
}

/* Responsive fallback layout (Vertical stack on smaller screens) */
@media (max-width: 1023px) {
    .step-card.left-card,
    .step-card.middle-card,
    .step-card.right-card {
        border-radius: var(--border-radius-lg); /* Soft fallback circles */
    }
}

/* Headings in Step Cards (Lora Serif) */
.step-card h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-navy);
}

.step-card.text-white h3 {
    color: var(--color-white);
}

/* Step Card Paragraphs */
.step-card p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(19, 46, 53, 0.8);
}

.step-card.text-white p {
    color: rgba(255, 255, 255, 0.9);
}

/* Directional Connecting Arrows */
.step-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-navy);
    user-select: none;
}

@media (min-width: 1024px) {
    .step-arrow {
        display: flex;
        flex: 0 0 auto;
    }
}

.bg-tan {
    background-color: var(--color-tan);
}

.bg-coral {
    background-color: var(--color-coral);
}

.text-white {
    color: var(--color-white);
}

/* ==========================================================================
   TESTIMONIAL SECTION
   ========================================================================== */
.testimonial-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.testimonial-card {
    background-color: var(--color-navy);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(19, 46, 53, 0.1);
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 5rem 4rem;
    }
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--color-coral);
    display: block;
    margin-bottom: 1.5rem;
    line-height: 0.5;
}

.testimonial-card blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-style: italic;
    color: var(--color-bg);
    font-weight: 300;
    line-height: 1.4;
    max-width: 900px;
}

.testimonial-card cite {
    display: block;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(251, 243, 231, 0.6);
    margin-top: 2rem;
}

/* ==========================================================================
   PRICING SECTION & CREATIVE BUTTONS
   ========================================================================== */
.pricing-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.pricing-card {
    background-color: var(--color-white);
    border: 1px solid rgba(19, 46, 53, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    transition: box-shadow 0.3s;
}

.pricing-card:hover {
    box-shadow: 0 20px 40px rgba(19, 46, 53, 0.05);
}

.pricing-card.highlighted {
    background-color: var(--color-coral);
    color: var(--color-white);
    box-shadow: 0 20px 40px rgba(224, 90, 62, 0.15);
    border: none;
}

@media (min-width: 768px) {
    .pricing-card.highlighted {
        transform: scale(1.05);
        z-index: 2;
    }
}

.pricing-card .badge {
    position: absolute;
    top: -0.75rem;
    right: 2rem;
    background-color: var(--color-navy);
    color: var(--color-bg);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pricing-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pricing-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.pricing-card .price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.pricing-card .amount {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
}

.pricing-card .unit {
    font-size: 0.875rem;
    color: rgba(19, 46, 53, 0.6);
}

.pricing-card.highlighted .unit {
    color: rgba(255, 255, 255, 0.8);
}

/* Feature Checks list */
.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list .check {
    color: var(--color-coral);
    font-weight: bold;
}

.pricing-card.highlighted .check {
    color: var(--color-white);
}

/* Creative Upgrades for Pricing Buttons */
.btn-pricing {
    width: 100%; /* Spans the card evenly */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 1.15rem 1.5rem;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Sliding Arrow Interaction */
.btn-pricing::after {
    content: '➔';
    display: inline-block;
    margin-left: 8px;
    font-size: 0.85rem;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-pricing:hover::after {
    transform: translateX(5px);
}

/* Standard Card Buttons (Tiers 1 & 3) */
.pricing-card:not(.highlighted) .btn-pricing {
    background-color: transparent;
    color: var(--color-navy);
    border: 1px solid rgba(19, 46, 53, 0.25);
}

.pricing-card:not(.highlighted) .btn-pricing:hover {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(19, 46, 53, 0.12);
}

/* Popular Highlight Card Button (Tier 2) */
.pricing-card.highlighted .btn-pricing {
    background-color: var(--color-white);
    color: var(--color-navy);
    border: 1px solid var(--color-white);
    box-shadow: 0 4px 12px rgba(19, 46, 53, 0.08);
}

.pricing-card.highlighted .btn-pricing:hover {
    background-color: var(--color-navy);
    color: var(--color-bg);
    border-color: var(--color-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(19, 46, 53, 0.22);
}

/* ==========================================================================
   BOOKING SECTION
   ========================================================================== */
.booking-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1.5rem;
    border-top: 1px solid rgba(19, 46, 53, 0.1);
}

.booking-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.booking-container h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4vw, 3rem);
}

.booking-container p {
    font-weight: 300;
    color: rgba(19, 46, 53, 0.75);
}

.booking-widget-container {
    width: 100%;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(19, 46, 53, 0.05);
    box-shadow: 0 10px 30px rgba(19, 46, 53, 0.02);
    margin-top: 1.5rem;
}

.placeholder-widget {
    border: 2px dashed rgba(19, 46, 53, 0.15);
    border-radius: var(--border-radius-md);
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.widget-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(19, 46, 53, 0.5);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--color-navy);
    color: var(--color-bg);
    padding: 4rem 1.5rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-meta {
    font-size: 0.875rem;
    color: rgba(251, 243, 231, 0.6);
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}