:root {
    --primary-color: #1b4332;
    --primary-light: #2d6a4f;
    --accent-color: #d4a373;
    --text-dark: #1a1a1a;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
    --bg-light: #ffffff;
    --bg-gray: #f4f4f4;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

header.scrolled .logo {
    color: var(--primary-color);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    font-size: 15px;
}

header.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-align: center;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-light);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--primary-color);
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 40px;
    margin-bottom: 5px;
}

.stat-item p {
    opacity: 0.8;
}

/* Categories & Products */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-title p {
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Custom Quote Card Style */
.quote-card {
    background: #e9e9e9 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px !important;
    border: none !important;
}

.quote-card h3 {
    font-size: 28px !important;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.btn-quote {
    background: transparent;
    border: 1px solid #333;
    color: #333;
    padding: 12px 25px;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-quote:hover {
    background: #333;
    color: #fff;
}

/* Responsive adjust */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}

.product-card {
    background: var(--bg-light);
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

.product-img {
    height: 250px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #f9f9f9;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.product-card .category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

/* Contact & Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 25px;
    font-size: 18px;
}

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

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #888;
}

/* Animations */
.fade-in {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Only hide if JS is confirmed to be working to avoid blank pages */
.js-active .fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.js-active .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .hero-content h1 { font-size: 48px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; color: var(--text-light); }
    header.scrolled .mobile-toggle { color: var(--text-dark); }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 36px; }
    .stats-grid { grid-template-columns: 1fr; }
}
