/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background: #f9fafb;
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.3rem;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #1d4ed8;
    color: #fff;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #1d4ed8;
    border: 2px solid #1d4ed8;
}

.btn-secondary:hover {
    background: #eff6ff;
}

.btn-tertiary {
    background: #e0e7ff;
    color: #3730a3;
}

.btn-tertiary:hover {
    background: #c7d2fe;
}


.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: #1d4ed8;
    font-weight: 600;
    margin-bottom: 10px;
}

/* === NAVIGATION BAR === */
.navbar {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo .logo-img {
    height: 40px;
    width: auto;
    display: inline-block;
}

.nav-logo .icon {
    color: #1d4ed8;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-left: auto;
    margin-right: 30px;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1d4ed8;
}

#hamburger-btn {
    display: none;
}

#mobile-menu {
    display: none;
}


/* === HERO SECTION === */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    /* Static background image that shows until video loads */
    background-image: linear-gradient(rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.6)), url('../images/roof26.jpg');
    background-size: cover;
    background-position: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    /* Above background, below overlay */
    /* Start hidden, fade in when loaded */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.is-loaded {
    opacity: 1;
}

/* This creates the dark overlay so text is readable */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.6);
    z-index: 1;
    /* Above video, below content */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* Above overlay and video */
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #fff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3.5rem;
    color: #1d4ed8;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: #4b5563;
}

/* === WHY CHOOSE US SECTION === */
.why-us {
    background: #fff;
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    font-size: 1.5rem;
    color: #16a34a;
    margin-top: 5px;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature-item p {
    color: #4b5563;
}

/* === GALLERY SECTION === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* === ENHANCED BOOKING & RENTALS SECTION === */
#booking-rentals {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
#booking-rentals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(29, 78, 216, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(29, 78, 216, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.booking-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(29, 78, 216, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Gradient accent on top */
.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Subtle background glow on hover */
.booking-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.booking-card:hover::after {
    width: 500px;
    height: 500px;
}

.booking-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #3b82f6;
    box-shadow:
        0 20px 40px rgba(29, 78, 216, 0.15),
        0 0 0 1px rgba(29, 78, 216, 0.1),
        0 0 60px rgba(29, 78, 216, 0.08);
}

/* Icon container with animated background */
.booking-card .icon {
    position: relative;
    z-index: 1;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.15);
}

.booking-card .icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.booking-card:hover .icon::before {
    opacity: 1;
}

.booking-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.booking-card .icon i {
    font-size: 3rem;
    color: #1d4ed8;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    /* Increased from 1 to ensure it stays on top */
}

.booking-card:hover .icon i {
    color: #1e40af;
    /* Darker blue for better contrast */
    transform: scale(1.1);
}

/* Typography enhancements */
.booking-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.booking-card:hover h3 {
    transform: translateY(-2px);
}

.booking-card p {
    position: relative;
    z-index: 1;
    color: #6b7280;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Price styling with animated underline */
.booking-card .price {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    display: inline-block;
}

.booking-card .price::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-card:hover .price::after {
    transform: translateX(-50%) scaleX(1);
}

.booking-card .price-note {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 30px;
    font-style: italic;
}

/* Enhanced button styles */
.booking-card .btn {
    position: relative;
    z-index: 1;
    margin-top: auto;
    font-size: 1.1rem;
    padding: 16px 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.booking-card .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.booking-card .btn:hover::before {
    width: 300px;
    height: 300px;
}

.booking-card .btn-primary {
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
}

.booking-card .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.4);
}

.booking-card .btn-tertiary {
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.15);
}

.booking-card .btn-tertiary:hover {
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.25);
}

/* Special styling for the priority card */
.booking-card:first-child {
    border-color: #fbbf24;
}

.booking-card:first-child::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
}

.booking-card:first-child:hover {
    border-color: #f59e0b;
    box-shadow:
        0 20px 40px rgba(245, 158, 11, 0.2),
        0 0 0 1px rgba(245, 158, 11, 0.15),
        0 0 60px rgba(245, 158, 11, 0.1);
}

.booking-card:first-child .icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.booking-card:first-child:hover .icon {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

.booking-card:first-child .icon::before {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.booking-card:first-child .icon i {
    color: #d97706;
}

.booking-card:first-child:hover .icon i {
    color: #b45309;
}

.trailers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.trailer-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.trailer-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.trailer-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trailer-info h4 {
    margin-bottom: 15px;
}

.rental-options {
    flex-grow: 1;
}

.rental-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rental-option label {
    font-weight: 500;
}

.rental-option input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
}

.trailer-info .btn {
    margin-top: 20px;
    width: 100%;
}

.rental-terms {
    margin-top: 50px;
    background: #f3f4f6;
    padding: 30px;
    border-radius: 12px;
}

.rental-terms h4 {
    margin-bottom: 15px;
}

.rental-terms ul {
    list-style-position: inside;
    padding-left: 5px;
    color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .booking-card {
        padding: 40px 30px;
    }

    .booking-card .icon {
        width: 80px;
        height: 80px;
    }

    .booking-card .icon i {
        font-size: 2.5rem;
    }

    .booking-card .price {
        font-size: 2.5rem;
    }
}


/* === CTA SECTION === */
.cta-section {
    background-color: #111827;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
}

.cta-section p {
    color: #d1d5db;
    max-width: 600px;
    margin: 20px auto 30px;
    font-size: 1.1rem;
}

.cta-section .btn-primary {
    background: #2563eb;
}

.cta-section .btn-primary:hover {
    background: #1d4ed8;
}

/* === LOGO SECTION === */
.logo-section {
    background: #f9fafb;
    padding: 60px 0;
    text-align: center;
}

.footer-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* === FOOTER === */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column p,
.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    line-height: 1.8;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    font-size: 1.5rem;
    color: #9ca3af;
    transition: color 0.3s;
}

.social-link:hover {
    color: #fff;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 5px;
}

.footer-social-btn.facebook {
    background-color: #1877F2;
    color: #fff;
}

.footer-social-btn.facebook:hover {
    background-color: #166fe5;
}

.footer-social-btn.bbb {
    background-color: #004F71;
    color: #fff;
}

.footer-social-btn.bbb:hover {
    background-color: #003b54;
}

.footer-social-btn i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 30px;
    color: #6b7280;
    font-size: 0.9rem;
}

/* === CONSULTATION MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.8);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #111827;
}

.modal-content h3 {
    margin-bottom: 10px;
    text-align: center;
}

.modal-content p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#form-response {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
}

.form-response-success {
    color: #16a34a;
}

.form-response-error {
    color: #dc2626;
}


/* === RESPONSIVE STYLES === */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .nav-links {
        display: none;
    }

    .desktop-cta-btn {
        display: none;
    }

    /* Mobile menu styles removed */
    .why-us-content {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        margin-top: 40px;
        order: 2;
    }

    .footer-content {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    /* Modal mobile styles */
    .modal-content {
        padding: 30px 20px 40px 20px;
        /* Extra bottom padding for submit button */
        width: 95%;
        max-height: 95vh;
        /* Increased from 90vh */
        overflow-y: auto;
        /* Ensure scrolling works */
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .modal-content form button[type="submit"] {
        margin-top: 10px;
        /* Extra space above button */
        margin-bottom: 20px;
        /* Space at bottom */
    }

    .booking-grid {
        grid-template-columns: 1fr;
    }
}

/* === LOADING SPINNER === */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1d4ed8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === NEW MOBILE VIDEO SECTION STYLES === */
.hero-static-image {
    display: none;
    /* Hidden on desktop by default */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.6)), url('../images/roof14.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

#mobile-video-section {
    display: none;
    /* Hidden on desktop by default */
    margin-top: 60px;
    /* Spacing from section above */
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 200px;
    /* Ensure space for spinner */
}

#mobile-video-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

#mobile-video-section video {
    width: 100%;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

/* === FINAL MOBILE HERO & VIDEO LAYOUT === */
@media (max-width: 768px) {

    /* 1. Adjust the hero section itself */
    .hero {
        min-height: 60vh;
        padding: 80px 0;
        margin-bottom: 8px;
        /* Minimal space before mobile video section */
    }

    /* 2. Hide the desktop background video */
    .hero .hero-video {
        display: none;
    }

    /* 3. Show the mobile static image background */
    .hero .hero-static-image {
        display: block;
    }

    /* 4. Show the new section containing the video player */
    #mobile-video-section {
        display: block;
        margin-top: 0;
        /* Reset margin */
        padding: 80px 0 0 0;
        /* Top padding for spacing, no bottom padding */
        background: #f9fafb;
        /* Light background to show spacing */
    }
}