/* --- Global Styles & Variables --- */
:root {
    --primary-blue: #2a6fdb;
    --secondary-purple: #8c52ff;
    --dark-grey: #2c3e50;
    --light-grey: #f4f6f8;
    --text-color: #34495e;
    --white: #ffffff;
    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--dark-grey);
}

h1 { font-size: 3rem; font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; text-align: center; margin-bottom: 3rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-blue); text-decoration: none; }

/* --- Header & Navigation --- */
.site-header {
    /* --- New Background Image Properties --- */
    background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('images/headerimage.png');
    background-size: cover;
    background-position: center;

    /* --- Existing Properties --- */
    padding: 15px 0;
    border-bottom: 1px solid #4a6a8a; /* Darkened border for contrast */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* <-- Pushes items to the bottom */
    min-height: 80px;    /* <-- Increases header height for more space */
    padding-bottom: 10px;  /* <-- Adds breathing room from the bottom edge */
}

.main-nav .logo img {
    height: auto; /* Increased from 50px for better visibility */
    width: 200px; /* Ensures the logo scales proportionally */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 30px; /* Added a little more space between items */
}

.main-nav ul a {
    color: var(--white); /* <-- Changed to white for readability */
    font-weight: 700;
    font-size: 18px;
    transition: color 0.3s;
}

.main-nav ul a:hover {
    color: var(--primary-blue);
}

.nav-cta {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 15px 25px !important; /* <-- This forces the padding to apply */
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.nav-cta:hover {
    background: var(--secondary-purple);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-purple);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-grey);
    border: 2px solid var(--dark-grey);
}

.btn-secondary:hover {
    background: var(--dark-grey);
    color: var(--white);
}

/* --- Hero Section --- */
.hero {
    background: var(--light-grey);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    background: -webkit-linear-gradient(45deg, var(--primary-blue), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* --- Services & Why Us Sections --- */
.services-overview, .why-us, .featured-products {
    padding: 60px 0;
}

.services-grid, .advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-icon {
    height: 60px;
    margin-bottom: 20px;
}

.why-us {
    background: var(--light-grey);
}

.advantage-item {
    background: var(--white);
    padding: 20px;
    border-radius: 5px;
}

/* --- Featured Products (Shopify) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    margin: 15px 0 5px 0;
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.product-card .btn {
    display: block;
    margin: 0 20px 20px 20px;
}


/* --- Footer --- */
.site-footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.site-footer a {
    color: var(--white);
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .main-nav {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 5px 10px;
    }
}