@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/* ==========================================================================
   Variables & Fonts
   ========================================================================== */
@font-face {
    font-family: "Beachday";
    src: url("fonts/beachday.ttf") format("truetype");
}

:root {
    /* Brand Colors */
    --color-primary: #002c93;
    --color-text: #000000;
    --color-white: #ffffff;
    --color-bg-gray: #f2f3ee;
    --color-border: #d1d2d0;

    /* Typography */
    --font-main: "Open Sans", sans-serif;
    --font-display: "Beachday", sans-serif;

    /* Layout */
    --max-width-container: 1280px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--color-text);
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

/* ==========================================================================
   Container & Global Layout Utilities
   ========================================================================== */
.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    width: 100%;
}

.sect {
    padding: 40px 24px;
    width: 100%;
}

/* ==========================================================================
   Typography & Global Utilities
   ========================================================================== */
h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 110%;
}

h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 120%;
}

p {
    font-size: 16px;
    line-height: 140%;
}

.bold {
    font-weight: 600;
}

.extra-bold {
    font-weight: 700;
}

.blue {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

.text-diagonal {
    display: inline-flex;
    height: 44px;
    transform: rotate(-3deg);
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    width: fit-content;
    border-radius: 16px 24px 24px 2px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
}

.btn {
    display: flex;
    height: 48px;
    padding: 14px 32px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    line-height: 100%;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Header
   ========================================================================== */
header.logo {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg-gray);
    width: 100%;
}

header.logo img {
    width: 234px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background-color: var(--color-bg-gray);
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-image img,
.hero img {
    width: 100%;
    margin-top: 20px;
}

/* ==========================================================================
   Marquee Slider / Carrusel Infinito
   ========================================================================== */
.slide-text {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--color-primary);
    padding: 24px;
    display: flex;
    align-items: center;
    user-select: none;
}

.slide-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    animation: slideScroll 25s linear infinite;
    will-change: transform;
}

.slide-text:hover .slide-track {
    animation-play-state: paused;
}

.slide-item {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0.5px;
}

.slide-star {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
}

@keyframes slideScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Rewards Section
   ========================================================================== */
.rewards {
    background-color: var(--color-white);
}

.rewards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gifts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.gift > p {
    color: var(--color-primary);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 100%;
    position: relative;
    bottom: 60px;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works {
    background-color: var(--color-bg-gray);
}

.how-it-works-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zigzag-line {
    display: none;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 20px;
}

.step {
    display: flex;
    gap: 16px;
}

.step .circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    line-height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step .text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step .title {
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
}

/* ==========================================================================
   Shop Section
   ========================================================================== */
.shop {
    border-top: 1px solid var(--color-border);
    background-color: var(--color-white);
}

.shop-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-cards {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 24px;
}

.shop-cards > article {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    border-radius: 24px;
    border: 1px solid var(--color-border);
}

.shop-cards .card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
}

.shop-cards p {
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
}

/* ==========================================================================
   Get Ready (CTA) Section
   ========================================================================== */
.get-ready {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.get-ready-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.get-ready-container > article {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.get-ready-image img,
.get-ready img {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.get-ready h2,
.get-ready p {
    color: var(--color-white);
}

.get-ready .btn {
    background-color: var(--color-white);
    color: var(--color-primary);
    width: 100%;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
footer {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
}

.terms {
    border-bottom: 1px solid var(--color-border);
}

.terms .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terms > h3,
.terms h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 120%;
}

.terms > p,
.terms p {
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-container p {
    color: var(--color-text);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 19.6px */
}

.footer-container .copyright {
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   Tablet & Desktop Responsive Styles (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
    .sect {
        padding: 60px 40px;
    }
    .shop-cards .card-title {
        font-size: 24px;
        font-weight: 700;
        line-height: 120%;
    }

    h2 {
        font-size: 48px;
    }

    p {
        font-size: 24px;
        font-weight: 500;
    }

    .btn {
        font-size: 20px;
        width: fit-content;
        margin: 0 auto;
    }

    .text-diagonal {
        height: 52px;
        transform: rotate(-5deg);
        padding: 16px 20px;
        font-size: 24px !important;
    }

    /* Header */
    header.logo {
        padding: 20px 40px;
    }

    header.logo img {
        width: 475px;
    }

    /* Rewards */
    .gifts {
        flex-direction: row;
        gap: 24px;
    }

    .gift p {
        bottom: 25px;
    }

    .how-it-works-btn {
        margin: 0 auto;
    }

    /* How It Works */
    .how-it-works .text-diagonal {
        margin: 0 auto;
    }

    .how-it-works h2 {
        font-size: 64px;
        line-height: 100%;
        text-align: center;
    }

    .steps {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 80px;
        row-gap: 48px;
        max-width: 980px;
        margin: 48px auto 0;
        width: 100%;
        align-items: center;
    }

    .zigzag-line {
        display: block;
        position: absolute;
        left: 50%;
        top: 24px;
        bottom: 24px;
        transform: translateX(-50%);
        width: 78px;
        height: calc(100% - 48px);
        object-fit: fill;
        pointer-events: none;
        z-index: 1;
    }

    .step {
        z-index: 2;
        max-width: 420px;
        align-items: flex-start;
    }

    .step .circle {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .step .title {
        font-size: 24px;
    }

    .step p {
        font-size: 16px;
        line-height: 140%;
    }

    .step.step-1 {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }

    .step.step-2 {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        flex-direction: row-reverse;
        text-align: right;
    }

    .step.step-3 {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
    }

    .step.step-4 {
        grid-column: 1;
        grid-row: 4;
        justify-self: end;
        flex-direction: row-reverse;
        text-align: right;
    }

    /* Terms & Footer */
    .terms h3 {
        font-size: 32px;
    }

    .terms p {
        font-size: 20px;
    }

    .footer-container {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .footer-container p {
        color: var(--color-text);
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%; /* 22.4px */
    }

    .footer-container .copyright {
        margin-left: auto;
        font-size: 16px;
        font-weight: 500;
    }
}

/* ==========================================================================
   Desktop Responsive Styles (min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    .sect {
        padding: 100px 40px;
    }

    /* Hero */
    .hero-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
    }

    .hero h1 {
        font-size: 64px;
        line-height: 100%;
    }

    .hero p {
        font-size: 32px;
        line-height: 120%;
    }

    .hero-text {
        flex: 1;
    }

    .hero-image {
        flex: 1;
    }

    .hero-image img,
    .hero img {
        margin-top: 0;
    }

    /* Shop Cards (60/40 & 40/60) */
    .shop-cards {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }

    .shop-cards > article {
        padding: 40px;
        background-repeat: no-repeat;
        background-position: right 36px;
    }

    .shop-cards > article:nth-child(1) {
        grid-column: span 3;
        background-image: url("assets/school_line.svg");
    }

    .shop-cards > article:nth-child(2) {
        grid-column: span 2;
        background-image: url("assets/local_line.svg");
    }

    .shop-cards > article:nth-child(3) {
        grid-column: span 2;
        background-image: url("assets/online_line.svg");
    }

    .shop-cards > article:nth-child(4) {
        grid-column: span 3;
        background-image: url("assets/international_line.svg");
    }

    /* Get Ready (CTA) */
    .get-ready-container {
        display: grid;
        grid-template-columns: 3fr 2fr;
        align-items: center;
        gap: 60px;
    }

    .get-ready-image img,
    .get-ready img {
        max-width: 100%;
        margin-left: auto;
    }

    .get-ready h2 {
        font-size: 48px;
        line-height: 120%;
    }

    .get-ready p {
        font-size: 24px;
        line-height: 140%;
    }

    .get-ready .btn {
        width: fit-content;
        margin: 0;
    }
}
a {
    text-decoration: none;
}

.left {
    margin-left: 0;
}

.terms-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.terms-link:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Modal Styles (Terms & Conditions)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--color-white);
    border-radius: 20px;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background-color: var(--color-bg-gray);
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
    line-height: 120%;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--color-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f2ee;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c5c7c2;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.modal-body .modal-subtitle {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #666666;
    margin-bottom: 16px;
}

.modal-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 24px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-border);
}

.modal-body h3:first-of-type {
    margin-top: 8px;
}

.modal-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 12px;
    font-weight: 400;
}

.modal-body ul {
    margin: 8px 0 16px 20px;
    padding: 0;
}

.modal-body li {
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 8px;
}

.modal-body em {
    color: #666666;
    font-style: italic;
    font-size: 13px;
}

.modal-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.terms-table th {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid var(--color-primary);
    white-space: nowrap;
}

.terms-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    color: #333333;
}

.terms-table tr:nth-child(even) {
    background-color: var(--color-bg-gray);
}

.terms-table tr:last-child td {
    border-bottom: none;
}

.modal-footer {
    padding: 14px 24px;
    background-color: var(--color-bg-gray);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .modal-btn-close {
    width: auto;
    height: 40px;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 20px;
    margin: 0;
}

@media (min-width: 768px) {
    .modal-container {
        border-radius: 24px;
    }

    .modal-header {
        padding: 20px 28px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .modal-body {
        padding: 28px;
        font-size: 15px;
    }

    .modal-body p,
    .modal-body li {
        font-size: 15px;
    }

    .modal-body h3 {
        font-size: 19px;
    }

    .terms-table {
        font-size: 14px;
    }

    .terms-table th,
    .terms-table td {
        padding: 12px 16px;
    }

    .modal-footer {
        padding: 16px 28px;
    }

    .modal-footer .modal-btn-close {
        height: 44px;
        padding: 12px 30px;
        font-size: 16px;
    }
}
.desktop {
    display: none;
}
@media (min-width: 768px) {
    .mobile {
        display: none;
    }
    .desktop {
        display: inline;
    }
}
