/* ─── Base & Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ─── Navbar ─── */
#nav { height: 4.5rem; }
#nav.scrolled { box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08); }

/* ─── Hero Geometric Shapes ─── */
.geo-shape { position: absolute; pointer-events: none; }

.geo-circle-1 {
    top: 8%;
    left: 5%;
    width: 180px;
    height: 180px;
    border: 3px solid rgba(245, 213, 204, 0.25);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}
.geo-circle-2 {
    top: 25%;
    right: 38%;
    width: 80px;
    height: 80px;
    background: rgba(245, 213, 204, 0.12);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}
.geo-circle-3 {
    bottom: 15%;
    left: 15%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(245, 213, 204, 0.18);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}
.geo-rect-1 {
    top: 18%;
    right: 35%;
    width: 60px;
    height: 60px;
    background: rgba(245, 213, 204, 0.08);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}
.geo-rect-2 {
    bottom: 25%;
    left: 30%;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(245, 213, 204, 0.2);
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}
.geo-triangle {
    top: 60%;
    right: 40%;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(245, 213, 204, 0.1);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ─── Service Cards ─── */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-6px);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Back to Top ─── */
.back-to-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* ─── Mobile Menu ─── */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    transition: width 0.3s;
}
.mobile-link:hover::after {
    width: 100%;
}

/* ─── Form Focus ─── */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ─── Smooth anchor offset for fixed nav ─── */
section[id] {
    scroll-margin-top: 5rem;
}
