/* ===== Custom Styles for Barry's Let's Rent It Ltd ===== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(184, 87, 45, 0.2);
    color: #2C1E14;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #DDB57E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8572D;
}

/* --- Navigation --- */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #B8572D;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

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

/* --- Section Labels & Titles --- */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #B8572D;
    background: rgba(184, 87, 45, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(184, 87, 45, 0.15);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #2C1E14;
    line-height: 1.15;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3D2B1F;
}

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

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

.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
    animation-delay: 0.1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

#hero h1 {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

#hero p {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.35s;
    opacity: 0;
}

#hero .flex-wrap.gap-4.mb-12 {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.stat-card {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.6s; }
.stat-card:nth-child(2) { animation-delay: 0.7s; }
.stat-card:nth-child(3) { animation-delay: 0.8s; }

.hero-image {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* Floating animation for stat cards */
.stat-card:nth-child(1) {
    animation: fadeInUp 0.8s ease forwards, float 4s ease-in-out infinite;
    animation-delay: 0.6s, 2s;
}
.stat-card:nth-child(2) {
    animation: fadeInUp 0.8s ease forwards, float 4s ease-in-out infinite;
    animation-delay: 0.7s, 2.5s;
}
.stat-card:nth-child(3) {
    animation: fadeInUp 0.8s ease forwards, float 4s ease-in-out infinite;
    animation-delay: 0.8s, 3s;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B8572D, #CFA363);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.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; }

/* --- Mobile Menu --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 500px;
    padding-top: 0;
}

.mobile-nav-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(203, 163, 99, 0.15);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* --- Navbar Scrolled State --- */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(44, 30, 20, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #2C1E14;
}

/* --- Form Styles --- */
select option {
    color: #2C1E14;
    padding: 8px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .stat-card {
        animation: none !important;
    }
}

/* --- Print Styles --- */
@media print {
    nav, #contact-form, .stat-card { display: none; }
    body { background: white; }
}
