/* ========================================
   Seaside Landscaping Inc. — Custom Styles
   Classic & Elegant | Charcoal + Coral
======================================== */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #ff5c2b;
    color: #ffffff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff5c2b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f04515;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #ff5c2b;
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* ---------- Gallery Items ---------- */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: rgba(255, 92, 43, 0.5);
}

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ---------- Form Inputs ---------- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #a0a0a0;
}

/* ---------- Navbar Scroll State ---------- */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ---------- Back to Top ---------- */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 92, 43, 0.4);
}

/* ---------- Fade-in Animations (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    nav, #back-to-top, .gallery-item::after {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
