/* =========================================
   Petar Gatev - Expert Evaluator
   Modernized custom styles on top of Bootstrap 5
   ========================================= */

:root {
    --ink-900: #0f2338;
    --ink-800: #17324c;
    --ink-700: #1f4667;
    --slate-500: #607085;
    --slate-300: #b7c3cf;
    --paper-100: #f5f7fb;
    --paper-200: #edf1f7;
    --white: #ffffff;
    --accent: #d97b2b;
    --accent-hover: #ba661f;
    --accent-soft: rgba(217, 123, 43, 0.14);
    --primary-soft: rgba(31, 70, 103, 0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 12px 30px rgba(15, 35, 56, 0.08);
    --shadow-md: 0 20px 48px rgba(15, 35, 56, 0.14);
    --shadow-lg: 0 28px 72px rgba(12, 26, 42, 0.24);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--ink-900);
    /* background:
        radial-gradient(circle at 12% 8%, rgba(31, 70, 103, 0.08), transparent 34%),
        radial-gradient(circle at 86% 0%, rgba(217, 123, 43, 0.1), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #f2f5fa 100%); */
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--ink-700);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.24s ease;
}

a:hover {
    color: var(--accent);
}

main {
    position: relative;
    z-index: 1;
}

/* ---- Navbar ---- */
.navbar {
    background: rgba(15, 35, 56, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(12, 26, 42, 0.22);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.48rem 0.9rem;
    transition: background-color 0.24s ease, color 0.24s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.13);
    color: var(--white);
}

.navbar .dropdown-menu {
    border: 1px solid rgba(23, 50, 76, 0.1);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
}

.navbar .dropdown-item:hover {
    background: var(--paper-200);
    color: var(--ink-900);
}

/* ---- Buttons ---- */
.btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, border-color 0.24s ease;
}

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

.btn-primary {
    background: linear-gradient(130deg, var(--ink-700), var(--ink-800));
    border-color: var(--ink-800);
    box-shadow: 0 10px 24px rgba(23, 50, 76, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(130deg, var(--ink-800), var(--ink-900));
    border-color: var(--ink-900);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #cc6e1d);
    border-color: #cc6e1d;
    color: var(--white);
}

.btn-accent:hover,
.btn-accent:focus {
    background: linear-gradient(135deg, var(--accent-hover), #a85a1a);
    border-color: #a85a1a;
    color: var(--white);
}

/* ---- Hero ---- */
.hero-section {
    color: var(--white);
    padding: 6.4rem 0 5.4rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 16%, rgba(255, 255, 255, 0.12), transparent 28%),
        radial-gradient(circle at 94% 26%, rgba(217, 123, 43, 0.26), transparent 38%),
        linear-gradient(130deg, #102438 0%, #17324c 48%, #1f4667 100%);
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::before {
    width: 420px;
    height: 420px;
    right: -150px;
    top: -170px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-section::after {
    width: 320px;
    height: 320px;
    left: -90px;
    bottom: -180px;
    background: rgba(217, 123, 43, 0.22);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.1rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.02rem, 1.4vw, 1.24rem);
    max-width: 60ch;
}

.hero-icon {
    display: inline-flex;
    width: 150px;
    height: 150px;
    border-radius: 28px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 22px 44px rgba(7, 18, 30, 0.3);
}

.hero-section .btn-light {
    color: var(--ink-900);
    background: #f6f8fc;
    border-color: #f6f8fc;
    box-shadow: 0 12px 26px rgba(8, 22, 35, 0.24);
}

.hero-section .btn-outline-light {
    border-width: 2px;
}

/* ---- Section titles ---- */
.section-title,
.services-section h2,
.advantages-section h2,
.request-section h2,
.page-content h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.35rem);
    margin-bottom: 0.65rem;
}

.section-subtitle,
.services-section .lead,
.advantages-section .lead,
.request-section .lead {
    color: var(--slate-500);
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Cards ---- */
.card {
    border: 1px solid rgba(23, 50, 76, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #ffffff, #f9fbff);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ink-700), var(--accent));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 70, 103, 0.2);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 74px;
    height: 74px;
    border-radius: 50% !important;
}

.services-section .card-text,
.advantages-section p,
.page-content p,
.page-content li {
    color: #44566b;
    line-height: 1.72;
}

.services-section .bg-light,
/* .advantages-section, */
.cta-section,
section.bg-light,
.page-header-section {
    background: linear-gradient(180deg, #f3f6fb 0%, #ebf0f8 100%);
}

/* ---- Advantages ---- */
.advantage-item {
    border-radius: var(--radius-md);
    padding: 1.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.74);
    /* border: 1px solid rgba(23, 50, 76, 0.08); */
    box-shadow: 0 8px 22px rgba(16, 35, 56, 0.08);
    height: 100%;
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.advantage-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(16, 35, 56, 0.14);
}

.advantage-item .advantage-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px !important;
    transition: transform 0.28s ease;
}

.advantage-item:hover .advantage-icon {
    transform: rotate(-4deg) scale(1.06);
}

/* ---- Request section ---- */
.request-section,
.valuation-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 8%, rgba(217, 123, 43, 0.2), transparent 28%),
        linear-gradient(128deg, #102438 0%, #17324c 100%);
}

.request-section::before,
.valuation-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    left: -110px;
    bottom: -170px;
    background: rgba(255, 255, 255, 0.08);
}

.request-section .text-muted,
.request-section h2,
.request-section p,
.valuation-section h2,
.valuation-section p {
    color: var(--white) !important;
    opacity: 0.96;
}

.request-section .card,
.valuation-section .card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---- Forms ---- */
.form-control,
.form-select {
    border-radius: 12px;
    border-color: rgba(23, 50, 76, 0.16);
    padding: 0.72rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ink-700);
    box-shadow: 0 0 0 0.2rem rgba(31, 70, 103, 0.16);
}

label.form-label {
    font-weight: 600;
    color: var(--ink-800);
}

/* ---- Dynamic page ---- */
.breadcrumb {
    margin-bottom: 0.7rem;
}

.breadcrumb-item a {
    color: var(--ink-700);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.page-content {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(23, 50, 76, 0.08);
    border-radius: var(--radius-md);
    padding: clamp(1.2rem, 3vw, 2.4rem);
    box-shadow: var(--shadow-sm);
}

.page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.9rem;
    font-size: clamp(1.3rem, 2vw, 1.58rem);
}

.page-content h4 {
    margin-top: 1.2rem;
    color: var(--ink-700);
}

.valuation-cta-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
        radial-gradient(circle at 85% 12%, rgba(217, 123, 43, 0.26), transparent 34%),
        linear-gradient(132deg, #0e2134 0%, #183654 52%, #255177 100%);
}

.valuation-cta-section::before,
.valuation-cta-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.valuation-cta-section::before {
    width: 300px;
    height: 300px;
    left: -110px;
    bottom: -170px;
    background: rgba(255, 255, 255, 0.1);
}

.valuation-cta-section::after {
    width: 230px;
    height: 230px;
    right: -90px;
    top: -120px;
    background: rgba(255, 255, 255, 0.1);
}

.valuation-cta-section .container {
    position: relative;
    z-index: 1;
}

.valuation-cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.valuation-cta-section .btn-outline-light {
    border-width: 2px;
}

/* ---- Footer ---- */
footer {
    background:
        radial-gradient(circle at 15% -20%, rgba(255, 255, 255, 0.1), transparent 35%),
        linear-gradient(140deg, #0d1f33, #132a41 56%, #1d3f60);
    color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5 {
    color: var(--white);
}

footer a,
footer .text-white-50 {
    color: rgba(255, 255, 255, 0.74) !important;
}

footer a:hover {
    color: #ffe0c6 !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.14) !important;
}

/* ---- Utility ---- */
.ohnohoney {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: -1;
}

.min-vh-50 {
    min-height: 52vh;
}

#request,
.request-section {
    scroll-margin-top: 110px;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.75, 0.25, 1), transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .fade-in-up,
    .service-card,
    .advantage-item,
    .advantage-item .advantage-icon {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .navbar {
        padding-top: 0.68rem;
        padding-bottom: 0.68rem;
    }

    .hero-section {
        padding: 4.7rem 0 4rem;
        text-align: center;
    }

    .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-icon {
        width: 128px;
        height: 128px;
    }

    .request-section .card,
    .valuation-section .card {
        border-radius: var(--radius-md);
    }
}

@media (max-width: 767.98px) {
    body {
        background:
            radial-gradient(circle at 20% 5%, rgba(31, 70, 103, 0.1), transparent 26%),
            linear-gradient(180deg, #f9fbfd 0%, #f3f6fb 100%);
    }

    .hero-section {
        padding-top: 4.2rem;
        padding-bottom: 3.6rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .service-card .card-body,
    .request-section .card-body {
        padding: 1.5rem !important;
    }

    .advantage-item {
        padding: 1.3rem 1rem;
    }

    .page-content {
        padding: 1.2rem;
    }
}
