/* Global Styles - Shared across all pages */
:root {
    --primary-color: #4A7C94;
    --secondary-color: #2c5f7c;
    --accent-color: #5ca3c4;
    --text-dark: #2c3e50;
    --text-light: #666;
    --bg-light: #f0f7fa;
    --bg-white: #ffffff;
    --border-color: #d6e4ea;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --water-blue: #4A7C94;
    --water-light: #6fa9c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.water-drop {
    font-size: 2rem;
    animation: waterDrop 3s ease-in-out infinite;
}

.nav-brand h1 {
    color: var(--bg-white);
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.2;
}

.tagline {
    font-size: 0.9rem;
    color: white !important;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

@keyframes waterDrop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    color: var(--bg-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-menu a.active {
    background-color: rgba(255,255,255,0.15);
    border-bottom: 3px solid white;
    padding-bottom: 5px;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--bg-white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    color: rgba(255,255,255,0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Footer Service Items - Non-clickable */
.footer-service-item {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    cursor: default;
}

/* Remove any hover effects if they exist */
.footer-service-item:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

/* Grid Layouts for 5-item sections - Inverted pyramid */
.services-grid {
    display: grid;
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

/* Desktop - 3+2 inverted pyramid layout */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
    }
    
    /* First row - 3 cards */
    .services-grid .service-card:nth-child(1) {
        grid-column: span 2;
    }
    .services-grid .service-card:nth-child(2) {
        grid-column: span 2;
    }
    .services-grid .service-card:nth-child(3) {
        grid-column: span 2;
    }
    
    /* Second row - 2 cards centered */
    .services-grid .service-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .services-grid .service-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* Tablet - 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile - Single column */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.service-category {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Why Choose Grid */
.why-choose-grid {
    display: grid;
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Typography */
h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
}

/* Mobile Touch Targets */
button, .btn-primary, .btn-secondary {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Responsive Padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Mobile Text Size Adjustment */
body {
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

/* Form Elements Mobile Optimization */
input, textarea, select {
    font-size: 16px;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        padding: 1rem;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }