/* 
 * Escuela Alba — Home Redesign
 * Palette: Sage Green, Gold, Cream
 */

:root {
    --sage: #4A7C59;
    --sage-dark: #375D43;
    --sage-deep: #1a2a1e;
    --sage-light: #E8F0EA;
    --gold: #C5A065;
    --gold-dark: #B08D55;
    --gold-glow: rgba(197, 160, 101, 0.25);
    --cream: #FDFBF7;
    --cream-warm: #F8F3EB;
    --white: #ffffff;
    --text: #2D2D2D;
    --text-light: #5C5C5C;
    --brown-dark: #2D1A16;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', -apple-system, sans-serif;

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.12);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Top Bar === */
.top-bar {
    background: var(--sage-dark);
    color: var(--white);
    padding: 8px 10px;
    text-align: center;
    font-size: 0.62rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--sage-dark);
    line-height: 1.2;
}

/* === Header & Nav === */
.header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo-link {
    display: flex;
    justify-content: center;
}

.logo {
    height: 55px;
    /* Slightly larger for focus */
    transition: var(--transition);
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.header-cta {
    display: none;
    /* Mobile hidden */
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sage);
    border: 1.5px solid var(--sage);
    padding: 8px 18px;
    border-radius: 30px;
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--sage);
    color: var(--white);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    width: 44px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sage-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* === Hero === */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--cream-warm) 0%, var(--sage-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, var(--gold-glow) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* === Sections === */
.section {
    padding: 80px 0;
    background: var(--cream);
}

.section.alt {
    background: var(--sage-light);
}

.section.gold-vibe {
    background: var(--cream-warm);
    border-top: 1px solid var(--gold-glow);
    border-bottom: 1px solid var(--gold-glow);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* === Philosophy Blocks === */
.philosophy-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--gold);
    margin-bottom: 30px;
}

/* === Profile Cards (Quienes Somos) === */
.profile-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    border: 1px solid var(--sage-light);
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold-glow);
    margin: 0 auto;
}

.profile-info h3 {
    font-size: 1.8rem;
    color: var(--sage-dark);
    margin-bottom: 15px;
    text-align: center;
}

.profile-list {
    list-style: none;
    padding: 0;
}

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

.profile-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.8rem;
}

.profile-bio {
    border-top: 1px solid var(--cream-warm);
    padding-top: 25px;
    margin-top: 10px;
}

.profile-bio p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.profile-bio strong {
    color: var(--sage-dark);
}

/* === Areas Grid === */
.areas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.area-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--sage-light);
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.area-card h3 {
    margin-bottom: 12px;
    color: var(--gold-dark);
}

/* === Quote === */
.quote-block {
    padding: 80px 0;
    background: var(--sage-dark);
    color: var(--white);
    text-align: center;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* === Footer === */
.footer {
    background: var(--brown-dark);
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--gold);
    transform: scale(1.1);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

/* === Mobile Menu Overlay === */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 30, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: var(--transition);
}

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

.drawer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.mobile-menu a {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
}

.mobile-menu a:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* === Utilities === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-links {
        display: flex;
        gap: 30px;
    }

    .menu-toggle {
        display: none;
    }
}

/* === Featured Home Sections === */
.workshop-promo {
    background: var(--brown-dark);
    color: var(--white);
    padding: 24px 0;
    text-align: center;
    border-bottom: 2px solid var(--gold);
}

.workshop-promo h3 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.workshop-promo p {
    font-size: 1rem;
    opacity: 0.9;
}

.featured-courses {
    padding: 40px 0;
    background: var(--white);
}

.courses-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.course-card-home {
    background: var(--cream-warm);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--sage-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    text-decoration: none;
    color: inherit;
}

.course-card-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.course-card-home h4 {
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.course-card-home .course-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--sage);
    color: var(--white);
    border-radius: 30px;
    font-weight: 700;
    margin-top: 20px;
    font-size: 0.9rem;
}

.contact-highlight {
    text-align: center;
    padding: 20px 0;
    background: var(--sage-light);
}

.contact-highlight a {
    color: var(--sage-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .courses-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workshop-promo h3 {
        font-size: 1.8rem;
    }
}