/* Base reset + SE Solution brand (logo: #296629 base, #4DB24D accent) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand-primary: #296629;
    --brand-accent: #4DB24D;
    --brand-primary-rgb: 41, 102, 41;
    --brand-accent-rgb: 77, 178, 77;
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-card: rgba(77, 178, 77, 0.25);
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='rgba(77,178,77,0.08)' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='20' cy='20' r='1.2' fill='rgba(77,178,77,0.12)'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    box-shadow: 0 0 18px rgba(var(--brand-accent-rgb), 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(var(--brand-accent-rgb), 0.55);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--text);
}

.btn-outline:hover {
    background: rgba(var(--brand-accent-rgb), 0.08);
    border-color: var(--brand-accent);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 30%, var(--brand-accent), var(--brand-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 0 18px rgba(var(--brand-accent-rgb), 0.5);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text);
}

.logo-text span:last-child {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    font-size: 0.9rem;
}

.main-nav a {
    color: var(--text);
    position: relative;
    padding-bottom: 0.2rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    transition: width 0.2s;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-cta {
    font-size: 0.85rem;
}

/* Emergency strip – rounded pill, limited width, space so text isn’t cut off */
.emergency-strip {
    width: 100%;
    font-size: 0.85rem;
    font-weight: 500;
    color: #991b1b;
    overflow: hidden;
    padding: 0.4rem 1rem;
    box-sizing: border-box;
}

.emergency-strip-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 2rem;
    white-space: nowrap;
    max-width: 900px;
    margin: 0 auto;
    min-height: 2rem;
    box-sizing: border-box;
    background: #fef2f2;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 9999px;
}

.emergency-strip-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
    color: #b91c1c;
    flex-shrink: 0;
}

.emergency-strip-marquee {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.emergency-strip-marquee a {
    color: inherit;
    text-decoration: none;
}

.emergency-strip-track {
    display: inline-flex;
    gap: 3rem;
    animation: emergency-strip-scroll 18s linear infinite;
}

@keyframes emergency-strip-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hamburger: hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: rgba(var(--brand-accent-rgb), 0.1);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-cta-mobile {
    display: none;
}

.page-main {
    padding-top: 2.4rem;
}

/* Hero (home) */
.hero {
    padding: 2rem 0 3rem;
    background: linear-gradient(180deg, rgba(77, 178, 77, 0.06) 0%, var(--bg-dark) 40%);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(var(--brand-accent-rgb), 0.12);
    color: var(--brand-accent);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.6rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.4rem;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-metrics strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
}

.hero-card {
    position: relative;
    background: var(--bg-surface);
    border-radius: 14px;
    padding: 1.6rem 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.04);
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(var(--brand-accent-rgb), 0.7);
    border: 1px solid var(--brand-accent);
    top: 10px;
}
.hero-card::before { left: 12px; }
.hero-card::after { right: 12px; }

.hero-card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.hero-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 0.85rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 1px rgba(var(--brand-accent-rgb), 0.4);
}

small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Sections */
section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h1,
.section-header h2 {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Editable page content (from Admin → Pages) */
.page-content {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.65;
}

.page-content p {
    margin-bottom: 1rem;
    color: inherit;
}
.page-content p:last-child {
    margin-bottom: 0;
}
.page-content ul, .page-content ol {
    margin: 0.5rem 0 1rem 1.25rem;
}
.page-content li {
    margin-bottom: 0.35rem;
}
.page-content a {
    color: var(--brand-accent);
    text-decoration: underline;
}
.page-content a:hover {
    color: var(--brand-primary);
}
.page-content strong {
    font-weight: 600;
    color: var(--text);
}
.page-content h2, .page-content h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-header::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    opacity: 0.9;
    border-radius: 999px;
}

/* Home highlight strip */
.highlight-strip {
    padding: 2.5rem 0 3rem;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    background-color: var(--bg-dark);
    background-image: linear-gradient(180deg, rgba(var(--brand-accent-rgb), 0.04) 0%, transparent 50%);
    background-size: 100% 100%;
}

.highlight-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.highlight-copy h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.highlight-copy p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 34rem;
}

.highlight-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.highlight-point {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text);
}

.highlight-point > div {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.5;
}

.highlight-point span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, var(--brand-accent), var(--brand-primary));
    font-size: 0.8rem;
    color: #fff;
}

.highlight-visual {
    position: relative;
    border-radius: 12px;
    padding: 1.2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: visible;
}

.highlight-visual::before,
.highlight-visual::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--brand-accent-rgb), 0.7);
    border: 1px solid var(--brand-accent);
    box-shadow: 0 0 6px rgba(var(--brand-accent-rgb), 0.4);
}

.highlight-visual::before {
    top: -2px;
    left: 12px;
}

.highlight-visual::after {
    top: -2px;
    right: 12px;
}

.highlight-visual .scheme-node-b {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--brand-accent-rgb), 0.7);
    border: 1px solid var(--brand-accent);
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(var(--brand-accent-rgb), 0.4);
}

.highlight-visual-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text);
}

.highlight-badge span:first-child {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, var(--brand-accent), var(--brand-primary));
    color: #fff;
    font-size: 0.8rem;
}

.highlight-badge span:last-child {
    font-size: 0.8rem;
    color: var(--text);
}

/* Connection wires (SVG is in HTML) */
.highlight-scheme-wires {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: 12px;
    overflow: visible;
}

.highlight-meters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.8rem;
    position: relative;
}

.highlight-meter {
    flex: 1 1 120px;
    padding: 0.6rem 0.7rem;
    padding-top: 1rem;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text);
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.highlight-meter::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(var(--brand-accent-rgb), 0.8);
    border: 1px solid var(--brand-accent);
    box-shadow: 0 0 4px rgba(var(--brand-accent-rgb), 0.5);
}

.highlight-meter strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.highlight-meter span {
    display: block;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Simple grids for services/products pages */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.card {
    position: relative;
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 1.2rem 1.1rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.card::before,
.card::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(var(--brand-accent-rgb), 0.6);
    border: 1px solid var(--brand-accent);
    top: 8px;
}
.card::before { left: 10px; }
.card::after { right: 10px; }

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Short spec list on product card (2–3 items); full details on product page */
.product-card-specs {
    list-style: none;
    margin: 0 0 0.5rem 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.product-card-specs li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
}
.product-card-specs li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: bold;
}
.product-card-desc-fallback {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price {
    font-weight: 600;
    color: var(--brand-accent);
}

/* Product detail page */
.product-detail { max-width: 640px; }
.product-detail-title { font-size: 1.5rem; margin-bottom: 0.4rem; }
.product-detail-category { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.product-detail-description { margin-bottom: 1rem; color: var(--text-muted); }

/* Technical specifications block */
.product-specs {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.product-specs-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.product-specs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.product-specs-list li {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.55;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-subtle);
    word-wrap: break-word;
}
.product-specs-list li:last-child {
    border-bottom: none;
}
.product-specs-list li:first-of-type {
    font-weight: 500;
    color: var(--text);
}
.product-specs-fallback {
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.product-detail-extra {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1rem;
}

.product-detail-price { font-size: 1.25rem; margin-bottom: 0.5rem; }
.product-detail-form { margin-top: 1rem; }
.product-detail-form label { margin-right: 0.5rem; }

.product-gallery { margin-bottom: 1.2rem; }
.product-gallery-main {
    background: var(--bg-surface);
    border-radius: 12px;
    border: 2px dashed var(--border-card);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}
.product-gallery-main img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
.product-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.product-gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

/* Products page – filter dropdowns (works well on mobile and desktop) */
.products-filter-form {
    margin-bottom: 1.5rem;
}
.products-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.products-filter-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.products-filter-label-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.products-filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    min-width: 160px;
    max-width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234DB24D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
}
.products-filter-select:hover,
.products-filter-select:focus {
    border-color: var(--brand-accent);
    outline: none;
}
@media (max-width: 480px) {
    .products-filter-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
    }
    .products-filter-label {
        width: 100%;
        max-width: 260px;
    }
    .products-filter-select {
        min-width: 100%;
        width: 100%;
    }
}

/* Mobile: more padding so text isn’t flush to edges */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .page-main {
        padding-top: 1.5rem;
    }

    section {
        padding: 2rem 0;
    }

    .hero {
        padding: 1.5rem 0 2rem;
    }

    .hero-card {
        padding: 1.25rem 1rem;
    }

    .hero-card h2 {
        font-size: 1rem;
    }

    .highlight-strip {
        padding: 1.5rem 0 2rem;
    }

    .highlight-inner {
        gap: 1.25rem;
    }

    .highlight-visual {
        padding: 1rem;
    }

    .highlight-point {
        font-size: 0.9rem;
    }

    .highlight-badge {
        flex-wrap: wrap;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 1.35rem;
    }

    .card {
        padding: 1rem;
    }

    .card h3 {
        font-size: 0.95rem;
    }

    .page-content {
        font-size: 1rem;
    }
}

.product-thumb {
    margin-bottom: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}
.product-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: none;
}

/* Cart & checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.cart-table input[type="number"] { width: 60px; padding: 0.35rem; }
.cart-actions { margin-top: 1rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.cart-empty { color: var(--text-muted); padding: 2rem 0; }
.checkout-form { max-width: 480px; }

/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
}

.contact-card {
    position: relative;
    background: var(--bg-surface);
    border-radius: 14px;
    padding: 1.4rem 1.3rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.04);
}

.contact-card::before,
.contact-card::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(var(--brand-accent-rgb), 0.6);
    border: 1px solid var(--brand-accent);
    top: 10px;
}
.contact-card::before { left: 12px; }
.contact-card::after { right: 12px; }

.map-placeholder {
    border-radius: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

.emergency {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(254, 226, 226, 0.8);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(248, 113, 113, 0.4);
    font-size: 0.82rem;
}

.emergency span:first-child {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: #b91c1c;
}

.emergency strong {
    color: #b91c1c;
}

/* Footer */
.site-footer {
    padding: 2rem 0 1.4rem;
    background: var(--bg-surface);
    margin-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 2rem;
    font-size: 0.82rem;
}

.footer-text {
    margin-top: 0.7rem;
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.footer-links h4 {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 0.2rem;
}

.footer-bottom {
    margin-top: 1.3rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* FAQ section (accordion style) */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 1.8rem;
    align-items: flex-start;
}

.faq-intro {
    font-size: 0.93rem;
    color: var(--text-muted);
    max-width: 28rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-surface);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.faq-question span:first-child {
    flex: 1 1 auto;
}

.faq-toggle-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    position: relative;
    flex-shrink: 0;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 10px;
    height: 1.5px;
    background: var(--text);
    transform: translate(-50%, -50%);
}

.faq-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: opacity 0.18s ease;
}

.faq-item.is-open .faq-toggle-icon::after {
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    padding: 0 1.1rem;
}

.faq-item.is-open .faq-answer {
    padding-bottom: 0.9rem;
    max-height: 500px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

@media (max-width: 900px) {
    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .contact-layout,
    .footer-grid,
    .highlight-inner {
        grid-template-columns: 1fr;
    }

    .highlight-inner {
        gap: 1.5rem;
    }

    .highlight-copy,
    .highlight-visual {
        min-width: 0;
    }

    .hero-grid > div,
    .hero-grid .hero-card {
        min-width: 0;
    }

    .hero-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        max-width: none;
    }

    .highlight-copy h2 {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    .highlight-copy p {
        max-width: none;
    }

    .header-inner {
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100vh;
        background: var(--bg-surface);
        border-left: 1px solid var(--border-subtle);
        padding: 4rem 1.25rem 1.5rem;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 99;
        overflow-y: auto;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-nav ul li {
        border-bottom: 1px solid var(--border-subtle);
    }

    .main-nav ul a {
        display: block;
        padding: 0.9rem 0;
        font-size: 1rem;
    }

    .main-nav ul a::after {
        display: none;
    }

    .nav-cta-mobile {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    body.nav-open .main-nav {
        transform: translateX(0);
    }

    body.nav-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    body.nav-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    body.nav-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Overlay when menu open */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
    }
    body.nav-open .nav-overlay {
        display: block;
    }
}

/* Overlay: visible only on mobile when menu is open */
.nav-overlay {
    display: none;
}
@media (max-width: 900px) {
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 98;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }
    body.nav-open .nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Projects listing */
.grid-projects {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card-project {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0;
    overflow: hidden;
}
.card-project:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.card-project-image {
    aspect-ratio: 16/10;
    background: var(--border-subtle);
    overflow: hidden;
}
.card-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.card-project-body {
    padding: 1rem 1.1rem;
}
.card-project-body h3 {
    margin-bottom: 0.25rem;
}
.card-project-client {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.card-project-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.45;
}
.card-project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-accent);
}

/* Project detail page */
.container-narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}
.project-detail-header {
    margin-bottom: 1.25rem;
}
.project-detail-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}
.project-client {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}
.project-cover-single {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--border-subtle);
}
.project-cover-single img {
    width: 100%;
    height: auto;
    display: block;
}
.project-detail-content {
    margin-top: 1rem;
}
.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

/* Project carousel */
.project-carousel {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
}
.project-carousel-inner {
    position: relative;
    aspect-ratio: 16/10;
}
.project-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.project-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}
.project-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.project-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}
.project-carousel-btn:hover {
    background: #fff;
}
.project-carousel-btn.prev { left: 12px; }
.project-carousel-btn.next { right: 12px; }
.project-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.project-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.project-carousel-dot.active {
    background: #fff;
}

