/*------------------------------------------------------------------
    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: prominent bonus code cell */
    .casino-comparison-table tbody td:nth-child(4) {
        font-size: 0.7rem;
        color: #ccc;
        padding: 8px 24px 20px;
        letter-spacing: 0.02em;
    }

    .casino-comparison-table tbody td:nth-child(4) .code-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 4px;
    }

    .casino-comparison-table tbody td:nth-child(4) code {
        font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
        font-size: 0.8rem;
        font-weight: 700;
        color: #1a1a2e;
        background: #fff3cd;
        border: 1.5px dashed #f0a500;
        padding: 5px 12px;
        border-radius: 4px;
        letter-spacing: 0.1em;
    }

    .casino-comparison-table .copy-code-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #fff;
        background: #2d4991;
        border: none;
        border-radius: 4px;
        padding: 5px 10px;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.15s;
    }

    .casino-comparison-table .copy-code-btn:active,
    .casino-comparison-table .copy-code-btn.copied {
        background: #1a8a3c;
    }

    /* 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;
    }
}

/* Expert quotes on mobile */
@media (max-width: 767px) {
    .expert-advice-quote,
    .user-review-quote {
        padding: 14px 16px;
        margin: 15px 0;
    }

    .numbered-steps li {
        padding: 16px 16px 16px 52px;
    }

    .numbered-steps li::before {
        left: 14px;
        width: 26px;
        height: 26px;
        font-size: 0.8125rem;
    }
}

/* 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;
    }
}
