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

:root {
    --cal-terra: #B5523B;
    --cal-terra-light: #D4735D;
    --cal-sand: #D4C4A8;
    --cal-gold: #C9A84C;
    --cal-dark: #0F0F0F;
    --cal-card: #161616;
    --cal-border: #2A2520;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: var(--cal-terra);
    color: white;
}

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

#navbar.scrolled {
    background: rgba(7, 7, 7, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(42, 37, 32, 0.5);
}

.nav-link {
    position: relative;
}

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

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

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

.mobile-link {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Hero ===== */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Stat Cards */
.floating-card {
    background: rgba(22, 22, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(42, 37, 32, 0.6);
    border-radius: 1rem;
    padding: 1.25rem;
    width: 180px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.stat-card-1 {
    animation: float1 6s ease-in-out infinite;
}

.stat-card-2 {
    animation: float2 7s ease-in-out infinite;
}

.stat-card-3 {
    animation: float3 5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(12px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Scroll Indicator */
.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--cal-border);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 1px;
    height: 16px;
    background: var(--cal-terra);
    position: absolute;
    top: -16px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -16px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 40px; opacity: 0; }
}

/* ===== Buttons ===== */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--cal-terra);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid var(--cal-terra);
}

.cta-primary:hover {
    background: var(--cal-terra-light);
    border-color: var(--cal-terra-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(181, 82, 59, 0.3);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--cal-sand);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0.75rem;
    border: 1px solid var(--cal-border);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: var(--cal-sand);
    color: white;
    transform: translateY(-2px);
}

/* ===== Section Labels & Titles ===== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cal-terra);
    position: relative;
    padding-left: 32px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 1px;
    background: var(--cal-terra);
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: white;
    line-height: 1.15;
}

/* ===== About ===== */
.about-image-wrapper {
    position: relative;
}

.about-image-accent {
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--cal-terra);
    border-radius: 1rem;
    opacity: 0.3;
    pointer-events: none;
}

.about-feature {
    transition: transform 0.3s ease;
}

.about-feature:hover {
    transform: translateX(4px);
}

/* ===== Services ===== */
.service-card {
    perspective: 1000px;
}

.service-card-inner {
    background: var(--cal-card);
    border: 1px solid var(--cal-border);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cal-terra), var(--cal-gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-card-inner {
    border-color: rgba(181, 82, 59, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover .service-card-inner::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background: rgba(181, 82, 59, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cal-terra);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(181, 82, 59, 0.2);
    transform: scale(1.05);
}

.service-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--cal-sand)/60;
    line-height: 1.7;
    font-size: 0.9375rem;
    flex: 1;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cal-terra);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 10px;
}

/* ===== Areas ===== */
.area-item {
    transition: all 0.3s ease;
}

.area-item:hover {
    transform: translateX(8px);
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--cal-card);
    border: 1px solid var(--cal-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card:hover {
    border-color: rgba(181, 82, 59, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-quote-mark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4rem;
    color: var(--cal-terra);
    line-height: 1;
    opacity: 0.4;
    position: absolute;
    top: 12px;
    left: 20px;
}

.testimonial-text {
    color: var(--cal-sand)/70;
    line-height: 1.8;
    font-size: 0.9375rem;
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
}

.testimonial-author {
    padding-top: 1rem;
    border-top: 1px solid var(--cal-border);
}

/* ===== Contact Form ===== */
.form-input,
.form-select,
.form-textarea {
    background: var(--cal-dark);
    border: 1px solid var(--cal-border);
    border-radius: 0.625rem;
    padding: 12px 16px;
    color: white;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--cal-sand)/30;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--cal-terra);
    box-shadow: 0 0 0 3px rgba(181, 82, 59, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4C4A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: var(--cal-dark);
    color: white;
}

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

/* ===== Contact Info ===== */
.contact-info-item {
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(4px);
}

/* ===== Footer ===== */
footer a {
    text-decoration: none;
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

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

    .hero-title {
        font-size: clamp(2.25rem, 8vw, 4rem);
    }

    .about-image-accent {
        display: none;
    }

    .testimonial-quote-mark {
        font-size: 3rem;
    }
}
