/* ==================== AMERICA'S ENERGY INC - MAIN STYLESHEET ==================== */
/* Clean, semantic CSS - No WordPress/Elementor dependencies */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Brand Colors */
    --color-primary: #312E70;
    --color-secondary: #D72029;
    --color-accent: #337CC8;
    --color-highlight: #F4B49E;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-light: #f4f4f4;
    --color-gray: #7E8990;
    --color-gray-dark: #333333;

    /* Typography */
    --font-primary: "Roboto", sans-serif;
    --font-secondary: "Poppins", sans-serif;

    /* Spacing */
    --container-max: 1600px;
    --container-padding: 20px;

    /* Header Heights */
    --topbar-height: 50px;
    --navbar-height: 85px;
    --header-total: 135px;
}

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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-gray-dark);
    background: var(--color-white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

/* ==================== LAYOUT CONTAINERS ==================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 60px 0;
}

.section-boxed {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
}

.col { position: relative; min-height: 1px; }
.col-10 { width: 10%; }
.col-20 { width: 20%; }
.col-25 { width: 25%; }
.col-33 { width: 33.333%; }
.col-40 { width: 40%; }
.col-50 { width: 50%; }
.col-60 { width: 60%; }
.col-66 { width: 66.666%; }
.col-75 { width: 75%; }
.col-100 { width: 100%; }

/* ==================== SITE HEADER ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    max-width: 100vw;
}

.site-header::before {
    content: "";
    display: table;
    clear: both;
}

/* Top Bar (Phone Number) */
.top-bar {
    background-color: var(--color-accent);
    width: 100%;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--topbar-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 10px 20px;
}

.top-bar .order-text {
    color: var(--color-white);
    font-size: 22px;
    font-weight: 300;
    font-family: var(--font-primary);
    margin: 0;
}

.top-bar .order-text a {
    color: var(--color-white);
}

.top-bar .order-text a:hover {
    text-decoration: underline;
}

/* Main Navigation Bar */
.main-nav {
    background-color: var(--color-white);
    z-index: 9995;
}

.nav-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
}

/* Logo */
.nav-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.nav-logo img {
    max-width: 200px;
    height: auto;
}

/* Navigation Menu */
.nav-menu-wrapper {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-primary);
    padding: 4px 0;
    margin: 0 10px;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-secondary);
}

/* CTA Button */
.header-cta-column {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-highlight);
    background-color: var(--color-white);
    border: 2px solid var(--color-highlight);
    border-radius: 10px;
    padding: 12px 20px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-cta-btn:hover {
    color: var(--color-primary);
    background-color: var(--color-highlight);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    color: var(--color-primary);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
}

.menu-toggle .icon-close {
    display: none;
}

.menu-toggle.open .icon-open {
    display: none;
}

.menu-toggle.open .icon-close {
    display: block;
}

/* Mobile Dropdown Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mobile-menu.open {
    display: block;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-size: 16px;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    color: var(--color-secondary);
    background-color: #f9f9f9;
}

/* ==================== MAIN CONTENT ==================== */
#main-content {
    padding-top: var(--header-total);
}

/* ==================== FOOTER ==================== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #F2295B 0%, var(--color-primary) 100%);
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #162263;
    opacity: 0.82;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    min-height: 400px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 20px;
}

.footer-col {
    padding: 20px;
}

.footer-col-main {
    width: 60%;
}

.footer-col-map {
    width: 40%;
}

.footer-logo img {
    max-width: 300px;
    width: 100%;
}

.footer-description {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-white);
    margin-top: 15px;
}

.footer-heading {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-highlight);
    margin: 20px 0 10px 0;
}

.footer-text {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.8;
    color: var(--color-white);
}

.footer-text a {
    color: #CC3366;
}

.footer-text a:hover {
    color: var(--color-highlight);
}

.footer-map iframe {
    width: 100%;
    min-height: 300px;
    border-radius: 8px;
    border: none;
}

/* Copyright Bar */
.copyright-bar {
    background-color: var(--color-gray-light);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
}

.copyright-text {
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    color: #7a7a7a;
    text-align: center;
}

/* ==================== PAGE CONTENT ==================== */
.page-content {
    background: var(--color-white);
    min-height: 50vh;
}

/* ==================== PAGE TITLE SECTION ==================== */
.page-title-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #4a47a3 100%);
    padding: 50px 20px 40px;
    text-align: center;
}

.page-title {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-title-divider {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    width: 80px;
    margin: 0 auto 15px;
}

.page-subtitle {
    color: var(--color-white);
    font-weight: 400;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #b91c24;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-highlight);
    border: 2px solid var(--color-highlight);
}

.btn-secondary:hover {
    background-color: var(--color-highlight);
    color: var(--color-primary);
}

.btn-full {
    width: 100%;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(49, 46, 112, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* ==================== CARDS & BOXES ==================== */
.card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-body {
    padding: 20px;
}

.icon-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.icon-box-icon {
    flex-shrink: 0;
}

.icon-box-content h3 {
    margin-bottom: 8px;
}

/* ==================== CITY GRID ==================== */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.city-link {
    display: block;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: var(--color-primary);
    text-decoration: none;
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.city-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(49, 46, 112, 0.2);
}

/* ==================== PRODUCTS GRID ==================== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-white { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-white { background-color: var(--color-white); }
.bg-light { background-color: var(--color-gray-light); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --header-total: 145px;
    }

    .nav-logo img {
        max-width: 160px;
    }

    /* Show mobile menu toggle, hide desktop nav */
    .nav-menu-wrapper .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-col-main,
    .footer-col-map {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --header-total: 130px;
    }

    .top-bar .order-text {
        font-size: 16px;
    }

    .top-bar-content {
        padding: 5px 15px;
    }

    .nav-container {
        padding: 10px 15px;
    }

    .nav-logo img {
        max-width: 120px;
    }

    .header-cta-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Grid columns stack */
    .col-33, .col-50, .col-66, .col-75 {
        width: 100%;
    }

    .section {
        padding: 40px 15px;
    }

    h1, .page-title {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .icon-box {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-logo img {
        max-width: 220px;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    :root {
        --header-total: 100px;
    }

    h1, .page-title {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .header-cta-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Product Grid Responsive */
@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    #cart-toggle,
    #cart-sidebar {
        display: none !important;
    }

    #main-content {
        padding-top: 0;
    }

    body {
        font-size: 12pt;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes grow {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

.animate-fadeInDown {
    animation: fadeInDown 0.5s ease-out;
}

.animate-grow {
    animation: grow 0.3s ease-out;
}
