* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

:root {
    --header-height: 120px;
    --bg-color: #f3f1eb;
    --card-bg-white: #ffffffb0;
    --card-bg-tan: #e6e2d3b0;
    --text-color: #333;
    --menu-bg: #fffffff6;
    --link-color: rgb(0, 0, 0);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-hover: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding-top: var(--header-height);
    color: var(--text-color);
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 5px 2rem 0 2rem;
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-pay-container {
    position: absolute;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    z-index: 1002;
}

.header-pay-btn {
    background-color: var(--link-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.header-pay-btn:hover {
    background-color: #000000ac;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.header-pay-btn i {
    font-size: 1.1rem;
}

.pay-by-phone {
    margin: 0;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text-color);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.header-hours-status {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.header-hours-status .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    margin-top: -2px;
    /* Fine-tune for perfect centering with caps */
}

.header-hours-status.status-open .status-dot {
    background-color: #4CAF50;
    /* Green Dot */
}

.header-hours-status.status-closed .status-dot {
    background-color: #F44336;
    /* Red Dot */
}

.header-hours-status.status-warning .status-dot {
    background-color: #FF9800;
    /* Orange Dot */
}

.header-hours-status .status-text {
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.header-hours-status .detail-text {
    color: #444;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#cards-view {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sidebar Menu */
.menu-container {
    position: absolute;
    left: 2rem;
    z-index: 1001;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 10px;
}

.side-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background-color: var(--menu-bg);
    box-shadow: 2px 0 5px var(--shadow-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    padding-top: 1rem;
    overflow-y: auto;
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-menu a:hover {
    background-color: #f9f9f9;
}

.menu-heading {
    padding: 1rem 1.5rem 0.4rem;
    color: #999;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.4rem;
}

.side-menu a.sub-link {
    padding: 0.45rem 1.5rem 0.45rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

.logo-container {
    position: relative;
    z-index: 1005;
}

.logo-image {
    height: 125px;
    width: auto;
    display: block;
    margin-bottom: -27px;
    position: relative;
    z-index: 1005;
    background-color: var(--bg-color);
    border-radius: 50%;
    padding: 2px;
    transition: transform 0.2s ease;
}

.logo-image:hover {
    transform: scale(1.02);
}

#main-header>a {
    display: flex;
    align-items: center;
}

/* Cards */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 2rem;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow-color-hover);
}

.card-white {
    background-color: var(--card-bg-white);
}

.card-icon {
    font-size: 3rem;
    color: var(--link-color);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Badge Styles */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.badge-red {
    background-color: #f44336;
    color: white;
}

/* Disabled State */
.card.disabled,
.contact-card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.card.disabled:hover {
    transform: none;
    box-shadow: 0 4px 6px var(--shadow-color);
}

/* Content Sections (About, FAQ) */
.content-section {
    padding: 3rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.section-container {
    max-width: 800px;
    width: 100%;
}

.content-section h2 {
    color: var(--link-color);
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.alt-bg {
    background-color: #e9e7e1;
    /* Slightly darker than main bg */
}

.about-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* FAQ Styles */
.faq-item {
    background: white;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.faq-question i {
    color: var(--link-color);
    font-size: 1.2rem;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    padding-left: 30px;
    /* Indent to align with text of question */
}

/* Footer Styles */
#main-footer {
    background-color: #333;
    color: white;
    padding: 3rem 1.5rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #555;
}

.footer-info h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.5rem;
}

.footer-info a {
    color: #fff;
    /* Keep footer links white */
    text-decoration: none;
}

.footer-info .time-light {
    font-weight: 300;
    opacity: 0.9;
}

.footer-info .hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-info .hours-row {
    display: flex;
}

.footer-info .day-label {
    font-weight: bold;
    display: inline-block;
    width: 50px;
}

.footer-links h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 0;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #999;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--link-color);
}

/* Responsive */

/* Contact Cards */
.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.contact-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-card-role {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.contact-card-name {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-card-name .material-icons {
    font-size: 1rem;
    color: #888;
}

.contact-card-email {
    color: #444;
    transition: color 0.2s;
}

.contact-card-email:hover {
    color: #000;
}

.contact-card-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.5rem;
    transition: color 0.2s;
}

.contact-card-phone .material-icons {
    font-size: 1rem;
    color: #888;
}

.contact-card-phone:hover {
    color: #000;
}


@media (max-width: 600px) {
    #main-header {
        position: fixed;
        width: 100%;
        height: 100px;
        padding: 5px 1rem 0 1rem;
        justify-content: space-between;
        /* Change alignment for mobile */
    }

    body {
        padding-top: 100px;
    }

    .logo-container,
    #main-header > a {
        margin-left: 55px;
    }

    .logo-image {
        height: 60px;
        margin-left: 0;
        margin-bottom: 0;
        background-color: transparent;
        border-radius: 0;
        padding: 0;
    }

    .menu-container {
        left: 1rem;
        z-index: 1010;
    }

    .hamburger-btn {
        position: relative;
        z-index: 1011;
    }

    .header-pay-container {
        position: static;
        gap: 0.15rem;
    }

    .header-pay-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        min-width: 160px;
    }

    .header-pay-btn .btn-text {
        display: inline;
    }

    .header-pay-btn i {
        margin: 0;
    }

    .pay-by-phone {
        font-size: 0.6rem;
    }

    #main-content {
        padding: 1rem 1.25rem;
    }

    .card {
        max-width: 100%;
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .card-icon {
        margin-bottom: 0;
        font-size: 2rem;
    }

    .card-content {
        display: flex;
        flex-direction: column;
    }

    .side-menu {
        width: 100%;
    }
}

/* Page Specific Styles */
.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--link-color);
    text-decoration: none;
}

.breadcrumb span {
    color: #333;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h3 {
    color: var(--link-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
    padding-top: 1rem;
}

.info-block p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.divider {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 2rem 0;
}

.text-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
}

.bullet-list {
    padding-left: 20px;
    line-height: 1.6;
}

.bullet-list li {
    margin-bottom: 0.5rem;
}

.alert-box {
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.alert-box.danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-box i {
    font-size: 1.5rem;
}

.alert-box p {
    margin: 0;
    color: inherit;
}

/* Business Hours Status */
.hours-status {
    font-weight: bold;
    margin-bottom: 0.8rem !important;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
}

.status-open {
    color: #4caf50;
    /* Green */
}

.status-closed {
    color: #f44336;
    /* Red */
}

.status-warning {
    color: #ff9800;
    /* Orange */
}

/* Logo container styling */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1002;
}

/* Header alert pill styling */
.header-alert-pill {
    display: none;
    /* controlled by JS */
    align-items: center;
    gap: 6px;
    background-color: #d93025;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(217, 48, 37, 0.4);
    animation: alert-pulse 2s infinite;
    user-select: none;
    transition: all 0.2s ease;
}

.header-alert-pill:hover {
    background-color: #b8251b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 48, 37, 0.5);
}

.header-alert-pill .material-icons {
    font-size: 1.1rem;
}

/* Pulse animation for the pill */
@keyframes alert-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 48, 37, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(217, 48, 37, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217, 48, 37, 0);
    }
}

/* Alert Modal Overlay Styling */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    padding: 20px;
}

/* Alert Modal Card Styling */
.alert-modal-card {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modal-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modal-slide-in {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-modal-header {
    background-color: #fff8f7;
    border-bottom: 1px solid #f5c6cb;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.alert-modal-icon {
    color: #d93025;
    font-size: 1.8rem;
}

.alert-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #721c24;
    font-weight: 700;
    flex: 1;
}

.alert-modal-close {
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    user-select: none;
}

.alert-modal-close:hover {
    color: #333;
}

.alert-modal-body {
    padding: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.alert-modal-body p {
    margin: 0;
    line-height: 1.6;
    color: #444;
    font-size: 1rem;
    white-space: pre-wrap;
    /* Preserve text breaks */
}

.alert-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.alert-modal-ok-btn {
    background-color: #d93025;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.alert-modal-ok-btn:hover {
    background-color: #b8251b;
}

/* Mobile overrides */
@media (max-width: 600px) {
    .header-alert-pill .pill-text {
        display: none;
    }

    .header-alert-pill {
        padding: 8px;
        border-radius: 50%;
        margin-left: 10px;
    }
}

/* Pulsing red dot for active outages */
.outage-pulse-dot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    background-color: #f44336;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    animation: dot-pulse 1.5s infinite;
}

@keyframes dot-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(244, 67, 54, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}