/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ─── Page Loader ─── */
.page-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo { margin-bottom: 1.5rem; }
.loader-bar {
    width: 120px; height: 3px; background: rgba(255,255,255,0.1);
    border-radius: 999px; overflow: hidden; margin: 0 auto;
}
.loader-fill {
    height: 100%; width: 0%; border-radius: 999px;
    background: linear-gradient(90deg, #F4845F, #E85D75);
    animation: loaderFill 1.4s ease-in-out forwards;
}
@keyframes loaderFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ─── Utility ─── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── Container ─── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; }

/* ─── Header ─── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
    background: rgba(250,250,249,0.85);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
}
.nav-link {
    padding: 0.5rem 1rem; border-radius: 999px;
    color: #5A6B7E; font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: #E85D75; background: rgba(232,93,117,0.08); }
.mobile-nav-link {
    display: block; padding: 1rem 0; font-size: 1.25rem; font-weight: 500;
    color: #2D3748; border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-link:hover { color: #E85D75; padding-left: 0.5rem; }

/* ─── Hero ─── */
.hero {
    position: relative; min-height: 90vh; display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #2D3748 0%, #4A5568 30%, #5A6B7E 50%, #7A8BA0 70%, #A8B4C4 100%);
}
.hero-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(244,132,95,0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(232,93,117,0.12) 0%, transparent 50%),
                      radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
}
.hero-floating {
    position: absolute; z-index: 1;
    animation: float 6s ease-in-out infinite;
}
.hero-float-1 { top: 15%; left: 8%; animation-delay: 0s; }
.hero-float-2 { top: 25%; right: 10%; animation-delay: -1.5s; }
.hero-float-3 { bottom: 30%; left: 5%; animation-delay: -3s; }
.hero-float-4 { top: 40%; right: 5%; animation-delay: -4.5s; }
.hero-float-5 { bottom: 20%; right: 15%; animation-delay: -2s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(2deg); }
    66% { transform: translateY(6px) rotate(-1deg); }
}
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; line-height: 0; }

/* ─── Section Labels & Titles ─── */
.section-label {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: #E85D75; margin-bottom: 1rem;
}
.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: #2D3748; line-height: 1.15; margin-bottom: 1.25rem;
}
.section-desc { color: #5A6B7E; font-size: 1.05rem; line-height: 1.7; }

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, #F4845F 0%, #E85D75 100%);
    color: white; padding: 1rem 2rem; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(232,93,117,0.3);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,93,117,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ─── Inputs ─── */
.input-field {
    width: 100%; padding: 0.875rem 1rem;
    border: 1.5px solid #E2E8F0; border-radius: 12px;
    background: #FAFAFA; color: #2D3748;
    font-size: 0.95rem; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
}
.input-field::placeholder { color: #A8B4C4; }
.input-field:focus { border-color: #F4845F; background: white; box-shadow: 0 0 0 4px rgba(244,132,95,0.1); }
.input-field.error { border-color: #E85D75; box-shadow: 0 0 0 4px rgba(232,93,117,0.1); }
textarea.input-field { resize: vertical; min-height: 120px; }

/* ─── Reveal Animations ─── */
.reveal-card {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left { opacity: 1; transform: translateX(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 1; transform: translateX(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-gallery { opacity: 1; transform: scale(1); transition: opacity 0.6s ease, transform 0.6s ease; }

@media (prefers-reduced-motion: no-preference) {
    .reveal-card { opacity: 0; transform: translateY(30px); }
    .reveal-left { opacity: 0; transform: translateX(-30px); }
    .reveal-right { opacity: 0; transform: translateX(30px); }
    .reveal-gallery { opacity: 0; transform: scale(0.95); }
    
    .reveal-card.revealed, .reveal-left.revealed, .reveal-right.revealed, .reveal-gallery.revealed {
        opacity: 1; transform: translateY(0) translateX(0) scale(1);
    }
}

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #F4845F, #E85D75);
    color: white; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(232,93,117,0.35);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, box-shadow 0.2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 6px 20px rgba(232,93,117,0.5); transform: translateY(-2px); }

/* ─── Mobile Menu ─── */
#mobile-menu.open { transform: translateX(0); }
#mobile-menu { transform: translateX(100%); }

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .hero { min-height: 85vh; }
    .hero-floating { display: none; }
    .hero-floating.hero-float-1, .hero-floating.hero-float-2 { display: block; }
}

/* ─── Print ─── */
@media print {
    .site-header, .back-to-top, #page-loader { display: none !important; }
    .hero { min-height: auto; padding: 2rem 0; }
    body { color: #000; background: #fff; }
}
