:root {
    --bg: #f8f6f2;
    --surface: #fffdf9;
    --surface-2: #f1ece3;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --border: rgba(26, 26, 26, 0.08);
    --accent: #c8a96a;
    --accent-strong: #b38b3d;
    --nav-bg: rgba(248, 246, 242, 0.92);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: background-color 0.25s ease, color 0.25s ease;
    min-height: 100vh;
    padding-top: 84px;
}

main {
    padding-bottom: 2rem;
}

html[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #162033;
    --surface-2: #1e293b;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: rgba(229, 231, 235, 0.08);
    --accent: #d4af37;
    --accent-strong: #e0bf57;
    --nav-bg: rgba(15, 23, 42, 0.9);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

html,
body {
    min-height: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-strong);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--nav-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow);
}

.navbar-brand,
.nav-link {
    color: var(--text) !important;
}

.nav-link:hover,
.navbar-brand:hover {
    color: var(--accent) !important;
}

.nav-link {
    position: relative;
    padding-bottom: 0.35rem;
}

.nav-link.nav-active {
    color: var(--accent) !important;
    font-weight: 600;
}

.nav-link.nav-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.15rem;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
}

.navbar-toggler {
    border: 1px solid var(--border);
    background: transparent ;
    
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--accent);
}

.navbar-toggler-icon {
    background-image: none !important;
}

html[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.9rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
    }

    .navbar-nav {
        align-items: flex-start !important;
        gap: 0.25rem;
    }

    .navbar .nav-link {
        padding: 0.5rem 0;
    }
}


.navbar-toggler-icon {
    width: 20px;
    height: 14px;
    position: relative;
    display: inline-block;
}

.menu-icon {
    width: 20px;
    height: 14px;
    position: relative;
    display: inline-block;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent) !important;
    border-radius: 2px;
    transition: 0.25s ease;
}

.menu-icon::before {
    top: 0;
}

.menu-icon span {
    top: 6px;
}

.menu-icon::after {
    bottom: 0;
}

.navbar-toggler {
    border: 1px solid var(--border);
    background: transparent;
    box-shadow: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--accent);
}

a.lang-switch,
a.lang-switch:link,
a.lang-switch:visited {
    color: var(--accent) !important;
}


.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    min-width: 40px;

    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--accent);
    line-height: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: rgba(196, 164, 132, 0.08);
}

.theme-icon-wrap {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.theme-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0;
    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;

    border: 1px solid rgba(196, 164, 132, 0.35);
    background: transparent;

    color: var(--accent) !important;
    text-decoration: none !important;
}

.lang-switch:visited,
.lang-switch:active {
    color: var(--accent) !important;
}

.lang-switch:hover {
    background: rgba(196, 164, 132, 0.08);
    border-color: var(--accent);
    color: var(--accent) !important;
}



.btn-primary {
    color: #fff;
    background-color: var(--accent-strong);
    border-color: var(--accent-strong);
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.text-muted,
.form-text {
    color: var(--muted) !important;
}

main {
    padding-bottom: 2rem;
}

input,
select,
textarea {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted) !important;
}

.alert-success {
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-danger {
    border: 1px solid rgba(239, 68, 68, 0.2);
}
/* Make all common surfaces follow the theme */
.bg-white,
.table,
.table-striped > tbody > tr:nth-of-type(odd),
.list-group-item,
.modal-content,
.dropdown-menu,
.form-control,
.form-select,
textarea,
input,
select {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

/* Placeholder and muted helper text */
.form-control::placeholder,
textarea::placeholder {
    color: var(--muted) !important;
}

/* Table text and headers */
.table,
.table th,
.table td,
.table thead th,
.table tbody td {
    color: var(--text) !important;
}

/* Striped tables in dark mode */
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #1b2740 !important;
    color: var(--text) !important;
}

html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: var(--surface) !important;
    color: var(--text) !important;
}

/* Bootstrap light backgrounds */
.bg-light {
    background-color: var(--surface-2) !important;
    color: var(--text) !important;
}

/* Validation / form text */
.text-danger {
    color: #ef4444 !important;
}

.services-title {
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 14ch;
}

.services-subtitle {
    color: var(--muted);
    line-height: 1.8;
    max-width: 65ch;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.service-highlight {
    border-color: var(--accent);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    gap: 1rem;
}

.service-header h3 {
    font-size: 1.15rem;
    font-weight: 650;
    margin: 0;
}

.service-price {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.service-list {
    padding-left: 1.1rem;
    margin: 0;
}

.service-list li {
    margin-bottom: 0.75rem;
    line-height: 1.65;
    color: var(--text);
}

.services-note .summary-card {
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 14ch;
}

.contact-subtitle {
    color: var(--muted);
    line-height: 1.8;
    max-width: 60ch;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.contact-block-title {
    font-weight: 650;
    margin-bottom: 0.75rem;
}

.contact-item {
    margin-bottom: 0.75rem;
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
}


.workflow-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 15ch;
}

.workflow-subtitle {
    color: var(--muted);
    line-height: 1.8;
    max-width: 65ch;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.workflow-step {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1.25rem;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.workflow-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.03em;
}

.workflow-step-title {
    font-size: 1.08rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}

.workflow-step-text {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .workflow-step {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .workflow-number {
        font-size: 1.15rem;
    }

    .workflow-title {
        max-width: none;
    }
}


.hero-visual-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 520px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--surface);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 520px;
    filter: saturate(0.95) contrast(1.02);
}

.hero-image-overlay {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    background: rgba(255, 253, 249, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .hero-image-overlay {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(229, 231, 235, 0.08);
}



html[data-theme="dark"] .hero-image {
    filter: brightness(0.72) saturate(0.9);
}

.contact-item {
    margin-bottom: 12px; /* space BETWEEN blocks only */
}

.contact-item {
    margin-bottom: 12px;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.2;
}

.contact-value {
    margin: 2px 0 0 0;
    line-height: 1.3;
    display: block;
    font-weight: 500;
}


.home-trust {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.trust-card {
    padding: 24px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s ease;
}

.trust-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.12);
}

.trust-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.trust-text {
    font-size: 0.9rem;
    color: #9aa4b2;
}

.ops-title {
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    line-height: 1.08;
    font-weight: 650;
    letter-spacing: -0.03em;
    max-width: 13ch;
}

.ops-subtitle {
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 65ch;
}

.ops-section {
    border-top: 1px solid var(--border);
}

.ops-side-title {
    font-size: 1.08rem;
    font-weight: 650;
    color: var(--text);
}

.ops-list {
    padding-left: 1.1rem;
    margin: 0;
}

.ops-list li {
    margin-bottom: 0.85rem;
    color: var(--text);
    line-height: 1.65;
}

.ops-visual-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 520px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--surface);
}

.ops-image {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: saturate(0.95) contrast(1.02);
}

.ops-image-overlay {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    background: rgba(255, 253, 249, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .ops-image {
    filter: brightness(0.72) saturate(0.9);
}

html[data-theme="dark"] .ops-image-overlay {
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(229, 231, 235, 0.08);
}

@media (max-width: 991.98px) {
    body {
        padding-top: 78px;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
        line-height: 1.2;
        max-width: 210px;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .hero-title,
    .ops-title,
    .services-title,
    .workflow-title,
    .contact-title,
    .section-title {
        max-width: none !important;
    }

    .hero-subtitle,
    .ops-subtitle,
    .services-subtitle,
    .workflow-subtitle,
    .contact-subtitle,
    .section-text {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .btn.btn-lg {
        width: 100%;
    }

    .hero-image-overlay,
    .ops-image-overlay {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .stat-card,
    .summary-card,
    .service-card,
    .contact-form,
    .contact-block,
    .workflow-step,
    .trust-card {
        padding: 1.1rem;
        border-radius: 16px;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}


@media (max-width: 575.98px) {
    body {
        padding-top: 74px;
    }

    .navbar-brand {
        font-size: 0.95rem;
        max-width: 180px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .lang-switch {
        min-width: 38px;
        height: 38px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .ops-title,
    .services-title,
    .workflow-title,
    .contact-title,
    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .hero-visual-card,
    .ops-visual-card {
        min-height: 520px;
    }

    .hero-image,
    .ops-image {
        min-height: 520px;
        height: 100%;
        object-fit: cover;
    }

    .hero-image-overlay,
    .ops-image-overlay {
        position: absolute;
        left: 0.85rem;
        right: 0.85rem;
        bottom: 0.85rem;
        margin: 0;
        padding: 1rem;
        border-radius: 16px;
        max-height: calc(100% - 1.7rem);
        overflow-y: auto;
    }

    .ops-list li {
        margin-bottom: 0.55rem;
        line-height: 1.45;
        font-size: 0.92rem;
    }

    .ops-side-title {
        font-size: 1rem;
        margin-bottom: 0.65rem !important;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}