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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(to top right, #FDA120, #31C061);
    /* min-height: 100vh; */
}

/* Hide overflow-y on large screens - content fits in viewport */
@media (min-width: 769px) {
    body {  
        overflow-y: hidden;
        height: 100vh;
    }
    
    html {
        overflow-y: hidden;
        height: 100vh;
    }
}

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

a {
    text-decoration: none;
    color: inherit;
}

button, input, textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ============================================
   Color Palette
   ============================================ */
:root {
    --primary-green: #05C149;
    --orange: #FDA120;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #979797;
    --shadow: 0px 4px 48px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Typography
   ============================================ */
@font-face {
    font-family: 'Funnel Display';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1554px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 67px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-img-white {
    display: none;
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a.active {
    color: var(--orange);
    text-decoration: underline;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--orange);
    outline: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero,
.terms-hero {
    background: linear-gradient(to top right, #FDA120, #31C061);
    padding: 0;
    margin-top: 70px;
    position: relative;
    height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.hero {
    overflow: hidden;
}

.hero::after,
.terms-hero::after {
    content: '';
    position: absolute;
    background-image: url('../images/bag.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    top: 36%;
    left: 20%;
    transform: translateY(-50%);
    width: 27.260rem;
    height: 34.592rem;
    max-width: 100%;
    max-height: 100%;
    background-position: center;
}

.terms-hero::after {
    top: 3.33%;
    right: 15%;
    width: 50%;
    height: 50%;
    background-position: top right;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 50px 15px 0px 15px;
    height: 100%;
    overflow: hidden;
    justify-items: center;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    z-index: 2;
}

.hero-content h1,
.hero-content .subtitle {
    color: var(--white);
    font-family: 'Funnel Display', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 3.2rem;
    text-align: center;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-content .subtitle {
    margin-bottom: 4rem;
}

.hero-content .cta-text {
    color: var(--white);
    font-family: 'Gilroy', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-button:hover,
.store-button:focus {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    opacity: 0.9;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.store-button {
    width: 14.986rem;
    height: 4.449rem;
}

.store-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.hero-banner,
.hero-banner-mobile {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    z-index: 3;
}

.hero-banner {
    height: 100%;
    max-height: 100%;
    object-position: center;
    display: block;
}

.hero-banner-mobile {
    display: none;
    height: auto;
    position: relative;
}

/* ============================================
   Terms & Conditions Page
   ============================================ */
.terms-hero {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide overflow-y on large screens for terms page */
@media (min-width: 769px) {
    .terms-hero {
        overflow-y: hidden;
    }
    
    .terms-content {
        overflow-y: hidden;
    }
}

.terms-content {
    position: relative;
    z-index: 2;
    max-width: 1166px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.terms-title {
    color: var(--white);
    font-family: 'Funnel Display', sans-serif;
    font-weight: 700;
    font-size: 4.5rem;
    line-height: 4.1rem;
    text-align: left;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1111px;
    height: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.terms-update,
.terms-text {
    color: var(--white);
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.7rem;
    width: 100%;
    max-width: 1166px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.terms-update {
    margin-bottom: 30px;
    height: auto;
}

.terms-update-date,
.terms-update-request {
    display: inline;
}

.terms-text p {
    color: var(--white);
    margin: 0 0 20px 0;
}

.terms-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large Desktop (1400px and above) - Full layout */
@media (min-width: 2560px) {
    .container {
        max-width: 1554px;
        padding: 0 67px;
    }
    
    .hero .container {
        padding: 50px 67px 0px 67px;
    }
    
    .hero-banner {
        margin-top: 0;
    }
    
    .hero::after {
        opacity: 0.9;
    }
}

/* Desktop (1200px to 1399px) - Adjust spacing */
@media (max-width: 1399px) and (min-width: 1201px) {
    .container {
        max-width: 1200px;
        padding: 0 50px;
    }
    
    .nav {
        padding: 0 50px;
    }
    
    .hero .container {
        gap: 3rem;
        padding: 40px 30px 0px 30px;
    }
    
    .hero-banner {
        margin-top: 11rem;
    }
    
    .hero::after {
        top: 34%;
        left: 19%;
        transform: translateY(-50%);
    }
}

/* Medium Desktop (1100px to 1200px) - Reduce gaps */
@media (max-width: 1200px) and (min-width: 769px) {
    .container {
        max-width: 1100px;
        padding: 0 35px;
    }
    
    .nav {
        padding: 0 35px;
    }
    
    .hero .container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 40px 25px 0px 25px;
    }

    .hero-banner {
        margin-top: 10.5rem;
    }
    
    .hero-content .cta-text {
        font-size: 2rem;
        line-height: 1.8rem;
    }
    
    .hero::after {
        top: 35%;
        left: 19%;
        transform: translateY(-50%);
    }
    
    .terms-content {
        padding: 35px 30px;
        max-width: 1000px;
    }
}

/* Medium Desktop adjustments for terms page */
@media (max-width: 1399px) and (min-width: 1101px) {
    .terms-content {
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .nav {
        padding: 0 20px;
    }
    
    .header {
        height: 70px;
    }
    
    .hero,
    .terms-hero {
            margin-top: 70px;
        height: calc(100vh - 70px);
        padding: 0;
    }
    
    .hero {
        overflow: hidden;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        overflow: hidden;
    }
    
    .hero::after {
        background-position: center left;
        width: 70%;
        max-width: 100%;
        height: 100%;
        max-height: 37.863rem;
        top: 22%;
        left: 15%;
        right: auto;
        transform: translateY(-50%);
    }
    
    .hero-content {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        margin-top: 2.5rem;
    }
    
    .hero-image {
        order: 2;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .hero-content h1,
    .hero-content .subtitle {
        font-size: 2.2rem;
        line-height: 2rem;
    }

    .hero-content h1 {
        margin-bottom: 2rem;
    }

    .hero-content .subtitle {
        margin-bottom: 3rem;
    }

    .hero-content .cta-text {
        font-size: 1.4rem;
        line-height: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .hero-banner {
        display: none;
    }
    
    .hero-banner-mobile {
        display: block;
        height: 100%;
        max-height: 100%;
        margin-top: 3rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 40%;
        height: 100%;
        background: #000000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 999;
        pointer-events: none;
    }
    
    body.menu-open::before {
        opacity: 0.37;
        visibility: visible;
        pointer-events: all;
    }
    
    body.menu-open .header {
        z-index: 999;
        background: transparent;
        box-shadow: none;
        display: flex !important;
        visibility: visible !important;
    }
    
    body.menu-open .header .nav {
        visibility: visible !important;
    }
    
    body.menu-open .header .menu-toggle {
        display: none;
    }
    
    body.menu-open .header .logo {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    body.menu-open .header .logo-img {
        display: none !important;
    }
    
    body.menu-open .header .logo-img-white {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 60%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-end;
        padding: 0;
        box-shadow: var(--shadow);
        transform: translateX(100%);
        transition: transform 0.3s;
        gap: 0;
        z-index: 1000;
        overflow-y: auto;
        display: flex;
    }
    
    body.menu-open .nav-links {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links .menu-close {
        align-self: flex-end;
        margin: 1rem 1.5rem 1rem 0;
        width: 30px;
        height: 30px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links .menu-close span {
        position: absolute;
        width: 25px;
        height: 3px;
        background: var(--text-dark);
        border-radius: 2px;
        transition: all 0.3s;
    }
    
    .nav-links .menu-close span:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .nav-links .menu-close span:nth-child(2) {
        transform: rotate(-45deg);
    }
    
    .nav-links > a {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        font-weight: 700;
        text-align: right;
        width: 100%;
    }
    
    .store-buttons {
        gap: 0.75rem;
    }
    
    .store-button {
        width: 9.289rem;
        height: 2.758rem;
        flex: 0 0 auto;
    }
    
    .terms-hero {
        overflow-y: auto;
        overflow-x: hidden;
        align-items: flex-start;
    }
    
    .terms-hero::after {
        top: 3.33%;
        right: -15%;
    }
    
    .terms-content {
        padding: 60px 20px;
        justify-content: flex-start;
    }
    
    .terms-title {
        font-size: 2.5rem;
        line-height: 2.3rem;
        width: 100%;
        height: auto;
        margin-top: 0;
        margin-bottom: 25px;
        padding-top: 0;
    }
    
    .terms-update {
        font-size: 1rem;
        line-height: 1.2rem;
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }
    
    .terms-update-date {
        font-weight: 500;
        font-style: italic;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .terms-update-request {
        font-weight: 400;
        font-style: italic;
        display: block;
    }
    
    .terms-text {
        font-size: 1.2rem;
        line-height: 1.4rem;
        width: 100%;
        text-align: left;
    }
    
    .terms-text p {
        margin-bottom: 20px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-img-white {
        height: 40px;
    }
}

*:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline-offset: 4px;
}
