/* 
  The Grand Oak Tree - Premium Hospitality Supplies
  Design System & Stylesheet
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --primary-green: #1B4332;
    --gold: #C9A84C;
    --gold-light: #dfc47d;
    --cream: #FAF7F0;
    --white: #FFFFFF;
    --dark-brown: #2D1B0E;
    --light-sage: #E8F5E9;
    --text-muted: #6b7280;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(27, 67, 50, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-brown);
    background-color: var(--cream);
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 5%;
    position: relative;
    overflow-x: hidden;
}

/* --- Loading Animation --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(201, 168, 76, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    position: relative;
}

.spinner::after {
    content: '🍂';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Navbar --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

nav.scrolled {
    background: var(--primary-green);
    padding: 15px 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

nav.scrolled .nav-links a {
    color: var(--white);
}

nav.scrolled .logo h2 {
    color: var(--gold);
}

.logo h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary-green);
    letter-spacing: 1px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-green);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-smooth);
}

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

.btn-quote {
    background: var(--gold);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.btn-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-quote:hover::before {
    left: 100%;
}

/* --- Mobile Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition-smooth);
}

nav.scrolled .hamburger span {
    background: var(--white);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(rgba(27, 67, 50, 0.85), rgba(27, 67, 50, 0.85)), url('../assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 5% 80px;
}

.hero-content {
    max-width: 900px;
}

.badge-chip {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid var(--gold);
    border-radius: 50px;
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-inline: auto;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
}

.trust-chips {
    display: flex;
    gap: 30px;
    justify-content: center;
    font-size: 14px;
    opacity: 0.8;
    flex-wrap: wrap;
}

.trust-chips span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-chips span::before {
    content: '✓';
    color: var(--gold);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    font-size: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* --- Marquee --- */
.marquee-container {
    background: var(--primary-green);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 18px;
    color: var(--gold);
    margin: 0 50px;
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Product Categories --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: var(--primary-green);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(27,67,50,0.9), transparent);
    color: var(--white);
    transition: var(--transition-smooth);
}

.category-card:hover img {
    transform: scale(1.1);
    opacity: 0.4;
}

.category-card h3 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--gold);
}

.category-card p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.4;
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.category-items span {
    font-size: 12px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- Stats --- */
.stats {
    background: var(--primary-green);
    color: var(--white);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    text-align: center;
    padding: 60px 5%;
    gap: 30px;
}

.stat-item h2 {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* --- How It Works --- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--gold) 0, var(--gold) 10px, transparent 10px, transparent 20px);
    z-index: 0;
}

.process-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(201, 168, 76, 0.3);
}

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.feature-card .icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* --- Product Spotlight --- */
.spotlight-container {
    overflow-x: auto;
    display: flex;
    gap: 30px;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.spotlight-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.spotlight-container::-webkit-scrollbar {
    height: 6px;
}

.spotlight-container::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.product-card {
    min-width: 300px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.product-img {
    height: 250px;
    background: var(--light-sage);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
}

.product-info {
    padding: 25px;
}

.product-badge {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.btn-enquire {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-enquire:hover {
    background: var(--gold);
    color: var(--white);
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 100px;
    font-family: var(--font-heading);
    color: var(--light-sage);
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author h4 {
    color: var(--primary-green);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- B2B Banner --- */
.b2b-banner {
    background: var(--gold);
    padding: 80px 5%;
    text-align: center;
    border-radius: 30px;
    margin: 0 5% 100px;
    color: var(--primary-green);
}

.b2b-banner h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.b2b-banner .btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.btn-dark-green {
    background: var(--primary-green);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-green {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
}

/* --- Instagram Grid --- */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.insta-post {
    aspect-ratio: 1;
    background: linear-gradient(45deg, var(--light-sage), var(--gold-light));
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.insta-post:hover {
    transform: scale(0.95);
    opacity: 0.8;
}

/* --- WhatsApp Floating --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Footer --- */
footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo h2 {
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--gold);
    margin-bottom: 25px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.6;
}

/* --- Products Page --- */
.search-section {
    padding: 150px 5% 50px;
    text-align: center;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px 30px;
    border-radius: 50px;
    border: 2px solid var(--light-sage);
    font-size: 18px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.search-suggestions {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    z-index: 100;
    text-align: left;
    display: none;
    overflow: hidden;
}

.suggestion-item {
    padding: 15px 30px;
    cursor: pointer;
    border-bottom: 1px solid var(--cream);
}

.suggestion-item:hover {
    background: var(--cream);
    color: var(--gold);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 10px 25px;
    border-radius: 50px;
    background: var(--white);
    border: 1px solid var(--light-sage);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.filter-pill.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Forms --- */
.contact-form-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.checkbox-group {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 10px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* --- Partnership Page --- */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.tier-card {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.tier-card.popular {
    border-color: var(--gold);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background: var(--gold);
    color: var(--white);
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
}

.tier-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.tier-price {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.tier-benefits {
    text-align: left;
    margin-bottom: 40px;
}

.tier-benefits li {
    margin-bottom: 12px;
    font-size: 14px;
}

.tier-benefits li::before {
    content: '•';
    color: var(--gold);
    font-weight: bold;
    margin-right: 10px;
}

/* --- Tables --- */
.table-container {
    overflow-x: auto;
    margin: 60px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
}

th, td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid var(--cream);
    font-size: 14px;
}

th {
    background: var(--primary-green);
    color: var(--gold);
    font-family: var(--font-heading);
}

tr:nth-child(even) {
    background: var(--light-sage);
}

/* --- FAQ Accordion --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 30px 20px;
    display: none;
    color: var(--text-muted);
}

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transition: all 1s ease-out;
}

.fade-up {
    transform: translateY(30px);
}

.slide-in {
    transform: translateX(-30px);
}

.animate-active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    .category-grid, .features-grid, .testimonials-grid, .tier-grid, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    .category-grid, .features-grid, .testimonials-grid, .tier-grid, .products-grid, .stats, .footer-grid, .form-grid, .process-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 5%;
    }

    .nav-cta {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .form-group.full {
        grid-column: span 1 !important;
    }

    .form-group label {
        margin-bottom: 5px;
    }

    .contact-form-container {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .checkbox-group {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .hero h1 {
        font-size: 32px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 5% 60px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .stats {
        gap: 40px;
        padding: 40px 5%;
    }
    
    .b2b-banner {
        margin: 0 0 60px;
        padding: 50px 20px;
        border-radius: 20px;
    }

    .b2b-banner h2 {
        font-size: 26px;
    }
    
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid::before {
        display: none;
    }

    .tier-card.popular {
        transform: scale(1);
        margin: 0;
    }

    .stat-item h2 {
        font-size: 32px;
    }

    .category-card {
        height: 350px;
    }

    .category-overlay {
        padding: 25px;
    }

    .category-card h3 {
        font-size: 24px;
    }

    .footer-grid {
        gap: 40px;
        padding-bottom: 40px;
    }
    
    nav {
        padding: 10px 5%;
    }

    .logo h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
    }
    .hero-ctas .btn-gold, .hero-ctas .btn-outline-gold {
        width: 100%;
        text-align: center;
    }
    
    .stats {
        padding: 40px 5%;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .b2b-banner .btns {
        flex-direction: column;
    }
    .btn-dark-green, .btn-outline-green {
        width: 100%;
        text-align: center;
    }
}
