/* ==========
   BASIC SETUP
   ========== */
:root {
    --primary-color: #005a9c; /* A professional blue */
    --secondary-color: #fdb813; /* A warm accent yellow */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 600; margin-bottom: 20px; }
h2 { text-align: center; font-size: 2em; margin-top: 40px; }
a { color: var(--primary-color); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ==========
   HEADER & NAVIGATION
   ========== */
.main-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    position: sticky; top: 0; z-index: 1000;
    transition: box-shadow 0.3s ease;
}
.main-header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8em; font-weight: 700; color: var(--primary-color); }
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { font-weight: 500; transition: color 0.3s; color: var(--text-color); }
.main-nav a:hover { color: var(--primary-color); }
.header-icons a { margin-left: 20px; font-size: 1.2em; color: var(--text-color); }

/* ==========
   HERO & PAGE HEADER
   ========== */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/322207/pexels-photo-322207.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover; background-position: center;
    color: var(--white); text-align: center; padding: 120px 20px;
}
.hero h1 { font-size: 3.5em; margin-bottom: 10px; }
.hero p { font-size: 1.2em; margin-bottom: 30px; }
.page-header {
    background-color: var(--light-gray);
    text-align: center;
    padding: 50px 20px;
}
.page-header h1 { font-size: 2.8em; color: var(--primary-color); }

/* ==========
   BUTTONS & FORMS
   ========== */
.cta-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 15px 30px;
    font-weight: 700; border-radius: 5px;
    display: inline-block; transition: background-color 0.3s;
}
.cta-button:hover { background-color: #ffc94d; }
.add-to-cart-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none; padding: 10px 20px;
    border-radius: 5px; cursor: pointer;
    width: 100%; transition: background-color 0.3s;
}
.add-to-cart-btn:hover { background-color: #004475; }

/* ==========
   PRODUCT & CATEGORY GRIDS
   ========== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding: 40px 0; }
.product-card {
    border: 1px solid #ddd;
    border-radius: 8px; overflow: hidden; text-align: center;
    transition: box-shadow 0.3s; background: var(--white);
}
.product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 300px; object-fit: cover; }
.product-info { padding: 20px; }
.product-info h3 { font-size: 1.1em; margin-bottom: 10px; }
.product-price { color: var(--primary-color); font-size: 1.2em; font-weight: 600; margin-bottom: 15px; }

/* ==========
   CONTENT SECTIONS (ABOUT, CONTACT)
   ========== */
.content-section { padding: 40px 0; }
.content-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}
.content-section p { margin-bottom: 20px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    padding: 40px 0;
}
.contact-details ul { list-style: none; }
.contact-details li { margin-bottom: 15px; }
.contact-form-container .form-group { margin-bottom: 20px; }
.contact-form-container label { display: block; margin-bottom: 5px; font-weight: 500; }
.contact-form-container input, .contact-form-container textarea {
    width: 100%; padding: 12px;
    border: 1px solid #ccc; border-radius: 5px;
}
.contact-form-container button { width: 100%; }

/* ==========
   TESTIMONIALS
   ========== */
.testimonials { background: var(--light-gray); padding: 50px 0; }
.testimonial-card {
    background: var(--white);
    border-left: 5px solid var(--secondary-color);
    padding: 25px; max-width: 700px; margin: 20px auto;
    border-radius: 5px;
}
.testimonial-card p { font-style: italic; margin-bottom: 15px; }
.testimonial-card .author { font-weight: bold; text-align: right; }

/* ==========
   FOOTER
   ========== */
.main-footer { background-color: #2c3e50; color: var(--white); padding: 40px 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px; margin-bottom: 30px;
}
.footer-column h4 { font-size: 1.2em; margin-bottom: 15px; color: var(--secondary-color); }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: var(--white); transition: color 0.3s; }
.footer-column a:hover { color: var(--secondary-color); }
.footer-bottom { text-align: center; border-top: 1px solid #44586d; padding-top: 20px; font-size: 0.9em; }
.footer-bottom a { color: var(--secondary-color); font-weight: 500; }

/* ==========
   RESPONSIVENESS
   ========== */
@media (max-width: 768px) {
    .main-nav { display: none; } /* Simple hiding for mobile, can be replaced with a hamburger menu */
    .hero h1 { font-size: 2.5em; }
    .contact-grid { grid-template-columns: 1fr; }
}
