/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: #0a0a0a;
    color: #d4d4d4;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Header === */
.site-header {
    background: #111;
    border-bottom: 2px solid #c8960c;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo img {
    height: 100px;
    display: block;
}

.main-nav {
    display: flex;
    gap: 0.25rem;
}

.main-nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #f5c518;
    background: rgba(200, 150, 12, 0.1);
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #f5c518;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* === Main content === */
main.container {
    flex: 1;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

/* === Typography === */
h1 {
    color: #f5c518;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

h2 {
    color: #f5c518;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

h3 {
    color: #e0a800;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

a {
    color: #f5c518;
    text-decoration: none;
}

a:hover {
    color: #ffe066;
    text-decoration: underline;
}

ul, ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

li {
    margin-bottom: 0.3rem;
}

/* === Two-column layout === */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

.page-content {
    min-width: 0;
}

.page-sidebar img {
    width: 100%;
    border-radius: 6px;
    opacity: 0.85;
}

/* === Services grid (index) === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.service-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.service-card:hover {
    border-color: #c8960c;
}

.service-card h3 {
    margin-top: 0;
    color: #f5c518;
}

/* === Reference list === */
.reference-list {
    list-style: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
}

.reference-list li {
    padding: 0.6rem 1rem;
    background: #1a1a1a;
    border-left: 3px solid #c8960c;
    border-radius: 0 4px 4px 0;
}

/* === Form === */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: #ccc;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f5c518;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group .required {
    color: #e74c3c;
}

/* Honeypot - hidden from real users */
.ohnohoney {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.btn {
    display: inline-block;
    background: #c8960c;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #f5c518;
}

/* Flash messages */
.flash {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.flash-success {
    background: #14532d;
    color: #86efac;
    border: 1px solid #22c55e;
}

.flash-error {
    background: #450a0a;
    color: #fca5a5;
    border: 1px solid #ef4444;
}

/* === Contact info === */
.contact-info {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
}

.contact-info p {
    text-align: left;
}

.contact-info strong {
    color: #f5c518;
}

/* === Footer === */
.site-footer {
    background: #111;
    border-top: 1px solid #333;
    padding: 1.5rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #f5c518;
}

.site-footer p {
    color: #555;
    font-size: 0.8rem;
    text-align: center;
}

/* === Section images (3 in a row) === */
.section-images {
    display: flex;
    gap: 1.5rem;
    margin: 2.5rem 0;
    justify-content: center;
}

.section-images img {
    flex: 1;
    max-width: calc(33.333% - 1rem);
    border-radius: 6px;
    opacity: 0.85;
    transition: opacity 0.3s;
    object-fit: cover;
    box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0.3);
}

.section-images img:hover {
    opacity: 1;
}

/* === Two boxes side by side === */
.two-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-box {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.two-boxes > .info-box {
    margin-bottom: 0;
}

.info-box h2 {
    margin-top: 0;
}

.info-box p:last-child,
.info-box ul:last-child {
    margin-bottom: 0;
}

/* === Gas suppression details === */
.gas-section {
    margin-top: 1.5rem;
}

.gas-section h2 {
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.35rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #111;
        flex-direction: column;
        padding: 0.5rem 1rem 1rem;
        border-bottom: 2px solid #c8960c;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        display: none;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .two-boxes {
        grid-template-columns: 1fr;
    }

    .section-images {
        flex-wrap: wrap;
    }

    .section-images img {
        max-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .logo img {
        height: 40px;
    }

    .container {
        padding: 0 1rem;
    }
}
