/* ========== RESET & BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', 'Segoe UI', system-ui, sans-serif;
    color: #1B2A4A;
    background-color: #FDFBF7;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #1B2A4A;
    color: #FDFBF7;
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 4px;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 16px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.2;
    color: #0D1B2A;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-gold {
    background-color: #C9A84C;
    color: #0D1B2A;
    border-color: #C9A84C;
}

.btn-gold:hover {
    background-color: #B8963F;
    border-color: #B8963F;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-navy {
    background-color: #1B2A4A;
    color: #FDFBF7;
    border-color: #1B2A4A;
}

.btn-navy:hover {
    background-color: #0D1B2A;
    border-color: #0D1B2A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.3);
}

.btn-outline-light {
    background-color: transparent;
    color: #FDFBF7;
    border-color: rgba(253, 251, 247, 0.6);
}

.btn-outline-light:hover {
    background-color: #FDFBF7;
    color: #0D1B2A;
    border-color: #FDFBF7;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========== SECTION HEADERS ========== */
.section-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: #0D1B2A;
}

.section-title--light {
    color: #FDFBF7;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: #4A5568;
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ========== HEADER / NAV ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 27, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    transition: background 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1875rem;
    font-weight: 700;
    color: #FDFBF7;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(253, 251, 247, 0.8);
    letter-spacing: 0.03em;
    transition: color 0.25s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #C9A84C;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #C9A84C;
}

.nav-menu a::after:hover {
    width: 100%;
}

.nav-menu .btn-gold {
    padding: 10px 24px;
    font-size: 0.8125rem;
}

.nav-menu .btn-gold::after {
    display: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #FDFBF7;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0D1B2A;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/7238606/pexels-photo-7238606.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 27, 42, 0.92) 0%,
        rgba(27, 42, 74, 0.85) 50%,
        rgba(13, 27, 42, 0.78) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 120px 0 80px;
}

.hero-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #FDFBF7;
    margin-bottom: 24px;
    line-height: 1.15;
    font-weight: 700;
}

.hero-headline em {
    color: #C9A84C;
    font-style: italic;
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(253, 251, 247, 0.78);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(253, 251, 247, 0.85);
    font-size: 0.9375rem;
    font-weight: 500;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: #C9A84C;
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(253, 251, 247, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll svg {
    width: 28px;
    height: 28px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== SERVICES ========== */
.services {
    padding: 100px 0;
    background: #FDFBF7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid rgba(27, 42, 74, 0.08);
    border-radius: 8px;
    padding: 40px 32px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #C9A84C;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(13, 27, 42, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 12px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #0D1B2A;
}

.service-card p {
    font-size: 0.9375rem;
    color: #4A5568;
    line-height: 1.75;
}

/* ========== ABOUT ========== */
.about {
    padding: 100px 0;
    background: #F5F0E8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 24px 48px rgba(13, 27, 42, 0.15);
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 3px solid #C9A84C;
    border-radius: 8px;
    z-index: -1;
}

.about-content .section-eyebrow {
    margin-bottom: 12px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content .lead {
    font-size: 1.0625rem;
    color: #2D3748;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-content p {
    font-size: 0.9375rem;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(27, 42, 74, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #C9A84C;
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: #4A5568;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ========== PROCESS ========== */
.process {
    padding: 100px 0;
    background: #0D1B2A;
}

.process .section-title {
    color: #FDFBF7;
}

.process .section-subtitle {
    color: rgba(253, 251, 247, 0.65);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C9A84C, #C9A84C, transparent);
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #C9A84C;
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1.125rem;
    color: #FDFBF7;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.875rem;
    color: rgba(253, 251, 247, 0.6);
    line-height: 1.75;
}

/* ========== AREAS ========== */
.areas {
    padding: 100px 0;
    background: #FDFBF7;
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.area-tag {
    padding: 12px 28px;
    border: 1px solid rgba(27, 42, 74, 0.15);
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1B2A4A;
    transition: all 0.25s ease;
    background: transparent;
}

.area-tag:hover {
    background: #1B2A4A;
    color: #FDFBF7;
    border-color: #1B2A4A;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/11806477/pexels-photo-11806477.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=600');
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 27, 42, 0.93) 0%,
        rgba(27, 42, 74, 0.88) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(253, 251, 247, 0.75);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ========== CONTACT ========== */
.contact {
    padding: 100px 0;
    background: #F5F0E8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-eyebrow {
    margin-bottom: 12px;
}

.contact-info .section-title {
    margin-bottom: 20px;
}

.contact-info .lead {
    font-size: 1.0625rem;
    color: #2D3748;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4A5568;
}

.contact-item span:last-child {
    font-size: 1rem;
    color: #1B2A4A;
    font-weight: 500;
}

.contact-item a:hover {
    color: #C9A84C;
}

/* Form */
.contact-form-wrap {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 16px 48px rgba(13, 27, 42, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1B2A4A;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(27, 42, 74, 0.15);
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9375rem;
    color: #1B2A4A;
    background: #FDFBF7;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A0AEC0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    color: #1B2A4A;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #0D1B2A;
    padding: 64px 0 0;
    color: rgba(253, 251, 247, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(253, 251, 247, 0.08);
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(253, 251, 247, 0.55);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(253, 251, 247, 0.6);
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #C9A84C;
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(253, 251, 247, 0.6);
    transition: color 0.25s ease;
}

.footer-contact a:hover {
    color: #C9A84C;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(253, 251, 247, 0.35);
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-steps::before {
        display: none;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(13, 27, 42, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 20px;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 8px 0;
    }

    .nav-menu .btn-gold {
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-trust {
        gap: 20px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap img {
        height: 400px;
    }

    .about-accent {
        display: none;
    }

    .about-stats {
        gap: 24px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrap {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-banner {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 28px 24px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .areas-grid {
        gap: 8px;
    }

    .area-tag {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}
</style>

<sm-file path="script.js">
(function () {
    'use strict';

    // Mobile navigation toggle
    const navToggle = document.querySelector('.nav-toggle');
    const navMenu = document.querySelector('.nav-menu');

    if (navToggle && navMenu) {
        navToggle.addEventListener('click', function () {
            const expanded = navToggle.getAttribute('aria-expanded') === 'true';
            navToggle.setAttribute('aria-expanded', !expanded);
            navMenu.classList.toggle('open');
        });

        // Close menu when a link is clicked
        navMenu.querySelectorAll('a').forEach(function (link) {
            link.addEventListener('click', function () {
                navToggle.setAttribute('aria-expanded', 'false');
                navMenu.classList.remove('open');
            });
        });
    }

    // Close mobile nav on escape key
    document.addEventListener('keydown', function (e) {
        if (e.key === 'Escape' && navMenu && navMenu.classList.contains('open')) {
            navToggle.setAttribute('aria-expanded', 'false');
            navMenu.classList.remove('open');
            navToggle.focus();
        }
    });

    // Scroll reveal (progressive enhancement — content is visible by default)
    if (window.matchMedia('(prefers-reduced-motion: no-preference)').matches) {
        const reveals = document.querySelectorAll('.reveal');
        if (reveals.length > 0) {
            const observer = new IntersectionObserver(function (entries) {
                entries.forEach(function (entry) {
                    if (entry.isIntersecting) {
                        entry.target.classList.add('revealed');
                        observer.unobserve(entry.target);
                    }
                });
            }, {
                threshold: 0.12,
                rootMargin: '0px 0px -40px 0px'
            });

            reveals.forEach(function (el) {
                observer.observe(el);
            });
        }
    }

    // Contact form handling
    const form = document.getElementById('contact-form');
    const successMsg = document.getElementById('form-success');

    if (form && successMsg) {
        form.addEventListener('submit', function (e) {
            e.preventDefault();

            // Basic validation
            const name = document.getElementById('name').value.trim();
            const phone = document.getElementById('phone').value.trim();
            const email = document.getElementById('email').value.trim();

            if (!name || !phone || !email) {
                return;
            }

            // Simulate submission
            form.style.opacity = '0.5';
            form.style.pointerEvents = 'none';

            setTimeout(function () {
                form.style.display = 'none';
                successMsg.hidden = false;
            }, 800);
        });
    }

    // Smooth scroll for anchor links
    document.querySelectorAll('a[href^="#"]').forEach(function (anchor) {
        anchor.addEventListener('click', function (e) {
            const targetId = anchor.getAttribute('href');
            if (targetId === '#') return;

            const target = document.querySelector(targetId);
            if (target) {
                e.preventDefault();
                const headerHeight = document.querySelector('.site-header')?.offsetHeight || 0;
                const targetPosition = target.getBoundingClientRect().top + window.pageYOffset - headerHeight;

                window.scrollTo({
                    top: targetPosition,
                    behavior: 'smooth'
                });
            }
        });
    });
})();
