/*------------------------------------------------------------------
    WANGANUIAUTOWRECKERS.CO.NZ - Responsive Breakpoints
-------------------------------------------------------------------*/

/* Tablet landscape / small desktop */
@media (min-width: 992px) and (max-width: 1180px) {
    .site-footer h3 {
        font-size: 1rem;
    }
}

/* Tablet portrait */
@media (min-width: 768px) and (max-width: 991px) {
    .top-navbar .navbar-brand {
        margin-left: 15px;
    }

    .navbar-dark .navbar-toggler {
        margin-right: 15px;
    }

    .navbar-expand-lg .navbar-nav .dropdown-menu {
        box-shadow: none;
    }

    .hero-section {
        padding: 80px 0 50px;
    }

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

/* Mobile */
@media (max-width: 767px) {
    .top-navbar .navbar-brand {
        margin-left: 15px;
    }

    .top-navbar .navbar-brand img {
        max-width: 60px;
    }

    .navbar-dark .navbar-toggler {
        margin-right: 15px;
    }

    .navbar-expand-lg .navbar-nav .dropdown-menu {
        box-shadow: none;
    }

    .hero-section {
        padding: 75px 0 40px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead-text {
        font-size: 1rem;
    }

    .hero-dark {
        padding: 70px 0 40px;
    }

    .hero-dark h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    /* Casino table to mobile cards */
    .casino-comparison-table .overflow-x-auto {
        overflow-x: visible;
    }

    .casino-comparison-table table,
    .casino-comparison-table table.table-bordered {
        min-width: 0;
        box-shadow: none;
        border: none !important;
        background: transparent;
    }

    .casino-comparison-table table,
    .casino-comparison-table thead,
    .casino-comparison-table tbody,
    .casino-comparison-table th,
    .casino-comparison-table td,
    .casino-comparison-table tr {
        display: block;
    }

    .casino-comparison-table thead {
        display: none;
    }

    .casino-comparison-table tbody tr {
        background: #ffffff;
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,0.06) !important;
        margin-bottom: 24px;
        padding: 0;
        overflow: hidden;
        position: relative;
        border-left: 3px solid #2d4991 !important;
    }

    .casino-comparison-table tbody tr:nth-child(even) {
        background: #ffffff;
    }

    /* Nuke Bootstrap borders */
    .casino-comparison-table tbody td,
    .casino-comparison-table .table-bordered td,
    .casino-comparison-table .table-bordered th {
        border: none !important;
        text-align: center;
    }

    /* Name: quiet identifier */
    .casino-comparison-table tbody td.casino-name {
        font-family: 'Inter', Arial, sans-serif;
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #aaa;
        padding: 22px 24px 0;
    }

    /* Tag: earned credibility */
    .casino-comparison-table tbody td.best-for {
        font-family: Arial, sans-serif;
        font-size: 0.75rem;
        font-style: italic;
        font-weight: 400;
        color: #2d4991;
        padding: 3px 24px 18px;
        letter-spacing: 0;
    }

    /* Bonus: the main draw */
    .casino-comparison-table tbody td:nth-child(3) {
        font-family: 'Inter', Arial, sans-serif;
        color: #1a1a1a;
        padding: 0 24px 6px;
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    /* Code: monospace whisper */
    .casino-comparison-table tbody td:nth-child(4) {
        font-size: 0.7rem;
        color: #ccc;
        padding: 0 24px 20px;
        letter-spacing: 0.02em;
    }

    .casino-comparison-table tbody td:nth-child(4) code {
        font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
        font-size: 0.75rem;
        font-weight: 500;
        color: #666;
        background: transparent;
        border: 1px solid #ddd;
        padding: 3px 14px 2px;
        border-radius: 3px;
        letter-spacing: 0.08em;
    }

    /* CTA button */
    .casino-comparison-table tbody td:last-child {
        padding: 0 20px 20px !important;
    }

    .casino-comparison-table tbody td:last-child .btn-visit {
        display: block;
        text-align: center;
        width: 100%;
        padding: 13px;
        font-family: 'Inter', Arial, sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        border-radius: 6px;
        background: #2d4991;
        border-color: #2d4991;
        color: #fff;
        transition: opacity 0.12s ease;
    }

    .casino-comparison-table tbody td:last-child .btn-visit:active {
        opacity: 0.85;
    }

    /* Cards */
    .casino-card {
        padding: 20px;
    }

    /* FAQ */
    .faq-item {
        padding: 18px 20px;
    }

    /* Footer */
    .site-footer .col-lg-3 {
        margin-bottom: 30px;
    }

    /* Contact form */
    .contact-form {
        padding: 25px;
    }

    /* Team cards */
    .team-card {
        padding: 30px 20px;
    }

    .top-navbar .navbar-dark .navbar-nav .nav-item {
        margin-left: 0;
    }

    .top-navbar .navbar-dark .navbar-nav .nav-link {
        padding: 12px 15px;
        font-size: 16px;
        border-bottom: 1px solid #2d4991;
    }

    .content-section,
    .content-section-alt {
        padding: 40px 0;
    }

    .casino-review-cards,
    .faq-section {
        padding: 40px 0;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .casino-card h3 {
        font-size: 1.0625rem;
    }

    .btn-visit-lg {
        padding: 10px 24px;
        font-size: 0.9375rem;
    }

    body {
        font-size: 15px;
    }
}

/* Mobile navbar dropdown styling */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #2b3a52;
        padding: 15px;
        margin-top: 8px;
        border-radius: 4px;
    }

    .navbar-nav .dropdown-menu {
        background-color: #111827;
        border: none;
        margin-left: 15px;
        padding: 0;
    }

    .navbar-nav .dropdown-item {
        color: #ccc;
        padding: 10px 15px;
        font-size: 15px;
        border-bottom: 1px solid #1e3570;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: #2d4991;
        color: white;
    }

    .navbar-nav .dropdown-divider {
        border-color: #2d4991;
        margin: 4px 0;
    }
}
