/**
 * UPSCALE INFRA - MASTER SITE STYLESHEET
 * Clean, modular, fully-commented, high-performance CSS.
 * Responsive Paddings: Desktop 50px | Tablet 30px | Mobile 20px 15px
 */

/* ==============================================================
   1. THEME VARIABLES (COLORS, FONTS, SHADOWS)
   ============================================================== */
:root {
    /* Brand Navy & Blue Palette */
    --upscale-navy-dark: #061626;
    --upscale-navy-primary: #0a2540;
    --upscale-navy-mid: #14355a;
    --upscale-blue-accent: #0284c7;
    --upscale-blue-light: #e0f2fe;

    /* Neutrals & Backgrounds */
    --upscale-white: #ffffff;
    --upscale-bg-subtle: #f8fafc;
    --upscale-bg-warm: #fdfbf7;
    --upscale-border: #e2e8f0;
    --upscale-border-focus: #0284c7;

    /* Text Colors */
    --upscale-text-dark: #1e293b;
    --upscale-text-muted: #64748b;
    --upscale-text-light: #94a3b8;

    /* Accents */
    --upscale-green-wa: #25d366;
    --upscale-gold: #c5a880;
    --upscale-red: #ef4444;

    /* Radius & Elevation */
    --upscale-radius-sm: 6px;
    --upscale-radius-md: 10px;
    --upscale-radius-lg: 14px;
    --upscale-radius-pill: 30px;
    --upscale-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --upscale-shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --upscale-shadow-lg: 0 16px 30px rgba(0,0,0,0.08);

    /* Typography */
    --upscale-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --upscale-font-serif: "Georgia", "Times New Roman", serif;
}

/* ==============================================================
   2. BASE RESET & TYPOGRAPHY SCALE
   ============================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--upscale-font-sans);
    color: var(--upscale-text-dark);
    background-color: var(--upscale-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Heading Scale: Desktop ~50px main heading -> responsive mobile */
h1, .h1-title {
    font-family: var(--upscale-font-serif);
    font-size: 50px;
    line-height: 1.2;
    color: var(--upscale-navy-primary);
    margin: 0 0 18px 0;
    font-weight: 700;
}

h2, .h2-title {
    font-family: var(--upscale-font-serif);
    font-size: 36px;
    line-height: 1.25;
    color: var(--upscale-navy-primary);
    margin: 0 0 14px 0;
    font-weight: 700;
}

h3, .h3-title {
    font-family: var(--upscale-font-sans);
    font-size: 22px;
    line-height: 1.35;
    color: var(--upscale-navy-primary);
    margin: 0 0 12px 0;
    font-weight: 700;
}

h4, .h4-title {
    font-family: var(--upscale-font-sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--upscale-navy-primary);
    margin: 0 0 8px 0;
}

p {
    margin: 0 0 14px 0;
}

a {
    color: var(--upscale-blue-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--upscale-navy-mid);
}

/* ==============================================================
   3. FORM CONTROLS (BUTTONS, INPUTS, CHECKBOXES, RADIOS)
   ============================================================== */
/* Universal Buttons */
.btn-primary, button[type="submit"] {
    background: var(--upscale-navy-primary);
    color: var(--upscale-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--upscale-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover, button[type="submit"]:hover {
    background: var(--upscale-navy-mid);
    color: var(--upscale-white);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--upscale-bg-subtle);
    color: var(--upscale-navy-primary);
    border: 1px solid var(--upscale-border);
    padding: 10px 20px;
    border-radius: var(--upscale-radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--upscale-border);
}

.btn-pill {
    border-radius: var(--upscale-radius-pill);
}

/* Form Inputs, Selects & Textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--upscale-text-dark);
    background-color: var(--upscale-white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--upscale-border-focus);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Fixed Modern Checkboxes */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #94a3b8;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    vertical-align: middle;
    margin: 0 8px 0 0;
    background: #fff;
    transition: all 0.15s ease;
}

input[type="checkbox"]::before {
    content: "✓";
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    transform: scale(0);
    transition: 0.12s transform ease-in-out;
}

input[type="checkbox"]:checked {
    background-color: var(--upscale-navy-primary);
    border-color: var(--upscale-navy-primary);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Fixed Modern Radio Buttons */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #94a3b8;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    vertical-align: middle;
    margin: 0 8px 0 0;
    background: #fff;
    transition: all 0.15s ease;
}

input[type="radio"]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
    transform: scale(0);
    transition: 0.12s transform ease-in-out;
}

input[type="radio"]:checked {
    background-color: var(--upscale-navy-primary);
    border-color: var(--upscale-navy-primary);
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

/* ==============================================================
   4. SECTION WRAPPERS & RESPONSIVE PADDINGS (50px / 30px / 15px)
   ============================================================== */
/* Desktop Parent Section: 50px 50px 50px 50px */
.upscale-section {
    padding: 50px 50px 50px 50px;
    width: 100%;
    position: relative;
}

/* Inner Container: desktop 20px/30px */
.upscale-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

.upscale-container-inner {
    padding: 20px 25px;
}

/* ==============================================================
   5. ALTERNATING SECTION BACKGROUNDS & UTILITIES
   ============================================================== */
.bg-white {
    background-color: var(--upscale-white) !important;
}

.bg-subtle {
    background-color: var(--upscale-bg-subtle) !important;
}

.bg-warm {
    background-color: var(--upscale-bg-warm) !important;
}

.bg-navy-dark {
    background-color: var(--upscale-navy-dark) !important;
    color: var(--upscale-white);
}

.bg-navy-primary {
    background-color: var(--upscale-navy-primary) !important;
    color: var(--upscale-white);
}

/* Common Card Wrapper */
.card-box {
    background: var(--upscale-white);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-md);
    box-shadow: var(--upscale-shadow-md);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-box:hover {
    box-shadow: var(--upscale-shadow-lg);
}

/* ==============================================================
   6. HEADER & TOP BAR CSS
   ============================================================== */
.upscale-top-bar {
    background: var(--upscale-navy-dark);
    color: #94a3b8;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 25px;
}

.top-bar-locations {
    display: flex;
    gap: 18px;
    overflow-x: auto;
}

.top-bar-locations .loc-item {
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.top-bar-locations .loc-item:hover,
.top-bar-locations .loc-item.active {
    color: #ffffff;
    font-weight: 600;
}

.top-bar-contact {
    display: flex;
    gap: 16px;
    white-space: nowrap;
}

.top-bar-contact a {
    color: #cbd5e1;
}

.top-bar-contact a:hover {
    color: #fff;
}

.wa-top-link {
    color: var(--upscale-green-wa) !important;
    font-weight: 600;
}

.upscale-main-header {
    background: var(--upscale-navy-primary);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.upscale-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.upscale-brand-logo .logo-accent {
    color: #38bdf8;
    font-weight: 400;
}

.upscale-nav-menu .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 26px;
}

.upscale-nav-menu .nav-list a {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

.upscale-nav-menu .nav-list a:hover {
    color: #38bdf8;
}

.upscale-header-cta-btn {
    background: #ffffff;
    color: var(--upscale-navy-primary);
    padding: 8px 20px;
    border-radius: var(--upscale-radius-pill);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.upscale-header-cta-btn:hover {
    background: #38bdf8;
    color: #ffffff;
}

/* ==============================================================
   7. HERO SECTION & SEARCH FORM CSS
   ============================================================== */
.upscale-hero-search-section {
    background: radial-gradient(circle at 80% 20%, #1e4976 0%, #0a2540 60%, #061626 100%);
    padding: 60px 50px 70px 50px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-content-box {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-main-title {
    color: #ffffff;
    margin-bottom: 26px;
}

.hero-offer-tabs {
    display: inline-flex;
    background: rgba(255,255,255,0.12);
    border-radius: 8px 8px 0 0;
    padding: 4px;
}

.hero-tab-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-tab-btn.active {
    background: #ffffff;
    color: var(--upscale-navy-primary);
}

.hero-search-input-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 0 10px 10px 10px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.search-pin-icon {
    font-size: 18px;
    color: #64748b;
    margin-right: 12px;
}

.hero-input-field {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    font-size: 15px;
    color: #1e293b;
    background: transparent;
    padding: 10px 0;
}

.hero-search-submit-btn {
    background: var(--upscale-navy-primary);
    color: #ffffff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.hero-search-submit-btn:hover {
    background: #17426b;
}

.hero-quick-filters-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-filter-pill select {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.hero-filter-pill select option {
    background: var(--upscale-navy-primary);
    color: #fff;
}

/* ==============================================================
   8. FOOTER & BEFORE-FOOTER POPULAR LINKS CSS
   ============================================================== */
.upscale-before-footer-section {
    background: var(--upscale-bg-subtle);
    border-top: 1px solid var(--upscale-border);
    padding: 50px 50px;
}

.before-footer-title {
    font-size: 26px;
    font-family: var(--upscale-font-serif);
    color: var(--upscale-navy-primary);
    margin: 0 0 26px 0;
}

.before-footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.links-column .col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--upscale-navy-primary);
    margin: 0 0 14px 0;
}

.links-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.links-column ul li {
    margin-bottom: 9px;
}

.links-column ul a {
    color: var(--upscale-text-muted);
    font-size: 13px;
}

.links-column ul a:hover {
    color: var(--upscale-blue-accent);
    text-decoration: underline;
}

.upscale-main-footer {
    background: var(--upscale-navy-dark);
    color: #94a3b8;
    padding: 60px 50px 28px 50px;
    font-size: 14px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-logo .logo-accent {
    color: #38bdf8;
    font-weight: 400;
}

.footer-bio {
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 13px;
}

.footer-social-icons {
    display: flex;
    gap: 10px;
}

.footer-social-icons a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.footer-social-icons a:hover {
    background: #38bdf8;
    color: #fff;
}

.footer-col-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 9px;
}

.footer-links-list a {
    color: #94a3b8;
}

.footer-links-list a:hover {
    color: #fff;
}

.contact-col p {
    margin: 0 0 10px 0;
}

.contact-col a {
    color: #cbd5e1;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-bar p {
    margin: 0;
}

/* ==============================================================
   9. TABLET RESPONSIVE PADDINGS (768px - 1024px: 30px 30px 30px 30px)
   ============================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .upscale-section {
        padding: 30px 30px 30px 30px;
    }

    .upscale-hero-search-section {
        padding: 40px 30px;
    }

    .upscale-before-footer-section {
        padding: 35px 30px;
    }

    .upscale-main-footer {
        padding: 45px 30px 24px 30px;
    }

    .upscale-container {
        padding: 0 15px;
    }

    .upscale-container-inner {
        padding: 15px 20px;
    }

    h1, .h1-title {
        font-size: 38px;
    }

    h2, .h2-title {
        font-size: 28px;
    }

    .before-footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* ==============================================================
   10. MOBILE RESPONSIVE PADDINGS (<= 767px: 20px 15px 20px 15px)
       Elements stay exactly 15px away from mobile screen edge!
   ============================================================== */
@media (max-width: 767px) {
    .upscale-section {
        padding: 20px 15px 20px 15px;
    }

    .upscale-hero-search-section {
        padding: 35px 15px 40px 15px;
    }

    .upscale-before-footer-section {
        padding: 30px 15px;
    }

    .upscale-main-footer {
        padding: 40px 15px 20px 15px;
    }

    /* Container on mobile: 10px 0 10px 0 so edge spacing stays exactly 15px */
    .upscale-container {
        padding: 0 0px;
    }

    .upscale-container-inner {
        padding: 10px 0 10px 0;
    }

    .top-bar-inner,
    .header-inner {
        padding: 8px 15px;
    }

    /* Heading Scale for Mobile */
    h1, .h1-title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    h2, .h2-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    h3, .h3-title {
        font-size: 18px;
    }

    .hero-main-title {
        font-size: 28px;
    }

    .before-footer-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .upscale-nav-menu {
        display: none; /* Mobile menu drawer toggle */
    }
}
