/* Responsive Design */

/* Tablet/Small Mobile Breakpoint - Increased from 768px to 1024px to accommodate larger menu */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero */
    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Grids */
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .boats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    /* Sections */
    section {
        padding: 40px 0 !important;
    }

    .page-header {
        padding: 20px 0 !important;
    }
}

/* Mobile Landscape (phone sideways) */
@media (max-width: 480px) and (orientation: landscape) {
    .boats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .boat-image {
        height: 150px;
    }

    .boat-content {
        padding: 0.75rem;
    }

    .boat-content h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .boat-content p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .boat-price {
        font-size: 1rem;
        margin: 0.3rem 0;
    }

    .product-actions {
        gap: 0.25rem;
        margin-top: 0.5rem;
    }

    .product-actions .btn,
    .btn-whatsapp,
    .btn-enquire {
        padding: 8px;
        font-size: 0.7rem;
        min-width: 35px;
    }
}

/* Mobile Portrait (phone upright) */
@media (max-width: 480px) and (orientation: portrait) {
    .boats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .boat-card {
        max-width: 100%;
    }

    .boat-image {
        height: 250px;
    }

    .boat-content {
        padding: 1.25rem;
    }

    .boat-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .boat-content p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .boat-price {
        font-size: 1.3rem;
        margin: 0.75rem 0;
    }

    .product-actions {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .product-actions .btn,
    .btn-whatsapp,
    .btn-enquire {
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* Mobile General (all phones) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .feature {
        padding: 1.5rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    section {
        padding: 30px 0 !important;
    }

    .page-header {
        padding: 20px 0 !important;
    }
}

/* Print */
@media print {

    .navbar,
    .mobile-menu-toggle,
    .cta,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Outboards Grid Responsive Styles */

/* Desktop - 4 columns (default in main.css) */

/* Large Tablet - 3 columns */
@media (max-width: 1024px) {
    .outboards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet - 2 columns */
@media (max-width: 768px) {
    .outboards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile - 1 column */
@media (max-width: 480px) {
    .outboards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .outboards-grid .product-image {
        height: 250px;
    }
}

/* Boat Builder Mobile */
@media (max-width: 768px) {
    .builder-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .config-panel {
        position: static;
        padding: 20px;
    }

    .builder-back-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .total-price {
        font-size: 1.5em;
    }

    .custom-check,
    .custom-radio {
        font-size: 0.95rem;
        padding: 12px;
    }

    .builder-gallery .main-image-container {
        height: 300px;
    }
}