/*
 * Termogas redesign layer: stats section + footer.
 * Loaded after style.css (see layouts/main.php).
 * Palette: navy #06425e / #042e48, accent red #fd1009 (CTA only).
 */

:root {
    --tg-navy-900: #042e48;
    --tg-navy-700: #06425e;
    --tg-navy-500: #0f4864;
    --tg-sky: #0b8fbf;
    --tg-accent: #fd1009;
    --tg-surface: #ffffff;
    --tg-surface-alt: #f4f8fb;
    --tg-border: #e6edf2;
    --tg-text-muted: #5b6770;
}

/* ============ Stats ============ */
.stats-band {
    margin-top: 50px;
    padding: 56px 0 32px;
    background: linear-gradient(180deg, var(--tg-surface-alt) 0%, var(--tg-surface) 100%);
}
.stats-band .section-title-area { margin-bottom: 40px; }
.stats-band .section-title { position: relative; display: inline-block; padding-bottom: 14px; }
.stats-band .section-title::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 48px; height: 3px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: var(--tg-accent);
}

.stat-card {
    position: relative;
    height: 100%;
    margin-bottom: 24px;
    padding: 32px 20px 26px;
    text-align: center;
    background: var(--tg-surface);
    border-radius: 16px;
    border: 1px solid var(--tg-border);
    box-shadow: 0 6px 24px rgba(6, 66, 94, .08);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tg-navy-700), var(--tg-sky));
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(6, 66, 94, .16);
}
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #eaf4f9;
    color: var(--tg-navy-500);
}
.stat-icon svg { width: 30px; height: 30px; }
.stat-card .counter__number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--tg-navy-700);
    font-family: "Roboto", sans-serif;
    font-variant-numeric: tabular-nums;
}
.stat-card .counter__number .n-a { color: var(--tg-accent); margin-left: 2px; }
.stat-card .counter_title {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--tg-text-muted);
}

/* ============ Footer ============ */
.tg-footer {
    margin-top: 60px;
    color: rgba(255, 255, 255, .8);
    background: linear-gradient(180deg, var(--tg-navy-900) 0%, #03223a 100%);
    border-top: 4px solid var(--tg-accent);
}
.tg-footer__main { padding: 56px 0 24px; }
.tg-footer a { color: inherit; text-decoration: none; }
.tg-footer__logo img { max-height: 56px; width: auto; }

.tg-footer__title {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}
.tg-footer__title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 32px; height: 3px;
    border-radius: 2px;
    background: var(--tg-accent);
}

.tg-footer__list { list-style: none; margin: 0; padding: 0; }
.tg-footer__contact { margin: 22px 0; }
.tg-footer__contact li,
.tg-footer__links li { margin: 0; }
.tg-footer__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 8px 0;
    line-height: 1.45;
}
.tg-footer__row svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: #7fc7e3; }
a.tg-footer__row:hover { color: #fff; }

.tg-footer__links a {
    display: inline-block;
    padding: 7px 0;
    transition: color .15s, transform .15s;
}
.tg-footer__links a:hover { color: #fff; transform: translateX(4px); }

.tg-footer__social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tg-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 18px;
    transition: background .2s, transform .2s;
}
.tg-footer__social a:hover { background: var(--tg-accent); transform: translateY(-3px); }

.tg-footer__form .tg-field { margin-bottom: 14px; }
.tg-footer__form label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
}
.tg-footer__form label span { color: #ff8a86; }
.tg-footer__form .form-control {
    height: 46px;
    padding: 0 14px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    box-shadow: none;
}
.tg-footer__form textarea.form-control { height: auto; padding: 12px 14px; resize: vertical; }
.tg-footer__form .form-control:focus {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .2);
}
.tg-footer__submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--tg-accent);
    cursor: pointer;
    transition: background .15s;
}
.tg-footer__submit:hover { background: #d90d07; }
.tg-footer__submit:disabled { opacity: .6; cursor: not-allowed; }

/* honeypot: hidden from users and assistive tech */
.tg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tg-footer__status:empty { display: none; }
.tg-footer__status {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}
.tg-footer__status.is-success { background: #14803c; }
.tg-footer__status.is-error { background: #b3261e; }

.tg-footer a:focus-visible,
.tg-footer button:focus-visible,
.tg-footer .form-control:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.tg-footer__bar {
    margin-top: 24px;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.tg-footer__bar p { margin: 0; }

@media (max-width: 991px) {
    .tg-footer__main { padding-top: 44px; }
}
@media (max-width: 575px) {
    .stat-card { padding: 24px 10px 20px; margin-bottom: 16px; }
    .stat-icon { width: 52px; height: 52px; }
    .stat-icon svg { width: 24px; height: 24px; }
    .stat-card .counter__number { font-size: 2rem; }
    .stat-card .counter_title { font-size: .9rem; }
    .tg-footer__bar { padding-bottom: 84px; } /* room for floating WhatsApp button */
}

@media (prefers-reduced-motion: reduce) {
    .stat-card, .tg-footer__links a, .tg-footer__social a,
    .bk-term span, .bk-field .form-control { transition: none; }
    .stat-card:hover, .tg-footer__links a:hover, .tg-footer__social a:hover { transform: none; }
}

/* ============ Home: hero + payment cards ============ */
.hero .carousel-item img { width: 100%; height: auto; }
.hero .carousel-indicators { margin-bottom: 12px; }
.hero .carousel-indicators li { height: 4px; }
.hero .carousel-control-prev:focus-visible,
.hero .carousel-control-next:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

.pay-cards { padding: 36px 0 8px; }
.pay-cards__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pay-card {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    padding: 18px 20px;
    color: var(--tg-navy-700);
    text-decoration: none;
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(6, 66, 94, .08);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pay-card:hover, .pay-card:focus-visible {
    color: var(--tg-navy-700);
    text-decoration: none;
    transform: translateY(-4px);
    border-color: var(--tg-sky);
    box-shadow: 0 14px 34px rgba(6, 66, 94, .16);
}
.pay-card:focus-visible { outline: 3px solid var(--tg-navy-500); outline-offset: 3px; }
.pay-card__img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.pay-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pay-card__name { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.pay-card__cta { font-size: .95rem; font-weight: 600; color: var(--tg-accent); }

@media (max-width: 991px) {
    .pay-cards__list { grid-template-columns: 1fr; gap: 12px; }
    .pay-card { padding: 14px 16px; }
    .pay-card__img { flex-basis: 72px; width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    .pay-card { transition: none; }
    .pay-card:hover, .pay-card:focus-visible { transform: none; }
}
@media (max-width: 768px) {
    .hero { margin-bottom: 20px; }
}

/* ============ Home: video band + category cards ============ */
.video-band {
    position: relative;
    margin: 40px 0;
    padding: 64px 0;
    background-color: #05090d;
    background-image: url(../img/fonvideo.png);
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: cover;
    isolation: isolate;
}
/* dark overlay keeps the player and background readable */
.video-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 9, 13, .35) 0%, rgba(5, 9, 13, .55) 100%);
}
.video-band__player {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.cat-cards { margin: 40px 0; }
.cat-cards .section-title-area { margin-bottom: 32px; }
.cat-cards__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.cat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 28px;
    color: var(--tg-navy-700);
    text-decoration: none;
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(6, 66, 94, .08);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 5px;
    background: var(--cat-accent, var(--tg-navy-700));
}
.cat-card--heat { --cat-accent: var(--tg-accent); --cat-tint: #fff1f0; }
.cat-card--cool { --cat-accent: var(--tg-sky); --cat-tint: #e8f6fb; }
.cat-card:hover, .cat-card:focus-visible {
    color: var(--tg-navy-700);
    text-decoration: none;
    transform: translateY(-4px);
    border-color: var(--cat-accent);
    box-shadow: 0 14px 34px rgba(6, 66, 94, .16);
}
.cat-card:focus-visible { outline: 3px solid var(--tg-navy-500); outline-offset: 3px; }
.cat-card__icon {
    flex: 0 0 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px; height: 76px;
    border-radius: 50%;
    background: var(--cat-tint);
    color: var(--cat-accent);
}
.cat-card__icon svg { width: 38px; height: 38px; }
.cat-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cat-card__title { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--tg-navy-700); }
.cat-card__text { font-size: .95rem; line-height: 1.5; color: var(--tg-text-muted); }
.cat-card__cta { font-size: .95rem; font-weight: 700; color: var(--tg-accent); }

@media (max-width: 767px) {
    .video-band { padding: 28px 0; }
    .video-band__player { border-radius: 12px; }
    .cat-cards__grid { grid-template-columns: 1fr; gap: 14px; }
    .cat-card { padding: 22px 18px; gap: 16px; }
    .cat-card__icon { flex-basis: 60px; width: 60px; height: 60px; }
    .cat-card__icon svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .cat-card { transition: none; }
    .cat-card:hover, .cat-card:focus-visible { transform: none; }
}

/* ============ Header / a11y ============ */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    font-weight: 700;
    color: #fff;
    background: var(--tg-navy-700);
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; outline: 3px solid var(--tg-accent); outline-offset: 2px; }
#main-content:focus { outline: none; }

/* keyboard access to the hover dropdowns */
.dropdown-first:focus-within > .dropdown-content { display: block; }
.dropdown-content li:focus-within > .submenu { display: block; }

.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 3px solid var(--tg-navy-500);
    outline-offset: 2px;
}

/* larger touch targets for header social buttons */
.md-hide .btn-icon.btn-xs { width: 40px; height: 40px; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
    .skip-link { transition: none; }
}

/* ============ About page ============ */
.page-hero {
    padding: 72px 0;
    color: #fff;
    background-color: #05090d;
    background-image:
        linear-gradient(180deg, rgba(5, 9, 13, .45) 0%, rgba(5, 9, 13, .75) 100%),
        url(../img/fonvideo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.page-hero__title {
    margin: 0;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #fff;
}

.about-content {
    padding: 56px 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2b3640;
    overflow-wrap: anywhere;
}
.about-content > *:first-child { margin-top: 0; }
.about-content > *:last-child { margin-bottom: 0; }
.about-content p { margin: 0 0 1.2em; }
.about-content h2, .about-content h3, .about-content h4 {
    margin: 1.6em 0 .6em;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tg-navy-700);
}
.about-content ul, .about-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.about-content li { margin-bottom: .4em; }
.about-content a { color: var(--tg-navy-500); text-decoration: underline; }
.about-content img { max-width: 100%; height: auto; }
.about-content table { width: 100%; max-width: 100%; }
.about-content strong, .about-content b { color: var(--tg-navy-700); }
/* the CMS editor often saves inline fonts/sizes; keep the page typography consistent */
.about-content [style*="font-family"] { font-family: inherit !important; }
.about-content [style*="font-size"] { font-size: inherit !important; }

.about-cta {
    margin-bottom: -60px; /* cancels the footer's top margin so the band meets the footer */
    padding: 72px 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--tg-navy-900) 0%, var(--tg-navy-700) 60%, #0b6a8f 100%);
}
.about-cta__title {
    margin: 0 0 28px;
    font-size: clamp(1.6rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.about-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 36px;
    font-size: clamp(1.4rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: .02em;
    color: #fff;
    text-decoration: none;
    background: var(--tg-accent);
    transition: background .15s;
}
.about-cta__phone svg { width: 1em; height: 1em; }
.about-cta__phone:hover { color: #fff; background: #d90d07; }
.about-cta a:focus-visible, .about-content a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}
.about-content a:focus-visible { outline-color: var(--tg-navy-500); }

@media (max-width: 767px) {
    .page-hero { padding: 44px 0; }
    .about-content { padding: 32px 0; font-size: 1rem; }
    .about-cta { padding: 44px 0; }
}

/* ============ Contact page: store list ============ */
.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 40px;
    list-style: none;
    margin: 0;
    padding: 48px 0 56px;
}
.store {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 0;
    border-top: 2px solid var(--tg-border);
}
.store:hover { border-top-color: var(--tg-accent); }
.store__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    color: #2b3640;
    text-decoration: none;
}
.store__row svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; color: var(--tg-sky); }
.store__address { font-weight: 600; color: var(--tg-navy-700); }
a.store__row { min-height: 32px; }
a.store__row:hover { color: var(--tg-accent); }
.store__map {
    align-self: flex-start;
    margin: 6px 0 0 32px;
    font-weight: 700;
    color: var(--tg-accent);
    text-decoration: none;
}
.store__map:hover { color: #d90d07; text-decoration: underline; }
.store a:focus-visible { outline: 3px solid var(--tg-navy-500); outline-offset: 2px; }

@media (max-width: 991px) {
    .store-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .store-grid { grid-template-columns: 1fr; padding: 24px 0 32px; }
}
