/* --- Global Styles & Variables --- */
:root {
    --primary-color: #005A9C; /* Professional Blue */
    --secondary-color: #00A1E0; /* Lighter, Action Blue */
    --dark-color: #2c3e50; /* Dark Slate Blue */
    --light-color: #ffffff; /* White */
    --text-color: #34495e; /* Grayish Blue */
    --bg-light-gray: #f8f9fa;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--light-color);
}

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

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--dark-color);
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

p.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-top: -15px;
    margin-bottom: 60px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    background-color: var(--primary-color);
    color: var(--light-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

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

.content-section {
    padding: 80px 0;
}

.content-section-colored {
    padding: 80px 0;
    background-color: var(--bg-light-gray);
}

/* --- Header & Navbar --- */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    box-sizing: border-box;
    background: var(--light-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar.static-nav {
    position: static;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    margin-left: auto;
}

.nav-right {
    margin-right: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 10px 0;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.hero-logo {
    position: top;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.hero-logo .logo {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.hero-logo .logo:hover {
    transform: scale(1.2);
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(0, 161, 224, 0.5));
}

.hero-logo .logo img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Add a class for non-hero pages */
.navbar.static-nav {
    position: static;
    background-color: var(--dark-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-links a:hover {
    border-bottom-color: var(--secondary-color);
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: calc(100vh - 60px);
    background: var(--bg-light-gray);
    padding: 80px 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-text {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
    text-align: center;
    width: 100%;
}

.hero-text p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.5;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 45px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}

.hero-buttons .btn {
    flex: 1 1 150px;
    max-width: 150px;
    text-align: center;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    background-color: var(--primary-color);
    color: var(--light-color);
}

.hero-buttons .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 83, 134, 0.2);
    color: var(--light-color);
}

/* --- About Us Section --- */
#about .about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}
#about .about-text, #about .certifications { flex: 1; }
#about .certifications h3 { margin-top: 0; }
#about .cert-logos { display: flex; gap: 20px; align-items: center; }
#about .cert-logos img { opacity: 0.7; transition: opacity 0.3s ease; }
#about .cert-logos img:hover { opacity: 1; }

/* --- Products Section (Homepage) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

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

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

.product-card-content { padding: 20px; flex-grow: 1; }

.product-card h3 { 
    margin-top: 0; 
    margin-bottom: 10px; 
}

.product-card p { 
    margin-bottom: 20px; 
}

.product-card-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-spec {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.product-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--bg-light-gray);
}

.btn-product-card {
    padding: 8px 16px;
    font-size: 0.9rem;
    background-color: var(--secondary-color);
}
.btn-product-card:hover { 
    background-color: var(--primary-color); 
}


/* --- Why Choose Us Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-item { 
    padding: 20px; 
    border-left: 4px solid var(--primary-color); 
    background-color: var(--bg-light-gray); 
}
.feature-item h4 { 
    margin-top: 0; 
    font-size: 1.2rem; 
}

/* --- Contact Us Section --- */
.contact-container { 
    display: flex; 
    gap: 50px; 
}
.contact-info, .contact-form { 
    flex: 1; 
}
.contact-info h2 { 
    text-align: left; 
}
.contact-info p { 
    font-size: 1.1rem; 
}
.contact-info a { 
    color: var(--primary-color); 
    text-decoration: none; 
}
.contact-info a:hover { 
    text-decoration: underline; 
}
.contact-form form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}
.contact-form input, .contact-form textarea { 
    width: 100%; 
    padding: 15px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    font-family: var(--font-secondary); 
    font-size: 1rem; 
    box-sizing: border-box; 
}
.contact-form button { 
    align-self: flex-start; 
}

/* --- Footer --- */
.footer { 
    background-color: var(--dark-color); 
    color: #bdc3c7; 
    padding: 50px 0 0; 
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 30px; 
    padding-bottom: 40px; 
}
.footer h4 { 
    color: var(--light-color); 
    margin-bottom: 20px; 
}
.footer-links ul { 
    list-style: none; 
    padding: 0; 
}
.footer-links a { 
    color: #bdc3c7; 
    text-decoration: none; 
    transition: color 0.3s ease; 
    line-height: 2; 
}
.footer-links a:hover { 
    color: var(--light-color); 
}
.footer-social a { 
    color: #bdc3c7; 
    text-decoration: none; 
    margin-right: 15px; 
}
.footer-social a:hover { 
    color: var(--light-color); 
}
.footer-bottom { 
    text-align: center; 
    padding: 20px 0; 
    border-top: 1px solid #34495e; 
    font-size: 0.9rem; 
}


/* --- NEW: Product Detail Page Styles --- */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 60px 20px;
}
.page-header h1 {
    color: var(--light-color);
    font-size: 3rem;
    margin: 0;
}
.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 10px auto 0;
}

.detailed-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 80px 0;
}

.detailed-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detailed-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.detailed-product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.detailed-product-card-content {
    padding: 25px;
}

.detailed-product-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.detailed-product-card .packaging-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detailed-product-card .packaging-info h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.detailed-product-card .packaging-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-color);
}

.detailed-product-card .packaging-info li {
    margin-bottom: 5px;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .nav-links { display: none; } /* Simple hiding for demo; a JS hamburger menu is recommended */
    
    .hero-content h1 { font-size: 2.5rem; }
    
    #about .about-content { flex-direction: column; }
    .contact-container { flex-direction: column; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .page-header h1 { font-size: 2.2rem; }
}