:root {
    --ink: #0f1419;
    --ink-soft: #1a2332;
    --navy: #0c1a2e;
    --navy-deep: #060d18;
    --gold: #c9a962;
    --gold-light: #e8d5a3;
    --gold-dark: #a8863f;
    --champagne: #f7f3eb;
    --mist: #faf8f5;
    --line: #e8e2d6;
    --text: #5c6578;
    --teal: #3d9a8f;
    --coral: #c9a962;
    --shadow-sm: 0 4px 24px rgba(15, 20, 25, 0.06);
    --shadow-md: 0 12px 40px rgba(15, 20, 25, 0.1);
    --shadow-lg: 0 24px 60px rgba(15, 20, 25, 0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --topbar-height: 1.65rem;
}

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

a { text-decoration: none; }

.bg-dark {
    background: linear-gradient(180deg, var(--navy-deep) 0%, var(--ink) 100%) !important;
}

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

.text-primary { color: var(--gold) !important; }
.text-coral { color: var(--gold-dark) !important; }
.text-gold { color: var(--gold) !important; }

.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    border: none;
    color: var(--navy-deep);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 169, 98, 0.45);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(201, 169, 98, 0.12);
    border-color: var(--gold);
    color: var(--gold-light);
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
    z-index: 9999;
}

#spinner.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--line);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.topbar {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    position: relative;
    z-index: 1031;
    padding-top: 0.3rem !important;
    padding-bottom: 0.25rem !important;
}

.topbar a,
.mobile-topbar a {
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease;
}

.topbar a:hover {
    color: var(--gold-light);
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.4rem 1.25rem;
}

.topbar-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
    max-width: 100%;
}

.topbar-item i {
    flex-shrink: 0;
    width: 1em;
    text-align: center;
    margin-top: 0.15em;
}

.topbar-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.4rem 1.25rem;
}

.navbar {
    z-index: 1030;
}

.navbar-home,
.navbar-page {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.navbar-home {
    position: absolute;
    top: var(--topbar-height);
    width: 100%;
    background: transparent;
}

.navbar-home.nav-solid {
    background: rgba(6, 13, 24, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 169, 98, 0.15);
    box-shadow: 0 8px 32px rgba(6, 13, 24, 0.25);
}

@media (min-width: 992px) {
    .navbar-home.nav-solid {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
}

.navbar-page {
    position: sticky;
    top: 0;
    background: rgba(6, 13, 24, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 169, 98, 0.15);
    box-shadow: 0 8px 32px rgba(6, 13, 24, 0.25);
}

.navbar-brand {
    display: flex;
    align-items: center;
    line-height: 0;
}

.navbar-brand img {
    height: 44px;
    width: auto;
    display: block;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 1.65rem 0.85rem;
    transition: color 0.2s ease;
}

.navbar-home.navbar-dark .navbar-nav .nav-link,
.navbar-page.navbar-dark .navbar-nav .nav-link {
    padding: 0.4rem 0.75rem;
}

.navbar .btn-primary {
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--gold);
}

.hero {
    min-height: 680px;
    background:
        linear-gradient(105deg, rgba(6, 13, 24, 0.96) 0%, rgba(15, 20, 25, 0.88) 45%, rgba(15, 20, 25, 0.5) 100%),
        url('../img/background.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 160px 0 80px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.4), transparent);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    font-weight: 600;
    line-height: 1.08;
}

.eyebrow {
    color: var(--gold);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-panel {
    border-left: 3px solid var(--gold);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.5rem 1.75rem;
    max-width: 520px;
    box-shadow: var(--shadow-lg);
}

.hero-panel .hero-detail {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.brand-proof {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    position: relative;
}

.brand-proof::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.35), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.brand-proof img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.registration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.registration-grid-centered {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.registration-chip {
    background: linear-gradient(160deg, var(--navy) 0%, var(--ink-soft) 100%);
    color: #fff;
    border: 1px solid rgba(201, 169, 98, 0.22);
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    font-weight: 600;
    font-family: 'DM Sans', Arial, sans-serif;
    box-shadow: var(--shadow-sm);
}

.registration-chip span {
    display: block;
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    opacity: 0.85;
}

.metric-strip {
    margin-top: -52px;
    position: relative;
    z-index: 4;
}

.metric-strip [class*="col-"] {
    min-width: 0;
}

.metric-strip .row {
    align-items: stretch;
}

.metric-card {
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow-wrap: break-word;
    word-break: break-word;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.metric-card.dark {
    background: linear-gradient(145deg, var(--ink) 0%, var(--navy) 100%);
    border-color: rgba(201, 169, 98, 0.25);
}

.metric-card h3 {
    color: var(--gold);
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-family: 'Cormorant Garamond', Georgia, serif;
    line-height: 1.1;
}

.metric-card h5 {
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.metric-card p {
    margin-top: auto;
}

.metric-card.dark p,
.metric-card.dark h5 {
    color: rgba(255, 255, 255, 0.88);
}

.section-pad {
    padding: 5.5rem 0;
}

.metric-strip + .section-pad::before {
    content: '';
    display: block;
    width: 72px;
    height: 2px;
    margin: 0 auto 2.5rem;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 1px;
}

.section-title {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.section-title.text-center::after {
    content: '';
    display: block;
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 1.25rem auto 0;
}

.section-title h2,
.page-title h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.image-tile {
    border-radius: var(--radius);
    min-height: 420px;
    object-fit: cover;
    width: 100%;
    box-shadow: 20px 20px 0 rgba(201, 169, 98, 0.25);
    border: 1px solid var(--line);
}

.poster-image {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.service-card,
.feature-card,
.team-card,
.form-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover,
.feature-card:hover,
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 98, 0.35);
}

.service-card h4,
.feature-card h5 {
    font-size: 1.35rem;
}

.icon-box {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.18) 0%, rgba(201, 169, 98, 0.08) 100%);
    color: var(--gold-dark);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    margin-bottom: 1.15rem;
}

.process-step {
    display: flex;
    gap: 1.15rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
}

.process-step span {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--navy-deep);
    font-weight: 700;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.3);
}

.service-list {
    list-style: none;
    padding: 1.5rem;
    margin: 2rem 0 0;
    columns: 2;
    background: var(--champagne);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.service-list li {
    break-inside: avoid;
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
    font-weight: 500;
    font-family: 'DM Sans', Arial, sans-serif;
    color: var(--ink-soft);
}

.service-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--gold-dark);
    position: absolute;
    left: 0;
}

.quote-band {
    background:
        linear-gradient(rgba(6, 13, 24, 0.9), rgba(12, 26, 46, 0.88)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1920&q=82') center/cover no-repeat;
    position: relative;
}

.quote-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.page-header {
    background:
        linear-gradient(105deg, rgba(6, 13, 24, 0.88) 0%, rgba(15, 20, 25, 0.72) 100%),
        url('../img/background.jpg') center/cover no-repeat;
    padding: 6.5rem 0;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.4), transparent);
}

.page-title h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.page-title h1,
.page-title a,
.page-title span {
    color: #fff;
}

.page-title a:hover {
    color: var(--gold-light);
}

.team-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.company-address,
.contact-address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text);
    max-width: 520px;
}

.company-address {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-address {
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-map-link:hover {
    color: var(--gold-light);
}

.footer-address-link {
    color: inherit;
    text-decoration: none;
}

.footer-address-link:hover {
    color: var(--gold);
}

.map-topbar-link {
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease;
}

.map-topbar-link:hover {
    color: var(--gold-light);
}

a.map-link,
a.gmail-link.icon-box {
    text-decoration: none;
    flex-shrink: 0;
}

a.map-link:hover,
a.gmail-link.icon-box:hover {
    background: rgba(201, 169, 98, 0.22);
    color: var(--gold);
}

.gmail-link-footer {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.gmail-link-footer:hover {
    color: var(--gold);
}

.map-coords {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
}

.map-coords:hover {
    color: var(--gold);
}

.form-card {
    box-shadow: var(--shadow-md);
    border-color: var(--line);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: var(--line);
    padding: 0.9rem 1.1rem;
    background: var(--mist);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
    background: #fff;
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
}

.footer {
    background: linear-gradient(180deg, var(--ink) 0%, var(--navy-deep) 100%);
    color: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.footer h4,
.footer h5 {
    color: #fff;
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    margin-bottom: 0.55rem;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--gold);
}

.footer-logo {
    max-width: 170px;
    margin-bottom: 1rem;
}

.footer-bottom {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(201, 169, 98, 0.4);
}

.back-to-top.show { display: flex; }

@media (max-width: 991.98px) {
    .topbar {
        display: none;
    }

    .navbar-home {
        position: sticky;
        top: 0;
        background: rgba(6, 13, 24, 0.98);
        border-bottom: 1px solid rgba(201, 169, 98, 0.15);
    }

    .navbar-collapse {
        padding: 1rem 0 0.25rem;
        align-items: center;
        text-align: center;
    }

    .navbar-collapse .navbar-nav {
        align-items: center;
        margin-left: 0 !important;
        width: 100%;
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 0.7rem 0;
        text-align: center;
        width: 100%;
    }

    .navbar-collapse .btn-primary {
        margin: 0.75rem auto 0 !important;
    }

    .hero {
        min-height: auto;
        padding: 5rem 0;
    }

    .metric-strip {
        margin-top: 0;
        padding-top: 1.5rem;
        background: var(--mist);
    }

    .metric-card {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .section-pad {
        padding: 3.5rem 0;
    }

    .registration-grid,
    .service-list {
        grid-template-columns: 1fr;
        columns: 1;
    }

    .image-tile {
        min-height: 280px;
        box-shadow: 12px 12px 0 rgba(201, 169, 98, 0.2);
    }

    .form-card {
        padding: 1.25rem;
    }
}
