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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(123, 45, 59, 0.2);
    color: inherit;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #d997a3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

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

#navbar.scrolled {
    background: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-text {
    color: #7B2D3B;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #7B2D3B;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu button */
.nav-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    position: relative;
}

.menu-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #7B2D3B;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-line:nth-child(1) { top: 9px; }
.menu-line:nth-child(2) { top: 17px; }
.menu-line:nth-child(3) { top: 25px; }

.nav-menu-btn.active .menu-line:nth-child(1) {
    top: 17px;
    transform: translateX(-50%) rotate(45deg);
}

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

.nav-menu-btn.active .menu-line:nth-child(3) {
    top: 17px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile menu */
#mobile-menu {
    z-index: 40;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-family: 'Playfair Display', Georgia, serif;
    transition: color 0.3s ease;
}

/* ===== Hero ===== */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42, 13, 17, 0.82) 0%,
        rgba(123, 45, 59, 0.65) 50%,
        rgba(42, 13, 17, 0.75) 100%
    );
}

.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e5b800;
    color: #1c1700;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #ffcf14;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 184, 0, 0.3);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ===== Section Eyebrow ===== */
.section-eyebrow {
    display: block;
}

/* ===== Section Title ===== */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== Divider ===== */
.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #d997a3, transparent);
}

/* ===== About ===== */
.about-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-img-wrapper:hover .about-img {
    transform: scale(1.02);
}

/* ===== Services ===== */
.service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 207, 20, 0.3);
    transform: translateY(-4px);
}

.service-icon-wrap {
    color: #ffcf14;
    transition: color 0.3s ease;
}

/* ===== Approach ===== */
.approach-img {
    transition: transform 0.6s ease;
}

.approach-img:hover {
    transform: scale(1.01);
}

.approach-item {
    transition: transform 0.3s ease;
}

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

/* ===== Contact Form ===== */
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #47171f;
    background: #FDF8F5;
    border: 1.5px solid #e8bfc7;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: #d997a3;
}

.form-input:focus {
    border-color: #7B2D3B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

.form-select {
    cursor: pointer;
    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='%23d997a3' 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;
}

.form-input:hover {
    border-color: #c76e7a;
}

/* ===== Contact Info ===== */
.contact-icon {
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.05);
    background: #e8bfc7;
}

/* ===== Map ===== */
.map-container {
    position: relative;
    overflow: hidden;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(123, 45, 59, 0.1);
    pointer-events: none;
}

.map-container iframe {
    display: block;
    filter: saturate(0.7) contrast(1.05);
    transition: filter 0.4s ease;
}

.map-container:hover iframe {
    filter: saturate(0.9) contrast(1.05);
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    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: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-title br {
        display: none;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* ===== Focus visible ===== */
*:focus-visible {
    outline: 2px solid #e5b800;
    outline-offset: 2px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
