/* HydroFlow Industrial Theme */
:root {
    --primary-color: #003366;
    /* Deep Ocean Blue */
    --secondary-color: #FF5722;
    /* Safety Orange */
    --accent-color: #005b96;
    /* Lighter Blue */
    --bg-color: #f4f7f6;
    /* Light Greyish Blue */
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    --border-color: #e0e0e0;
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=') repeat;
    opacity: 0.3;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border-radius: 4px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    background-color: #ff7043;
    transform: translateY(-2px);
    color: white;
}

/* Features Grid */
.features {
    padding: 60px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 20px;
    margin-top: 60px;
}

footer h4 {
    color: white;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Sidebar Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.sidebar .widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-top: 3px solid var(--secondary-color);
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.widget-list {
    list-style: none;
}

.widget-list li {
    margin-bottom: 12px;
}

.widget-list a {
    display: block;
    line-height: 1.4;
}

.widget-list .title {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

.widget-list .date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.widget-list a:hover .title {
    color: var(--secondary-color);
}

/* Product & News Group Styles */
.product-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    height: 100%;
}

.product-card h3 {
    font-size: 1.1rem;
    margin: 10px 0 5px;
    color: var(--primary-color);
    line-height: 1.3;
}

.product-card .card-img {
    transition: transform 0.5s ease;
}

.product-card:hover .card-img {
    transform: scale(1.05);
}

.news-group h3 {
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    background: #fdfdfd;
    padding-top: 5px;
    padding-bottom: 5px;
}

.news-group ul li a {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Scroll Smoothing */
html {
    scroll-behavior: smooth;
}

/* Utils */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}