/* ============================================
   Learn With Lorna - Stylesheet
   ============================================ */

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

:root {
    --coral: #f38576;
    --coral-light: #f8b5ac;
    --coral-dark: #a65b50;
    --cream: #FFEFEF;
    --cream-dark: #f5ddd8;
    --brown: #3e2424;
    --brown-light: #5a3a3a;
    --text: #3e2424;
    --text-light: #6b4a4a;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(62, 36, 36, 0.08);
    --shadow-md: 0 4px 20px rgba(62, 36, 36, 0.12);
    --shadow-lg: 0 8px 40px rgba(62, 36, 36, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--brown);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }

em {
    font-style: italic;
    color: var(--coral);
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--coral);
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-subtitle {
    margin-top: 16px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(224, 120, 96, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--brown);
    border-color: var(--brown);
}

.btn-secondary:hover {
    background: var(--brown);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(74, 50, 40, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--coral);
    border-color: var(--coral);
}

.btn-outline:hover {
    background: var(--coral);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(224, 120, 96, 0.3);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* --- Promo Banner --- */
.promo-banner {
    background: var(--brown);
    color: var(--cream);
    text-align: center;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.promo-banner strong {
    color: var(--coral-light);
}

.promo-banner a {
    color: var(--coral-light);
    text-decoration: underline;
    margin-left: 8px;
    font-weight: 600;
}

.promo-banner a:hover {
    color: var(--white);
}

/* --- SVG Decorations --- */
.svg-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
    z-index: 0;
}

.svg-globe {
    width: 300px;
    height: 300px;
    right: -80px;
    bottom: -60px;
}

.svg-compass {
    width: 200px;
    height: 200px;
    left: -60px;
    top: 40%;
}

.svg-pi {
    width: 160px;
    height: 160px;
    right: -40px;
    top: 20%;
}

.svg-ruler {
    width: 250px;
    height: 250px;
    left: -80px;
    bottom: -40px;
}

.svg-graph {
    width: 180px;
    height: 180px;
    right: 5%;
    top: -30px;
}

/* --- Star Rating --- */
.star-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.star-rating svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0;
    color: #f59e0b;
    fill: #f59e0b;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    top: 0;
    box-shadow: 0 1px 20px rgba(62, 36, 36, 0.1);
}

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

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

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brown);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--coral);
    background: var(--cream);
}

.nav-link.active-link {
    color: var(--coral);
}

.nav-link.nav-cta {
    background: var(--coral);
    color: var(--white);
    margin-left: 8px;
}

.nav-link.nav-cta:hover {
    background: var(--coral-dark);
    color: var(--white);
}

.nav-link.nav-portal {
    background: var(--brown);
    color: var(--cream);
    border: 2px solid var(--brown);
    margin-left: 4px;
}

.nav-link.nav-portal:hover {
    background: transparent;
    color: var(--brown);
    border-color: var(--brown);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 2.5px;
    background: var(--brown);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 80px;
    background: var(--cream);
    overflow: hidden;
    position: relative;
}

/* Floating geography/maths icons background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(224, 120, 96, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(224, 120, 96, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--coral);
    margin-bottom: 16px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--coral);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-lg) + 4px);
    border: 3px solid var(--coral-light);
    pointer-events: none;
    z-index: 1;
}

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

/* Floating decorative elements around hero image */
.hero-float {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: float 6s ease-in-out infinite;
}

.hero-float-1 {
    width: 80px;
    height: 80px;
    background: rgba(224, 120, 96, 0.1);
    top: -20px;
    right: -30px;
    animation-delay: 0s;
}

.hero-float-2 {
    width: 50px;
    height: 50px;
    background: rgba(224, 120, 96, 0.08);
    bottom: 40px;
    left: -25px;
    animation-delay: 2s;
}

.hero-float-3 {
    width: 35px;
    height: 35px;
    background: rgba(224, 120, 96, 0.12);
    top: 50%;
    right: -40px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

/* --- About Hero (about.html) --- */
.about-hero {
    padding: 180px 0 80px;
    background: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(224, 120, 96, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(224, 120, 96, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.about-hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: heroSlideIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.about-hero-content h1 {
    margin-bottom: 20px;
}

.about-hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: var(--cream);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    display: flex;
    gap: 16px;
    align-items: stretch;
    height: 400px;
}

.about-img-main,
.about-img-secondary {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-img-main:hover,
.about-img-secondary:hover {
    transform: scale(1.03);
}

.about-img-main img,
.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-dark);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Roboto Slab', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--coral);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Subjects Section --- */
.subjects {
    padding: 100px 0;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern overlay */
.subjects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(224, 120, 96, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224, 120, 96, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.subjects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative;
}

.subject-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--coral-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(74, 50, 40, 0.15);
}

.subject-card:hover::before {
    transform: scaleX(1);
}

.subject-icon {
    width: 64px;
    height: 64px;
    color: var(--coral);
    margin-bottom: 24px;
    transition: transform 0.4s ease;
}

.subject-card:hover .subject-icon {
    transform: rotate(5deg) scale(1.1);
}

.subject-card h3 {
    margin-bottom: 16px;
}

.subject-card > p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.subject-features {
    list-style: none;
    margin-bottom: 32px;
}

.subject-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.subject-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(224, 120, 96, 0.12);
    border: 2px solid var(--coral);
}

.subject-features li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 13px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--coral);
    border-bottom: 2px solid var(--coral);
    transform: rotate(-45deg);
}

/* --- How It Works --- */
.how-it-works {
    padding: 100px 0;
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--cream-dark), var(--coral-light), var(--cream-dark));
    z-index: 0;
}

.step {
    text-align: center;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    color: var(--coral);
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 2px solid var(--coral-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.step:hover .step-number {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(224, 120, 96, 0.3);
}

.step h3 {
    margin-bottom: 12px;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 4px solid transparent;
    color: var(--text);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--brown);
    color: var(--cream);
    border-left-color: var(--coral);
}

.testimonial-card:hover .testimonial-quote {
    color: var(--coral-light);
}

.testimonial-card:hover .testimonial-author {
    color: var(--coral-light);
}

.testimonial-card:hover p {
    color: var(--cream);
}

.testimonial-quote {
    font-family: 'Roboto Slab', serif;
    font-size: 3.5rem;
    color: var(--coral-light);
    line-height: 1;
    margin-bottom: -8px;
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
    transition: color 0.4s ease;
}

.testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--coral);
    transition: color 0.4s ease;
}

/* --- Personal Section --- */
.personal {
    padding: 100px 0;
}

.personal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.personal-content h2 {
    margin-bottom: 24px;
}

.personal-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.personal-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.personal-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 3 / 4;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.personal-img:hover {
    transform: scale(1.03);
}

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

/* --- Location Section --- */
.location {
    padding: 100px 0;
    background: var(--brown);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(224, 120, 96, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(224, 120, 96, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.location-content h2 {
    color: var(--cream);
    margin-bottom: 24px;
}

.location-content p {
    color: rgba(253, 246, 240, 0.8);
    margin-bottom: 16px;
}

.location-areas h3 {
    color: var(--cream);
    margin-bottom: 20px;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.area-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(253, 246, 240, 0.1);
    border: 1px solid rgba(253, 246, 240, 0.2);
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: var(--cream);
    transition: all 0.3s ease;
}

.area-tag:hover {
    background: var(--coral);
    border-color: var(--coral);
    transform: translateY(-2px);
}

.location-note {
    font-size: 0.9rem;
    color: var(--coral-light);
    font-style: italic;
    margin-top: 8px;
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
    background: var(--cream);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.contact-detail:hover {
    transform: translateX(6px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--coral);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-detail:hover .contact-icon {
    background: var(--coral);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(224, 120, 96, 0.3);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-detail div {
    display: flex;
    flex-direction: column;
}

.contact-detail strong {
    font-size: 0.95rem;
    color: var(--brown);
}

.contact-detail a,
.contact-detail span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 320px;
    transition: transform 0.5s ease;
}

.contact-image:hover {
    transform: scale(1.02);
}

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

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--white);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(74, 50, 40, 0.1);
    position: relative;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--coral-light), var(--coral));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brown);
    margin-bottom: 6px;
}

.optional {
    font-weight: 400;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(224, 120, 96, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b5d55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--coral);
    cursor: pointer;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 12px;
}

.form-success {
    text-align: center;
    padding: 48px 32px;
    animation: fadeScaleIn 0.5s ease forwards;
}

.success-icon {
    color: #34d399;
    margin-bottom: 20px;
}

.form-success h3 {
    margin-bottom: 12px;
    color: var(--brown);
}

.form-success p {
    color: var(--text-light);
    margin-bottom: 28px;
}

.btn-sending {
    opacity: 0.7;
    pointer-events: none;
}

@keyframes fadeScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Footer --- */
.footer {
    background: var(--brown);
    color: var(--cream);
    padding: 60px 0 24px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--coral-light), var(--coral));
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 42px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1) opacity(0.9);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(253, 246, 240, 0.7);
    max-width: 320px;
}

.footer h4 {
    color: var(--cream);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(253, 246, 240, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--coral-light);
    padding-left: 6px;
}

.footer-contact a {
    color: var(--coral-light);
    font-size: 0.9rem;
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(253, 246, 240, 0.7);
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(253, 246, 240, 0.15);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(253, 246, 240, 0.5);
}

/* ============================================
   Animations
   ============================================ */

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.reveal-stagger .reveal-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-stagger.visible .reveal-child {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hero entrance */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroSlideIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.hero-image {
    opacity: 0;
    transform: translateX(40px);
    animation: heroImageIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

@keyframes heroSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroImageIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Counter animation for stats */
.stat-number {
    transition: transform 0.4s ease;
}

.stat:hover .stat-number {
    transform: scale(1.15);
}

/* Parallax-style subtle section movement */
.parallax-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ============================================
   Responsive Design
   ============================================ */

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

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

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

    .hero-image-wrapper img {
        height: 420px;
    }

    .hero-float { display: none; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

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

    .personal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-image {
        display: none;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }

    .nav-logo img {
        height: 40px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 80px 24px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1002;
        overflow-y: auto;
        list-style: none;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link {
        display: block;
        font-size: 1.2rem;
        padding: 16px 24px;
        border-radius: 12px;
        width: 100%;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:active {
        background: var(--cream);
    }

    .nav-toggle {
        display: flex;
        z-index: 1003;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-link.nav-cta {
        margin-left: 0;
        margin-top: 4px;
        text-align: center;
    }

    .nav-link.nav-portal {
        margin-left: 0;
        margin-top: 4px;
        text-align: center;
    }

    .promo-banner {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .navbar {
        top: 34px;
    }

    .hero {
        padding: 130px 0 60px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .personal-images {
        grid-template-columns: 1fr 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
    }

    .hero-image-wrapper img {
        height: 320px;
    }

    .about-images {
        flex-direction: column;
        height: auto;
    }

    .about-img-main,
    .about-img-secondary {
        height: 250px;
    }

    .personal-images {
        grid-template-columns: 1fr;
    }

    .personal-img {
        aspect-ratio: 4 / 3;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 12px;
    }

    .subject-card {
        padding: 32px 24px;
    }
}
