/* --- HERO SECTION --- */
.hero {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
    align-items: stretch;
    min-height: 85vh;
    background: #FFEDD4;
    position: relative;
    overflow: hidden;
}

.tagline-available {
    color: #00B14F;
    /* Official GrabFood Green */
    font-weight: 900;
    /* Extra Bold */
    font-size: 20px;
    /* Larger text */
    text-shadow: 0 2px 10px rgba(0, 177, 79, 0.2);
    /* Subtle glow */
}

.hero::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 300px;
    height: 300px;
    background: rgba(239, 125, 50, 0.05);
    border-radius: 50% 0 0 0;
    z-index: 0;
}

/* Floating Background Shapes (Interactive) */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.7;
    transition: transform 0.1s linear;
    /* Smooth mouse movement */
}

.shape-1 {
    top: -100px;
    left: -50px;
    width: 500px;
    height: 500px;
    background: #FFE4D1;
}

.shape-2 {
    bottom: -50px;
    right: 20%;
    width: 350px;
    height: 350px;
    background: #FFF0E0;
}

.hero-text {
    flex: 1;
    min-width: 0;
    z-index: 2;
    padding: 0 40px 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h1 {
    font-size: 68px;
    line-height: 1.15;
    margin: 0 0 25px 0;
    color: #431407;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-text>p {
    font-size: 18px;
    color: #666;
    margin: 0 0 30px 0;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* Float Animation for Hero Image */
.float-img {
    animation: float-vertical 4s ease-in-out infinite;
}

@keyframes float-vertical {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-image {
    flex: 0 0 50%;
    min-width: 0;
    z-index: 2;
    position: relative;
    padding: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- TREATS SECTION (Restored Card Design) --- */
.treats-section {
    padding: 80px 20px;
    background-color: #FFFDF9;
    text-align: center;
    position: relative;
}

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #EF7D32;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 42px;
    color: #431407;
    margin-bottom: 40px;
}

.view-all {
    position: absolute;
    top: 80px;
    right: 5%;
    color: #EF7D32;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.treats-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- THE CARD DESIGN YOU WANTED BACK --- */
.treat-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    /* Original Shadow */
    box-shadow: 0 5px 15px rgba(67, 20, 7, 0.05);
    /* Original Border */
    border: 2px solid #FFF8F0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.treat-card:hover {
    transform: translateY(-8px);
    /* The physical lift effect */
    border-color: #EF7D32;
    box-shadow: 0 15px 30px rgba(67, 20, 7, 0.1);
}

.treat-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    /* Original border radius */
    margin-bottom: 20px;
}

.treat-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #431407;
}

.treat-card p {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
    /* Ensures buttons align at bottom */
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    border: 1px solid #EF7D32;
    color: #EF7D32;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
}

.btn-small:hover {
    background: #EF7D32;
    color: white;
}

/* --- DRINKS & OTHER SECTIONS --- */
.drinks-choco {
    padding: 100px 5%;
    background-color: #FFF8F0;
}

.drinks-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.drinks-image,
.choco-image {
    flex: 0 0 30%;
    border-radius: 30px;
    overflow: hidden;
    border: 8px solid #431407;
    box-shadow: 0 10px 25px rgba(67, 20, 7, 0.15);
}

.drinks-image img,
.choco-image img {
    width: 100%;
    display: block;
    height: auto;
}

.drinks-text {
    flex: 1;
    text-align: center;
}

.drinks-text h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #431407;
}

/* Buttons & Text Effects */
.btn-orange {
    background: #EF7D32;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    border: 2px solid #431407;
    color: #431407;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-dark {
    background: #431407;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
}

.btn-white {
    background: white;
    color: #EF7D32;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}

/* Nav Cards */
.nav-cards-section {
    padding: 80px 5%;
    background-color: #FFFDF9;
}

.nav-cards-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-card {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

.nav-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nav-card:hover img {
    transform: scale(1.05);
}

.nav-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: background 0.3s ease;
}

.nav-card:hover .nav-card-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.nav-card h3 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FAMILY BANNER SECTION (CTA Banner Style)
   ============================================ */
.family-banner {
    /* Vibrant moving gradient - like before but longer duration */
    background: linear-gradient(90deg,
            #EF7D32 0%,
            #FFC107 25%,
            #D8651E 50%,
            #FFC107 75%,
            #EF7D32 100%);
    background-size: 300% 100%;
    animation: familyGradient 10s ease-in-out infinite;
    color: white;
    padding: 80px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

@keyframes familyGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Halftone texture overlay */
.family-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3Ccircle cx='37' cy='12' r='1'/%3E%3Ccircle cx='12' cy='37' r='1'/%3E%3Ccircle cx='37' cy='37' r='1.5'/%3E%3Ccircle cx='25' cy='25' r='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.family-banner-content {
    flex: 1;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.family-banner-content h2 {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    white-space: nowrap;
}

.family-highlight {
    color: #FFF;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.15),
        -1px -1px 0 rgba(255, 255, 255, 0.1);
}

.family-banner-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
}

.family-banner .family-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* White filled button */
.family-banner .btn-white {
    background: white;
    color: #EF7D32;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.family-banner .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Outline button for Find a Branch */
.btn-outline-white {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: #EF7D32;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Family Banner Centered (Text Only) */
.family-banner-centered {
    justify-content: center;
    text-align: center;
}

.family-banner-centered .family-banner-content {
    flex: 0 0 auto;
    max-width: 700px;
}

.family-banner-centered .family-buttons {
    justify-content: center;
}

/* Family Banner Responsive */
@media (max-width: 968px) {
    .family-banner {
        flex-direction: column;
        text-align: center;
        padding: 60px 5%;
    }

    .family-banner-content h2 {
        font-size: 32px;
        white-space: normal;
    }

    .family-banner .family-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
}

/* Interactive Text */
.pop-out-text {
    font-size: 70px;
    font-weight: 900;
    text-transform: uppercase;
    /* line-height: 1em;
    margin: 0;
    display: inline-block;
    cursor: default;
    background: linear-gradient(to right, #EF7D32 0%, #FFC107 25%, #EF7D32 50%, #FFC107 75%, #EF7D32 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 4s linear infinite; */
}

.pop-out-text-sm {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    color: #EF7D32;
}

.pop-out-text,
.pop-out-text-sm {
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to right, #EF7D32 0%, #FFC107 50%, #EF7D32 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.double-stroke {
    color: white;
    font-weight: 900;
}

/* ============================================
   RESPONSIVE STYLES - COMPREHENSIVE
   ============================================ */

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {

    .hero,
    .treats-section,
    .drinks-choco,
    .story-section {
        padding: 60px 5%;
    }

    .hero-text h1 {
        font-size: 54px;
    }

    .pop-out-text {
        font-size: 56px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .story-content {
        gap: 40px;
    }

    .drinks-text h2 {
        font-size: 38px;
    }

    .wave-divider svg {
        height: 60px;
    }
}

/* Tablets */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 0;
    }

    .hero-text {
        padding: 30px 5%;
        text-align: center;
        order: 2;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .pop-out-text {
        font-size: 48px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
        max-height: 380px;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

    .hero-image img {
        width: 100%;
        height: 380px;
        object-fit: cover;
        object-position: center;
        margin: 0;
        border-radius: 0;
    }

    .tagline {
        text-align: center;
    }

    /* Treats Section */
    .treats-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .view-all {
        position: static;
        display: block;
        margin-top: 10px;
    }

    /* Drinks Section */
    .drinks-content {
        flex-direction: column;
        gap: 30px;
    }

    .drinks-image,
    .choco-image {
        flex: 0 0 auto;
        width: 240px;
        margin: 0 auto;
    }

    .drinks-text h2 {
        font-size: 32px;
    }

    /* Story Section */
    .story-content {
        flex-direction: column !important;
        text-align: center;
        align-items: center;
    }

    .story-image {
        order: 1;
        max-width: 280px !important;
        margin: 0 auto 30px auto;
        position: relative;
    }

    .story-text {
        order: 2;
        text-align: center;
        width: 100%;
    }

    .story-text h2 {
        font-size: 32px;
    }

    .story-text .btn {
        display: inline-flex;
    }

    /* Nav Cards */
    .nav-cards-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-card {
        height: 280px;
    }

    .nav-card h3 {
        font-size: 26px;
    }

    .wave-divider svg {
        height: 50px;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .hero {
        padding: 0;
    }

    .hero-text {
        padding: 25px 5%;
    }

    .hero-text h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .pop-out-text {
        font-size: 36px;
    }

    .hero-text>p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 0 5%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        max-height: 320px;
        margin: 0;
        padding: 0;
    }

    .hero-image img {
        height: 320px;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .tagline {
        font-size: 12px;
        padding: 0 5%;
    }

    /* Treats Section */
    .treats-section {
        padding: 50px 4%;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .treats-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .treat-card {
        padding: 20px 15px;
    }

    .treat-card img {
        height: 160px;
    }

    /* Drinks Section */
    .drinks-choco {
        padding: 50px 4%;
    }

    .drinks-text h2 {
        font-size: 26px;
    }

    .pop-out-text-sm {
        font-size: 32px;
    }

    .drinks-image,
    .choco-image {
        width: 160px;
        border-width: 5px;
    }

    /* Story Section */
    .story-section {
        padding: 50px 4% !important;
    }

    .story-text h2 {
        font-size: 28px !important;
    }

    .story-text p {
        font-size: 15px !important;
    }

    .story-image {
        max-width: 280px !important;
        border-width: 5px !important;
    }

    .story-badge {
        width: 70px;
        height: 70px;
        border-width: 4px;
    }

    .story-badge-year {
        font-size: 20px;
    }

    /* Nav Cards */
    .nav-cards-section {
        padding: 50px 4%;
    }

    .nav-card {
        height: 220px;
    }

    .nav-card h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    /* Wave Dividers */
    .wave-divider svg {
        height: 40px;
    }
}