/**
 * Wholegrain Treats - Stylesheet
 * Fly Bird Media - Hostinger PHP Foundation
 */

:root {
    --primary: #8b4513;
    --primary-hover: #6d340d;
    --primary-light: #fbf6f0;
    --secondary: #d97706;
    --accent: #15803d;
    --text-dark: #292524;
    --text-muted: #57534e;
    --bg-light: #fefdfb;
    --bg-card: #ffffff;
    --border-color: #e7e5e4;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Announcement Bar */
.top-announcement-bar {
    background: #451a03;
    color: #fef3c7;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Header */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-logo img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.site-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
}

.site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-1px);
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fbf6f0 0%, #fef3c7 100%);
    padding: 64px 24px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.hero-badge {
    display: inline-block;
    background: #fef08a;
    color: #854d0e;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.85rem;
    line-height: 1.2;
    color: #3b1a03;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 24px;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    object-fit: cover;
}

/* Sections */
.section-padding {
    padding: 80px 24px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-tag {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #3b1a03;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Product Cards Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f5f5f4;
}

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-badge {
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #292524;
}

.product-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

/* Highlights / Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-box {
    background: #ffffff;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Forms */
.form-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-alert {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 0.95rem;
}

.form-alert.success {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #86efac;
}

.form-alert.error {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

/* Footer */
.site-footer {
    background: #231709;
    color: #e7e5e4;
    padding: 60px 24px 24px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.footer-desc {
    color: #a8a29e;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.quality-badge span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #fef08a;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
}

.footer-heading {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a8a29e;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.contact-row {
    font-size: 0.92rem;
    color: #a8a29e;
    margin-bottom: 12px;
}

.contact-row a {
    color: #fef08a;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #a8a29e;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a {
    color: #fef08a;
    text-decoration: none;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--whatsapp);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: var(--whatsapp-dark);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: var(--shadow);
        padding: 20px;
    }
    .site-nav.nav-open {
        display: block;
    }
    .site-nav .nav-list {
        flex-direction: column;
        gap: 16px;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .header-actions .btn-whatsapp {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.1rem;
    }
}
