/* ===== Custom Properties ===== */
:root {
    --burgundy: #6B1B2A;
    --burgundy-dark: #5A1624;
    --burgundy-light: #C4707A;
    --blush: #F5E6E0;
    --cream: #FDF8F6;
    --dark: #2A1F1F;
    --dark-soft: rgba(42, 31, 31, 0.6);
    --dark-muted: rgba(42, 31, 31, 0.4);
    --dark-faint: rgba(42, 31, 31, 0.15);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--sans);
    color: var(--dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

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

/* ===== Typography ===== */
.font-serif { font-family: var(--serif); }
.font-sans { font-family: var(--sans); }

/* ===== Section Styles ===== */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--dark);
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-soft);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--burgundy);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    box-shadow: 0 8px 30px rgba(107, 27, 42, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 13px 26px;
    border-radius: 50px;
    border: 1.5px solid var(--dark-faint);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

/* ===== Navigation ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--dark-faint);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--burgundy);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--burgundy) !important;
}

/* Mobile Menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-link {
    transition: color 0.3s ease;
}

/* ===== Hero Animations ===== */
.hero-tagline {
    animation: slideUp 0.7s ease forwards;
}

.hero-headline {
    animation: slideUp 0.7s ease forwards;
}

.hero-subtext {
    animation: slideUp 0.7s ease forwards;
}

.hero-ctas {
    animation: slideUp 0.7s ease forwards;
}

.hero-stats {
    animation: slideUp 0.7s ease forwards;
}

.hero-image {
    animation: fadeIn 1s ease forwards;
}

.hero-accent {
    animation: fadeIn 0.8s ease forwards;
}

.hero-decor {
    animation: fadeIn 1s ease forwards;
}

.hero-decor2 {
    animation: fadeIn 1.2s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Scroll Indicator ===== */
.scroll-line {
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.7; transform: scaleY(1.2); }
}

/* ===== Service Cards ===== */
.service-card {
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(107, 27, 42, 0.08);
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== Select Styling ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236B1B2A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-accent {
        display: none;
    }

    #hero {
        padding-top: 100px;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Selection ===== */
::selection {
    background: var(--burgundy);
    color: #fff;
}
