/* ==========================================
   DH Management - Responsive Site CSS
========================================== */
:root {
    color-scheme: dark;
    --page: #090c0d;
    --surface: #111718;
    --surface-raised: #171f20;
    --text: #f3f6f2;
    --muted: #a6b0ad;
    --line: #283332;
    --accent: #c3e66b;
    --content-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--page);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
}

::selection {
    background: var(--accent);
    color: #101410;
}

.container {
    width: min(100% - 48px, var(--content-width));
    margin-inline: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(195, 230, 107, 0.14);
    background: rgba(9, 12, 13, 0.94);
    backdrop-filter: blur(14px);
}

header .container {
    min-height: 76px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 28px;
    padding-block: 12px;
}

.header-logo {
    flex: 0 0 auto;
    max-width: 150px;
}

#logoImageSmall {
    display: block;
    max-width: 120px;
    max-height: 44px;
    object-fit: contain;
}

#logoTextSmall {
    display: block;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
}

nav a {
    position: relative;
    padding: 8px 13px;
    border-radius: 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 160ms ease, color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent);
    background: rgba(195, 230, 107, 0.08);
}

nav a[aria-current="location"] {
    color: var(--accent);
    background: rgba(195, 230, 107, 0.1);
}

nav a:last-child {
    padding-inline: 17px;
    background: var(--accent);
    color: #101410;
}

nav a:last-child:hover,
nav a:last-child:focus-visible {
    background: #d5f28f;
    color: #101410;
}

section {
    padding: clamp(64px, 9vw, 112px) 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.full-screen {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1, h2, h3 {
    margin-bottom: 18px;
    color: var(--text);
    font-weight: 800;
    line-height: 1.15;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(30px, 4vw, 44px);
}

h3 {
    font-size: clamp(22px, 3vw, 28px);
}

.muted-text {
    color: var(--muted);
}

.hero {
    background:
        linear-gradient(135deg, rgba(195, 230, 107, 0.035), transparent 48%),
        var(--page);
}

.hero h1 {
    max-width: 900px;
    margin-inline: auto;
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: 0;
}

.hero p {
    max-width: 650px;
    margin-inline: auto;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
}

.hero-logo {
    width: 100%;
    margin-bottom: clamp(28px, 5vw, 52px);
    text-align: center;
}

#logoImageLarge {
    display: block;
    max-width: min(350px, 80vw);
    max-height: 200px;
    margin-inline: auto;
    object-fit: contain;
}

#logoTextLarge {
    display: block;
    margin: 0 auto;
    color: var(--text);
    font-size: clamp(48px, 9vw, 80px);
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
    gap: 18px;
    margin-top: 40px;
    text-align: left;
}

.card {
    min-height: 150px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(145deg, var(--surface-raised), var(--surface));
    color: var(--text);
    transition: border-color 180ms ease, transform 180ms ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(195, 230, 107, 0.55);
}

.card h4 {
    font-size: 17px;
    line-height: 1.45;
}

.card .icon {
    min-height: 40px;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 30px;
}

.card .icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-card {
    position: relative;
    isolation: isolate;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 0;
    background: linear-gradient(145deg, var(--surface-raised), var(--surface));
    color: var(--text);
}

.service-card.has-background-image {
    background: var(--surface);
}

.service-card-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 300ms ease;
}

.service-card.has-background-image::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 9, 9, 0.94) 0%, rgba(5, 9, 9, 0.58) 48%, rgba(5, 9, 9, 0.08) 100%);
    content: '';
}

.service-card .icon,
.service-card h4 {
    position: relative;
}

.service-card h4 {
    max-width: 28ch;
    font-size: 19px;
}

.service-card:hover .service-card-image {
    transform: scale(1.04);
}

.why-image-card {
    position: relative;
    isolation: isolate;
    min-height: clamp(420px, 58vw, 660px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    text-align: left;
}

.why-image-card > img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    object-fit: cover;
    object-position: center;
}

.why-image-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 9, 9, 0.94) 0%, rgba(5, 9, 9, 0.72) 48%, rgba(5, 9, 9, 0.12) 100%);
    content: '';
}

.why-image-content {
    width: min(100%, 760px);
    padding: clamp(28px, 7vw, 76px);
}

.why-image-content h2 {
    font-size: clamp(34px, 5vw, 54px);
}

.why-us-list {
    padding: 0;
    list-style: none;
}

.why-us-list li {
    margin-top: 14px;
    color: #e0e7e3;
    font-size: clamp(15px, 1.8vw, 18px);
    text-align: left;
}

.why-us-list li::first-letter {
    color: var(--accent);
}

.mv-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 6vw, 72px);
    text-align: left;
}

.mv-wrap > .mv-card {
    position: relative;
    isolation: isolate;
    min-height: clamp(320px, 34vw, 420px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: clamp(26px, 5vw, 48px);
    background: var(--surface);
}

.mv-card-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mv-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 9, 9, 0.95) 0%, rgba(5, 9, 9, 0.62) 50%, rgba(5, 9, 9, 0.08) 100%);
    content: '';
}

.mv-wrap h3 {
    position: relative;
    color: var(--text);
    font-size: clamp(25px, 3vw, 34px);
}

.mv-wrap p {
    position: relative;
    max-width: 48ch;
    margin: 0;
    color: #e0e7e3;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 18px;
}

.team-member {
    padding: 26px 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    text-align: center;
}

.team-member-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    margin-bottom: 18px;
    border-radius: 4px;
    object-fit: cover;
}

.team-member h4 {
    color: var(--text);
    font-size: 18px;
}

.team-member p {
    color: var(--muted);
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 36px;
    margin-top: 28px;
}

.client-logo-box {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.contact-section {
    border-bottom: 0;
    background: var(--surface);
}

.contact-section p {
    color: var(--muted);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-top: 20px;
}

.contact-links a {
    color: var(--accent);
    font-size: 17px;
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

@media (max-width: 768px) {
    header .container {
        justify-content: center;
        gap: 8px;
    }

    nav {
        justify-content: center;
        gap: 3px;
        width: 100%;
    }

    nav a {
        padding: 7px 9px;
        font-size: 13px;
    }

    .container {
        width: min(100% - 36px, var(--content-width));
    }

    section {
        padding: 68px 18px;
    }

    .full-screen {
        min-height: auto;
    }

    .why-image-card {
        min-height: 500px;
    }

    .why-image-card::after {
        background: linear-gradient(0deg, rgba(5, 9, 9, 0.96) 0%, rgba(5, 9, 9, 0.72) 58%, rgba(5, 9, 9, 0.18) 100%);
    }

    .why-image-content {
        padding: 28px;
    }

    .mv-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mv-wrap > .mv-card {
        min-height: 360px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 28px, var(--content-width));
    }

    header .container {
        padding-block: 10px;
    }

    nav {
        padding: 4px;
        gap: 2px;
    }

    nav a {
        padding: 7px 8px;
        font-size: 12px;
    }

    section {
        padding-inline: 14px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 28px;
    }

    .card {
        min-height: 0;
        padding: 20px;
    }

    .why-image-card {
        min-height: 520px;
    }

    .why-image-content {
        padding: 22px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}