/* =========================================================
   WINGO SNACKS - style.css
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #555;
    background-color: #fff;
    line-height: 1.7em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #2ea3f2;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

p {
    padding-bottom: 1em;
}

p:last-child {
    padding-bottom: 0;
}

ul {
    list-style: none;
}

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

/* --- CONTAINER --- */
.container {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

/* =========================================================
   SHARED TYPOGRAPHY
   ========================================================= */

/* Red uppercase label used across all sections */
.section-label {
    font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #db3e24;
    margin-bottom: 14px;
}

/* Large black section title (Josefin Sans 700, 52px) */
.section-heading {
    font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 52px;
    color: #1a1a1a;
    line-height: 1.1em;
    margin-bottom: 24px;
    padding-bottom: 0;
}

/* Body paragraph used across sections */
.section-body {
    font-size: 15px;
    line-height: 1.8em;
    color: #333;
    text-align: justify;
    margin-bottom: 0;
}

/* =========================================================
   HEADER
   ========================================================= */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background-color: #175f84;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
    height: 80px;
    overflow: visible;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

#main-header.visible {
    transform: translateY(0);
    opacity: 1;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    flex-wrap: nowrap;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

#header-logo {
    max-height: 44px;
    width: auto;
    display: block;
}

/* Desktop nav */
#top-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#top-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
}

#top-menu li {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    white-space: nowrap;
}

#top-menu a {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    transition: color 0.3s, opacity 0.3s;
}

#top-menu a:hover,
#top-menu li.active > a {
    color: #fff;
    opacity: 1;
}

/* Mobile toggle */
#mobile-nav-toggle {
    display: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-bar {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: #175f84;
    border-top: 3px solid #2ea3f2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 16px 0;
}

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

.mobile-menu li a {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 10%;
    display: block;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s;
}

.mobile-menu li a:hover {
    color: #fff;
    opacity: 1;
}

/* =========================================================
   PAGE CONTAINER
   ========================================================= */
#page-container {
    padding-top: 0;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.section-hero {
    background-color: #175f84;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-inner {
    padding: 60px 0 50px;
    text-align: center;
}

#logo-wingo {
    display: inline-block;
    margin-bottom: 30px;
}

#logo-wingo img {
    max-width: 380px;
    width: 100%;
    display: inline-block;
}

#logo-wingo {
    position: relative;
    display: inline-block;
}

.hero-headline {
    font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.8vw, 40px);
    color: #fff;
    line-height: 1.15em;
    margin-bottom: 22px;
    padding-bottom: 0;
}

.hero-body {
    max-width: 900px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.8em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding-bottom: 0;
}

.hero-cta {
    margin-bottom: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    background-color: #E02B20;
    border-radius: 8px;
    padding: 14px 38px;
    transition: background-color 0.25s, padding 0.25s, gap 0.25s;
    cursor: pointer;
}

.btn-primary .btn-icon {
    display: flex;
    align-items: center;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.25s ease, opacity 0.2s ease, margin-left 0.25s ease;
    margin-left: 0;
    position: relative;
    top: 5px;
}

.btn-primary:hover {
    background-color: #c52219;
    color: #fff;
    opacity: 1;
}

.btn-primary:hover .btn-icon {
    max-width: 24px;
    opacity: 1;
    margin-left: 10px;
}

.hero-crowd {
    width: 100%;
    line-height: 0;
    margin-top: 50px;
}

.hero-crowd img {
    width: 100%;
    display: block;
}

/* =========================================================
   PRODUCTS SECTION
   ========================================================= */
.section-products {
    background-color: #fff;
    padding: 70px 0 80px;
}

.section-products .section-heading {
    font-size: 56px;
}

.section-products .section-body {
    margin-bottom: 40px;
}

/* Product cards */
.products-cards {
    display: flex;
    gap: 28px;
    margin-top: 36px;
}

.product-card {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    background-size: cover;
    background-position: center top;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 24px 28px;
}

.product-card-label {
    font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.product-card-cheese {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.65) 100%),
        url('assets/Wingo-Cheese_960x1140-d2.jpg');
}

.product-card-tomato {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.65) 100%),
        url('assets/Wingo-Tomato_960x1140-d2.jpg');
}

/* =========================================================
   ABOUT US SECTION
   ========================================================= */
.section-about {
    padding: 70px 0 80px;
    background-color: #fff;
}

.about-row {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 0;
}

.about-text {
    flex: 1;
}

.about-text .section-heading {
    font-size: 52px;
    margin-bottom: 28px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
}

/* =========================================================
   JOURNEY SECTION
   ========================================================= */
.section-journey {
    padding: 70px 0 80px;
    background-color: #fff;
}

.section-journey .section-heading {
    margin-bottom: 28px;
    font-size: 52px;
}

.journey-image {
    margin-bottom: 28px;
}

.journey-image img {
    width: 100%;
    border-radius: 12px;
}

.section-journey .section-body {
    text-align: justify;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.section-contact {
    padding-top: 60px;
    padding-bottom: 0;
    background-color: #fff;
    overflow: hidden;
}

/* The crowd image sits directly above the teal card */
.contact-crowd-wrap {
    line-height: 0;
    margin-bottom: 0;
}

.contact-crowd-wrap img {
    display: inline-block;
    max-width: 100%;
}

/* Teal card */
.contact-card {
    position: relative;
    z-index: 2;
    background: #175f84;
    border-radius: 16px;
    padding: 50px 50px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: -80px;
}

.contact-card-left {
    flex: 1;
}

.contact-card-title {
    font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: #fff;
    line-height: 1.1em;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.contact-card-body {
    font-size: 15px;
    line-height: 1.8em;
    color: rgba(255, 255, 255, 0.85);
    padding-bottom: 0;
    max-width: 520px;
}

.contact-card-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.social-circle-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s, transform 0.2s;
    color: #175f84;
}

.social-circle-btn:hover {
    opacity: 0.88;
    transform: scale(1.05);
}

.social-circle-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Red footer strip — slides under the teal card */
.footer-red {
    background-color: #E02B20;
    padding: 140px 0 60px;
    position: relative;
    z-index: 1;
}

.footer-red .container {
    padding-left: 50px;
    padding-right: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col-title {
    font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 0;
    line-height: 1.2em;
}

.footer-col p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7em;
    padding-bottom: 6px;
}

.footer-col strong {
    color: #fff;
    font-weight: 700;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
    opacity: 1;
}

/* =========================================================
   GAMES SECTION
   ========================================================= */
.section-games {
    padding: 70px 0 80px;
    background-color: #fff;
}

.games-intro {
    font-size: 15px;
    line-height: 1.8em;
    color: #333;
    margin-bottom: 32px;
}

.games-cta {
    margin-top: 36px;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.game-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}

.game-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.game-card-icon {
    width: 44px;
    height: 44px;
    background: #175f84;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.game-card-icon span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.game-card-name {
    font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    line-height: 1.2;
}

.game-card-desc {
    font-size: 14px;
    line-height: 1.65em;
    color: #666;
    padding-bottom: 0;
}

/* =========================================================
   RESPONSIVE — TABLET (max-width: 980px)
   ========================================================= */
@media (max-width: 980px) {
    #top-nav {
        display: none;
    }

    #mobile-nav-toggle {
        display: block;
    }

    .container {
        width: 90%;
    }

    .section-heading {
        font-size: 36px;
    }

    .section-products .section-heading {
        font-size: 36px;
    }

    .products-cards {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .product-card {
        min-height: 320px;
    }

    .about-row {
        flex-direction: column;
        gap: 30px;
    }

    .about-text .section-heading {
        font-size: 36px;
    }

    .section-journey .section-heading {
        font-size: 36px;
    }

    .contact-card {
        flex-direction: column;
        padding: 80px 30px 40px;
        gap: 30px;
    }

    .contact-card-right {
        flex-direction: row;
    }

    .contact-card-title {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .hero-headline {
        font-size: clamp(18px, 3.5vw, 36px);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   RESPONSIVE — MOBILE (max-width: 600px)
   ========================================================= */
@media (max-width: 600px) {
    .section-heading {
        font-size: 28px;
    }

    .section-products .section-heading {
        font-size: 28px;
    }

    .about-text .section-heading {
        font-size: 28px;
    }

    .section-journey .section-heading {
        font-size: 28px;
    }

    .contact-card-title {
        font-size: 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-card {
        padding: 70px 20px 36px;
    }

    #logo-wingo img {
        max-width: 200px;
    }

    .hero-body {
        font-size: 14px;
    }

    .section-about,
    .section-journey,
    .section-products {
        padding: 50px 0 60px;
    }

    .product-card {
        min-height: 260px;
    }

    .product-card-label {
        font-size: 18px;
    }

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