@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@400;500;700&family=Prata&display=swap');

:root {
    --ink: #0f1c22;
    --ink-soft: #233842;
    --mist: #e8ebe6;
    --canvas: #f3efe7;
    --sand: #d6c3a7;
    --terracotta: #b14f2f;
    --terracotta-deep: #8d3e26;
    --evergreen: #2e5240;
    --gold: #cca86a;
    --surface: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.38);
    --shadow-soft: 0 14px 34px rgba(13, 24, 30, 0.18);
    --shadow-strong: 0 30px 60px rgba(12, 20, 25, 0.26);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-family: 'Alegreya Sans', sans-serif;
    background:
        radial-gradient(circle at 18% 14%, rgba(204, 168, 106, 0.28), transparent 36%),
        radial-gradient(circle at 88% 82%, rgba(177, 79, 47, 0.16), transparent 38%),
        linear-gradient(160deg, #f9f6ef 0%, #f2ede3 42%, #e8e0d3 100%);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.16;
    background-image:
        radial-gradient(rgba(15, 28, 34, 0.16) 0.6px, transparent 0.6px),
        radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.6px);
    background-size: 4px 4px, 5px 5px;
    background-position: 0 0, 1px 1px;
}

h1,
h2,
h3,
h4,
h5,
.navbar .nav-link {
    font-family: 'Prata', serif;
    letter-spacing: 0.02em;
}

.navbar {
    padding: 0.6rem 0;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar.scrolled {
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    box-shadow: 0 8px 22px rgba(14, 24, 30, 0.2);
}

.navbar-logo img {
    width: 35vw;
    max-width: none;
    transition: transform 0.35s ease, width 0.35s ease;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.navbar.scrolled .navbar-logo img {
    width: clamp(220px, 18vw, 250px);
    transform: translateY(-1px);
}

.nav-link {
    width: 170px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
    transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #ffe0b9;
    text-shadow: 0 0 26px rgba(255, 214, 154, 0.85);
    transform: translateY(-2px);
}

.hero-section {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background:
        linear-gradient(112deg, rgba(12, 25, 34, 0.86), rgba(24, 52, 63, 0.62) 42%, rgba(70, 44, 27, 0.58) 100%),
        url('/images/optimized/bg/hero.webp') center 30% / cover no-repeat;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(230, 171, 90, 0.3), transparent 34%),
        radial-gradient(circle at 14% 78%, rgba(30, 83, 66, 0.28), transparent 34%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 980px;
    padding-top: clamp(210px, 30vh, 300px);
    padding-bottom: clamp(40px, 8vh, 88px);
}

.hero-content {
    isolation: isolate;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: #f3d39b;
    margin-bottom: 1rem;
    animation: riseIn 900ms ease forwards;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 1.1;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.42);
    max-width: 15ch;
    margin: 0 auto;
    letter-spacing: 0.01em;
    animation: riseIn 1000ms ease 120ms forwards;
    opacity: 0;
}

.headline-accent {
    color: #f2d29d;
    text-shadow: 0 0 28px rgba(250, 205, 133, 0.35);
}

.hero-section .lead {
    font-size: clamp(1.05rem, 2.15vw, 1.46rem);
    color: #f6ece0;
    max-width: 56ch;
    margin: 1.3rem auto 2rem;
    animation: riseIn 1000ms ease 260ms forwards;
    opacity: 0;
}

.btn-v {
    background: linear-gradient(120deg, var(--terracotta) 0%, var(--terracotta-deep) 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px;
    padding: 0.82rem 1.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    animation: riseIn 1000ms ease 380ms forwards;
    opacity: 0;
}

.btn-v:hover,
.btn-v:focus {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
    filter: saturate(1.1);
}

.about-section,
.services-section,
.proof-section,
.contact-section {
    padding: 84px 0;
    position: relative;
    z-index: 1;
}

.section-divider {
    width: min(1140px, 94%);
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(15, 28, 34, 0.24) 18%, rgba(177, 79, 47, 0.36) 52%, rgba(15, 28, 34, 0.24) 82%, transparent);
    position: relative;
}

.section-divider::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 1px solid rgba(177, 79, 47, 0.5);
    background: #f7f2e8;
    transform: rotate(45deg);
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -6px;
    margin-top: -6px;
}

.about-section {
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    inset: 20% 0 auto;
    height: 120px;
    background: repeating-linear-gradient(120deg, rgba(17, 42, 51, 0.05) 0 18px, rgba(17, 42, 51, 0.02) 18px 36px);
    z-index: -1;
}

.about-section h2,
.services-section h2,
.contact-section h2 {
    font-size: clamp(2.05rem, 4.5vw, 3.25rem);
    color: var(--ink);
    letter-spacing: 0.01em;
}

.about-section .lead,
.contact-section .lead {
    max-width: 66ch;
    margin: 1rem auto 0;
    color: var(--ink-soft);
    font-size: 1.2rem;
}

.parallax-section {
    position: relative;
    height: 56vh;
    min-height: 360px;
    background:
        linear-gradient(110deg, rgba(14, 22, 30, 0.72), rgba(28, 47, 39, 0.45)),
        url('/images/optimized/bg/pathways.webp') center / cover fixed;
}

.parallax-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 12, 15, 0.24), rgba(8, 12, 15, 0.58));
}

.parallax-overlay h2 {
    max-width: 18ch;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.services-section .row {
    row-gap: 1.4rem;
}

.service-card {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background: var(--surface);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    box-shadow: var(--shadow-soft);
    transition: transform 0.36s ease, box-shadow 0.36s ease, border-color 0.36s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-7px) rotate(-0.35deg);
    box-shadow: var(--shadow-strong);
    border-color: rgba(177, 79, 47, 0.45);
}

.service-card img {
    height: 260px;
    object-fit: cover;
    transition: transform 0.48s ease;
}

.service-card:hover img {
    transform: scale(1.06);
}

.card-body {
    padding: 1.5rem 1.4rem 1.6rem;
}

.card-title {
    color: var(--ink);
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
}

.card-text {
    color: #2e4752;
    font-size: 1.05rem;
}

.proof-section {
    background:
        radial-gradient(circle at 14% 16%, rgba(204, 168, 106, 0.22), transparent 34%),
        radial-gradient(circle at 90% 72%, rgba(46, 82, 64, 0.18), transparent 36%),
        linear-gradient(155deg, #17303b 0%, #10242d 46%, #1a2f37 100%);
    color: #f4ebdb;
}

.proof-section h2 {
    color: #fef4e2;
}

.stats-row {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.stat-chip {
    border: 1px solid rgba(252, 219, 160, 0.28);
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    padding: 0.95rem 0.8rem;
    text-align: center;
}

.stat-value {
    margin: 0;
    font-family: 'Prata', serif;
    color: #ffe4b6;
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    line-height: 1;
}

.stat-value::after {
    content: '+';
    margin-left: 0.05em;
}

.stat-label {
    margin: 0.35rem 0 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f9d7a0;
}

.testimonial-card {
    height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(252, 219, 160, 0.24);
    background: rgba(255, 255, 255, 0.06);
    padding: 1.4rem 1.2rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.testimonial-card .quote {
    font-size: 1.06rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.testimonial-card .client {
    margin: 0;
    color: #efc889;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.83rem;
    font-weight: 700;
}

.trust-badges {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.68rem;
}

.trust-pill {
    border-radius: 999px;
    padding: 0.48rem 0.88rem;
    border: 1px solid rgba(252, 219, 160, 0.42);
    background: rgba(204, 168, 106, 0.08);
    color: #ffe8c1;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(241, 236, 225, 0.9)),
        url('/images/optimized/bg/concrete-stampedpath.webp') center / cover;
    border-top: 1px solid rgba(20, 29, 34, 0.08);
}

.contact-section .container {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(17, 29, 34, 0.1);
    box-shadow: 0 20px 38px rgba(12, 19, 23, 0.18);
    border-radius: 22px;
    padding: 2.1rem;
}

.text-success {
    color: var(--evergreen) !important;
}

.form-label {
    color: #18303a;
    font-weight: 700;
}

.form-control {
    border-radius: 11px;
    border: 1px solid rgba(17, 31, 37, 0.2);
    padding: 0.72rem 0.82rem;
}

.form-control:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 0.2rem rgba(177, 79, 47, 0.19);
}

.footer {
    background: #121f25 !important;
    letter-spacing: 0.05em;
}

.modal-content {
    border-radius: 18px;
    border: 1px solid rgba(12, 21, 26, 0.45);
    overflow: hidden;
    background: #0f1e25;
}

.modal-header {
    background: linear-gradient(130deg, #17313d 0%, #254a58 45%, #9a4d31 100%);
    color: #fff;
}

.modal-body {
    background: #0f1e25;
    padding: 0.9rem;
}

.gallery-shell {
    border-radius: 12px;
    overflow: hidden;
    background: #09141a;
}

.carousel-item img {
    max-height: 76vh;
    object-fit: cover;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    background-color: rgba(8, 12, 15, 0.78) !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .navbar-logo img {
        width: clamp(112px, 22vw, 186px);
    }

    .navbar.scrolled .navbar-logo img {
        width: clamp(94px, 17vw, 148px);
    }

    .nav-link {
        width: 130px;
        font-size: 0.82rem;
    }

    .parallax-section {
        background-attachment: scroll;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 86vh;
        padding-top: 50px;
    }

    .hero-section .container {
        padding-top: 142px;
    }

    .eyebrow {
        letter-spacing: 0.16em;
        font-size: 0.82rem;
    }

    .nav-link {
        width: auto;
        margin: 0 0.8rem !important;
        font-size: .5rem !important;
    }

    .navbar-logo img {
        width: clamp(100px, 40vw, 148px);
    }

    .navbar.scrolled .navbar-logo img {
        width: clamp(88px, 23vw, 128px);
    }

    .service-card img {
        height: 220px;
    }

    .contact-section .container {
        padding: 1.35rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .navbar .container-fluid {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }

    .nav-link {
        font-size: 0.74rem;
        letter-spacing: 0.05em;
    }

    .hero-section .lead {
        font-size: 1rem;
    }
}