/* assets/css/custom.css */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@400;700&display=swap');

:root {
    --primary-red: #DA1938;
    /* Branding Update */
    --frog-green-start: #5CB85C;
    --frog-green-end: #4CAE4C;
    --accent-yellow: #EDC30A;
    --deep-blue: #002D72;
    --text-dark: #333333;
    --text-light: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: #f4f4f4;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

/* Navbar */
.navbar-custom {
    background-color: var(--primary-red);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    color: var(--accent-yellow) !important;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Headers */
.page-header {
    background-color: #BD0829;
    background-image: url('../img/patron.png');
    /* Pattern Overlay */
    background-repeat: repeat;
    background-size: 700px;
    /* Specific size requested */
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Membership Subtitle */
.membership-subtitle {
    font-family: 'Oswald', sans-serif;
    color: #da1938;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.25rem;
    /* fs-5 equivalent */
    margin-top: 1rem;
}

/* Title Image */
.title-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

@media (max-width: 576px) {
    .title-img {
        max-width: 65%;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--deep-blue);
    color: var(--accent-yellow);
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    border-bottom: 3px solid var(--accent-yellow);
}

.card-option.selected {
    border: 3px solid var(--frog-green-start);
    background-color: #f0fff0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(to right, var(--frog-green-start), var(--frog-green-end));
    border: none;
    border-radius: 50px;
    /* Pill shape */
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 12px 30px;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--frog-green-end), var(--frog-green-start));
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(92, 184, 92, 0.6);
}

.btn-danger {
    background-color: var(--primary-red);
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #eee;
    padding: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--frog-green-start);
    box-shadow: 0 0 0 0.25rem rgba(92, 184, 92, 0.25);
}

/* Pricing */
.text-primary {
    color: var(--primary-red) !important;
}

/* Sawtooth Divider */
.divider-zig-zag {
    background:
        linear-gradient(135deg, var(--accent-yellow) 25%, transparent 25%) -20px 0,
        linear-gradient(225deg, var(--accent-yellow) 25%, transparent 25%) -20px 0,
        linear-gradient(315deg, var(--accent-yellow) 25%, transparent 25%),
        linear-gradient(45deg, var(--accent-yellow) 25%, transparent 25%);
    background-size: 40px 40px;
    background-color: transparent;
    height: 20px;
    margin: 20px 0;
}

/* =========================================
   FOOTER STYLES (Anderson's Style)
   ========================================= */

.site-footer {
    background-color: #BD0829;
    /* No pattern here */
    color: white;
    padding-top: 60px;
    margin-top: 80px;
    font-family: 'Roboto', sans-serif;
}

.footer-brands {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* The Box */
.footer-brands fieldset {
    border: 1px solid white;
    padding: 30px 20px 20px;
    margin: 0;
    text-align: center;
    position: relative;
}

/* The Label Overlapping the Border */
.footer-brands legend {
    width: auto;
    float: none;
    padding: 0 20px;
    margin: 0 auto;
    font-size: 0;
    /* Hide text */
    line-height: 0;
    /* Match BG to hide border behind */
}

.footer-brands legend img {
    height: 60px;
    width: auto;
    /* Invert to make it white if it's black, or ensure it's white */
    filter: brightness(0) invert(1);
    display: block;
}

/* Brand Logos Container */
.contmarcas {
    display: flex;
    flex-wrap: nowrap;
    /* Single Row */
    justify-content: space-between;
    /* Evenly spaced */
    align-items: center;
    gap: 15px;
    /* Reduced gap to fit */
    margin-top: 10px;
    /* Optional: Ensure it scrolls horizontally on very small screens instead of breaking */
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    padding-bottom: 5px;
    /* Space for scrollbar if any */
}

.contmarcas::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.contmarcas div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    /* Don't shrink */
}

/* Brand Logos */
.contmarcas img {
    height: 15px;
    /* Base height as requested */
    width: auto;
    object-fit: contain;
    /* Force ALL logos to be white */
    filter: brightness(0) invert(1) !important;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.contmarcas img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Specific Logo Sizing Overrides */
.contmarcas img[src*="HR.svg"],
.contmarcas img[src*="BAK.svg"],
.contmarcas img[src*="the-ledge.svg"] {
    height: 25px !important;
}

.contmarcas img[src*="PF.svg"] {
    height: 10px !important;
    /* Porfirios Adjustment */
}

.contmarcas img[src*="Logo-Bahamas"] {
    height: 20px !important;
    /* Bahamas Adjustment */
    margin-top: 0 !important;
}

/* Bottom Bar */
.footer-bottom {
    background-color: #b0142d;
    /* Slightly darker band */
    padding: 15px 0;
    margin-top: 40px;
    font-size: 13px;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ... (Previous CSS) ... */

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {

    /* Header optimizations */
    .page-header {
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .page-header h1 {
        font-size: 2rem;
        /* Smaller title */
    }

    .lead {
        font-size: 1rem;
    }

    .membership-subtitle {
        font-family: 'Oswald', sans-serif;
        color: #da1938;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 14px !important;
        margin-bottom: 30px;
    }

    /* Card adjustments */
    .card-body {
        padding: 1.5rem !important;
        /* Reduce padding */
    }

    /* Footer Brands - Mobile Grid Layout */
    .contmarcas {
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px 5px;
        padding-left: 0;
        padding-right: 0;
        overflow-x: visible;
    }

    .contmarcas div {
        flex: 0 0 calc(33.333% - 10px);
        margin-bottom: 10px;
    }

    .footer-brands fieldset {
        padding: 25px 10px 15px;
        /* Tighter padding */
    }

    /* Form controls larger for touch targets */
    .form-control,
    .form-select,
    .btn {
        font-size: 16px;
        /* Prevent zoom on iOS */
        min-height: 48px;
        /* Touch friendly height */
    }
}

/* Admin Specific Mobile Tweaks */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}