/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:    #0f1b2d;
    --blue:    #1a6dff;
    --blue-dk: #0050cc;
    --teal:    #00c6a2;
    --gray-1:  #f5f7fa;
    --gray-2:  #e8ecf2;
    --gray-3:  #9aa5b8;
    --text:    #1c2b3a;
    --radius:  10px;
    --shadow:  0 4px 24px rgba(0,0,0,.08);
    --max-w:   1120px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: #fff;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Utilities ────────────────────────────────────────────── */
.container {
    width: min(100%, var(--max-w));
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.btn {
    display: inline-block;
    padding: .65rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s, color .2s, box-shadow .2s;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn--primary {
    background: var(--blue);
    color: #fff;
}
.btn--primary:hover { background: var(--blue-dk); }

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.45);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); }

.btn--sm { padding: .45rem 1rem; font-size: .875rem; }
.btn--full { width: 100%; text-align: center; }

.badge {
    display: inline-block;
    background: rgba(0,198,162,.15);
    color: var(--teal);
    border: 1px solid var(--teal);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    padding: .25rem .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15,27,45,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: .9rem;
}
.nav__logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: -.01em;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}
.nav__links a { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500; }
.nav__links a:hover { color: #fff; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #152843 60%, #0a2240 100%);
    padding: 6rem 0 5rem;
    color: #fff;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero__text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
}
.hero__text p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.78);
    margin-bottom: 2rem;
    max-width: 42ch;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__image img {
    border-radius: 50%;
    width: 320px;
    height: 320px;
    object-fit: cover;
    margin-inline: auto;
    object-position: calc(50% + 15px) center;
    border: 4px solid rgba(255,255,255,.12);
    box-shadow: 0 0 0 8px rgba(26,109,255,.12);
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section--alt { background: var(--gray-1); }

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}
.section__header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}
.section__header p { color: var(--gray-3); font-size: 1.05rem; }

/* ── About ────────────────────────────────────────────────── */
.about__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text p {
    color: #3a4a5c;
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}
.about__text p:first-child {
    font-size: 1.12rem;
    color: var(--text);
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.stat {
    background: #fff;
    border: 1.5px solid var(--gray-2);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.stat:hover { transform: translateX(4px); box-shadow: 0 6px 28px rgba(0,0,0,.1); }
.stat:nth-child(2) { border-left-color: var(--teal); }
.stat:nth-child(2) .stat__number { color: var(--teal); }
.stat:nth-child(3) { border-left-color: #a78bfa; }
.stat:nth-child(3) .stat__number { color: #a78bfa; }

.stat__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -.04em;
    min-width: 3.25rem;
    line-height: 1;
}
.stat__info { display: flex; flex-direction: column; gap: .15rem; }
.stat__label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
}
.stat__sub {
    font-size: .78rem;
    color: var(--gray-3);
}

.section__header--left { text-align: left; margin-bottom: 1.5rem; }

/* ── Services ─────────────────────────────────────────────── */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}
.card {
    background: #fff;
    border: 1px solid var(--gray-2);
    border-top: 3px solid var(--blue);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.services__grid .card:nth-child(2) { border-top-color: var(--teal); }
.services__grid .card:nth-child(3) { border-top-color: #a78bfa; }
.services__grid .card:nth-child(4) { border-top-color: #f59e0b; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.card p { color: var(--gray-3); font-size: .93rem; }

/* ── Portfolio ────────────────────────────────────────────── */
.empty-notice {
    text-align: center;
    color: var(--gray-3);
    font-size: 1.05rem;
    padding: 3rem;
}

/* Compact rows */
.port-rows { display: flex; flex-direction: column; gap: .6rem; }
.port-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--gray-2);
    border-radius: var(--radius);
    padding: 0 1.5rem 0 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.port-row:hover { transform: translateX(4px); box-shadow: 0 6px 28px rgba(0,0,0,.1); }
.port-row__badge {
    width: 4.5rem;
    align-self: stretch;
    background: linear-gradient(135deg, var(--navy), #1a3a6d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.45);
    font-weight: 800;
    font-size: 1.4rem;
    flex-shrink: 0;
    letter-spacing: -.02em;
}
.port-row__body { flex: 1; display: flex; flex-direction: column; gap: .1rem; padding: .9rem 0; }
.port-row__body strong { font-size: .95rem; font-weight: 700; color: var(--text); }
.port-row__body span { font-size: .85rem; color: var(--gray-3); }
.port-row__link { color: var(--blue); font-size: .875rem; font-weight: 600; flex-shrink: 0; }

/* ── Form notices ─────────────────────────────────────────── */
.form-notice {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: .95rem;
}
.form-notice--success {
    background: #edfaf5;
    border: 1.5px solid #34c78a;
    color: #1a6645;
}
.form-notice--error {
    background: #fef2f2;
    border: 1.5px solid #f87171;
    color: #991b1b;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-weight: 600; font-size: .9rem; }
.form-group input,
.form-group textarea {
    border: 1.5px solid var(--gray-2);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .15s;
    width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}
.form-group textarea { resize: vertical; }

.contact__info { display: flex; flex-direction: column; gap: 2rem; padding-top: .5rem; }
.contact__detail { display: flex; flex-direction: column; gap: .2rem; }
.contact__detail strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-3); }
.contact__detail a,
.contact__detail span { font-size: 1rem; font-weight: 500; }
.contact__detail a { color: var(--blue); }
.contact__detail a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.5);
    font-size: .875rem;
    padding: 1.75rem 0;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero__inner       { grid-template-columns: 1fr; text-align: center; }
    .hero__cta         { justify-content: center; }
    .hero__image       { order: -1; }
    .hero__image img   { width: 200px; height: 200px; }
    .hero__text p      { margin-inline: auto; }
    .about__grid       { grid-template-columns: 1fr; gap: 2rem; }
    .contact__inner    { grid-template-columns: 1fr; gap: 2.5rem; }
    .nav__links        { display: none; }
    .footer__inner     { flex-direction: column; text-align: center; }
}
