/* industrialwaterblast.com - Unified redesign stylesheet
   Three theme variations (same system as snydermetal.com):
   1. Modern Classic (theme-classic)
   2. Forge & Steel (theme-forge)
   3. Industrial Precision (theme-precision)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Libre+Franklin:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
    --header-height: 80px;
    --logo-height: 58px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --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), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

body.theme-forge {
    --primary-color: #ff6f00;
    --primary-dark: #d84315;
    --accent-color: #90a4ae;
    --bg-color: #12141c;
    --card-bg: #1e222b;
    --text-color: #f1f3f5;
    --text-secondary: #90a4ae;
    --border-color: #2e3542;
    --hero-overlay: rgba(18, 20, 28, 0.65);
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --btn-text-color: #12141c;
}

body.theme-precision {
    --primary-color: #0f172a;
    --primary-dark: #020617;
    --accent-color: #eab308;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --hero-overlay: rgba(15, 23, 42, 0.55);
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --btn-text-color: #0f172a;
}

body.theme-classic {
    --primary-color: #1e3a8a;
    --primary-dark: #172554;
    --accent-color: #3b82f6;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-color: #0f172a;
    --text-secondary: #475569;
    --border-color: #cbd5e1;
    --hero-overlay: rgba(30, 58, 138, 0.45);
    --font-headings: 'Libre Franklin', sans-serif;
    --font-body: 'Libre Franklin', sans-serif;
    --btn-text-color: #ffffff;
}

* { 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;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-headings); font-weight: 700; line-height: 1.25; margin-bottom: 1rem; color: var(--text-color); }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); font-size: 17px; line-height: 1.75; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

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

.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-img { height: var(--logo-height); width: auto; transition: var(--transition-smooth); }
body.theme-precision .logo-img { filter: grayscale(1) brightness(0.9); }
body.theme-forge .logo-img { filter: drop-shadow(0 0 8px rgba(255, 111, 0, 0.35)); }

.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-link {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    padding: 8px 14px;
    border-radius: 4px;
}
.nav-link:hover, .nav-item.active .nav-link { color: var(--primary-color); background-color: rgba(128, 128, 128, 0.08); }
body.theme-classic .nav-link:hover, body.theme-classic .nav-item.active .nav-link { background-color: rgba(30, 58, 138, 0.06); }
body.theme-precision .nav-link:hover, body.theme-precision .nav-item.active .nav-link { background-color: rgba(15, 23, 42, 0.05); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

/* Hero */
.hero-banner { position: relative; height: 420px; overflow: hidden; background: #000; }
.hero-img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.hero-overlay {
    position: absolute; inset: 0;
    background: var(--hero-overlay);
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-content { max-width: 860px; padding: 20px; }
.hero-title {
    font-size: 42px; font-weight: 800; color: #fff;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
body.theme-classic .hero-title { text-transform: none; font-size: 44px; }
.hero-subtitle { font-size: 18px; color: #fff; opacity: 0.92; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.hero-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 18px;
    border: 2px solid var(--accent-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    max-width: 90%;
    line-height: 1.4;
}

/* Main content */
.main-content { padding: 60px 0; }
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}
.section-title {
    font-size: 28px;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; font-family: var(--font-headings); font-weight: 700;
    font-size: 15px; border-radius: 4px; border: none; cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-primary { background: var(--primary-color); color: var(--btn-text-color); }
.btn-primary:hover { background: var(--primary-dark); color: var(--btn-text-color); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    background: transparent;
    margin-left: 10px;
}
.btn-outline:hover { background: var(--primary-color); color: var(--btn-text-color); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.feature-card:hover img { transform: scale(1.05); }
.feature-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    display: flex; align-items: flex-end; padding: 20px;
}
.feature-card .overlay span {
    color: #fff; font-family: var(--font-headings); font-weight: 700; font-size: 18px;
}

.service-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-list li {
    position: relative; padding-left: 28px; font-weight: 500; color: var(--text-color);
}
.service-list li::before {
    content: "✓"; position: absolute; left: 0;
    color: var(--primary-color); font-weight: 800;
}

.two-col-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 24px; }
.two-col-lists h3 { color: var(--primary-color); font-size: 18px; margin-bottom: 16px; }
.two-col-lists ul { list-style: none; }
.two-col-lists li { padding: 6px 0 6px 20px; position: relative; color: var(--text-color); font-size: 15px; }
.two-col-lists li::before { content: "•"; position: absolute; left: 0; color: var(--accent-color); font-weight: 700; }

/* Contact panel (lives in site footer) */
.contact-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 0;
    margin-bottom: 0;
}
.contact-panel h3 {
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.contact-panel p { font-size: 15px; line-height: 1.8; margin-bottom: 4px; color: rgba(255, 255, 255, 0.85); }
.contact-panel a { color: var(--accent-color); }
.contact-panel a:hover { color: #fff; }
.contact-panel .emergency { color: var(--accent-color); font-weight: 700; }
.contact-panel .emergency a { color: var(--accent-color); font-weight: 700; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox-modal {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.lightbox-modal.active { display: flex; }
.lightbox-content-wrapper { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: -40px; right: 0;
    background: none; border: none; color: #fff; font-size: 36px; cursor: pointer;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    font-size: 28px; padding: 12px 16px; cursor: pointer; border-radius: 4px;
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 12px; font-size: 14px; }

/* Map */
.map-embed { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 32px; }
.map-embed iframe { width: 100%; height: 450px; border: 0; display: block; }

/* Association badges */
.association-badges { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.association-badges img { max-height: 60px; width: auto; opacity: 0.9; transition: var(--transition-smooth); }
.association-badges a:hover img { opacity: 1; transform: scale(1.05); }

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 48px 0 32px;
    border-top: 3px solid var(--primary-color);
}
.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 0;
}
/* Theme switcher widget */
.theme-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    transition: var(--transition-smooth);
}
.theme-switcher__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}
.theme-switcher__btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    margin-bottom: 4px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.theme-switcher__btn:last-child { margin-bottom: 0; }
.theme-switcher__btn:hover { border-color: var(--primary-color); }
.theme-switcher__btn.active {
    background: var(--primary-color);
    color: var(--btn-text-color);
    border-color: var(--primary-color);
}
.theme-switcher__btn[data-theme="forge"].active { background: #ff6f00; color: #12141c; }
.theme-switcher__btn[data-theme="precision"].active { background: #eab308; color: #0f172a; }
.theme-switcher__btn[data-theme="classic"].active { background: #1e3a8a; color: #fff; }

/* Responsive */
@media (max-width: 992px) {
    .grid-3, .contact-panel { grid-template-columns: 1fr 1fr; }
    .two-col-lists { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .site-header { height: 70px; }
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 70px; left: -100%; width: 100%;
        height: calc(100vh - 70px); background: var(--card-bg);
        flex-direction: column; align-items: stretch; padding: 20px;
        transition: var(--transition-smooth); overflow-y: auto; box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { left: 0; }
    .grid-2, .grid-3, .service-list, .contact-panel { grid-template-columns: 1fr; }
    .hero-title { font-size: 30px; }
    .card { padding: 24px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .theme-switcher { bottom: 16px; right: 16px; min-width: 170px; }
    .btn-outline { margin-left: 0; margin-top: 10px; }
}
