/* ─── Base & Reset ─── */
*, *::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;
}

::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #f6f6f7;
}

/* ─── Hero Gradient ─── */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #0d0d0e 0%,
        #1c1c1e 25%,
        #2e2e34 50%,
        #1c1c1e 75%,
        #0d0d0e 100%
    );
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255, 107, 74, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(255, 120, 86, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 20%, rgba(255, 158, 136, 0.04) 0%, transparent 50%);
}

/* Subtle grid pattern */
.hero-pattern {
    background-image:
        linear-gradient(rgba(255, 107, 74, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 74, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ─── Hero Animations ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growWidth {
    from { width: 0; }
    to { width: 100%; }
}

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

.hero-badge {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-trust {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-accent-line {
    animation: fadeIn 1s ease-out 1.2s both;
}

.hero-accent-circle {
    animation: float 6s ease-in-out infinite;
}

.hero-accent-circle:nth-child(5) {
    animation-delay: -3s;
    animation-duration: 8s;
}

/* ─── Scroll Indicator ─── */
.scroll-indicator {
    animation: fadeIn 1s ease-out 1.5s both;
}

.scroll-indicator span {
    animation: float 2s ease-in-out infinite;
}

/* ─── Section Headers ─── */
.section-label {
    display: block;
    letter-spacing: 0.15em;
}

.section-title {
    position: relative;
}

/* ─── Service Cards ─── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 74, 0), transparent);
    transition: background 0.5s ease;
}

.service-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 74, 0.6), transparent);
}

/* ─── Gallery Items ─── */
.gallery-item {
    cursor: pointer;
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 107, 74, 0.05);
    line-height: 1;
    pointer-events: none;
}

/* ─── Scroll Reveal (below fold only) ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─── Mobile Menu ─── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ─── Navbar Transition ─── */
.nav-scrolled {
    background: rgba(6, 6, 7, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled #navbar {
    animation: slideDown 0.3s ease-out;
}

/* ─── Mobile Menu Toggle ─── */
#mobile-menu.open .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#mobile-menu.open .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}

/* ─── Form Styles ─── */
select option {
    background: #1c1c1e;
    color: #f6f6f7;
}

/* ─── 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;
    }
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem;
    }

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

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

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