:root {
    --ink: #0f1720;
    --slate: #4a5560;
    --line: #dfe4e8;
    --paper: #f7f8f9;
    --white: #ffffff;
    /* Logo palette: icy steel blue accent, silver, deep navy */
    --accent: #2f6d97;
    --accent-soft: #e4eef5;
    --accent-dark: #1f4e6f;
    --navy: #0d1b2a;
    --navy-2: #16324a;
    --silver: #c7d6e2;
    --board: #1b6b4a;
    --board-soft: #e6f0ea;
    --radius: 10px;
    --maxw: 1120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

header.nav {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 8px 0;
}

/* Logomark + wordmark lockup */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    letter-spacing: .04em;
    font-size: 18px;
    text-decoration: none;
    color: var(--ink);
    white-space: nowrap;
}

.logo .brandmark {
    height: 46px;
    width: auto;
    display: block;
}

.logo b {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: inherit;
    margin: 0;
    padding: 0;
}

.logo-text {
    display: inline-block;
    letter-spacing: .04em;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--slate);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
}

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

.hero {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 62px 0 66px;
}

/* Navy hero banner variant (homepage) */
.hero.hero-navy {
    background:
        radial-gradient(1200px 500px at 15% -10%, rgba(47,109,151,0.35), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    border-bottom: 1px solid var(--navy-2);
    color: #eaf2f8;
}

.hero.hero-navy h1 {
    color: #ffffff;
}

.hero.hero-navy p.lede {
    color: #b9cddd;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hero p.lede {
    color: var(--slate);
    font-size: 17px;
    margin-top: 18px;
    max-width: 48ch;
}

.cta,
.cta-button {
    display: inline-block;
    margin-top: 26px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: var(--radius);
    letter-spacing: .02em;
}

.cta:hover,
.cta-button:hover {
    background: var(--accent-dark);
}

.media {
    border-radius: var(--radius);
    overflow: hidden;
    background: #eef1f3;
}

.media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media {
    aspect-ratio: 4 / 3;
}

section {
    padding: 58px 0;
}

.sec-head {
    text-align: center;
    margin-bottom: 40px;
}

.sec-head h2 {
    font-size: 27px;
    letter-spacing: -0.01em;
    font-weight: 800;
}

.sec-head p {
    color: var(--slate);
    margin-top: 8px;
    font-size: 15px;
}

.process {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 6px;
}

.step {
    text-align: center;
    padding: 4px 8px;
}

.step .ico {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step .ico svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step h4 {
    font-size: 15.5px;
    font-weight: 700;
}

.step p {
    font-size: 13px;
    color: var(--slate);
    margin-top: 4px;
}

.arrow {
    align-self: center;
    color: #c2ccd3;
    padding-top: 18px;
}

.arrow svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card .thumb {
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow: hidden;
}

.card .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .body {
    padding: 20px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 17px;
    font-weight: 700;
}

.card p {
    font-size: 13.5px;
    color: var(--slate);
    margin-top: 8px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.16);
}

.card-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.trust {
    background: var(--board-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid #cfe0d6;
    border-radius: 40px;
    padding: 10px 20px 10px 14px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .02em;
    color: var(--ink);
}

.badge .dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--board-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge .dot svg {
    width: 16px;
    height: 16px;
    stroke: var(--board);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust .note {
    text-align: center;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--slate);
}

footer {
    background: var(--navy);
    color: #b9cddd;
    padding: 40px 0 44px;
    font-size: 14px;
}

footer .frow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

footer .flogo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    color: #fff;
    font-size: 16px;
}

footer .flogo .brandmark {
    height: 48px;
    width: auto;
    display: block;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.footer-meta {
    width: 100%;
    font-size: 12px;
    opacity: .55;
}

.page-header {
    background:
        radial-gradient(900px 400px at 20% -20%, rgba(47,109,151,0.4), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--silver);
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.main-content {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3rem 28px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-detail,
.info-card,
.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(13, 27, 42, 0.08);
}

.service-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-detail h3,
.info-card h2,
.form-card h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-detail p,
.info-card p,
.form-card p,
.content-section p,
.value-card p,
.team-section p,
.contact-list li,
.form-card label {
    color: var(--slate);
    line-height: 1.8;
}

.service-detail ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
    flex: 1;
}

.service-detail .cta-button {
    margin-top: auto;
    display: inline-block;
    width: 100%;
    text-align: center;
    align-self: stretch;
}

.service-detail li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-detail li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--paper);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.value-card h3 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.team-section {
    background: var(--paper);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.team-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.contact-list {
    list-style: none;
    margin-top: 1rem;
}

.contact-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef2f7;
}

.contact-list strong {
    color: var(--ink);
}

.form-card form {
    display: grid;
    gap: 1rem;
}

.form-card label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 109, 151, 0.18);
}

.form-card textarea {
    min-height: 150px;
    resize: vertical;
}

.form-card button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-card button:hover {
    background: var(--accent-dark);
}

.success-message,
.error-message,
.form-error,
.required {
    font-weight: 600;
}

.success-message {
    color: #2e7d32;
}

.error-message,
.form-error,
.required {
    color: #c62828;
}

.form-error {
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

.hidden {
    display: none !important;
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .strip {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-inner {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        gap: 12px;
    }

    nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .values-grid,
    .services-list,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Make step blocks behave like service cards */
.step {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect similar to .card-link */
.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Remove link styling from text inside step */
.step h4,
.step p {
    text-decoration: none;
    color: inherit;
}

/* Ensure icons inherit color */
.step svg {
    fill: currentColor;
}

/* Cursor pointer for clickable steps */
a.step {
    cursor: pointer;
}
