/* ================================================================
   AutoFueler – Complete Mobile-First Responsive CSS
   Brand: #ED1C24 / #CB2026  |  Font: Poppins
   Breakpoints: Mobile ≤767px | Tablet 768-1024px | Desktop >1024px
   ================================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
body.af-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.af-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.af-container--narrow { max-width: 1060px; }

/* ================================================================
   TOP BAR
   ================================================================ */
.af-topbar {
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
}
.af-topbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.af-topbar__address,
.af-topbar__phone {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.af-topbar__phone:hover { color: #ED1C24; }

/* ================================================================
   HEADER / NAV
   ================================================================ */
.af-header {
    background: #CB2026;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}
.af-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.af-header__logo img {
    height: 45px;
    width: auto;
}

/* Hamburger */
.af-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
}
.af-hamburger__bar {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Nav Overlay */
.af-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.35s ease;
    z-index: 1005;
}
.af-nav--open { right: 0; }
.af-nav__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}
.af-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.af-nav__item { display: flex; align-items: center; }
.af-nav__divider { display: none; }
.af-nav__link {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    padding: 8px 16px;
    transition: color 0.2s;
}
.af-nav__link:hover,
.af-nav__link--active { color: #FFD700; }

/* ================================================================
   HERO
   ================================================================ */
.af-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 60px 16px;
}
.af-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.af-hero__overlay--dark {
    background: rgba(0, 0, 0, 0.7);
}
.af-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.af-hero__subtitle {
    display: inline-block;
    color: #ED1C24;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.af-hero__title {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
}
.af-hero__title--md { font-size: 32px; }
.af-hero__text {
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.5;
}
.af-hero--about { min-height: 45vh; }

/* ================================================================
   BUTTONS
   ================================================================ */
.af-btn {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    padding: 14px 35px;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
}
.af-btn--primary {
    background: #CB2026;
    color: #fff;
}
.af-btn--primary:hover {
    background: #ED1C24;
    transform: translateY(-2px);
}
.af-btn--lg { padding: 16px 45px; }

/* ================================================================
   SECTIONS
   ================================================================ */
.af-section { padding: 48px 0; }
.af-section__title {
    font-size: 26px;
    font-weight: 600;
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 16px;
    color: #000;
}
.af-section__title--left { text-align: left; }
.af-section__title--hero {
    font-size: 32px;
    margin-top: 20px;
}
.af-section__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 14px;
    line-height: 1.7;
}
.af-section__hero-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 24px;
}
.af-section--why { background: #F3F5F8; }
.af-section--contact-header { padding-bottom: 0; }
.af-section--tech-header { padding-bottom: 24px; }
.af-section--unit { padding-top: 0; }

/* Alternate section bg for tech page */
.af-section--storage-tech { background: #F3F5F8; }
.af-section--fuellines { background: #F3F5F8; }

/* ================================================================
   CARDS (3-column)
   ================================================================ */
.af-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.af-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.af-card__img-wrap { overflow: hidden; }
.af-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.af-card:hover .af-card__img { transform: scale(1.05); }
.af-card__body { padding: 20px; }
.af-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: capitalize;
}
.af-card__text {
    font-size: 14px;
    line-height: 1.6;
}

/* Icon cards */
.af-card--icon {
    text-align: center;
    padding: 32px 20px;
}
.af-card--icon .af-card__title { margin-top: 12px; }
.af-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ED1C24;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto;
}

/* ================================================================
   SPLIT LAYOUT (2-column)
   ================================================================ */
.af-split {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}
.af-split__media { width: 100%; }
.af-split__media img {
    width: 100%;
    border-radius: 8px;
}
.af-split__text { width: 100%; }
.af-split__text p,
.af-split__text ul {
    font-size: 14px;
    line-height: 1.7;
}

/* ================================================================
   STORAGE LIST (pill tags)
   ================================================================ */
.af-storage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 0 16px;
}
.af-storage-list li {
    background: #F3F5F8;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 400;
    border-left: 3px solid #ED1C24;
}

/* ================================================================
   SPECS LIST
   ================================================================ */
.af-specs-list { list-style: none; padding: 0; }
.af-specs-list li {
    padding: 10px 0 10px 24px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #eee;
}
.af-specs-list li:last-child { border-bottom: none; }
.af-specs-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: #ED1C24;
    border-radius: 50%;
}
.af-specs-list--compact li { padding: 6px 0 6px 24px; }
.af-specs-list--compact li::before { top: 12px; }

/* ================================================================
   GALLERY
   ================================================================ */
.af-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}
.af-gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s;
}
.af-gallery img:hover { transform: scale(1.03); }

/* ================================================================
   CAROUSEL (Swiper)
   ================================================================ */
.af-storage-carousel,
.af-brand-carousel {
    padding-bottom: 48px;
    margin-top: 16px;
}
.af-storage-carousel img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.af-brand-carousel img {
    width: 100%;
    object-fit: contain;
    max-height: 70px;
    padding: 10px 20px;
}
.swiper-button-prev,
.swiper-button-next {
    color: #ED1C24 !important;
    display: none;
}
.swiper-pagination-bullet-active {
    background: #ED1C24 !important;
}

/* ================================================================
   QUOTE
   ================================================================ */
.af-quote { padding: 24px 0; }
.af-quote__text {
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    color: #CB2026;
    line-height: 1.4;
    margin-bottom: 12px;
}
.af-quote__author {
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    color: #555;
}

/* ================================================================
   FORM
   ================================================================ */
.af-form { width: 100%; }
.af-form__row { margin-bottom: 16px; }
.af-form__row--2col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.af-form__group { flex: 1; }
.af-form__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}
.af-form__required { color: #ED1C24; }
.af-form__input {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}
.af-form__input:focus {
    outline: none;
    border-color: #ED1C24;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12);
    background: #fff;
}
.af-form__textarea { resize: vertical; min-height: 120px; }
.af-form__row--submit { text-align: center; margin-top: 8px; }

/* Grav form plugin overrides */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ED1C24;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-data .form-group {
    display: flex;
    flex-direction: column;
}
/* Grav form layout — fields side-by-side on desktop */
.form-data {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}
.form-data .form-group {
    flex: 1 1 100%;
}
.form-data .form-group[data-grav-field="text"][data-grav-size="half"],
.form-data .form-group[data-grav-field="email"][data-grav-size="half"],
.form-data .form-group[data-grav-field="tel"][data-grav-size="half"],
.form-field-half,
.form-group.form-half {
    flex: 1 1 100%;
}
button[type="submit"],
input[type="submit"],
.form-btn,
.button {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    background: #CB2026;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 14px 55px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
button[type="submit"]:hover,
input[type="submit"]:hover,
.form-btn:hover,
.button:hover {
    background: #ED1C24;
    transform: translateY(-2px);
}
.form-messages { margin-bottom: 20px; }
.form-messages .alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
}
.form-messages .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-messages .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ================================================================
   FOOTER
   ================================================================ */
.af-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 48px 0 0;
}
.af-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
}
.af-footer__heading {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: capitalize;
}
.af-footer__col p,
.af-footer__col a {
    font-size: 14px;
    line-height: 2;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
}
.af-footer__col a:hover { color: #ED1C24; }
.af-footer__areas-list li {
    font-size: 14px;
    line-height: 2;
    padding-left: 12px;
    position: relative;
}
.af-footer__areas-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #ED1C24;
}
.af-footer__bottom {
    margin-top: 40px;
    border-top: 1px solid #333;
    padding: 20px 0;
}
.af-footer__bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.af-footer__bottom p {
    font-size: 12px;
    color: #888;
}
.af-footer__social {
    display: flex;
    gap: 16px;
}
.af-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s;
}
.af-footer__social a:hover { background: #ED1C24; }
.af-footer__logo { height: 40px; width: auto; margin: 0 auto; }

/* ================================================================
   TABLET — min-width: 768px
   ================================================================ */
@media (min-width: 768px) {
    body { font-size: 16px; }
    .af-container { padding: 0 24px; }

    .af-topbar__container {
        flex-direction: row;
        justify-content: space-between;
    }

    .af-section { padding: 64px 0; }
    .af-section__title { font-size: 30px; }
    .af-section__intro { font-size: 16px; }

    .af-hero__title { font-size: 48px; }
    .af-hero__title--md { font-size: 40px; }
    .af-hero__text { font-size: 16px; }
    .af-hero__subtitle { font-size: 16px; }
    .af-hero { min-height: 80vh; }
    .af-hero--about { min-height: 50vh; }

    .af-cards { flex-direction: row; flex-wrap: wrap; }
    .af-card { flex: 1 1 calc(50% - 12px); }
    .af-card__img { height: 220px; }

    .af-form__row--2col { flex-direction: row; }

    .af-gallery--3col { grid-template-columns: repeat(3, 1fr); }
    .af-gallery--4col { grid-template-columns: repeat(2, 1fr); }

    .af-split {
        flex-direction: row;
        gap: 40px;
    }
    .af-split__media,
    .af-split__text {
        flex: 1;
    }
    .af-split--60-40 .af-split__text { flex: 1.2; }
    .af-split--60-40 .af-split__media { flex: 0.8; }
    .af-split--reverse { flex-direction: row-reverse; }
    .af-split--reverse-mobile { flex-direction: row; }

    .af-footer__container {
        flex-direction: row;
        justify-content: space-between;
    }

    .af-quote__text { font-size: 28px; }
    .af-specs-list li { font-size: 16px; }

    .af-brand-carousel img { max-height: 80px; }

    .swiper-button-prev,
    .swiper-button-next { display: flex; }

    /* Grav form half-width */
    .form-data .form-group[data-grav-field="text"][data-grav-size="half"],
    .form-data .form-group[data-grav-field="email"][data-grav-size="half"],
    .form-data .form-group[data-grav-field="tel"][data-grav-size="half"],
    .form-field-half,
    .form-group.form-half {
        flex: 1 1 calc(50% - 12px);
    }
}

/* ================================================================
   DESKTOP — min-width: 1025px
   ================================================================ */
@media (min-width: 1025px) {
    .af-container { padding: 0 32px; }

    /* Inline nav */
    .af-hamburger { display: none; }
    .af-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
    }
    .af-nav__close { display: none; }
    .af-nav__list {
        flex-direction: row;
        gap: 0;
    }
    .af-nav__link {
        font-size: 23px;
        font-weight: 700;
        padding: 8px 14px;
    }
    .af-nav__divider {
        display: inline;
        color: rgba(255,255,255,0.5);
        font-weight: 300;
    }
    .af-header__logo img { height: 55px; }

    .af-section { padding: 80px 0; }
    .af-section__title { font-size: 36px; }
    .af-section__title--hero { font-size: 48px; }

    .af-hero__title { font-size: 65px; }
    .af-hero__title--md { font-size: 48px; }
    .af-hero__text { font-size: 18px; }
    .af-hero { min-height: 100vh; padding: 80px 32px; }
    .af-hero--about { min-height: 55vh; }

    .af-cards--3col .af-card { flex: 1 1 calc(33.333% - 16px); }
    .af-card__img { height: 240px; }

    .af-gallery--4col { grid-template-columns: repeat(4, 1fr); }

    .af-split { gap: 60px; }

    .af-footer__bottom-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .af-footer__logo { margin: 0; }

    .af-brand-carousel img { max-height: 90px; }
}

/* ================================================================
   EXTRA-WIDE — min-width: 1400px
   ================================================================ */
@media (min-width: 1400px) {
    .af-hero__title { font-size: 85px; }
}
