/* ==================================================
   AEM WORKS
   Main stylesheet
   ================================================== */


/* ---------- DESIGN VARIABLES ---------- */

:root {
    --navy-950: #07111f;
    --navy-900: #0f172a;
    --navy-800: #16233b;
    --navy-700: #1e3a5f;

    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;

    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --white: #ffffff;

    --container-width: 1180px;
    --section-padding: 104px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 34px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 24px 60px rgba(2, 8, 23, 0.18);

    --transition: 180ms ease;
}


/* ---------- RESET ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--white);
    color: var(--slate-700);
    font-family:
        "Segoe UI",
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

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

h1,
h2,
h3 {
    color: var(--slate-900);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.25rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1.25rem;
}

section[id] {
    scroll-margin-top: 90px;
}


/* ---------- ACCESSIBILITY ---------- */

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;
    display: inline-block;
    padding: 12px 18px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--white);
    color: var(--navy-900);
    font-weight: 700;
    text-decoration: none;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 4px;
}


/* ---------- SHARED LAYOUT ---------- */

.container {
    width: min(calc(100% - 48px), var(--container-width));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-padding);
}

.section-label,
.eyebrow {
    margin-bottom: 18px;
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 20px;
}

.section-heading > p:last-child {
    max-width: 660px;
    margin: 0 auto;
    color: var(--slate-600);
    font-size: 1.08rem;
}


/* ---------- BUTTONS ---------- */

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        transform var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.button-primary:hover {
    background: var(--blue-700);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

.button-outline {
    border-color: var(--slate-300);
    background: var(--white);
    color: var(--slate-800);
}

.button-outline:hover {
    border-color: var(--blue-600);
    color: var(--blue-700);
}

.button-full {
    width: 100%;
}


/* ---------- HEADER ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(203, 213, 225, 0.7);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.header-container {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--navy-900);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: var(--blue-600);
    color: var(--white);
    font-size: 1rem;
    line-height: 1;
}

.logo-text {
    font-size: 1.1rem;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-block;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--slate-700);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
    transition:
        color var(--transition),
        background-color var(--transition);
}

.site-nav a:hover {
    background: var(--slate-100);
    color: var(--blue-700);
}

.site-nav .nav-contact {
    margin-left: 4px;
    padding-inline: 18px;
    background: var(--navy-900);
    color: var(--white);
}

.site-nav .nav-contact:hover {
    background: var(--blue-700);
    color: var(--white);
}


/* ---------- HERO ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: 110px;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(59, 130, 246, 0.25),
            transparent 34%
        ),
        radial-gradient(
            circle at 5% 90%,
            rgba(37, 99, 235, 0.14),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--navy-950),
            var(--navy-900) 55%,
            #132c55
        );
}

.hero::after {
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 80px;
}

.hero-content {
    max-width: 760px;
}

.hero .eyebrow {
    color: #93c5fd;
}

.hero h1 {
    margin-bottom: 26px;
    color: var(--white);
}

.hero h1 span {
    color: #60a5fa;
}

.hero-description {
    max-width: 690px;
    margin-bottom: 34px;
    color: var(--slate-300);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-panel {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.hero-panel-label {
    margin-bottom: 24px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.value-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.value-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding-block: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.value-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.value-list li:last-child {
    padding-bottom: 0;
}

.value-number {
    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 800;
}

.value-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--white);
    font-size: 1rem;
}

.value-list p {
    margin: 0;
    color: var(--slate-300);
    font-size: 0.91rem;
    line-height: 1.5;
}


/* ---------- ABOUT ---------- */

.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 90px;
}

.about-grid h2 {
    max-width: 500px;
    margin-bottom: 0;
}

.about-copy {
    max-width: 700px;
}

.about-copy p {
    color: var(--slate-600);
    font-size: 1.08rem;
}

.about-copy p:last-child {
    margin-bottom: 0;
}


/* ---------- SERVICES ---------- */

.services-section {
    background: var(--slate-50);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-100);
    box-shadow: var(--shadow-md);
}

.card-number {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 1.45rem;
}

.service-card > p {
    color: var(--slate-600);
}

.service-card ul {
    margin: 24px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--slate-200);
    list-style: none;
}

.service-card li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: var(--slate-700);
    font-size: 0.95rem;
}

.service-card li::before {
    position: absolute;
    top: 15px;
    left: 1px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-600);
    content: "";
}


/* ---------- APPROACH ---------- */

.approach-section {
    background:
        linear-gradient(
            135deg,
            var(--navy-950),
            var(--navy-900)
        );
}

.section-heading-light h2 {
    color: var(--white);
}

.section-heading-light > p:last-child {
    color: var(--slate-300);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.approach-step {
    min-height: 300px;
    padding: 36px 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.approach-step:first-child {
    border-left: 0;
}

.approach-step > span {
    display: inline-block;
    margin-bottom: 56px;
    color: #60a5fa;
    font-size: 0.82rem;
    font-weight: 800;
}

.approach-step h3 {
    margin-bottom: 16px;
    color: var(--white);
}

.approach-step p {
    margin-bottom: 0;
    color: var(--slate-300);
    font-size: 0.96rem;
}


/* ---------- IMPACT ---------- */

.impact-section {
    background: var(--white);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 78px;
}

.metric {
    min-height: 190px;
    padding: 30px 24px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--slate-50);
    text-align: center;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.metric:hover {
    transform: translateY(-4px);
    border-color: var(--blue-100);
    box-shadow: var(--shadow-sm);
}

.metric strong {
    display: block;
    margin-bottom: 14px;
    color: var(--blue-700);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.2;
}

.metric p {
    margin-bottom: 0;
    color: var(--slate-600);
    font-size: 0.93rem;
    line-height: 1.5;
}

.accomplishments-heading {
    max-width: 900px;
    margin: 0 auto 24px;
}

.accomplishments-heading h3 {
    margin-bottom: 0;
    font-size: 1.7rem;
}

.accomplishment-list {
    display: grid;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    gap: 14px;
    list-style: none;
}

.accomplishment-list li {
    position: relative;
    padding: 22px 24px 22px 62px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--slate-700);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}

.accomplishment-list li::before {
    position: absolute;
    top: 23px;
    left: 24px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-700);
    content: "✓";
    font-size: 0.8rem;
    font-weight: 900;
}


/* ---------- CONTACT ---------- */

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

.contact-grid {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.7fr);
    gap: 90px;
}

.contact-copy h2 {
    max-width: 700px;
    margin-bottom: 24px;
}

.contact-copy > p:last-child {
    max-width: 660px;
    color: var(--slate-600);
    font-size: 1.07rem;
}

.contact-card {
    padding: 38px;
    border-radius: var(--radius-lg);
    background: var(--navy-900);
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    margin-bottom: 13px;
    color: var(--white);
    font-size: 1.55rem;
}

.contact-card > p {
    color: var(--slate-300);
}

.contact-card .button {
    margin-top: 12px;
}

.contact-note {
    margin: 24px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--slate-400) !important;
    font-size: 0.83rem;
    line-height: 1.5;
}


/* ---------- FOOTER ---------- */

.site-footer {
    padding-block: 56px 34px;
    background: var(--navy-950);
    color: var(--slate-400);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 17px;
    color: var(--white);
}

.footer-container > div:first-child > p {
    max-width: 480px;
    margin-bottom: 0;
    color: var(--slate-400);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 22px;
}

.footer-links a {
    color: var(--slate-300);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    grid-column: 1 / -1;
    margin: 22px 0 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--slate-500);
    font-size: 0.82rem;
}


/* ---------- TABLET RESPONSIVE DESIGN ---------- */

@media (max-width: 1000px) {
    :root {
        --section-padding: 84px;
    }

    .hero {
        padding-block: 90px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-panel {
        max-width: 720px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .about-grid h2 {
        max-width: 760px;
    }

    .approach-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .approach-step {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .approach-step:nth-child(1),
    .approach-step:nth-child(2) {
        border-top: 0;
    }

    .approach-step:nth-child(odd) {
        border-left: 0;
    }

    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .contact-card {
        max-width: 620px;
    }
}


/* ---------- MOBILE NAVIGATION AND LAYOUT ---------- */

@media (max-width: 760px) {
    :root {
        --section-padding: 70px;
    }

    .container {
        width: min(calc(100% - 32px), var(--container-width));
    }

    html {
        scroll-padding-top: 130px;
    }

    section[id] {
        scroll-margin-top: 130px;
    }

    .header-container {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding-block: 14px;
        gap: 11px;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .site-nav ul {
        width: max-content;
        min-width: 100%;
    }

    .site-nav a {
        padding: 8px 10px;
        font-size: 0.86rem;
    }

    .site-nav .nav-contact {
        margin-left: 0;
        padding-inline: 13px;
    }

    .hero {
        padding-block: 70px;
    }

    .hero-container {
        gap: 38px;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-panel {
        padding: 26px 22px;
    }

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

    .service-card {
        padding: 30px 25px;
    }

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

    .approach-step {
        min-height: auto;
        padding: 31px 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-left: 0;
    }

    .approach-step:nth-child(2) {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .approach-step:first-child {
        border-top: 0;
    }

    .approach-step > span {
        margin-bottom: 26px;
    }

    .metrics {
        grid-template-columns: 1fr;
        margin-bottom: 58px;
    }

    .metric {
        min-height: auto;
    }

    .accomplishment-list li {
        padding: 54px 20px 22px;
    }

    .accomplishment-list li::before {
        top: 20px;
        left: 20px;
    }

    .contact-card {
        padding: 30px 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .copyright {
        grid-column: auto;
    }
}


/* ---------- SMALL MOBILE DEVICES ---------- */

@media (max-width: 430px) {
    .container {
        width: min(calc(100% - 24px), var(--container-width));
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .site-nav ul {
        gap: 2px;
    }

    .site-nav a {
        padding-inline: 8px;
        font-size: 0.8rem;
    }

    .hero {
        padding-block: 58px;
    }

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

    .hero-panel {
        border-radius: var(--radius-md);
    }

    .section-heading {
        margin-bottom: 40px;
        text-align: left;
    }

    .section-heading > p:last-child {
        margin-left: 0;
    }

    .service-card {
        border-radius: var(--radius-sm);
    }
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ---------- PRINT ---------- */

@media print {
    .site-header,
    .hero-actions,
    .footer-links,
    .skip-link {
        display: none;
    }

    .hero,
    .approach-section,
    .contact-card,
    .site-footer {
        background: var(--white);
        color: var(--slate-900);
        box-shadow: none;
    }

    .hero h1,
    .approach-step h3,
    .contact-card h3,
    .footer-logo {
        color: var(--slate-900);
    }

    .hero-description,
    .value-list p,
    .approach-step p,
    .contact-card p {
        color: var(--slate-700);
    }

    .section {
        padding-block: 40px;
    }
}
