:root {
    --color-primary: #414042;
    --color-accent: #38abb7;
    --color-accent-hover: #2c8791;
    --color-bg: #ffffff;
    --color-bg-alt: #eaf6f7;
    --color-text: #414042;
    --color-text-muted: #6e6d70;
    --color-border: #e2e5ea;
    --radius: 8px;
    --max-width: 1140px;
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    color: var(--color-primary);
    margin-top: 0;
}

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

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

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

.logo-img {
    height: 68px;
    width: auto;
}

.footer-logo-img {
    height: 72px;
    width: auto;
    margin-bottom: 0.5rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav a {
    color: var(--color-text);
    font-weight: 500;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--color-accent);
}

.nav-cta {
    color: #fff !important;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-hover));
    color: #fff;
    padding: 5rem 0;
}

.hero h1 {
    color: #fff;
    font-size: 2.75rem;
    max-width: 700px;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-hero {
    background: var(--color-bg-alt);
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.page-hero .hero-sub {
    color: var(--color-text-muted);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
}

.section-sub {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.stats-section {
    background: var(--color-bg-alt);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.service-area-map-wrap {
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.service-area-map {
    width: 100%;
    height: auto;
    display: block;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.gallery-card {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
}

.photo-strip {
    padding: 0.75rem 0.75rem 0;
}

.photo-strip-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.photo-strip-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.photo-strip-figure {
    flex: 0 0 auto;
    width: 160px;
    margin: 0;
}

.photo-strip-figure img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
}

.photo-strip-figure figcaption {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.gallery-image {
    position: relative;
}

.gallery-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.gallery-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.gallery-location {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: -0.5rem;
}

/* CTA band */
.cta-band {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
}

.cta-band-inner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Flash messages */
.flash-container {
    padding-top: 1rem;
}

.flash {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.flash-success {
    background: #ecfdf3;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 0;
    font-size: 0.85rem;
}

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

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--color-border);
        gap: 1rem;
    }

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

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

    .stats-grid,
    .contact-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* Services nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    padding: 0.5rem 0;
    z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    white-space: nowrap;
    color: var(--color-text);
}

.nav-dropdown-menu a:hover {
    background: var(--color-bg-alt);
    color: var(--color-accent-hover);
}

/* Case study detail page */
.case-study-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.case-study-meta dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.case-study-meta dd {
    margin: 0;
    font-weight: 600;
}

.case-study-section {
    margin-bottom: 2rem;
}

.case-study-section h2 {
    margin-bottom: 0.5rem;
}

/* Case study category filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-filter a {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.category-filter a.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Service detail page */
.service-includes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-includes-grid ul {
    padding-left: 1.25rem;
}

.service-includes-grid li {
    margin-bottom: 0.5rem;
}
