:root {
    --primary: #4f1544;
    --secondary: #3f572a;
    --accent: #f7924f;
    --light: #f3e8da;
    --cream: #ffd597;
    --text-dark: #231f20;
    --text-light: #f3e8da;
    --white: #ffffff;
    --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, var(--light) 0%, var(--cream) 100%);
    overflow-x: hidden;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    overflow: hidden;
}


.hero-left {
    flex: 1;
    z-index: 10;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-left h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: #231f20;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    line-height: 1.1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15em;
}

.hero-left h1 .letter {
    display: inline-block;
    line-height: 1;
    animation: letterFadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* stagger */
.hero-left h1 .letter:nth-child(1) { animation-delay: 0.1s; }
.hero-left h1 .letter:nth-child(2) { animation-delay: 0.2s; }
.hero-left h1 .letter:nth-child(3) { animation-delay: 0.3s; }
.hero-left h1 .letter:nth-child(4) { animation-delay: 0.4s; }
.hero-left h1 .letter:nth-child(5) { animation-delay: 0.5s; }

@keyframes letterFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-left h1 .logo-u {
    width: 80px;
    height: auto;
    vertical-align: bottom;
    margin: 0 -33px;
    animation: logoSpinIn 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

@keyframes logoSpinIn {
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.hero-left h1 .main-text {
    display: inline-block;
    font-size: 50px;
    font-weight: inherit;
    color: inherit;
}

/* Gradient subline */
.hero-left h1 .light-text {
    font-size: 2.2rem;
    font-weight: 400;
    background: linear-gradient(135deg, #3f572a, #f7924f);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    animation: slideInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
    padding: 2px;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero buttons */
.hero-button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.cta-button {
    background-color: #4f1544;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.15rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    box-shadow: none;
    text-decoration: none;
}

.cta-button.cta-button-secondary {
    background-color: transparent;
    color: #4f1544;
    border: 2px solid #4f1544;
}

.cta-button.cta-button-secondary:hover {
    color: #ffffff;
}

.cta-button:hover {
    background-color: #410f37;
    outline: none;
}

/* Hero Right */
.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cup {
    position: relative;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-cup img {
    width: 350px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(79, 21, 68, 0.3));
}

/* Circular blob + outline */
.blob-outline-wrapper {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spinOutline 12s infinite linear;
    z-index: 4;
}

.circular-blob {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #f7924f, #ffd597);
    border-radius: 50%;
    opacity: 1;
    animation: blobPulse 8s infinite ease-in-out;
    z-index: 5;
}

@keyframes blobPulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes spinOutline {
    0% { transform: rotate(0deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1.1); }
}

/* Decorative elements */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.decorative-img {
    position: absolute;
    max-width: 300px;
    opacity: 1;
    animation: floatDecor 8s ease-in-out infinite;
    transform: translateZ(0);
}

.leaf-one {
    top: 75%;
    left: 40%;
    transform: translateZ(0) rotate(90deg);
}

.leaf-one-two {
    top: 1%;
    left: -1%;
    transform: rotate(-135deg);
}

.leaf-two {
    top: 5%;
    left: 70%;
    transform: rotate(-15deg);
}

.leaf-three {
    top: 50%;
    left: -6%;
    transform: rotate(-15deg);
}

.leaf-four {
    top: -6%;
    right: 0%;
    transform: rotate(30deg);
}

.beans-one {
    top: 15%;
    left: 55%;
    opacity: 0.8;
    max-width: 200px;
    transform: rotate(90deg);
}

@keyframes floatDecor {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* Background blobs */
.bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: blobMove 10s infinite ease-in-out;
}

.blob1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f7924f, #ffd597);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #3f572a, #4f1544);
    top: 70%;
    left: 80%;
    animation-delay: -3s;
}

.blob3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4f1544, #f7924f);
    top: 40%;
    left: 20%;
    animation-delay: -6s;
}

@keyframes blobMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(60px, 30px) scale(1.05); }
}

/* Hero highlights */
.hero-highlights-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 100%;
    height: auto;
    padding-left: 0;
}

.hero-highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: -35px;
    margin-top: -25px;
    position: relative;
    z-index: 1;
    padding-left: 0;
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.hero-highlight-item:nth-child(1) {
    z-index: 3;
    animation-delay: 0.8s;
    transform: translateX(0px);
}
.hero-highlight-item:nth-child(2) {
    z-index: 2;
    animation-delay: 1.0s;
    transform: translateX(60px);
}
.hero-highlight-item:nth-child(3) {
    z-index: 1;
    animation-delay: 1.2s;
    transform: translateX(120px);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
    }
}

.hero-highlight-item img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.25));
    transition: transform 0.3s ease;
}

.hero-highlight-item:hover img {
    transform: scale(1.1);
}

.hero-highlight-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3f572a;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-align: left;
    white-space: nowrap;
    z-index: 4;
}

.hero-highlight-item:hover span {
    opacity: 1;
}

/* Green sticker */
.green-sticker-hero {
    position: absolute;
    top: 25%;
    right: 10%;
    transform: translate(50%, -50%) rotate(15deg);
    width: 150px;
    z-index: 10;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    animation: pulseSticker 3s infinite ease-in-out;
}

@keyframes pulseSticker {
    0%, 100% { transform: translate(50%, -50%) rotate(15deg) scale(1); }
    50% { transform: translate(50%, -50%) rotate(15deg) scale(1.05); }
}

/* Stages Section */
.stages-section {
    min-height: 100vh;
    padding: 100px 0 100px;
    background: linear-gradient(135deg, #f3e8da 0%, #ffffff 100%);
    position: relative;
}

.stages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stages-title {
    text-align: center;
    margin-bottom: 4rem;
}

.stages-title h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #4f1544;
    margin-bottom: 1rem;
}

.stages-title p {
    font-size: 1.2rem;
    color: #3f572a;
    font-weight: 500;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

.stage-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 6rem 2rem 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(79, 21, 68, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    will-change: transform;
}

.stage-card:hover {
    box-shadow: 0 10px 60px rgba(79, 21, 68, 0.2);
}

.stage-image {
    width: 300px;
    height: auto;
    margin: -120px auto 1rem;
    object-fit: contain;
    z-index: 2;
    position: relative;
    transform: perspective(1000px) translateZ(0);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stage-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #4f1544;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stage-card p {
    font-size: 1.1rem;
    color: #3f572a;
    line-height: 1.6;
    font-weight: 500;
}

/* Transition cup element */
.cup-transition {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    will-change: transform, opacity, width, filter, top, left;
}

.cup-transition img {
    width: 350px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(79, 21, 68, 0.3));
    transition: width 0.3s ease-out, filter 0.3s ease-out;
}

/* Middle card state */
.stage-card.empty .stage-image {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stage-card.empty .stage-content {
    opacity: 0.4;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stage-card.filled .stage-image {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: cupLanding 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stage-card.filled .stage-content {
    opacity: 1;
}

@keyframes cupLanding {
    0% {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }
    60% {
        transform: scale(1.05) translateY(5px);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.stage-placeholder {
    display: none;
}

/* Fact Card */
.fact-card {
    position: relative;
    width: 100%;
    padding: 3rem 5%;
    background-color: var(--cream);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 4rem 0;
}

.fact-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.fact-icon .icon-circle {
    background: var(--secondary);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: var(--transition);
}

.fact-card:hover .icon-circle {
    transform: rotate(15deg) scale(1.05);
}

.fact-icon .icon-circle img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.fact-card:hover .icon-circle img {
    transform: scale(1.1);
}

.fact-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.fact-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

/* Fact decorations */
.fact-card .decor {
    position: absolute;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
    transition: var(--transition);
}

.fact-card:hover .decor {
    transform: rotate(5deg);
}

.decor-leaf-1 {
    top: -20px;
    left: -60px;
    width: 200px;
    transform: rotate(-15deg);
}

.decor-leaf-2 {
    bottom: -30px;
    right: -40px;
    width: 150px;
    transform: rotate(15deg);
}

.decor-beans {
    top: 60%;
    left: -30px;
    width: 80px;
    transform: translateY(-50%) rotate(-25deg);
}

/* Branding Section */
.branding-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5%;
    background: linear-gradient(135deg, #ffffff, #f3f8f4);
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.branding-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.branding-logo {
    max-width: min(600px, 100%);
    height: auto;
    margin-bottom: 2rem;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.branding-right {
    flex: 1.5;
    min-width: 350px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.branding-right h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.branding-right p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.branding-right .highlighted-line {
    background: var(--accent);
    color: var(--white);
    padding: 1.5rem 2.2rem;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
    line-height: 1.4;
    border-radius: 15px;
    margin: 2.5rem 0;
    border: none;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.branding-right .highlighted-line:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.branding-right .highlighted-line span {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition);
}

.branding-right .highlighted-line:hover span {
    color: var(--primary);
    transform: scale(1.05);
}

/* Branding animation */
.branding-animation {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(800px, 100%);
    height: auto;
    animation: floatBranding 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    pointer-events: none;
    margin-bottom: 2rem;
}

@keyframes floatBranding {
    0% { transform: translateY(0px) translateX(-50%); }
    50% { transform: translateY(-10px) translateX(-50%); }
    100% { transform: translateY(0px) translateX(-50%); }
}

/* Branding background */
.branding-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    background-color: var(--accent);
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: -50px;
    background-color: var(--secondary);
    animation-delay: -2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 40%;
    background-color: var(--light);
    border: none;
    animation-delay: -4s;
}

/* CO2 Section */
.co2-section {
    color: var(--text-dark);
}

.container-center {
    max-width: 80%;
    margin: 0 auto;
    background-color: var(--white);
    padding: 4rem 4rem;
    border-radius: 5rem;
}

.co2-top {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.co2-left {
    flex: 1 1 60%;
}

.co2-left .heading-primary {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 3rem;
    text-align: left;
    position: relative;
    display: inline-block;
}

.co2-left .heading-primary::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.co2-left .paragraph-large {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.co2-left strong {
    color: var(--accent);
    font-weight: 600;
}

.co2-right {
    flex: 1 1 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co2-sticker {
    width: 380px;
    height: auto;
}

/* CO2 slider */
.co2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.co2-header h3 {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-left: 3.5rem;
}

#co2FloatingValue {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    white-space: nowrap;
}

.co2-slider-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
    position: relative;
}

.co2-slider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 80%;
}

.co2-range-slider {
    width: 100%;
    appearance: none;
    height: 8px;
    background: var(--cream);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    padding: 0;
    margin: 0 auto;
    display: block;
}

.co2-range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 0 4px rgba(247, 146, 79, 0.2);
    transition: var(--transition);
}

.co2-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(247, 146, 79, 0.2);
}

.co2-xaxis-labels {
    display: flex;
    justify-content: space-between;
    margin: 0 24px;
    text-align: center;
}

.co2-xaxis-labels p {
    flex: 1;
    transform: translateX(0%);
}

/* Brands Section */
.brands-section {
    background-color: var(--light);
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.brands-content {
    max-width: 800px;
    margin-bottom: 3rem;
}

.brands-content h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brands-content p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.brands-content p strong {
    font-weight: 700;
    color: var(--primary);
}

.brands-carousel-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,1) 85%,
        rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,1) 85%,
        rgba(0,0,0,0) 100%);
}

.brands-carousel {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scrollBrands 30s linear infinite;
    will-change: transform;
    padding: 1rem 0;
    width: fit-content;
}

.brands-carousel img {
    height: clamp(50px, 8vw, 80px);
    width: auto;
    filter: opacity(0.9);
    transition: var(--transition);
    flex-shrink: 0;
    max-width: 200px;
}

.brands-carousel img:hover {
    filter: opacity(1);
    transform: scale(1.1);
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.site-footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 4rem 5% 2rem;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(243, 232, 218, 0.2);
}

.footer-logo img {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-tagline {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 2;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: var(--transition);
    padding: 0.3rem 0;
}

.footer-links ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-social h3,
.footer-contact h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a i {
    color: white;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icons a:hover i {
    color: #fff;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.social-icons a {
    text-decoration: none !important;
    color: inherit !important;
}


.footer-contact p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    color: rgba(243, 232, 218, 0.7);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(243, 232, 218, 0.7);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--accent);
}

.privacy-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.8rem;
}

.privacy-link::before,
.privacy-link::after {
    content: "";
    height: 1px;
    width: 40px;
    background: rgba(243, 232, 218, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    animation: bounce 2s infinite;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator i {
    margin-top: 0.5rem;
    animation: bounce 2s infinite 0.2s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top {
    transform: none !important;
    backface-visibility: hidden !important;
    perspective: none !important;
    -webkit-transform: none !important;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ==========================
   Hero Sections
========================== */

/* Generic hero (for index or future) */
.hero {
    min-height: 80vh;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 0 2rem;
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
}

/* About hero */
.about-hero {
    height: 70vh;
    margin-top: 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('assets/aboutus/aboutusheader.webp');
    background-size: cover;
    background-position: center 120%;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.about-hero .hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.about-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 0.3rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle,
.products-hero-subtitle,
.contact-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Products hero */
.products-hero {
    height: 70vh;
    margin-top: 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('assets/products/productsheader.webp');
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.products-hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.products-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 0.3rem;
    animation: fadeInUp 1s ease-out;
}

/* Contact hero */
.contact-hero {
    height: 70vh;
    margin-top: 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('assets/contact/contactheader.webp');
    background-size: cover;
    background-position: center 120%;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.contact-content {
    max-width: 800px;
    padding: 0 2rem;
}

.contact-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 0.3rem;
    animation: fadeInUp 1s ease-out;
}

/* Hero animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================
   About Page
========================== */

.about-content {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.about-section {
    margin-bottom: 2rem;
    position: relative;
}

.about-section h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-section strong {
    color: var(--accent);
    font-weight: 600;
}

.about-story {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.story-text {
    flex: 1 1 40%;
}

.story-video {
    flex: 1 1 55%;
    display: flex;
    justify-content: center;
}

.story-video video {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.about-story .story-text h2,
.about-story .story-text p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.highlight-text {
    font-size: 1.2rem;
    max-width: 900px;
    font-weight: 400;
    margin: 0 auto 4rem;
    color: var(--text-dark);
    text-align: center;
}

.highlight-text.light {
    color: var(--light);
}

.mission-statement {
    background-color: var(--primary);
    color: var(--white);
    padding: 2.5rem 1rem;
    border-radius: 15px;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.mission-statement::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.mission-statement h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--cream);
    text-align: center;
}

.mission-statement p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: center;
}

/* About Features */
.about-features-content {
    background: var(--secondary);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-features-content::before,
.about-features-content::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.about-features-content::before {
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.05);
}

.about-features-content::after {
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.03);
}

.features-intro {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.features-intro h2 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.features-intro h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cream));
    border-radius: 3px;
}

.features-intro p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--light);
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 1rem auto;
    max-width: 1400px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.feature-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-content h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.feature-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cream));
    border-radius: 3px;
}

.feature-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    flex: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

/* Sizes section */
.sizes-content {
    padding: 4rem 4rem;
    background-color: var(--light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sizes-section h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.sizes-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.cup-sizes-layout {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cup-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 1.5rem 1.5rem;
    width: 380px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    z-index: 1;
}

.cup-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.cup-img-wrapper {
    position: relative;
    margin: -60px auto 20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cup-img {
    width: 80%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.cup-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 1rem 0;
}

.nutrition-table {
    width: 100%;
    font-size: 1rem;
    color: var(--text-dark);
    border-collapse: collapse;
    margin: 1rem 0;
}

.nutrition-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--light);
    text-align: left;
}

.nutrition-table td:first-child {
    font-weight: 600;
    color: var(--secondary);
}

.cup-center-img {
    position: relative;
    margin: 3rem auto;
    max-width: 700px;
}

.cup-center-img img {
    width: 100%;
    height: auto;
}

/* Features list (about page lower section) */
.features-container {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.features-list {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.features-list:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.features-list h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.features-list h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

.features-list ul {
    list-style: none;
}

.features-list li {
    margin-bottom: 1.2rem;
    padding-left: 2.5rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
}

.features-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

.features-list li strong {
    color: var(--primary);
    font-weight: 600;
}

/* Stats section */
.stats-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================
   Products Page
========================== */

.products-section {
    padding-top: 2rem;
}

.products-header {
    text-align: center;
    margin-bottom: 50px;
}

.products-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.products-header p {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 180px;
    background-color: #f3e8da;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

/* Coming Soon badge */
.coming-soon-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Product actions */
.product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
}

/* Shared button style */
.details-btn {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.details-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.details-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Expanded product details */
.product-details-expanded {
    display: none;
    grid-column: 1 / -1;
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.4s ease-out;
}

.product-details-expanded.active {
    display: block;
}

.expanded-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.expanded-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3e8da;
    border-radius: 10px;
    padding: 20px;
}

.expanded-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.expanded-details {
    display: flex;
    flex-direction: column;
}

.expanded-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.expanded-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.expanded-features {
    margin-bottom: 25px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.feature-icon {
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.expanded-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.expanded-actions .details-btn {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
}

.close-details {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.close-details:hover {
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================
   Contact Page
========================== */

.contact-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--white), var(--light));
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-form-wrapper h2,
.contact-info h2 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Contact form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 0.5rem 0.5rem 0;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.6rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20fill%3D%22%23000000%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.submit-btn:hover {
    background: #3b0f34;
}

.submit-btn i {
    font-size: 1rem;
}

/* Contact info card */
.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: var(--light);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 32px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.contact-item p {
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

/* FAQ section (if enabled) */
.faq-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem 2rem;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0;
}

.faq-question i {
    font-size: 1rem;
    color: var(--accent);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    padding-top: 0;
}

.faq-answer.open {
    opacity: 1;
    padding: 1rem 2rem 1.5rem;
    background-color: var(--light);
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Toast (contact form feedback) */
.toast {
    visibility: hidden;
    min-width: 280px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 16px 20px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #E53935;
}

.toast i {
    font-size: 18px;
}

/* 1024px and below */
@media (max-width: 1024px) {

    .hero-left h1 .main-text {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .hero-left h1 {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .beans-one {
        display: none !important;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        height: auto;
        min-height: auto;
        padding-top: 100px;
        gap: 2rem;
    }

    .hero-left {
        align-items: center;
        margin-top: 30px;
        padding-right: 0;
    }

    .hero-right {
        margin-top: 2rem;
    }

    .floating-cup img {
        width: clamp(200px, 40vw, 280px);
    }

    .blob-outline-wrapper {
        width: clamp(250px, 40vw, 350px);
        height: clamp(250px, 40vw, 350px);
    }

    .green-sticker-hero {
        width: clamp(90px, 18vw, 130px);
        bottom: 8%;
        right: 8%;
        transform: rotate(12deg);
    }

    .hero-button-group {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        margin-top: 1.5rem;
    }

    .hero-button-group .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        flex: 1 1 auto;
        max-width: 220px;
    }

    /* Bigger icons for iPads */
    .hero-highlight-item img {
        width: 200px !important;
    }

    /* Bigger text bubbles for iPads */
    .hero-highlight-item span {
        font-size: 1rem !important;
        padding: 0.7rem 1.4rem !important;
        white-space: normal !important;
    }

    /* Remove transforms (fix shifting on iPads) */
    .hero-highlight-item {
        transform: none !important;
    }

    /* Space between highlight cards */
    .hero-highlights-group {
        gap: 1.2rem;
        margin-top: 2.5rem !important;
    }

    .scroll-indicator {
        display: none;
    }

    /* Fix iPad overflow — make grid 2-column */
    .stages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        padding: 0 1rem;
        overflow: hidden;
    }

    /* Fix off-center middle card */
    .stage-card.empty {
        grid-column: span 2 !important;
        justify-content: center !important;
    }

    /* Ensure images scale correctly */
    .stage-image {
        width: 220px !important;
        margin: -60px auto 1rem !important;
    }

    /* Fact + branding shared adjustments */
    .branding-section {
        padding: 5rem 2rem;
        flex-direction: column;
        text-align: center;
    }

    .branding-right {
        text-align: center;
        margin-top: 2rem;
        min-width: 0;
    }

    .branding-logo {
        max-width: 400px;
    }

    .branding-right .highlighted-line {
        max-width: 500px;
        margin: 1.5rem auto;
    }

    .fact-content {
        flex-direction: column;
        text-align: center;
    }

    .fact-icon {
        margin-bottom: 1.5rem;
    }

    .container-center {
        max-width: 95%;
        padding: 3rem 2rem;
        border-radius: 2rem;
    }

    .co2-left .heading-primary {
        font-size: clamp(2rem, 5vw, 2.4rem);
    }

    .co2-left .paragraph-large {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
    }

    .co2-sticker {
        width: 300px;
    }

    /* GENERIC HEROES + OTHER PAGES */
    .products-hero h1,
    .contact-hero h1,
    .about-hero h1 {
        font-size: clamp(3rem, 5vw, 3.5rem);
    }

    .products-hero-subtitle,
    .contact-subtitle,
    .hero-subtitle {
        font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    }

    .expanded-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .expanded-image {
        padding: 15px;
    }

    .expanded-details {
        text-align: center;
    }

    .expanded-title {
        font-size: clamp(1.6rem, 4vw, 2rem);
    }

    .expanded-price {
        font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .cup-sizes-layout {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .cup-center-img {
        order: 3;
        margin: 2rem 0;
    }

    .cup-card {
        width: 320px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .locations-grid {
        grid-template-columns: 1fr 1fr;
    }

    .location-card {
        padding: 2rem;
    }
}


/* 768px and below */
@media (max-width: 768px) {
    .hero-left h1 {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .hero-left h1 .main-text {
        display: inline-block;
        text-align: center !important;
        width: 100%;
        font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
    }

    .hero-left h1 .light-text {
        display: block;
        text-align: center !important;
        width: 100%;
        font-size: clamp(1.4rem, 4.5vw, 1.6rem) !important;
        margin-left: auto;
        margin-right: auto;
    }

    .hero {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .floating-cup img {
        width: 200px;
    }

    .green-sticker-hero {
        width: 80px;
        bottom: 6%;
        right: 6%;
    }

    .hero-highlight-item img {
        width: 120px !important;
        transition: none;
    }

    .hero-highlight-item span {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        margin: 0 auto;
    }

    .hero-button-group {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.8rem !important;
        width: 100%;
        max-width: 360px;
        margin: 2rem auto 0 auto;
        flex-wrap: nowrap !important;
    }

    .hero-button-group .cta-button {
        width: 50% !important;
        font-size: 0.85rem !important;
        padding: 0.7rem 1rem !important;
        text-align: center;
        white-space: nowrap;
    }

    .decorative-elements,
    .branding-background-elements,
    .fact-card .decor {
        display: none;
    }

    .stages-grid {
        grid-template-columns: 1fr;
    }

    .stage-card {
        padding: 4rem 1.5rem 2rem;
    }

    .stage-image {
        width: 180px;
        margin: -80px auto 1rem;
    }

    .container-center {
        padding: 2rem 1.5rem;
        border-radius: 2rem;
    }

    .co2-top {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .co2-left .heading-primary {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        text-align: center;
    }

    .co2-left .paragraph-large {
        text-align: center;
    }

    .co2-right {
        justify-content: center;
    }

    .co2-sticker {
        width: 250px;
    }

    .co2-slider-wrapper {
        width: 100%;
    }

    .co2-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    #co2FloatingValue {
        font-size: 1.8rem;
    }

    .co2-xaxis-labels {
        display: none;
    }

    .branding-section {
        padding: 3rem 1.5rem;
        gap: 1.5rem;
    }

    .branding-right h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .branding-right p {
        font-size: 1rem;
    }

    .branding-logo {
        max-width: 300px;
    }

    .branding-right .highlighted-line {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .branding-animation {
        display: none;
    }

    .site-footer .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .social-icons {
        justify-content: center;
    }

    /* NAV + GENERIC PAGES */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .about-hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .products-hero {
        height: 60vh;
        padding: 0 1rem;
    }

    .products-hero h1 {
        font-size: 2.5rem;
    }

    .products-hero-subtitle {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 150px;
    }

    .product-title {
        font-size: 1rem;
    }

    .expanded-image img {
        max-height: 200px;
    }

    .expanded-actions {
        flex-direction: column;
        gap: 10px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-intro h2 {
        font-size: 2.2rem;
    }

    .features-intro p {
        font-size: 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .sizes-section h2 {
        font-size: 2.2rem;
    }

    .highlight-text {
        font-size: 1rem;
    }

    .cup-card {
        width: 90%;
        max-width: 350px;
        margin: 0 auto;
    }

    .cup-img-wrapper {
        width: 180px;
        height: 180px;
        margin: -50px auto 20px;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-hero {
        height: 60vh;
        background-attachment: scroll;
        padding: 0 1rem;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-subtitle {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .contact-item {
        flex-direction: column;
    }

    .contact-item i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .office-locations h2 {
        font-size: 2rem;
    }

    .faq-section {
        padding: 4rem 1rem;
    }

    .faq-section h2 {
        font-size: 2rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .about-story {
        flex-direction: column;
        text-align: center;
    }

    .about-story .story-text {
        text-align: center;
        margin: 0 auto;
    }
}


/* 480px and below */
@media (max-width: 480px) {
    .floating-cup img {
        width: 160px;
    }

.hero-button-group {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.6rem !important;
        width: 100%;
        max-width: 320px;
        margin: 2rem auto 0 auto !important;
        flex-wrap: nowrap !important;
    }

    .hero-button-group .cta-button {
        width: 50% !important;
        font-size: 0.8rem !important;
        padding: 0.6rem 0.8rem !important;
        white-space: nowrap;
        border-radius: 5px;
        text-align: center;
    }

    .stage-image {
        max-width: 150px;
    }

    .container-center {
        padding: 2rem 1rem;
        border-radius: 1.5rem;
    }

    .co2-sticker {
        width: 180px;
    }

    .co2-left .heading-primary {
        font-size: 1.5rem;
    }

    .co2-left .paragraph-large {
        font-size: 0.95rem;
    }

    .co2-header h3 {
        font-size: 0.9rem;
        text-align: center;
        margin-left: 0;
    }

    #co2FloatingValue {
        font-size: 1.4rem;
    }

    .branding-section {
        padding: 2rem 1rem;
    }

    .branding-logo {
        max-width: 200px;
    }

    .branding-right h2 {
        font-size: 1.5rem;
    }

    .branding-right p {
        font-size: 0.9rem;
    }

    .branding-right .highlighted-line {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        margin: 1rem auto;
    }

    .about-hero h1,
    .products-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
        letter-spacing: 0.1rem;
    }

    .hero-subtitle,
    .products-hero-subtitle,
    .contact-subtitle {
        font-size: 1rem;
    }

    .feature-content h3 {
        font-size: 1.3rem;
    }

    .feature-content p {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .sizes-section h2 {
        font-size: 1.8rem;
    }

    .cup-img-wrapper {
        width: 150px;
        height: 150px;
        margin: -40px auto 15px;
    }

    .cup-info h3 {
        font-size: 1.3rem;
    }

    .nutrition-table td {
        font-size: 0.9rem;
    }

    .footer-logo img {
        max-width: 120px;
    }

    .footer-tagline {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .privacy-link::before,
    .privacy-link::after {
        width: 20px;
    }

    .product-card {
        padding: 10px;
    }

    .details-btn {
        font-size: 0.9rem;
        padding: 10px;
    }

    .expanded-title {
        font-size: 1.3rem;
    }

    .expanded-price {
        font-size: 1.2rem;
    }

    .feature-text {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .office-locations h2 {
        font-size: 1.8rem;
    }

    .location-card {
        padding: 1.5rem;
    }

    .location-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}


/* STRUCTURE FIXES */
@media (max-width: 768px) {
    .about-section h2 {
        left: 0 !important;
        transform: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        display: block !important;
    }
    .about-story {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .about-story .story-text {
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .about-story .story-text p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .stages-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
        overflow: visible !important;
    }

    /* Reset ALL transforms from desktop animation logic */
    .stage-card,
    .stage-card.empty,
    .stage-card.filled {
        transform: none !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 450px !important;
    }

    /* Fix middle card (Drink Me) from offsetting itself */
    .stage-card.empty {
        grid-column: 1 !important;
    }

    /* Reset cup image sizing */
    .stage-image {
        margin: 0 auto 1.5rem auto !important;
        width: 160px !important;
        height: auto !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* Fix placeholder that tries to take space when cup flies */
    #stagePlaceholder {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .product-card,
    .product-card:hover {
        transform: none !important;
    }
}

/* Always use the logo image, never the text fallback */
.responsive-u {
    display: none !important;
}

/* Default desktop/tablet size */
.logo-u {
    width: 70px;
    height: auto;
    vertical-align: middle;
    margin: 0 -20px; /* adjusts the spacing nicely between C and P */
    display: inline-block;
}

/* iPad screens */
@media (max-width: 1024px) {
    .logo-u {
        width: 60px;
        margin: 0 -18px;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .logo-u {
        width: 48px !important;
        margin: 0 -15px !important;
    }
}

/* Small phones (iPhone SE, Android small) */
@media (max-width: 480px) {
    .logo-u {
        width: 42px !important;
        margin: 0 -12px !important;
    }
}
