/* =====================
   BASE RESET
===================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #3A1F1F;
    background: none;
}

/* =====================
   CONTINUOUS GRADIENT
===================== */
.page-gradient {
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        #FFF1E9 0%,
        #F6B39B 38%,
        #C65A40 70%,
        #8F3A2A 100%
    );
}

/* =====================
   NAVBAR (INDEX MATCH)
===================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 244, 235, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 26px;
    font-weight: 700;
    color: #8B1E1E;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: #3A1F1F;
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #8B1E1E;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.wa-icon {
    background: #25D366;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* =====================
   HERO
===================== */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 180px;
}

.hero-inner {
    max-width: 820px;
}

/* Eyebrow */
.hero-eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 18px;
    opacity: 0;
    animation: lineIn 0.6s ease forwards;
}

/* Title */
.hero h1 {
    font-size: 58px;
    margin: 0 0 22px;
    color: #8B1E1E;
    opacity: 0;
    animation: lineIn 0.6s ease forwards;
    animation-delay: 0.15s;
}

/* Subtitle */
.hero p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0;
    animation: lineIn 0.6s ease forwards;
    animation-delay: 0.3s;
}

/* Text reveal */
@keyframes lineIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   PRODUCT GRID (BLENDED)
===================== */
.product-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px 140px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

/* =====================
   PRODUCT CARD
===================== */
.product-card {
    background: rgba(255, 249, 244, 0.96);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;

    transform: translateY(40px);
    opacity: 0;
    animation: cardIn 0.8s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.15s; }
.product-card:nth-child(2) { animation-delay: 0.3s; }

@keyframes cardIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.18);
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px 22px 4px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.product-card span {
    display: block;
    padding: 0 22px 24px;
    font-size: 14px;
    color: #8B1E1E;
    font-weight: 600;
}

/* =====================
   OVERLAY
===================== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 998;
}

.overlay.show {
    display: block;
}

/* =====================
   SLIDE-IN PRODUCT PANEL
===================== */
.product-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    max-width: 90vw;
    height: 100%;
    background: #FFF9F4;
    padding: 50px 40px;
    transform: translateX(100%);
    transition: transform 0.45s ease;
    z-index: 999;
    overflow-y: auto;
}

.product-panel.open {
    transform: translateX(0);
}

.product-panel img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 24px;
}

.product-panel h3 {
    font-size: 26px;
    color: #8B1E1E;
    margin-bottom: 10px;
}

/* =====================
   FORM
===================== */
.product-panel label {
    display: block;
    margin-top: 22px;
    font-weight: 600;
}

.product-panel select,
.product-panel input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.price {
    margin-top: 22px;
    font-size: 22px;
    font-weight: 700;
}

.product-panel button {
    background: #25D366;
    border: none;
    padding: 16px;
    width: 100%;
    margin-top: 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

/* Close */
.close {
    font-size: 30px;
    cursor: pointer;
    float: right;
}
/* =========================
   MOBILE OPTIMISATION
========================= */
@media (max-width: 768px) {

    /* -------- GLOBAL -------- */
    body {
        font-size: 15px;
        overflow-x: hidden;
    }

    /* -------- NAVBAR -------- */
    .navbar,
    .header-inner {
        padding: 16px 18px;
    }

    .navbar nav,
    .nav-links {
        display: none; /* hide links on mobile */
    }

    .logo,
    .brand {
        font-size: 20px;
    }

    .wa-btn,
    .wa-icon {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* -------- HERO -------- */
    .hero {
        min-height: 60vh;
        padding: 80px 16px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* -------- FEATURE SECTIONS -------- */
    .feature {
        grid-template-columns: 1fr;
        padding: 40px 18px;
        gap: 30px;
    }

    .feature-text h2 {
        font-size: 24px;
    }

    .feature-text p {
        font-size: 15px;
    }

    /* -------- IMAGES (CRISP FIX) -------- */
    img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
        image-rendering: auto;
    }

    /* -------- CTA TILES -------- */
    .cta-tiles {
        flex-direction: column;
        gap: 24px;
        padding: 50px 16px;
    }

    .cta-tile {
        width: 100%;
        padding: 32px;
    }

    /* -------- PRODUCT GRID -------- */
    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 80px;
        gap: 30px;
    }

    .product-card img {
        height: 220px;
    }

    /* -------- SLIDE-IN PANEL → MOBILE SHEET -------- */
    .product-panel {
        width: 100%;
        max-width: 100%;
        height: 92vh;
        bottom: 0;
        top: auto;
        border-radius: 18px 18px 0 0;
        padding: 24px 20px;
        transform: translateY(100%);
    }

    .product-panel.open {
        transform: translateY(0);
    }

    .product-panel img {
        height: 220px;
    }

    .close {
        font-size: 26px;
    }

    .product-panel button {
        font-size: 15px;
        padding: 14px;
    }

    /* -------- FOOTER -------- */
    .footer {
        padding: 30px 16px;
        font-size: 13px;
    }
}
/* =========================
   MOBILE + iOS SAFARI FIXES
========================= */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Touch optimization */
button, a {
    touch-action: manipulation;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

    /* NAVBAR */
    .header-inner {
        padding: 14px 16px;
    }

    .nav-links {
        display: none; /* clean mobile header */
    }

    .brand {
        font-size: 20px;
    }

    .wa-icon {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* HERO */
    .hero {
        min-height: 60svh;
        padding: 80px 16px 100px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 15px;
    }

    /* PRODUCT GRID */
    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 80px;
        gap: 28px;
    }

    .product-card img {
        height: 220px;
    }

    /* SLIDE-IN PANEL → FULLSCREEN SHEET */
    .product-panel {
        width: 100%;
        max-width: 100%;
        height: 100svh;
        top: auto;
        bottom: 0;
        border-radius: 18px 18px 0 0;
        padding: 24px 20px;
        transform: translateY(100%);
    }

    .product-panel.open {
        transform: translateY(0);
    }

    .product-panel img {
        height: 220px;
    }

    .product-panel button {
        padding: 14px;
        font-size: 15px;
    }

    .close {
        font-size: 26px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {

    body.modal-open {
        position: fixed;
        width: 100%;
    }

    img {
        backface-visibility: hidden;
        image-rendering: auto;
    }
}
/* =========================
   FLOATING WHATSAPP BUTTON
========================= */
.floating-wa {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;

    background: #25D366;
    color: white;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    text-decoration: none;

    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    z-index: 9999;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Tap feedback */
.floating-wa:active {
    transform: scale(0.92);
}

/* Hide on desktop */
@media (min-width: 769px) {
    .floating-wa {
        display: none;
    }
}
/* =========================
   MOBILE MENU
========================= */
.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fffaf3;
    border-top: 1px solid #eee;
}

.mobile-menu a {
    padding: 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Mobile only */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .mobile-menu.show {
        display: flex;
    }
}
/* =========================
   MOBILE HAMBURGER MENU
========================= */
.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
}

/* Mobile menu dropdown */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fffaf3;
    border-top: 1px solid #eee;
}

.mobile-menu a {
    padding: 16px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Mobile-only behavior */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .mobile-menu.show {
        display: flex;
    }
}
.floating-wa::after {
    content: "Chat with us";
    position: absolute;
    right: 64px;
    background: #111;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
}

.floating-wa:hover::after {
    opacity: 1;
}
body {
    animation: pageFade 0.4s ease;
}

@keyframes pageFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
