* { box-sizing: border-box; }

:root {
    --text: #222;
    --muted: #555;
    --bg: #ffffff;
    --border: #e6e6e6;
    --brand: #147864;
    --accent: #6ec8bf;
    --max: 1040px;
}

html {
    @media (max-width: 640px) {
        font-size: 120%;
    }
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    background: #effcf9;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;

    a {
        color: var(--brand);
        text-decoration: none;
        font-weight: 600;
        text-decoration: underline;
        transition: all .18s ease;

        &:hover {
            color: var(--text);
        }
    }
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 20px;
    top: 20px;
    width: auto;
    height: auto;
    padding: 10px 12px;
    background: #000;
    color: #fff;
    z-index: 9999;
}

.site-header {
    background: #fff;
    padding:1.5rem 0 1rem;
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    color: var(--brand);
    text-decoration: none;
}

.hmglogo {
    width: 220px;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
}
.site-nav a:hover,
.site-nav a:focus-visible {
    background: #f2f2f2;
}
.site-nav a[aria-current="page"] {
    background: #f6f6f6;
    font-weight: 700;
}

.site-main {
    padding: 28px 0 48px;
}


.lead {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 18px;
}

.notice {
    border-left: 5px solid var(--accent);
    padding: 14px 16px;
    background: #fafafa;
    margin: 18px 0 28px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tile {
    display: block;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--text) !important;
    background: #fff;
}
.tile:hover,
.tile:focus-visible {
    border-color: #cfcfcf;
    background: #fbfbfb;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    color: #333;
    text-align: center;
    padding-top: 4rem;
}

.wht-bg {
    background: #FFFFFF;

    @media (min-width: 1025px) {
        .container {
            padding: 0;
        }
    }
}

@media (max-width: 1024px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hmglogo {
        width: min(240px, 70vw);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.footer-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    justify-content: center;
}

.grey-container {
    border: #e0e0e0 1px solid;
    padding: 3rem;
    border-radius: 40px;
    margin: 2.5rem 0;

    @media (max-width: 640px) {
        padding: 1.8rem;
    }
}

.grey-container h2 {
    margin-top:0;
}

.footer-nav a, .grey-container a  {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;

    &:hover {
        text-decoration: underline;
    }
}

.tou-table {
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    border: 1px solid var(--border);

    thead {
        background: #f4f6f7;
    }

    th {
        text-align: left;
        font-weight: 600;
    }

    th, td {
        padding: 12px 14px;
    }
}

.phone-table {
    width: 100%;
    border-collapse: collapse;
}

.phone-table th {
    text-align: left;
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 2px solid var(--border);
}

.phone-table td {
    padding: 12px 14px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.phone-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Phone link: bold + clean */
.phone-table .phone-location-phone a {
    color: var(--text);

    @media (min-width: 1024px) {
        text-decoration: underline;

        &:hover {
            color:var(--brand);
        }
    }
}

.phone-table .phone-location-phone a:hover {
    text-decoration: underline;
}

/* Mobile: stack rows into cards */
@media (max-width: 1024px) {

    .phone-table thead {
        display: none;
    }

    .phone-table,
    .phone-table tbody,
    .phone-table tr,
    .phone-table td {
        display: block;
        width: 100%;
        padding: 0 10px;
    }

    .phone-table tr {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 14px 14px;
        margin-bottom: 12px;
    }

    .phone-table td {
        border: 0;
        padding: 6px 0;
    }

    .phone-table td::before {
        display: block;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #777;
        margin-bottom: 2px;
    }

    .phone-table .phone-location-name::before {
        content: "Location";
    }

    .phone-table .phone-location-address::before {
        content: "Address";
    }

    .phone-table .phone-location-phone::before {
        content: "Phone";
    }

    .phone-table .phone-location-phone a {
        font-size: 17px;
    }
}

.phone-location-phone a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.phone-location-phone a:hover {
    text-decoration: underline;
}

.phone-ico { display: none; }

@media (max-width: 640px) {
    .phone-ico {
        display: inline-block;
        width: 16px;
        height: 16px;
        opacity: .75;
        fill: currentColor;
        flex-shrink: 0;
    }

    .phone-location-phone a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
}

.header-inner {
    display: flex;
    align-items: center;
}

/* push nav right */
.top-nav {
    margin-left: auto;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}



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

.top-nav a {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    transition: all .18s ease;
    background: #FFFFFF;
    border: var(--brand) 1px solid;
    color: var(--text);

    &:hover {
        text-decoration: none;
        background: var(--brand);
        color:#FFFFFF;
    }
}

/* desktop */
.top-nav ul {
    display: flex;
    gap: 10px;
}

/* mobile */
@media (max-width: 1024px) {

    /* stop desktop "push-right" behavior */
    .top-nav {
        margin-left: 0;              /* kills margin-left:auto */
        width: 100%;
        display: flex;
        justify-content: center;     /* centers the UL block */
    }

    .top-nav ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        padding: 0;
        margin: 14px 0 0;
        align-items: stretch;
    }

    .top-nav li {
        width: 100%;
    }

    .top-nav a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

.home-hero {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;

    background-image: url("../img/img.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    @media (max-width: 640px) {
        height: 300px !important;
    }
}

/* darker overlay */
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45); /* adjust darkness */
}



.hmg-hero__inner{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;

    img {
        max-width: 1200px;
    }
}


.home-hero {
    position: relative;
    height: 420px;
    width: 100%;
    overflow: hidden;
    background-image: url("../img/img.webp");
    background-size: cover;
    background-repeat: no-repeat;

    @media (min-width: 1800px) {
        background-position: top center;
        height: 560px;

    }
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 0;
}


.hmg-hero__headline-logo {
    width: clamp(320px, 48vw, 920px);
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .hmg-hero__headline-logo {
        width: 85vw;
    }
}

.billing-intro {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.4;
}

.billing-intro__label {
    text-transform: uppercase;
    font-weight: 900;
}

.billing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.billing-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.billing-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.billing-card__title {
    font-size: 20px;
    margin: 0;
}

.billing-card__logo {
    max-width: 160px;
    height: auto;
}

.billing-card__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.billing-card__subtitle {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.billing-addr,
.billing-note {
    margin: 0;
    color: #333;
    line-height: 1.4;
}

.billing-btn {
    display: inline-block;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--brand);
    text-decoration: none !important;
    background: #6ec8bf26;
    color:var(--text) !important;
}

.billing-btn:hover,
.billing-btn:focus {
    text-decoration: none !important;
    background: var(--brand);
    color: #FFFFFF !important;
}

.billing-phone {
    color:var(--text) !important;
    font-weight: 400 !important;
}

.billing-phone:hover,
.billing-phone:focus {
    text-decoration: underline;
}

.copy-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    margin-left: 8px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #f6f6f6;
    font-weight: 700;
    cursor: pointer;
}

.copy-chip:hover,
.copy-chip:focus {
    text-decoration: underline;
}

@media (min-width: 880px) {
    .billing-card__body {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: start;
    }
}

h1 {
    margin: 0;
    font-size: 36px;
}


.header-bg {
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    background: #FFFFFF;

    .container {
        padding: 0;

        h1 {
            padding: 20px 0;

            @media (max-width: 1024px) {
                text-align: center;
                line-height: 1.2;
            }
        }
    }
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.txt-link {
    color: var(--text) !important;
}

.header-bg {
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    background: #FFFFFF;
}

/* mobile first */
.header-bg .container {
    padding: 0 20px;
}

.header-bg h1 {
    padding: 20px 0;
    text-align: center;
}

/* desktop override */
@media (min-width: 1025px) {
    .header-bg .container {
        padding: 0;
    }

    .header-bg h1 {
        text-align: left;
    }
}

.quick-header {
    margin: 3rem 0 10px;

}

.maintenance-msg-container {
    background: color(srgb 0.81 0.95 0.92);
    padding: 20px 0;
}

.maintenance-msg {
    text-align: center;
    margin: 0  2rem !important;
}

.maintenance-msg strong {
    font-weight: 600;
}