/* Master G - site styles */
:root {
    --red: #EC161E;
    --navy: #1D334D;
    --text: #A1A1A1;
    --grey: #7D7D7D;
    --light: #F6F6F6;
    --rose: #CC6464;
    --plum: #946496;
    --radius: 10px;
    --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Commissioner", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 999; background: #fff; color: var(--navy); padding: 8px 14px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 10px; }
.container-wide { width: 100%; max-width: 1237px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1;
    padding: 18px 35px; border-radius: 5px; border: 1px solid var(--red);
    cursor: pointer; transition: background-color .3s, color .3s, border-color .3s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--navy); border-color: var(--navy); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }

/* Top bar */
.topbar { background: var(--red); color: #fff; font-size: 14px; font-weight: 400; }
.topbar .container-wide { display: flex; align-items: center; min-height: 60px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.topbar li { display: flex; align-items: center; padding: 0 14px; border-left: 1px solid rgba(255,255,255,.25); }
.topbar li:first-child { padding-left: 0; border-left: 0; }
.topbar a { display: inline-flex; align-items: center; gap: 10px; }
.topbar a:hover { opacity: .85; }
.topbar svg { width: 14px; height: 14px; fill: #FFE660; flex: none; }

/* Header */
.site-header { background: #fff; position: relative; z-index: 50; }
.site-header .container-wide { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.site-header .logo img { width: 145px; }
.header-actions { display: flex; gap: 15px; }

/* Hero */
.hero-wrap { padding: 20px 0 30px; }
.hero {
    position: relative; overflow: hidden; border-radius: var(--radius);
    min-height: 895px; display: flex; align-items: center;
    background: #222 url('../images/Convenience-Store.webp') 0% 100% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero-inner { position: relative; max-width: 580px; margin-left: 120px; padding: 300px 0 120px; }
.hero h1 { font-size: 52px; font-weight: 600; line-height: 1.2; color: #fff; }
.hero .eyebrow { margin: 20px 0 16px; font-size: 16px; font-weight: 600; color: var(--red); }
.hero .eyebrow span { text-decoration: underline; text-underline-offset: 4px; }
.hero p { color: #fff; }

/* Category cards */
.categories { padding: 30px 0 60px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.card {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 428px;
    border-radius: var(--radius); overflow: hidden; color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.15); }
.card-body { padding: 38px 25px 38px 38px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.card h2 { font-size: 32px; font-weight: 600; line-height: 1; color: #fff; word-break: break-word; }
.card p a { color: var(--navy); }
.card-media { background-size: cover; background-position: center; }
.c-candy { background: #CD6363; }
.c-bev, .c-auto { background: #FFC019; }
.c-coffee { background: #BE7D71; }
.c-cigar { background: #6F6A73; }
.c-grocery { background: #6BB060; }
.c-snack { background: #8D6394; }
.c-burton { background: #CD6363; }

/* Section heading */
.section-title { font-size: 40px; font-weight: 600; line-height: 1.2; color: var(--navy); }

/* Brands carousel */
.brands { padding: 60px 0; }
.brands .section-title { text-align: center; margin-bottom: 30px; }
.carousel { position: relative; padding: 0 50px; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { flex: 0 0 33.3333%; padding: 0 30px; display: flex; align-items: center; justify-content: center; height: 220px; }
.carousel-slide img { max-height: 200px; width: auto; object-fit: contain; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: 0; cursor: pointer; padding: 8px; color: var(--navy);
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.carousel-dots button { width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0; background: #000; opacity: .2; cursor: pointer; }
.carousel-dots button.active { opacity: 1; }

/* App section */
.app-section { padding: 60px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.app-section .text { display: flex; flex-direction: column; gap: 30px; }
.app-download {
    display: flex; align-items: center; gap: 20px; background: var(--light);
    border-radius: var(--radius); padding: 20px; max-width: 455px; transition: background-color .3s;
}
.app-download:hover { background: #ececec; }
.app-download .icon { width: 70px; height: 70px; border-radius: 8px; background: var(--red); display: grid; place-items: center; flex: none; }
.app-download .icon svg { width: 34px; height: 34px; fill: #fff; }
.app-download h3 { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--navy); }
.app-section .note { color: var(--navy); font-weight: 500; }

/* About */
.about { padding: 50px 0 60px; }
.about .text { display: flex; flex-direction: column; gap: 20px; }
.about .text h2 { margin-bottom: 10px; }
.about .text a { color: var(--navy); }
.about .text a:hover { color: var(--red); }
.partner {
    position: relative; overflow: hidden; border-radius: var(--radius); min-height: 385px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    padding: 40px; text-align: center;
    background: #222 url('../images/C-store.webp') bottom center / cover no-repeat;
}
.partner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.partner > * { position: relative; }
.partner h2 { color: #fff; font-size: 40px; font-weight: 600; line-height: 1.2; max-width: 492px; }

/* Contact */
.contact-banner {
    position: relative; overflow: hidden; border-radius: var(--radius); height: 310px;
    display: grid; place-items: center;
    background: #222 url('../images/Candy-Convenience-Store.webp') 0 62% / cover no-repeat;
}
.contact-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.contact-banner h2 { position: relative; color: #fff; font-size: 40px; font-weight: 600; }
.contact { padding: 100px 0 80px; }
.contact-section { padding-top: 60px; }
.contact .two-col { align-items: start; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-self: center; text-align: center; }
.info-box { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.info-box svg { width: 56px; height: 56px; margin-bottom: 12px; transition: transform .3s; }
.info-box:hover svg { transform: translateY(-4px); }
.info-box h3 { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--navy); }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form label { font-size: 16px; font-weight: 500; color: var(--navy); }
.contact-form label .req { color: var(--red); }
.contact-form input, .contact-form textarea {
    width: 100%; font: inherit; color: var(--navy); background: #fff;
    border: 1px solid #ececec; border-radius: 5px; padding: 8px 16px; margin-bottom: 6px;
}
.contact-form textarea { min-height: 101px; resize: vertical; padding: 5px 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); }
.contact-form .btn { width: 100%; margin-top: 10px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px 16px; border-radius: 5px; font-weight: 500; }
.alert-success { background: #e8f6ea; color: #23703a; }
.alert-error { background: #fdeaea; color: #b3141a; }

/* Footer */
.site-footer {
    position: relative; color: #fff; padding: 110px 0 0;
    background:
        linear-gradient(rgba(29, 51, 77, .82), rgba(29, 51, 77, .82)),
        var(--navy) url('../images/concrete-texture-background-grunge-texture-ZC32RXB.jpg') center / cover no-repeat;
}
.footer-card {
    width: 387px; max-width: 100%; margin: 0 auto; padding: 30px; border-radius: var(--radius);
    background: rgba(255,255,255,.1); display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.footer-card img { width: 182px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin-top: 60px; font-size: 15px; font-weight: 400; list-style: none; padding: 0; }
.footer-links a:hover { color: #FFE660; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding: 30px 0 40px; text-align: center; font-size: 14px; }

/* Legal / support pages */
.page-hero {
    position: relative; overflow: hidden; border-radius: var(--radius); padding: 90px 30px;
    text-align: center; background: #222 url('../images/Candy-Convenience-Store.webp') 0 62% / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.page-hero > * { position: relative; }
.page-hero h1 { color: #fff; font-size: 48px; font-weight: 600; line-height: 1.2; }
.page-hero p { color: #fff; margin-top: 12px; }
.legal { padding: 60px 0 90px; }
.legal .container { max-width: 900px; }
.legal h2 { color: var(--navy); font-size: 26px; font-weight: 600; line-height: 1.3; margin: 40px 0 12px; }
.legal h3 { color: var(--navy); font-size: 19px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--grey); font-weight: 400; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal a { color: var(--red); text-decoration: underline; }
.legal .updated { color: var(--navy); font-weight: 500; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 10px 0 30px; }
.support-card { background: var(--light); border-radius: var(--radius); padding: 28px; }
.support-card h3 { margin-top: 0; }
.support-card a { font-weight: 500; }
.faq details { border-bottom: 1px solid #eee; padding: 16px 0; }
.faq summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Tablet */
@media (max-width: 1024px) {
    .hero { min-height: 700px; }
    .hero-inner { margin-left: 50px; padding: 200px 0 80px; }
    .hero h1 { font-size: 44px; }
    .cards { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .section-title, .partner h2, .contact-banner h2 { font-size: 35px; }
    .carousel-slide { flex-basis: 50%; }
    .support-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 767px) {
    .container-wide, .container { padding: 0 16px; }
    .topbar .container-wide { justify-content: center; min-height: 46px; }
    .topbar li { padding: 0 10px; font-size: 13px; }
    .topbar li.hide-sm { display: none; }
    .site-header .logo img { width: 100px; }
    .header-actions { gap: 8px; }
    .header-actions .btn { padding: 13px 16px; font-size: 14px; }
    .hero { min-height: 0; }
    .hero-inner { margin: 0; padding: 140px 24px 50px; }
    .hero h1 { font-size: 34px; }
    .cards { grid-template-columns: 1fr; }
    .card { min-height: 380px; }
    .card h2 { font-size: 30px; }
    .two-col { grid-template-columns: 1fr; }
    .section-title, .partner h2, .contact-banner h2 { font-size: 30px; }
    .carousel { padding: 0 34px; }
    .carousel-slide { flex-basis: 100%; height: 180px; }
    .contact { padding: 60px 0; }
    .contact-banner { height: 220px; }
    .page-hero h1 { font-size: 34px; }
    .support-grid { grid-template-columns: 1fr; }
}

/* Error pages */
.error-hero {
    position: relative; overflow: hidden; border-radius: var(--radius);
    min-height: 560px; padding: 80px 30px; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #222 url('../images/Convenience-Store.webp') 0% 100% / cover no-repeat;
}
.error-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.error-hero > * { position: relative; }
.error-code { font-size: 160px; font-weight: 600; line-height: 1; color: var(--red); text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.error-hero h1 { color: #fff; font-size: 52px; font-weight: 600; line-height: 1.2; margin-top: 10px; }
.error-text { color: #fff; max-width: 580px; margin-top: 16px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 34px; }
.btn-light { background: #fff; color: var(--red); border-color: #fff; }
.btn-light:hover { background: var(--red); color: #fff; border-color: var(--red); }
.error-help { padding: 40px 0 90px; }
.error-help .support-card { display: block; transition: background-color .3s, transform .3s; }
.error-help .support-card:hover { background: #ececec; transform: translateY(-4px); }
.error-help .support-card h3 { color: var(--navy); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 767px) {
    .error-hero { min-height: 440px; padding: 60px 20px; }
    .error-code { font-size: 100px; }
    .error-hero h1 { font-size: 32px; }
}
