/* 
   Project: Osuszanie po Zalaniu Trójmiasto
   Theme: Modern Deep Blue & Teal (Trust & Emergency)
*/

:root {
    /* Colors */
    --color-primary: #0a2540;
    /* Deep Navy Blue - Trust, Authority */
    --color-primary-light: #183b5e;
    --color-accent: #00d4ff;
    /* Vibrant Cyan - Action, Water, Emergency */
    --color-accent-hover: #00a8cc;
    --color-text-main: #1a202c;
    --color-text-light: #718096;
    --color-bg-light: #f7fafc;
    --color-bg-white: #ffffff;
    --color-danger: #e53e3e;
    /* For urgent alerts */
    --color-success: #38a169;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    /* Modern, geometric */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* UI Elements */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

.text-white {
    color: var(--color-bg-white);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: 1fr;
}

/* Mobile first */
.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    h1 {
        font-size: 3.5rem;
    }
}

/* Components */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    /* Glow effect */
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* Sticky Header */
header {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-white);
    letter-spacing: -1px;
}

.nav-menu a {
    color: var(--color-bg-white);
    margin-left: var(--spacing-md);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d1a26 100%);
    color: var(--color-bg-white);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-content h1 span {
    color: var(--color-accent);
    display: block;
}

.hero h1 {
    color: var(--color-bg-white);
}

/* Service Cards */
.card {
    background: var(--color-bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

/* Local SEO Distinctions */
.city-badge {
    background: var(--color-bg-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-primary-light);
    border: 1px solid #e2e8f0;
}

/* Contact Section */
.contact-form-container {
    background: var(--color-bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-menu a {
        margin-left: 0.5rem;
        font-size: 0.8rem;
    }

    /* Hide less important links on very small screens to prioritize the CTA */
    .nav-menu a:not(.btn) {
        display: none;
    }

    .nav-menu .btn {
        margin-left: 0;
        padding: 8px 12px;
        font-size: 0.85rem;
        display: inline-block;
    }
}

/* Mobile Sticky Call Bar */
.mobile-call-bar {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-danger);
    /* Red for emergency */
    color: white;
    text-align: center;
    padding: 12px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.mobile-call-bar a {
    color: white;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .mobile-call-bar {
        display: block;
    }

    body {
        padding-bottom: 60px;
        /* Space for the bar to avoid covering footer content */
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 70px;
    /* Above the mobile bar on mobile */
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: #0d1a26;
    color: white;
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(150%);
    /* Hidden by default via transform */
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.cookie-btn {
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
}

@media (min-width: 769px) {
    .cookie-banner {
        bottom: 20px;
    }
}