/*
Theme Name: Ortho Academy Morocco
Theme URI: https://example.com/ortho-academy
Author: Antigravity
Author URI: https://antigravity.google
Description: A premium, modern landing page theme for orthodontic interception training. Featuring glassmorphism, responsive design, and smooth animations.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: landing-page, medical, glassmorphism, responsive, one-column
Text Domain: ortho-academy
*/

/* --- Fonts & Design Tokens --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary: #005f73;
    --primary-light: #007f96;
    --secondary: #0a9396;
    --accent: #ee9b00;
    --dark: #001219;
    --light: #f8f9fa;
    --white: #ffffff;
    --platinum: #e9ecef;
    --text-main: #333333;
    --text-muted: #666666;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.1;
}

p {
    margin-bottom: 1.5rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(238, 155, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(238, 155, 0, 0.4);
    background-color: #efae00;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-5px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* --- Navigation --- */
nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    padding: 12rem 0 6rem;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--white);
    margin-bottom: 2rem;
}

.hero .highlight {
    color: var(--accent);
    position: relative;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 3.5rem;
    line-height: 1.4;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Section Titles --- */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Objectives --- */
.objectives {
    padding: 8rem 0;
    background: var(--white);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.glass-card {
    background: var(--light);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border-color: var(--secondary);
}

.glass-card .number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: rgba(0, 147, 150, 0.05);
}

.glass-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* --- Timeline --- */
.schedule {
    padding: 8rem 0;
    background: #f1f3f5;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 5;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--secondary);
    transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-content {
    border-bottom: 4px solid var(--accent);
}

.timeline-content .time {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.timeline-content h3 {
    margin-bottom: 1rem;
}

.timeline-content ul {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* --- Trainer Section (CRITICAL FIX) --- */
.trainer {
    padding: 10rem 0;
    background: var(--white);
    overflow: hidden;
}

.trainer-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.trainer-image-wrap {
    position: relative;
}

.trainer-image-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--accent);
    border-radius: var(--radius-md);
    z-index: 0;
}

.trainer-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.trainer-info h4 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ae2012;
    /* Matching the red element in the photo slightly */
}

.trainer-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.qual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.qual-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.qual-item span {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* --- Contact Section --- */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
}

.contact-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5rem 3rem;
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin: 0 auto;
}

.contact-glass h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.phone-display {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 3rem 0;
    display: block;
    color: var(--accent);
}

/* --- Footer --- */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .trainer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .trainer-image-wrap {
        max-width: 450px;
        margin: 0 auto 4rem;
    }

    .qual-grid {
        text-align: left;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .timeline-dot {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: 10rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}