
/* ================================
   GLOBAL SETTINGS
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #17202a;
    line-height: 1.6;
}


/* ================================
   HEADER
================================ */

header {
    background: #111827;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 6%;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 3px 12px rgba(0,0,0,.25);
}

.logo {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1px;
}

.header-call {
    background: #f59e0b;
    color: #111827;

    text-decoration: none;
    font-weight: 900;

    padding: 11px 17px;
    border-radius: 7px;
}


/* ================================
   HERO SECTION
================================ */

.hero {
    min-height: 620px;

    background:
        linear-gradient(
            rgba(8,15,28,.87),
            rgba(8,15,28,.92)
        );

    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 70px 7%;
}

.available {
    color: #fbbf24;
    font-weight: 900;
    letter-spacing: 2px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(46px, 9vw, 82px);
    line-height: .98;

    max-width: 800px;

    margin-bottom: 25px;
}

.hero-description {
    font-size: 20px;
    color: #d1d5db;

    max-width: 600px;

    margin-bottom: 30px;
}


/* ================================
   HERO BUTTONS
================================ */

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.call-button,
.text-button {
    text-decoration: none;

    padding: 17px 25px;

    border-radius: 8px;

    font-weight: 900;
    font-size: 17px;
}

.call-button {
    background: #f59e0b;
    color: #111827;
}

.text-button {
    background: transparent;
    color: white;

    border: 2px solid white;
}

.call-button:hover,
.header-call:hover {
    background: #fbbf24;
}

.text-button:hover {
    background: white;
    color: #111827;
}

.response-message {
    margin-top: 25px;
    color: #9ca3af;
}


/* ================================
   SERVICES SECTION
================================ */

.services {
    padding: 80px 6%;
    max-width: 1250px;
    margin: auto;
}

.section-label {
    color: #d97706;

    font-weight: 900;
    letter-spacing: 2px;

    margin-bottom: 7px;
}

.services h2 {
    font-size: clamp(34px, 6vw, 52px);

    margin-bottom: 40px;

    color: #111827;
}

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.service-card {
    background: white;

    padding: 30px 25px;

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.08);

    border-top:
        4px solid #f59e0b;

    transition: .25s;
}

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

    box-shadow:
        0 15px 35px rgba(0,0,0,.13);
}

.service-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;

    font-size: 20px;

    color: #111827;
}

.service-card p {
    color: #5f6b7a;
}


/* ================================
   EMERGENCY SECTION
================================ */

.emergency {
    background: #111827;
    color: white;

    text-align: center;

    padding: 75px 7%;
}

.emergency h2 {
    font-size: clamp(34px, 6vw, 52px);

    margin-bottom: 10px;
}

.emergency p {
    color: #d1d5db;

    font-size: 18px;

    margin-bottom: 30px;
}

.big-call-button {
    display: inline-block;

    background: #f59e0b;
    color: #111827;

    padding: 18px 27px;

    border-radius: 8px;

    font-size: 18px;
    font-weight: 900;

    text-decoration: none;
}

.big-call-button:hover {
    background: #fbbf24;
}


/* ================================
   FOOTER
================================ */

footer {
    background: #080d16;
    color: #9ca3af;

    text-align: center;

    padding: 45px 20px;
}

footer h3 {
    color: white;

    margin-bottom: 8px;
}

footer p {
    margin: 5px;
}


/* ================================
   TABLET
================================ */

@media (max-width: 900px) {

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

}


/* ================================
   MOBILE PHONE
================================ */

@media (max-width: 600px) {

    header {
        padding: 14px 18px;
    }

    .logo {
        font-size: 13px;
    }

    .header-call {
        padding: 9px 12px;
        font-size: 13px;
    }

    .hero {
        min-height: 570px;

        padding:
            55px 22px;
    }

    .hero h1 {
        font-size: 47px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .call-button,
    .text-button {
        text-align: center;
        width: 100%;
    }

    .services {
        padding:
            60px 20px;
    }

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

    .service-card {
        padding: 27px 22px;
    }

    .emergency {
        padding:
            65px 22px;
    }

    .big-call-button {
        width: 100%;
    }

}


/* =========================================
   REYES STANDARD — SERVICE SECTION UPGRADE
========================================= */

.services-intro {
    max-width: 720px;
    font-size: 18px;
    color: #5f6b7a;
    margin-top: -25px;
    margin-bottom: 40px;
}

/* Six services = 3 cards per row on desktop */
.service-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Make all cards consistent */
.service-card {
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff7e6;
    border-radius: 12px;

    font-size: 31px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 16px;
    line-height: 1.65;
}

/* Scheduled maintenance card */
.scheduled-service {
    border-top-color: #374151;
}

.service-badge {
    display: inline-block;
    align-self: flex-start;

    background: #111827;
    color: white;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;

    padding: 6px 9px;
    border-radius: 5px;

    margin-bottom: 14px;
}

/* No-towing notice */
.no-towing {
    margin-top: 35px;

    background: #eef2f7;
    border-left: 4px solid #111827;

    padding: 17px 20px;
    border-radius: 6px;

    color: #374151;
    font-size: 15px;
}


/* TABLET */

@media (max-width: 900px) {

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

}


/* PHONE */

@media (max-width: 600px) {

    .services-intro {
        margin-top: -22px;
        margin-bottom: 30px;
        font-size: 17px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .service-card {
        min-height: auto;
    }

    .service-icon {
        width: 54px;
        height: 54px;
        font-size: 29px;
    }

    .no-towing {
        margin-top: 28px;
    }

}


/* =========================================
   REYES STANDARD BRAND SYSTEM
========================================= */

:root {
    --navy: #0B1F3A;
    --navy-dark: #071426;

    --blue: #1769AA;
    --blue-light: #EAF4FC;

    --amber: #F5A623;
    --amber-hover: #FFB936;

    --white: #FFFFFF;

    --background: #F4F7FA;

    --text: #162337;
    --text-light: #5D6B7A;

    --border: #DCE4EC;

    --success: #19764A;
}


/* =========================================
   GENERAL WEBSITE COLORS
========================================= */

body {
    background: var(--background);
    color: var(--text);
}


/* =========================================
   HEADER
========================================= */

header {
    background: var(--navy);
    border-bottom: 3px solid var(--blue);
}

.logo {
    color: var(--white);
}

.header-call {
    background: var(--amber);
    color: var(--navy-dark);
}

.header-call:hover {
    background: var(--amber-hover);
}


/* =========================================
   HERO
========================================= */

.hero {
    background:
        linear-gradient(
            135deg,
            #071426 0%,
            #0B1F3A 55%,
            #123D68 100%
        );
}

.available {
    color: #FFD166;
}

.call-button {
    background: var(--amber);
    color: var(--navy-dark);
}

.call-button:hover {
    background: var(--amber-hover);
}


/* =========================================
   HEADINGS / BRAND ACCENTS
========================================= */

.section-label {
    color: var(--blue);
}

.services h2,
.get-help h2,
.request-section h2 {
    color: var(--navy);
}


/* =========================================
   SERVICE CARDS
========================================= */

.service-card {
    border-top-color: var(--blue);
}

.service-icon {
    background: var(--blue-light);
}

.service-card:hover {
    border-top-color: var(--amber);
}


/* =========================================
   GET HELP SECTION
========================================= */

.emergency-option {
    background: var(--navy);
    border-color: var(--navy);
}

.help-small {
    color: var(--blue);
}

.help-option:hover {
    border-color: var(--blue);
}


/* =========================================
   SAFETY MESSAGE
========================================= */

.safety-message {
    background: #FFF8E8;
    border-left-color: var(--amber);
}


/* =========================================
   SERVICE REQUEST FORM
========================================= */

.request-section {
    background: #EEF4F8;

    padding: 85px 6%;
}

.request-container {
    max-width: 850px;
    margin: auto;
}

.request-section h2 {
    font-size: clamp(36px, 6vw, 52px);
    margin-bottom: 12px;
}

.request-intro {
    color: var(--text-light);
    font-size: 18px;
    max-width: 700px;

    margin-bottom: 35px;
}

#roadside-form {
    background: var(--white);

    padding: 35px;

    border-radius: 16px;

    box-shadow:
        0 10px 35px rgba(11,31,58,.10);
}

.form-group-title {
    color: var(--navy);

    font-size: 18px;
    font-weight: 800;

    border-bottom: 2px solid var(--blue-light);

    padding-bottom: 9px;
    margin:
        25px 0
        18px 0;
}

.form-group-title:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;

    font-weight: 700;
    color: var(--navy);

    margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {

    width: 100%;

    padding: 14px;

    font-size: 16px;

    color: var(--text);

    background: var(--white);

    border:
        1.5px solid
        var(--border);

    border-radius: 8px;

    outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(23,105,170,.12);
}


/* =========================================
   LOCATION BUTTON
========================================= */

.location-button {
    width: 100%;

    background: var(--blue-light);
    color: var(--navy);

    border:
        2px solid
        var(--blue);

    padding: 14px;

    border-radius: 8px;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    margin-bottom: 10px;
}

.location-button:hover {
    background: #D9EDFA;
}

.location-status {
    color: var(--success);

    font-size: 14px;

    margin-bottom: 20px;
}


/* =========================================
   MAIN REQUEST BUTTON
========================================= */

.submit-request {
    width: 100%;

    background: var(--amber);
    color: var(--navy-dark);

    border: none;

    padding: 18px;

    border-radius: 9px;

    font-size: 17px;
    font-weight: 900;

    cursor: pointer;

    margin-top: 10px;
}

.submit-request:hover {
    background: var(--amber-hover);
}

.form-note {
    color: var(--text-light);

    text-align: center;

    font-size: 13px;

    margin-top: 14px;
}


/* =========================================
   EMERGENCY SECTION
========================================= */

.emergency {
    background: var(--navy);
}

.big-call-button {
    background: var(--amber);
    color: var(--navy-dark);
}


/* =========================================
   FOOTER
========================================= */

footer {
    background: var(--navy-dark);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .request-section {
        padding:
            60px 18px;
    }

    #roadside-form {
        padding:
            25px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

}


/* =========================================
   OFFICIAL SA LOGO
========================================= */

.brand-logo {

    width: 58px;
    height: 58px;

    object-fit: contain;

    flex-shrink: 0;

    filter:
        drop-shadow(
            0 3px 5px
            rgba(0,0,0,.30)
        );
}


/* Phone */

@media (max-width: 600px) {

    .brand-logo {

        width: 47px;
        height: 47px;

    }

}


/* =========================================
   STANDARD ASSISTANCE
   FINAL MOBILE HEADER
========================================= */

@media (max-width: 700px) {

    /* HEADER */

    .main-header {
        position: sticky;
        top: 0;
        z-index: 5000;

        padding: 0 !important;
        min-height: 0 !important;
    }


    .header-container {
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 9px 12px !important;

        gap: 8px;

        min-height: 66px;
    }


    /* BRAND AREA */

    .brand {
        display: flex;
        align-items: center;

        gap: 8px;

        min-width: 0;

        flex: 1;

        text-decoration: none;
    }


    .brand-logo {
        width: 45px !important;
        height: 45px !important;

        object-fit: contain;

        flex: 0 0 45px;
    }


    .brand-text {
        display: flex;
        flex-direction: column;

        min-width: 0;

        line-height: 1.05;
    }


    .brand-name {
        color: white;

        font-size: 14px !important;
        font-weight: 900;

        letter-spacing: .5px;

        white-space: nowrap;
    }


    .brand-subtitle {
        color: #BFD7EA;

        font-size: 8px !important;
        font-weight: 800;

        letter-spacing: .65px;

        margin-top: 4px;

        white-space: nowrap;
    }


    /* Hide desktop navigation on phones */

    .desktop-nav {
        display: none !important;
    }


    /* CALL BUTTON */

    .main-header .header-call {
        display: flex;

        align-items: center;
        justify-content: center;

        flex: 0 0 auto;

        background: var(--amber);

        color: var(--navy-dark);

        padding: 10px 11px !important;

        border-radius: 8px;

        font-size: 11px !important;
        font-weight: 900;

        text-decoration: none;

        white-space: nowrap;

        margin: 0 !important;
    }


    /* =====================================
       REMOVE EXCESS MOBILE SPACING
    ===================================== */

    .hero {
        margin-top: 0 !important;
        padding-top: 55px !important;
    }


    section:first-of-type {
        margin-top: 0 !important;
    }

}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 390px) {

    .brand-logo {
        width: 40px !important;
        height: 40px !important;

        flex-basis: 40px;
    }


    .brand-name {
        font-size: 12px !important;
    }


    .brand-subtitle {
        font-size: 7px !important;

        letter-spacing: .35px;
    }


    .main-header .header-call {
        font-size: 10px !important;

        padding: 9px 8px !important;
    }

}
