:root {
    --graphite: #171918;
    --graphite-soft: #222524;
    --ink: #202322;
    --muted: #666b69;
    --line: #dfe2e0;
    --paper: #ffffff;
    --wash: #f4f6f5;
    --teal: #008080;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(var(--max-width), calc(100% - 48px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--graphite);
    text-decoration: none;
}

.logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.company-name {
    font-size: 1rem;
    font-weight: 800;
}

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

nav a {
    color: #565b59;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease;
}

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

nav a.active:not(.nav-contact) {
    text-decoration: underline;
    text-decoration-color: var(--teal);
    text-underline-offset: 7px;
}

nav .nav-contact {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    background: var(--graphite);
    color: #fff;
}

nav .nav-contact:hover,
nav .nav-contact.active {
    color: #fff;
    background: var(--teal);
}

.nav-toggle {
    display: none;
}

.hero-section {
    width: min(var(--max-width), calc(100% - 48px));
    min-height: calc(100vh - 120px);
    margin: 0 auto;
    padding: clamp(72px, 10vw, 130px) 0 70px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: clamp(56px, 9vw, 130px);
    border-bottom: 1px solid var(--line);
}

.hero-overlay {
    max-width: 790px;
}

.eyebrow,
.section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 26px;
    height: 2px;
    background: var(--teal);
}

.hero-tagline {
    max-width: 780px;
    margin: 0;
    color: var(--graphite);
    font-size: clamp(3rem, 6.4vw, 6rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.98;
}

.hero-tagline em {
    color: var(--teal);
    font-style: normal;
}

.hero-sub {
    max-width: 650px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 38px;
}

.cta-btn,
.cta-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 50px;
    padding: 0 22px;
    background: var(--graphite);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}

.cta-btn:hover,
.cta-call-btn:hover {
    background: var(--teal);
    transform: translateY(-2px);
}

.hero-link {
    color: var(--graphite);
    font-size: 0.88rem;
    font-weight: 700;
    text-underline-offset: 5px;
}

.hero-link:hover {
    color: var(--teal);
}

.hero-proof {
    padding-top: 24px;
    border-top: 2px solid var(--graphite);
}

.hero-proof > p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-proof ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-proof li {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-proof li span {
    color: var(--teal);
    font-size: 0.72rem;
}

.intro-text,
main > section:not(.hero-section) {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}

.intro-text {
    padding: 100px 0 84px;
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.5fr);
    gap: clamp(40px, 8vw, 110px);
    border-bottom: 1px solid var(--line);
}

.intro-text::before {
    content: "What we do";
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-text p {
    grid-column: 2;
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.intro-text p:first-of-type {
    color: var(--graphite);
    font-size: clamp(1.4rem, 2.4vw, 2.15rem);
    font-weight: 600;
    line-height: 1.35;
}

main {
    max-width: none;
    margin: 0;
    padding: 0;
}

.card-section,
.who-section,
.about-section,
.contact-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--line);
}

.card-section > h2,
.about-content h2 {
    max-width: 720px;
    margin: 0 0 48px;
    color: var(--graphite);
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 600;
    line-height: 1.12;
}

.card-section > h2::before {
    content: "Capabilities";
    display: block;
    margin-bottom: 20px;
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    border-top: 1px solid var(--graphite);
}

.card {
    position: relative;
    min-height: 310px;
    padding: 36px;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    transition: background 220ms ease;
}

.card:nth-child(even) {
    border-right: 0;
}

.card::before {
    content: "0" counter(service);
    display: block;
    margin-bottom: 58px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.card-grid {
    counter-reset: service;
}

.card {
    counter-increment: service;
}

.card:hover {
    background: var(--wash);
}

.card-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    color: var(--teal);
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor !important;
}

.card h3 {
    max-width: 340px;
    margin: 0 0 14px;
    color: var(--graphite);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
}

.card p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.card:last-child {
    grid-column: 1 / -1;
    min-height: 240px;
    border-right: 0;
}

.who-intro,
.why-intro {
    max-width: 800px;
    margin: 0 0 50px;
    color: var(--graphite);
    font-size: clamp(1.3rem, 2.3vw, 2rem);
    font-weight: 600;
    line-height: 1.45;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--graphite);
}

.who-card {
    padding: 40px 40px 18px 0;
}

.who-card + .who-card {
    padding-left: 40px;
    border-left: 1px solid var(--line);
}

.who-card h3 {
    margin: 0 0 16px;
    color: var(--graphite);
    font-size: 1.4rem;
}

.who-card p,
.about-content p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.why-section {
    width: 100% !important;
    padding: 100px max(24px, calc((100% - var(--max-width)) / 2));
    background: var(--graphite);
    color: #fff;
}

.why-intro {
    color: #fff;
}

.why-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #434745;
}

.why-item {
    padding: 38px 30px 8px 0;
}

.why-item + .why-item {
    padding-left: 30px;
    border-left: 1px solid #434745;
}

.why-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 50px;
    color: #50b5b5;
}

.why-icon svg {
    width: 100%;
    height: 100%;
}

.why-item h4 {
    margin: 0 0 12px;
    font-size: 1.12rem;
}

.why-item p {
    margin: 0;
    color: #aeb3b1;
    font-size: 0.9rem;
}

.project-cta {
    padding: 76px 0 !important;
}

.project-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.project-cta h3 {
    margin: 0 0 12px;
    color: var(--graphite);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
}

.project-cta p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
}

.cta-call-btn {
    flex: 0 0 auto;
}

.about-content {
    max-width: 900px;
}

.about-content p:first-of-type {
    color: var(--graphite);
    font-size: 1.18rem;
}

.contact-section {
    border-bottom: 0;
}

.contact-section .about-content {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 70px;
}

.contact-section .about-content h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.contact-section .about-content p {
    margin: 0;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.contact-section a {
    color: var(--teal);
    font-weight: 700;
    text-underline-offset: 4px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.contact-form .hidden-field {
    position: absolute;
    left: -9999px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    color: var(--graphite);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--wash);
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
    resize: vertical;
    transition: border-color 180ms ease;
}

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

.contact-submit {
    align-self: flex-start;
    border: 0;
    cursor: pointer;
}

.form-status {
    margin: 0;
    min-height: 1.2em;
    font-size: 0.85rem;
    font-weight: 600;
}

.form-status.success {
    color: var(--teal);
}

.form-status.error {
    color: #c0392b;
}

.footer {
    width: 100%;
    margin: 0;
    padding: 30px max(24px, calc((100% - var(--max-width)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--graphite);
    color: #9ba09e;
    font-size: 0.8rem;
}

.footer a {
    color: #9ba09e;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 180ms ease, background 180ms ease;
}

.whatsapp-float:hover {
    background: #1ebe5b;
    transform: translateY(-3px);
}

.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 820px) {
    .header-inner,
    .hero-section,
    .intro-text,
    main > section:not(.hero-section) {
        width: min(100% - 32px, var(--max-width));
    }

    .nav-toggle {
        display: flex;
        width: 28px;
        height: 22px;
        padding: 2px 0;
        flex-direction: column;
        justify-content: space-between;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 100%;
        height: 2px;
        background: var(--graphite);
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    #main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 18px 16px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    #main-nav.open {
        display: block;
    }

    #main-nav ul {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    #main-nav a {
        display: block;
        padding: 12px 8px;
    }

    nav .nav-contact {
        margin-top: 8px;
        padding: 0 16px !important;
    }

    .hero-section {
        min-height: auto;
        padding: 76px 0 56px;
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .hero-tagline {
        font-size: clamp(2.65rem, 13vw, 4.6rem);
    }

    .intro-text {
        padding: 72px 0;
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .intro-text p {
        grid-column: 1;
    }

    .card-section,
    .who-section,
    .about-section,
    .contact-section {
        padding: 72px 0;
    }

    .why-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .why-list {
        grid-template-columns: 1fr;
    }

    .why-item,
    .why-item + .why-item {
        padding: 30px 0;
        border-left: 0;
        border-bottom: 1px solid #434745;
    }

    .why-icon {
        margin-bottom: 24px;
    }

    .project-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-section .about-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        min-height: 64px;
    }

    #main-nav {
        top: 64px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .hero-tagline {
        font-size: 2.75rem;
    }

    .hero-sub {
        margin-top: 24px;
    }

    .card-grid,
    .who-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .card:nth-child(even),
    .card:last-child {
        grid-column: auto;
        min-height: 0;
        padding: 28px 8px 38px;
        border-right: 0;
    }

    .card::before {
        margin-bottom: 35px;
    }

    .who-card,
    .who-card + .who-card {
        padding: 30px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .project-cta {
        padding: 56px 0 !important;
    }

    .cta-call-btn {
        width: 100%;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }
}
