* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Fixed Background */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/getty_green_sitebg.jpg') center/cover no-repeat;
    background-attachment: scroll; /* Fix for iOS */
    z-index: -1;
}

/* Fixed Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: none;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: none; /* Safari support */
}

.navbar.scrolled {
    background: rgba(10, 68, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5aa0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 160px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo::before {
    content: "";
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(218, 165, 32, 0.9);
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links a:hover {
    background: rgba(34, 139, 34, 0.9);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.4);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: transparent;
    transition: width 0.3s ease;
}

.phone-number {
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-number:hover {
    background: rgba(229, 90, 43, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1002;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Content Container */
.content {
    position: relative;
    z-index: 1;
    background: white;
    margin-top: 100vh;
    margin-top: 100dvh; /* Dynamic viewport height for mobile */
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    background: transparent;
    color: white;
    text-align: center;
    position: absolute;
    top: 50%;
    top: 50dvh; /* Use dynamic viewport height */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    z-index: 2;
    padding: 1rem;
    box-sizing: border-box;
}

.hero-section h1 {
    font-size: 3.5rem;

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: rgba(218, 165, 32, 0.9);
    color: black;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(218, 165, 32, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    background: rgba(34, 139, 34, 0.9);
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(34, 139, 34, 0.5);
}

.hero-free-quotes-button {
    font-size: 1.35rem;
    padding: 1.2rem 2.6rem;
    min-width: 280px;
}

.hero-section h2 {
    color: white
}

h2 {
    font-size: 2.5rem;
 
    color: #146414;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;

}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(218, 165, 32, 0.3);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(34, 139, 34, 0.2);
    border-color: rgba(34, 139, 34, 0.5);
}

.service-card::before {
    content: "";
    width: 150px;
    height: 108px;
    margin: 0 auto 1rem;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.service-card-rv::before { background-image: url('../images/clip-5thwheel.png'); }
.service-card-vehicle::before { background-image: url('../images/clip-boat.png'); }
.service-card-container::before { background-image: url('../images/clip-container.png'); }

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: linear-gradient(135deg, #146414, #228B22);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.4);
}

.contact-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-phone-box {
    background: linear-gradient(135deg, #146414, #228B22);
    color: white;
    padding: 4rem 2rem;
    border-radius: 25px;
    text-align: center;
    margin: 3rem auto;
    max-width: 600px;
    box-shadow: 0 8px 30px rgba(34, 139, 34, 0.4);
    transition: transform 0.3s ease;
}

.contact-phone-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(34, 139, 34, 0.5);
}

.contact-phone-box h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-phone-box h1 {
    font-size: 4rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* iOS Safari fixes */
@supports (-webkit-touch-callout: none) {
    .bg-container {
        position: absolute;
        height: 100vh;
    }
    
    .content {
        margin-top: 100vh;
    }
    
    .hero-section {
        top: 50vh;
    }
}

/* Prevent zoom on input focus for iOS */
input, select, textarea {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --navbar-offset: 90px;
    }

    .navbar {
        padding: 0.5rem 1rem;
        flex-wrap: nowrap;
        min-height: 80px;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex-shrink: 0;
        min-width: 120px;
    }

    .logo-img {
        height: 60px;
        max-width: 180px;
        object-fit: contain;
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px; /* Account for navbar height */
        left: 0;
        width: 100%;
        background: rgba(20, 100, 20, 0.98);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        gap: 0.5rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        text-align: center;
        margin: 0.2rem 0;
        border-radius: 8px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
        order: 3;
        margin-left: auto;
        flex-shrink: 0;
    }

    .mobile-menu-btn span {
        background: #DAA520;
        width: 28px;
        height: 4px;
    }

    .hero-section {
        width: 95%;
        padding: 1rem;
        min-height: auto;
    }

    .hero-section header {
        margin-bottom: 1rem;
    }

    .hero-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.3rem;
        line-height: 1.1;
    }

    .hero-section h2 {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        padding: 0 0.5rem;
        line-height: 1.4;
    }

    .cta-button {
        padding: 0.8rem 1.3rem;
        font-size: 0.95rem;
        display: inline-block;
        min-width: 200px;
    }

    .hero-free-quotes-button {
        font-size: 1.15rem;
        padding: 1rem 2rem;
        min-width: 250px;
    }

    section {
        padding: 2rem 1rem;
    }

    h2 {
        font-size: 1.7rem;
        margin-bottom: 1.2rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }

    .service-card {
        padding: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .service-card::before {
        width: 130px;
        height: 94px;
        margin-bottom: 0.8rem;
    }

    .contact-phone-box {
        padding: 1.8rem 1rem;
        margin: 1.5rem auto;
        max-width: 90%;
    }

    .contact-phone-box h1 {
        font-size: 2.2rem;
        line-height: 1;
        margin: 0.5rem 0;
    }

    .contact-phone-box h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }

    .footer p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    :root {
        --navbar-offset: 80px;
    }

    .navbar {
        padding: 0.4rem 0.8rem;
        min-height: 70px;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex-shrink: 0;
        min-width: 100px;
    }

    .logo-img {
        height: 50px;
        max-width: 150px;
        object-fit: contain;
        display: block;
    }

    .phone-number {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }

    .nav-links {
        top: 70px;
        padding: 0.8rem;
        max-height: calc(100vh - 70px);
    }

    .nav-links a {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
        margin: 0.1rem 0;
    }

    .mobile-menu-btn {
        flex-shrink: 0;
    }

    .mobile-menu-btn span {
        width: 26px;
        height: 3px;
    }

    .hero-section {
        width: 98%;
        padding: 0.8rem 0.5rem;
    }

    .hero-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .hero-section h1 {
        font-size: 1.7rem;
        margin-bottom: 0.2rem;
        line-height: 1;
    }

    .hero-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
        line-height: 1.1;
    }

    .hero-section p {
        font-size: 0.85rem;
        padding: 0 0.3rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .cta-button {
        padding: 0.7rem 1.1rem;
        font-size: 0.85rem;
        min-width: 180px;
    }

    .hero-free-quotes-button {
        font-size: 1rem;
        padding: 0.9rem 1.6rem;
        min-width: 220px;
    }

    section {
        padding: 1.3rem 0.8rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.1rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .service-card {
        padding: 1rem 0.8rem;
        margin-bottom: 0.3rem;
    }

    .service-card::before {
        width: 116px;
        height: 84px;
        margin-bottom: 0.6rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .contact-phone-box {
        padding: 1.3rem 0.8rem;
        margin: 1.2rem auto;
        max-width: 95%;
    }

    .contact-phone-box h1 {
        font-size: 1.9rem;
        line-height: 0.9;
        margin: 0.3rem 0;
    }

    .contact-phone-box h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .footer {
        padding: 1rem 0.8rem;
    }

    .footer p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero-section h1 {
        font-size: 1.4rem;
    }

    .hero-section h2 {
        font-size: 1.1rem;
    }

    .hero-section h4 {
        font-size: 0.85rem;
    }

    .hero-section p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .cta-button {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
        min-width: 160px;
    }

    .hero-free-quotes-button {
        font-size: 0.95rem;
        padding: 0.85rem 1.4rem;
        min-width: 210px;
    }

    .contact-phone-box h1 {
        font-size: 1.6rem;
    }

    .contact-phone-box h3 {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 0.8rem 0.6rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    section {
        padding: 1rem 0.6rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Keep anchored sections clear of fixed navbar (desktop logo is ~160px) */
:root {
    --navbar-offset: 200px;
}

section[id] {
    scroll-margin-top: var(--navbar-offset);
}

/* Bottom anchor should still land near the true bottom */
#page-bottom {
    scroll-margin-top: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #146414, #228B22);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Loading animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Gallery page */
.gallery-page-content {
    margin-top: var(--navbar-offset);
    min-height: 60vh;
}

.gallery-section {
    padding-top: 3rem;
}

.gallery-section h1 {
    margin-bottom: 1.5rem;
}

.gallery-intro {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(218, 165, 32, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(34, 139, 34, 0.2);
    border-color: rgba(34, 139, 34, 0.5);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-item figcaption {
    padding: 0.75rem 1rem 0;
    font-weight: 600;
    color: #146414;
}

.gallery-caption {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
    color: #555;
}

.gallery-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.gallery-page .navbar {
    background: rgba(10, 68, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}
