*, *::before, *::after { box-sizing: border-box; }

:root {
    --ink: #102033;
    --muted: #617082;
    --line: #dfe8e3;
    --paper: #ffffff;
    --wash: #f4f8f3;
    --green: #287a48;
    --green-strong: #155934;
    --green-soft: #e6f4ea;
    --blue: #19446f;
    --gold: #d89b29;
    --shadow: 0 24px 70px rgba(16, 32, 51, .15);
    --shadow-soft: 0 16px 42px rgba(16, 32, 51, .10);
    --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(16, 32, 51, .035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(16, 32, 51, .035) 1px, transparent 1px),
        var(--paper);
    background-size: 84px 84px;
    font-family: Ubuntu, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.topbar {
    background: linear-gradient(90deg, var(--ink), #173a5c 54%, var(--green-strong));
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
}

.topbar-inner, .nav-inner, .section-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-list {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(223, 232, 227, .85);
    backdrop-filter: blur(18px);
}

.nav-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: auto;
    height: 52px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .91rem;
    font-weight: 800;
}

.nav-links a {
    position: relative;
    color: #27384a;
    text-decoration: none;
}

.nav-links a:hover, .nav-links a.active { color: var(--green); }

.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: .92rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: var(--green);
    color: #fff !important;
}

.btn-primary:hover { background: var(--green-strong); }

.btn-outline {
    color: var(--green-strong);
    border-color: #bad8c3;
    background: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--ink) !important;
    border-color: rgba(255,255,255,.65);
}

.page-hero {
    position: relative;
    min-height: 440px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 18%, rgba(216, 155, 41, .36), transparent 25%),
        linear-gradient(118deg, rgba(8, 20, 34, .96), rgba(12, 31, 49, .82) 48%, rgba(21, 89, 52, .56)),
        var(--hero-image) center / cover;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .46;
}

.page-hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 84px 0 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #d6f1df;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--gold);
}

h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(2.65rem, 5.8vw, 5.6rem);
    line-height: .96;
    font-weight: 900;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 24px 52px rgba(0, 0, 0, .26);
}

.page-hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
    line-height: 1.75;
}

section { padding: 92px 0; }

.section-head {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.section-head::before {
    content: "";
    position: absolute;
    left: -20px;
    top: -12px;
    width: 52px;
    height: 52px;
    border-left: 2px solid rgba(216, 155, 41, .55);
    border-bottom: 2px solid rgba(40, 122, 72, .32);
    transform: rotate(-18deg);
    pointer-events: none;
}

.section-head h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2rem, 3.7vw, 3.35rem);
    line-height: 1.03;
    letter-spacing: 0;
}

.section-head p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    position: relative;
    min-height: 230px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,243,.76));
    box-shadow: 0 18px 46px rgba(16, 32, 51, .08);
}

.feature-card::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green), var(--gold));
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.28rem;
}

.feature-card p, .feature-card li {
    color: var(--muted);
    line-height: 1.65;
}

.feature-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-card li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 999px;
    background: var(--gold);
}

.dark-band {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.045) 1px, transparent 1px),
        radial-gradient(circle at 18% 0%, rgba(216,155,41,.24), transparent 26%),
        #071727;
    background-size: 84px 84px, 84px 84px, auto, auto;
}

.dark-band .section-head p { color: rgba(255,255,255,.68); }
.dark-band .feature-card {
    color: #fff;
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.075);
}
.dark-band .feature-card p, .dark-band .feature-card li { color: rgba(255,255,255,.72); }

.via-note {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: .78rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
}

.dark-band .via-note { color: rgba(255,255,255,.55); }

.analysis-showcase {
    padding: 54px 0 76px;
    background:
        linear-gradient(180deg, #071727 0 64%, transparent 64%),
        linear-gradient(90deg, rgba(16, 32, 51, .035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(16, 32, 51, .035) 1px, transparent 1px),
        #fff;
    background-size: auto, 84px 84px, 84px 84px, auto;
}

.analysis-panel {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    color: #fff;
    background:
        radial-gradient(circle at 94% 8%, rgba(216, 155, 41, .28), transparent 24%),
        linear-gradient(135deg, #071727, #102033 62%, #155934);
    box-shadow: var(--shadow);
}

.analysis-panel-copy {
    padding: 22px 18px;
}

.analysis-panel-copy h2 {
    margin: 0;
    max-width: 470px;
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    line-height: 1.02;
}

.analysis-panel-copy p {
    margin: 18px 0 0;
    max-width: 420px;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
}

.analysis-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.analysis-panel-grid article {
    min-height: 236px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--radius);
    background: rgba(255,255,255,.075);
}

.analysis-panel-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 48px;
    border-radius: 999px;
    color: #102033;
    background: #d89b29;
    font-weight: 900;
}

.analysis-panel-grid h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.18rem;
}

.analysis-panel-grid p {
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.58;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 44px;
    align-items: center;
}

.photo-panel {
    min-height: 460px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--image) center / cover;
    box-shadow: var(--shadow);
}

.contact-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    color: #fff;
    background: linear-gradient(135deg, var(--green-strong), #123955 74%);
    box-shadow: var(--shadow);
}

.contact-copy { padding: 48px; }
.contact-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}
.contact-copy p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
}
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.btn-whatsapp {
    background: #25d366;
    color: #06301a !important;
}

.btn-whatsapp:hover { background: #1eb455; }

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}
.contact-list a, .contact-list span {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}
.contact-image {
    min-height: 420px;
    background:
        linear-gradient(135deg, rgba(16,32,51,.15), rgba(16,32,51,.58)),
        url("/images/aam/lab-team.jpg") center / cover;
}

footer {
    padding: 34px 0;
    color: rgba(255,255,255,.68);
    background: var(--ink);
}

.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: .86rem;
}

.footer-inner a {
    color: #c7f0d3;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 980px) {
    .nav-links { display: none; }
    .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .contact-band { grid-template-columns: 1fr; }
    .analysis-panel { grid-template-columns: 1fr; }
    .analysis-panel-grid { grid-template-columns: 1fr; }
    .analysis-panel-grid article { min-height: auto; }
    .analysis-panel-grid span { margin-bottom: 26px; }
}

@media (max-width: 680px) {
    .topbar { display: none; }
    .brand img { height: 40px; }
    .page-hero-inner { padding: 70px 0 58px; }
    h1 { font-size: clamp(2.45rem, 12vw, 3.6rem); }
    section { padding: 64px 0; }
    .section-head { display: block; }
    .section-head::before { left: -10px; }
    .section-head p { margin-top: 16px; }
    .content-grid { grid-template-columns: 1fr; }
    .analysis-showcase { padding: 38px 0 58px; }
    .analysis-panel { margin-top: 0; padding: 18px; }
    .analysis-panel-copy { padding: 12px 8px; }
    .photo-panel { min-height: 320px; }
    .contact-copy { padding: 32px 24px; }
    .contact-image { min-height: 260px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
