:root {
    --bg-top: #f4f2ef;
    --bg-bottom: #eceff2;
    --surface: #ffffff;
    --surface-soft: #f8fafb;
    --ink: #1f2a33;
    --ink-soft: #576674;

    --cedar-700: #835233;
    --cedar-600: #9b6540;
    --cedar-500: #b87b53;

    --steel-800: #22384d;
    --steel-700: #2c4a63;
    --steel-500: #4a6d8d;

    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;

    --shadow-soft: 0 14px 34px rgba(34, 56, 77, 0.11);
    --shadow-hover: 0 20px 38px rgba(34, 56, 77, 0.16);
    --shadow-cta: 0 16px 30px rgba(155, 101, 64, 0.28);

    --font-heading: 'Sora', 'Trebuchet MS', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.58;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

body::before {
    width: min(44vw, 460px);
    aspect-ratio: 1;
    right: -160px;
    top: -120px;
    background: radial-gradient(circle, rgba(74, 109, 141, 0.2) 0%, rgba(74, 109, 141, 0) 74%);
}

body::after {
    width: min(36vw, 360px);
    aspect-ratio: 1;
    left: -120px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(184, 123, 83, 0.2) 0%, rgba(184, 123, 83, 0) 74%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.14;
}

.container {
    width: min(1140px, 92vw);
    margin-inline: auto;
}

section {
    padding: clamp(4rem, 8vw, 5.8rem) 0;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.1rem;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--steel-800);
    margin-top: 0.75rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--steel-700);
    background: rgba(74, 109, 141, 0.14);
    border-radius: var(--radius-pill);
    padding: 0.33rem 0.85rem;
}

.grid {
    display: grid;
    gap: 1.05rem;
}

.bg-light {
    background: linear-gradient(180deg, #f0f4f7 0%, #ebf0f4 100%);
}

.bg-dark {
    background: linear-gradient(155deg, #233a4f 0%, #2f4b63 100%);
}

.text-white {
    color: #fff;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.82rem 1.45rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--cedar-700), var(--cedar-500));
    box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
    background: linear-gradient(120deg, #74492d, #ac714c);
}

.btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.17);
}

.btn-nav {
    padding: 0.64rem 1.08rem;
    font-size: 0.93rem;
}

.btn-block {
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(31, 42, 51, 0.08);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    min-height: 78px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: #fff;
    background: linear-gradient(140deg, var(--cedar-700), var(--cedar-500));
}

.logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    font-family: var(--font-heading);
    font-size: 1.16rem;
    color: var(--steel-800);
}

.logo-text small {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--steel-500);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    font-weight: 700;
    color: var(--ink);
}

.nav-links a:hover {
    color: var(--cedar-700);
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
    color: #fff;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(74, 109, 141, 0.12);
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: var(--steel-800);
    border-radius: 2px;
}

#hero {
    padding: 0;
}

.hero-overlay {
    min-height: calc(94vh - 78px);
    display: flex;
    align-items: center;
    background:
        linear-gradient(112deg, rgba(26, 45, 62, 0.86) 0%, rgba(26, 45, 62, 0.66) 52%, rgba(26, 45, 62, 0.35) 100%),
        url('assets/images/Portfolio-1.jpg') center/cover;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(1.3rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(2.8rem, 7vw, 5rem) 0;
}

.hero-copy {
    color: #fff;
}

.hero-copy .eyebrow {
    color: #eef7ff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-copy h1 {
    margin-top: 0.9rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    max-width: 17ch;
}

.hero-copy p {
    margin-top: 0.85rem;
    max-width: 60ch;
    color: rgba(240, 246, 252, 0.96);
    font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.68rem;
    margin-top: 1.35rem;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: clamp(1.1rem, 2.4vw, 1.45rem);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(31, 42, 51, 0.08);
}

.hero-panel h2 {
    color: var(--steel-800);
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
}

.hero-points {
    list-style: none;
    margin-top: 0.6rem;
    display: grid;
    gap: 0.56rem;
}

.hero-points li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--ink-soft);
    font-weight: 600;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.56rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--cedar-600);
}

.hero-contact {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(31, 42, 51, 0.12);
    color: var(--steel-700);
    font-weight: 700;
}

.hero-contact a {
    color: var(--cedar-700);
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem;
    border: 1px solid rgba(34, 56, 77, 0.1);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(131, 82, 51, 0.35);
}

.card h3 {
    color: var(--steel-800);
    font-size: 1.25rem;
}

.card p {
    margin-top: 0.38rem;
    color: var(--ink-soft);
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.62rem;
}

.carousel-window {
    overflow: hidden;
    border-radius: var(--radius-xl);
    flex: 1;
    border: 1px solid rgba(34, 56, 77, 0.11);
    box-shadow: var(--shadow-hover);
}

.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    background: #000;
}

.portfolio-img {
    width: 100%;
    height: min(58vw, 520px);
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.carousel-slide figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 1rem 1.1rem;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(14, 23, 34, 0.86) 100%);
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--steel-700);
    box-shadow: 0 8px 18px rgba(34, 56, 77, 0.22);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.carousel-btn:hover {
    background: var(--steel-700);
    color: #fff;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.46rem;
    margin-top: 0.9rem;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background: #b4bfcb;
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--cedar-700);
}

.review-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 3vw, 2rem);
    border-left: 5px solid var(--cedar-600);
    box-shadow: var(--shadow-soft);
    font-size: clamp(1.08rem, 2.2vw, 1.25rem);
    font-style: italic;
    color: var(--ink);
}

.review-card footer {
    margin-top: 0.75rem;
    font-size: 0.98rem;
    font-style: normal;
    font-weight: 700;
    color: var(--steel-700);
}

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

.contact-info .eyebrow {
    color: #f2f8ff;
    background: rgba(255, 255, 255, 0.18);
}

.contact-info h2 {
    margin-top: 0.8rem;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.contact-info p {
    color: rgba(243, 248, 255, 0.9);
    margin-top: 0.55rem;
}

.contact-list {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    gap: 0.52rem;
}

.contact-list li {
    color: rgba(251, 253, 255, 0.95);
}

.contact-list a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

.lead-form {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-xl);
    padding: clamp(1rem, 2.6vw, 1.5rem);
    box-shadow: 0 16px 32px rgba(8, 16, 27, 0.28);
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    border: 1px solid #cad4de;
    border-radius: var(--radius-md);
    padding: 0.82rem 0.92rem;
    margin-bottom: 0.72rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--ink);
}

.lead-form input:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--steel-500);
    box-shadow: 0 0 0 3px rgba(74, 109, 141, 0.18);
}

.lead-form .btn-primary {
    margin-top: 0.25rem;
}

.form-status {
    min-height: 1.35rem;
    margin-top: 0.64rem;
    font-size: 0.96rem;
    font-weight: 700;
}

footer {
    background: #1a2a39;
    color: rgba(255, 255, 255, 0.9);
    padding: 1.65rem 0;
}

.hero-copy,
.hero-panel,
.card,
.review-card,
.lead-form {
    animation: riseIn 0.62s ease both;
}

.hero-panel {
    animation-delay: 0.08s;
}

.card:nth-child(2) {
    animation-delay: 0.06s;
}

.card:nth-child(3) {
    animation-delay: 0.12s;
}

.card:nth-child(4) {
    animation-delay: 0.18s;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .hero-layout,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    nav {
        min-height: 74px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem 1.2rem 1.25rem;
        background: #fff;
        border-bottom: 1px solid rgba(31, 42, 51, 0.1);
        box-shadow: 0 12px 24px rgba(19, 30, 42, 0.12);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: inline-block;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .carousel {
        gap: 0.35rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .portfolio-img {
        min-height: 240px;
        height: 56vw;
    }

    .btn-nav {
        width: 100%;
    }
}

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

    .hero-copy,
    .hero-panel,
    .card,
    .review-card,
    .lead-form {
        animation: none;
    }
}
