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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d95020;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c23b15;
}

/* ===== Geometric Decorations ===== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 108, 63, 0.06) 0%, transparent 70%);
    top: 10%;
    right: -100px;
}
.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.06) 0%, transparent 70%);
    bottom: 20%;
    left: -80px;
}
.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    pointer-events: none;
}
.geo-triangle--1 {
    top: 35%;
    left: 5%;
    border-width: 0 0 60px 60px;
    border-color: transparent transparent rgba(217, 80, 32, 0.07) transparent;
    transform: rotate(-15deg);
}
.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(217, 80, 32, 0.12) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
    top: 60%;
    right: 8%;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background: rgba(255, 252, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}
.nav-logo-text {
    transition: color 0.4s ease;
}
#navbar.scrolled .nav-logo-text {
    color: #4a3928;
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d95020;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
#navbar.scrolled .nav-link {
    color: #745a36;
}

/* ===== Hero ===== */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(74, 57, 40, 0.82) 0%,
        rgba(74, 57, 40, 0.65) 40%,
        rgba(127, 39, 20, 0.55) 100%
    );
}

/* ===== Marquee ===== */
.marquee-track {
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-content {
    animation: marquee-content 30s linear infinite;
}
@keyframes marquee-content {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Reveal Animations ===== */
.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-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}
.mobile-nav-link:hover {
    padding-left: 8px;
}

/* ===== Button hover effects ===== */
a[href="#menu"],
a[href="#contact"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}
button[type="submit"]:active {
    transform: scale(0.98);
}

/* ===== Section transitions ===== */
section {
    position: relative;
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d95020;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== 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;
    }
    .hero-img {
        animation: none;
    }
    .marquee-track,
    .marquee-content {
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .geo-circle, .geo-triangle, .geo-dots {
        display: none;
    }
}
