/* ============================================
   Tenderhearts Sdn Bhd - Style Sheet
   Montessori Early Childhood Education
   ============================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Quicksand:wght@300;400;500;600;700&family=Nunito:wght@300;400;600;700;800&display=swap');

/* === CSS Variables === */
:root {
    /* Warm & Nurturing Palette - Blush, Soft Coral, Sage, Cream */
    --primary: #D48B8B;
    --primary-dark: #B86B6B;
    --primary-light: #F0D0D0;
    --accent-coral: #E8A87C;
    --accent-coral-light: #F5D4BF;
    --accent-sage: #8FBC8F;
    --accent-sage-light: #C5E0C5;
    --accent-cream: #FFF8F0;
    --accent-warm: #F5E6D3;
    
    /* Neutrals */
    --bg: #FFFBF8;
    --bg-alt: #FDF5EE;
    --bg-card: #FFFFFF;
    --text-primary: #3D2C2A;
    --text-secondary: #6B5A58;
    --text-muted: #9A8B89;
    --border: #EDE4DC;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #D48B8B 0%, #B86B6B 100%);
    --gradient-coral: linear-gradient(135deg, #E8A87C 0%, #D48B8B 100%);
    --gradient-hero: linear-gradient(145deg, #FDF5EE 0%, #FFF8F0 40%, #F5E6D3 100%);
    --gradient-warm: linear-gradient(135deg, #F5E6D3 0%, #FFF8F0 100%);
    --gradient-sage: linear-gradient(135deg, #8FBC8F 0%, #7AAA7A 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(180, 130, 120, 0.08);
    --shadow-md: 0 6px 24px rgba(180, 130, 120, 0.12);
    --shadow-lg: 0 12px 40px rgba(180, 130, 120, 0.15);
    --shadow-xl: 0 20px 60px rgba(180, 130, 120, 0.18);
    
    /* Typography */
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Nunito', sans-serif;
    --font-accent: 'Quicksand', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-padding: 20px;
    --max-width: 1200px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* === Custom Cursor Elements === */
.rounded-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* === Container === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-primary);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
    padding: 6px 16px;
    background: var(--primary-light);
    border-radius: 20px;
}

.section-title {
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    font-family: var(--font-body);
    font-weight: 300;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(212, 139, 139, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(212, 139, 139, 0.45);
}

.btn-sage {
    background: var(--gradient-sage);
    color: #fff;
    box-shadow: 0 4px 16px rgba(143, 188, 143, 0.35);
}

.btn-sage:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(143, 188, 143, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-soft {
    background: var(--accent-cream);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-soft:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* === Header / Navigation === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255,251,248,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(180, 130, 120, 0.08);
    padding: 8px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: #fff;
    position: relative;
}

.logo-icon::after {
    content: '♡';
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.7rem;
    color: var(--primary-dark);
    background: var(--accent-cream);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo-text .accent {
    color: var(--primary);
}

.logo-sub {
    font-family: var(--font-accent);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-top: -2px;
}

/* Desktop Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-accent);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link:hover::after {
    width: 100%;
}

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

.nav-link.active::after {
    width: 100%;
}

/* === Mobile Menu Toggle === */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    mix-blend-mode: soft-light;
}

/* Floating shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-shape-1 {
    top: 15%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: rgba(212, 139, 139, 0.08);
    animation: float-shape 8s ease-in-out infinite;
}

.hero-shape-2 {
    bottom: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: rgba(143, 188, 143, 0.08);
    animation: float-shape 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
    top: 40%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(232, 168, 124, 0.06);
    animation: float-shape 7s ease-in-out infinite;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px var(--container-padding) 60px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text-col {
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--primary-light);
    border-radius: 50px;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-badge-icon {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.8vw, 3.5rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--primary);
    font-style: italic;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* Hero Image Column */
.hero-image-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-light);
    border-radius: 30px;
    z-index: 0;
}

.hero-image-frame img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.hero-image-accent {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background: var(--gradient-sage);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 2;
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* === Section Base === */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* === About Section (Why Choose Tenderhearts) === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(212, 139, 139, 0.2), transparent);
    z-index: 1;
}

.about-image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-image-frame:hover img {
    transform: scale(1.04);
}

.about-hearts {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-coral);
    color: #fff;
    padding: 20px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.about-hearts-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.about-hearts-text {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 24px;
    font-weight: 300;
}

.about-highlights {
    display: grid;
    gap: 14px;
}

.about-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: var(--accent-cream);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-highlight-item:hover {
    border-color: var(--primary-light);
    transform: translateX(5px);
    background: #fff;
}

.about-highlight-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    margin-top: 1px;
}

.about-highlight-text {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* === Carousel / About Pillars Section === */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pillar-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-number {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.pillar-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: var(--bg-alt);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: var(--transition);
}

.pillar-card:hover .pillar-icon {
    background: var(--primary-light);
    transform: scale(1.05);
}

.pillar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* === Features / What Makes Us Unique === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 38px 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.feature-card::after {
    content: '✦';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1rem;
    color: var(--primary-light);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-coral-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 0 20px;
    background: var(--bg-alt);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-light);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* === Access Steps (How to Access Tenderhearts) === */
.access-header {
    text-align: center;
    margin-bottom: 40px;
}

.access-header h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--text-primary);
    margin-bottom: 6px;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.access-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.access-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-sage-light);
}

.access-step {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-sage);
    background: var(--accent-sage-light);
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.access-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: var(--bg-alt);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: var(--transition);
}

.access-card:hover .access-icon {
    background: var(--accent-sage-light);
}

.access-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.access-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.access-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* === Services Section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    width: 54px;
    height: 54px;
    margin: 0 0 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--bg-alt);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-light);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* === Events / Gallery Section === */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 44, 42, 0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 900px;
    max-height: 80vh;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: lightboxIn 0.3s ease;
}

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

.lightbox-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.lightbox-info {
    padding: 36px 32px;
    overflow-y: auto;
}

.lightbox-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.lightbox-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* === Video Section === */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.video-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0e8e0;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-body {
    padding: 18px 22px;
}

.video-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.video-card-date {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* === Contact Section === */
.contact-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 14px;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 28px;
    font-weight: 300;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-method:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--accent-cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-cream);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.contact-form > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-weight: 300;
}

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

.form-group label {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 139, 139, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* === Footer === */
.footer {
    background: #3D2C2A;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .logo-text {
    color: #fff;
    font-size: 1.2rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 14px;
    max-width: 340px;
    color: rgba(255,255,255,0.45);
    font-weight: 300;
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.45);
    font-weight: 300;
}

.footer-contact-icon {
    min-width: 18px;
    color: var(--primary-light);
    margin-top: 3px;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* === Page Header === */
.page-header {
    padding: 140px 0 60px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(212, 139, 139, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-primary);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

/* === CTA Section === */
.cta-section {
    background: var(--gradient-warm);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(212, 139, 139, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 14px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 28px;
    font-weight: 300;
}

/* === Floating Elements === */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    color: #fff;
}

/* === Animation Classes === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* === Status Messages === */
.status-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
}

.status-message.success {
    display: block;
    background: rgba(143, 188, 143, 0.1);
    color: #5a8f5a;
    border: 1px solid rgba(143, 188, 143, 0.2);
}

.status-message.error {
    display: block;
    background: rgba(212, 139, 139, 0.1);
    color: #b86b6b;
    border: 1px solid rgba(212, 139, 139, 0.2);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 70px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text-col {
        padding-right: 0;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

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

    .hero-image-frame {
        max-width: 350px;
        margin: 0 auto;
    }

    .hero-image-frame img {
        height: 350px;
    }

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

    .about-image-frame img {
        height: 400px;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 16px;
    }

    /* Navigation */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        padding: 80px 36px;
        transition: var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }

    .nav.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        color: var(--text-primary);
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(61, 44, 42, 0.4);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .nav .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
    }

    /* Hero */
    .hero-content {
        padding-top: 100px;
    }

    .hero-image-frame img {
        height: 280px;
    }

    .hero-image-accent {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        bottom: -10px;
        right: -10px;
    }

    /* About */
    .about-image-frame img {
        height: 280px;
    }

    .about-hearts {
        bottom: -15px;
        right: 10px;
        padding: 16px 20px;
    }

    .about-hearts-icon {
        font-size: 1.4rem;
    }

    /* Grids */
    .pillars-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .pillar-card {
        padding: 28px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .access-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-item.wide {
        grid-column: span 2;
        aspect-ratio: 16/10;
    }

    .video-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Lightbox mobile */
    .lightbox-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
    }

    .lightbox-image {
        min-height: 250px;
        max-height: 300px;
    }

    .lightbox-info {
        padding: 24px 20px;
    }

    .lightbox {
        padding: 20px;
    }

    /* Contact */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .page-header {
        padding: 120px 0 50px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-image-frame img {
        height: 240px;
    }

    .hero-image-accent {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

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

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

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

    .gallery-item.wide {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
}
