/* --- Basic Setup --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    color: #0056b3;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Raleway:wght@400;600&display=swap');

/* --- Custom Fonts --- */
/* For the main website title */
.main-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.8rem; /* Slightly larger */
}
/* For page section titles */
h2, h3, h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600; /* Semi-bold */
}


/* --- Header & Footer --- */
header {
    color: #ecf0f1;
    padding: 1rem 0;
    text-align: center;
}
header h1 {
    margin: 0;
    font-size: 2.5rem; /* Base size, will be overridden by .main-title */
}
header p {
    margin: 0;
    font-size: 1.1rem;
}
footer {
    color: #ecf0f1;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* --- Navigation Bar --- */
nav {
    padding: 0.5rem 0;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 5px;
}

/* --- Main Content --- */
main {
    padding: 2rem 0;
}
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.2rem; /* Will use Raleway */
}
.hero {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.cta-buttons {
    margin-top: 1.5rem;
}
.btn {
    display: inline-block;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin: 5px;
}
.btn:hover {
    text-decoration: none;
}
.btn-secondary {
    background: #6c757d;
}
.btn-secondary:hover {
    background: #5a6268;
}

/* --- Features (Homepage) --- */
.features h3 {
    text-align: center;
    font-size: 1.8rem; /* Will use Raleway */
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Product Grid (Products Page) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.category-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none;
}
.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.category-card h4 {
    font-size: 1.25rem;
    margin: 1rem 0;
    color: #333; /* Will use Raleway */
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.contact-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.contact-card h3 {
    margin-top: 0; /* Will use Raleway */
}

/* =========================================
=== PAGE-SPECIFIC COLOR PALETTES ========
=========================================
*/

/* --- 1. Home Page Palette (Blue/Gray) --- */
#home header, 
#home footer {
    background: #2c3e50;
}
#home nav {
    background: #34495e;
}
#home nav ul li a:hover, 
#home nav ul li a.active {
    background: #4a6572;
}
#home .btn {
    background: #007bff;
}
#home .btn:hover {
    background: #0056b3;
}

/* --- 2. Products Page Palette (Green) --- */
#products-page header, 
#products-page footer {
    background: #2E7D32; /* Dark Green */
}
#products-page nav {
    background: #4CAF50; /* Medium Green */
}
#products-page nav ul li a:hover, 
#products-page nav ul li a.active {
    background: #66BB6A; /* Light Green */
}
#products-page .btn {
    background: #388E3C;
}
#products-page .btn:hover {
    background: #2E7D32;
}
#products-page h2 {
    color: #2E7D32;
}
#products-page .category-card h4 {
    color: #388E3C;
}

/* --- 3. Contact Page Palette (Warm Orange) --- */
#contact-page header, 
#contact-page footer {
    background: #BF360C; /* Deep Orange/Rust */
}
#contact-page nav {
    background: #D84315; /* Medium Orange */
}
#contact-page nav ul li a:hover, 
#contact-page nav ul li a.active {
    background: #E64A19; /* Lighter Orange */
}
#contact-page .btn {
    background: #F4511E;
}
#contact-page .btn:hover {
    background: #E64A19;
}
#contact-page h2 {
    color: #BF360C;
}
#contact-page .contact-card h3 {
    color: #D84315;
}