/* 
   Shield Water Damage Restoration and Repair — Chelsea
   Shared Stylesheet
*/

:root {
    --primary-color: #003366; /* Deep blue for trust and water */
    --accent-color: #d32f2f;  /* Red for emergency/urgency */
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --bg-gray: #f4f4f4;
    --border-color: #e0e0e0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.top-bar {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--text-light);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Grid Layouts */
.grid-2x3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 25px;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Emergency Banner */
.emergency-banner {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
}

.emergency-banner h2 {
    margin-bottom: 10px;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* Footer */
footer {
    background: #111;
    color: #ccc;
    padding: 50px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

/* Mobile Call Button (Fixed) */
.mobile-call {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1001;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 10px;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .mobile-call {
        display: flex;
    }
}
