:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ink: #10272d;
    --muted: #5d6d70;
    --paper: #fbfcfa;
    --surface: #ffffff;
    --soft: #edf5f2;
    --line: #d7e4df;
    --primary: #0b6b72;
    --primary-dark: #0b3f4a;
    --accent: #d95f4b;
    --gold: #d7a84a;
    --shadow: 0 18px 48px rgba(16, 39, 45, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

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

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

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

.container {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(18px, calc((100vw - 1160px) / 2));
    background: rgba(251, 252, 250, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand-logo {
    width: 142px;
    height: auto;
    border-radius: 4px;
    background: #000000;
}

.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 9px 12px;
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--soft);
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: clamp(620px, 84vh, 820px);
    display: grid;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero picture,
.hero img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
}

.hero img {
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 63, 74, 0.92) 0%, rgba(11, 63, 74, 0.76) 37%, rgba(11, 63, 74, 0.16) 74%);
}

.hero-overlay {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding: 86px 0 118px;
}

.hero-copy {
    max-width: 680px;
    color: #ffffff;
}

.hero-logo {
    width: min(310px, 76vw);
    height: auto;
    margin-bottom: 22px;
    border-radius: 6px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffd37e;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(2.45rem, 6vw, 5.35rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 3.8vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.hero-copy p {
    max-width: 620px;
    font-size: 1.16rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    line-height: 1.2;
}

.button.primary {
    background: var(--accent);
    color: #ffffff;
}

.button.primary:hover {
    background: #bf4d3c;
    color: #ffffff;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
}

.button.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.intro-band {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 42px 0;
}

.intro-grid,
.seo-grid,
.footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
}

.intro-grid h2 {
    margin-bottom: 0;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.intro-grid > p,
.seo-grid p,
.profile-grid p,
.split-grid p {
    color: var(--muted);
    font-size: 1.04rem;
}

.section {
    padding: 88px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card,
.profile-card,
.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.service-card {
    padding: 24px;
}

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    border-radius: var(--radius);
    background: var(--soft);
    color: var(--primary-dark);
    font-weight: 900;
}

.service-card p {
    color: var(--muted);
}

.split-section {
    background: var(--soft);
}

.split-grid,
.profile-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 54px;
    align-items: center;
}

.reverse {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.media-frame {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.media-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.check-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 8px;
    border-left: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    transform: rotate(-45deg);
}

.method-section {
    background: var(--paper);
}

.timeline {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.timeline div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.timeline span {
    color: var(--muted);
}

.profile-section {
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
    color: #ffffff;
}

.profile-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/adg-software-logo-vertical.jpg");
    background-repeat: no-repeat;
    background-position: right 8vw center;
    background-size: min(520px, 72vw);
    opacity: 0.16;
    mix-blend-mode: screen;
    pointer-events: none;
}

.profile-section .container {
    position: relative;
    z-index: 1;
}

.profile-section .section-kicker {
    color: #ffd37e;
}

.profile-section p {
    color: rgba(255, 255, 255, 0.82);
}

.profile-section a {
    color: #ffd37e;
}

.profile-card {
    padding: 30px;
    color: var(--ink);
    text-align: center;
}

.profile-card p {
    color: var(--muted);
}

.profile-photo {
    width: min(220px, 72%);
    height: auto;
    margin: 0 auto 24px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.text-link {
    display: inline-flex;
    margin-top: 8px;
}

.seo-section {
    background: var(--surface);
}

.seo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.seo-list span {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-weight: 800;
}

.contact-section {
    background: var(--soft);
}

.contact-form {
    display: grid;
    gap: 10px;
    padding: 26px;
}

.contact-form label {
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(11, 107, 114, 0.18);
    border-color: var(--primary);
}

.form-button {
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
    font: inherit;
}

.form-note {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.privacy-section {
    padding: 48px 0;
    background: var(--surface);
}

.privacy-section details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.privacy-section summary {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 900;
}

.privacy-content {
    padding: 0 20px 20px;
    color: var(--muted);
}

.privacy-content p {
    margin-bottom: 12px;
}

.site-footer {
    padding: 30px 0;
    background: #092f38;
    color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
    margin: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand img {
    width: 132px;
    height: auto;
    border-radius: 4px;
    background: #000000;
    flex: 0 0 auto;
}

@media (max-width: 980px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-grid,
    .profile-grid,
    .contact-grid,
    .intro-grid,
    .seo-grid,
    .footer-grid,
    .reverse {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 78px;
    }

    .site-header {
        padding: 10px 18px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 12px;
    }

    .hero {
        min-height: 720px;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(11, 63, 74, 0.92) 0%, rgba(11, 63, 74, 0.78) 58%, rgba(11, 63, 74, 0.24) 100%);
    }

    .hero-overlay {
        align-items: flex-start;
        padding-top: 76px;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .section {
        padding: 64px 0;
    }

    .service-grid,
    .seo-list {
        grid-template-columns: 1fr;
    }

    .timeline div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 460px) {
    .container,
    .hero-overlay {
        width: min(100% - 28px, 1160px);
    }

    .brand-logo {
        width: 116px;
    }

    .brand small {
        display: none;
    }

    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions,
    .contact-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .service-card,
    .profile-card,
    .contact-form {
        padding: 20px;
    }
}
