/*
 * Dr. Boboev Maternity Center — LIV-inspired structure V2
 * Original implementation: search-first hospital portal hierarchy,
 * adapted to the maternity-center brand and existing Laravel modules.
 */

:root {
    --liv-accent: #bc3d6d;
    --liv-accent-dark: #8f284e;
    --liv-ink: #252125;
    --liv-muted: #746c71;
    --liv-line: rgba(54, 43, 48, .12);
    --liv-soft: #f8f7f8;
    --liv-shadow: 0 22px 60px rgba(39, 29, 34, .12);
}

/* ---------- Header ---------- */

.liv-header {
    overflow: visible;
    background: #fff;
}

.liv-servicebar {
    min-height: 38px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #292327;
}

.liv-servicebar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.liv-servicebar-left,
.liv-eservices {
    display: flex;
    align-items: center;
    gap: 18px;
}

.liv-servicebar a,
.liv-servicebar-hours {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.liv-servicebar a:hover {
    color: #fff;
}

.liv-servicebar-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.liv-servicebar-phone svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.liv-eservices a {
    position: relative;
    padding-left: 16px;
}

.liv-eservices a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef8cb1;
    transform: translateY(-50%);
}

.liv-navbar {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.site-header.is-scrolled .liv-navbar {
    min-height: 76px;
}

.liv-brand {
    margin-right: 5px;
}

.liv-brand .brand-logo-full {
    width: 235px;
    height: 68px;
    object-fit: contain;
}

.site-header.is-scrolled .liv-brand .brand-logo-full {
    width: 218px;
    height: 60px;
}

.liv-nav {
    gap: 0;
}

.liv-nav a {
    min-height: 46px;
    padding: 13px 10px;
    border-radius: 0;
    color: #393236;
    background: transparent !important;
    font-size: 14px;
    font-weight: 760;
}

.liv-nav a::after {
    left: 10px;
    right: 100%;
    bottom: 3px;
    height: 2px;
    background: var(--liv-accent);
}

.liv-nav a:hover,
.liv-nav a.active {
    color: var(--liv-accent-dark);
    transform: none;
}

.liv-nav a:hover::after,
.liv-nav a.active::after {
    left: 10px;
    right: 10px;
}

.liv-header-actions {
    gap: 8px;
}

.liv-search-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--liv-line);
    border-radius: 50%;
    color: #51474c;
    background: #fff;
    cursor: pointer;
}

.liv-search-button:hover {
    color: #fff;
    border-color: var(--liv-accent);
    background: var(--liv-accent);
}

.liv-search-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.liv-locale {
    border-color: var(--liv-line);
    background: #f7f6f7;
}

.liv-appointment {
    border-radius: 999px;
    box-shadow: none;
}

/* ---------- Hero ---------- */

.hero {
    min-height: 610px;
    padding: 82px 0 126px;
}

.hero-slide {
    background-position: center center;
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(26, 22, 24, .70) 0%,
            rgba(26, 22, 24, .48) 38%,
            rgba(26, 22, 24, .12) 65%,
            rgba(26, 22, 24, .02) 85%
        );
}

.hero-content {
    max-width: 700px;
}

.hero-kicker {
    color: #fff;
    border-color: rgba(255,255,255,.22);
    background: rgba(20,17,18,.26);
    box-shadow: none;
}

.hero-kicker-dot {
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255,255,255,.12);
}

.hero h1 {
    max-width: 680px;
    color: #fff;
    font-size: clamp(46px, 4.2vw, 68px);
    line-height: 1.03;
    text-shadow: 0 4px 25px rgba(0,0,0,.18);
}

.hero p {
    max-width: 620px;
    color: rgba(255,255,255,.84);
    font-size: 18px;
    line-height: 1.65;
}

.hero .button {
    border-color: #fff;
    color: #2d2428;
    background: #fff;
    box-shadow: none;
}

.hero .button:hover {
    color: #fff;
    background: var(--liv-accent);
}

.hero-dots {
    bottom: 82px;
    border-color: rgba(255,255,255,.18);
    background: rgba(25,21,23,.34);
    box-shadow: none;
}

.hero-dot {
    background: rgba(255,255,255,.45);
}

.hero-dot.active {
    background: #fff;
}

/* ---------- Search + e-services ---------- */

.liv-search-section {
    position: relative;
    z-index: 20;
    margin-top: -76px;
    padding-bottom: 52px;
}

.liv-search-panel {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 21px 23px;
    border: 1px solid var(--liv-line);
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: var(--liv-shadow);
}

.liv-search-copy span,
.liv-search-copy strong {
    display: block;
}

.liv-search-copy span {
    margin-bottom: 5px;
    color: var(--liv-accent);
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: .12em;
}

.liv-search-copy strong {
    color: var(--liv-ink);
    font-size: 16px;
    line-height: 1.35;
}

.liv-search-control {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 56px;
    padding: 6px 7px 6px 15px;
    border: 1px solid rgba(54,43,48,.14);
    border-radius: 12px;
    background: #faf9fa;
}

.liv-search-control > svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #81757b;
    stroke-width: 1.7;
}

.liv-search-control input {
    min-width: 0;
    height: 42px;
    border: 0;
    outline: 0;
    color: var(--liv-ink);
    background: transparent;
    font: inherit;
    font-size: 14px;
}

.liv-search-control button {
    min-width: 90px;
    height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--liv-accent);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.liv-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    max-height: 360px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid var(--liv-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(38,28,33,.18);
}

.liv-search-results > a {
    display: grid;
    grid-template-columns: 62px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 64px;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--liv-ink);
    text-decoration: none;
}

.liv-search-results > a:hover {
    background: #f8f6f7;
}

.liv-result-type {
    min-height: 26px;
    display: grid;
    place-items: center;
    padding: 4px 7px;
    border-radius: 7px;
    color: var(--liv-accent-dark);
    background: #faeaf0;
    font-size: 9.5px;
    font-weight: 850;
}

.liv-search-results strong,
.liv-search-results small {
    display: block;
}

.liv-search-results strong {
    margin-bottom: 3px;
    font-size: 13px;
}

.liv-search-results small {
    overflow: hidden;
    color: var(--liv-muted);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.liv-search-results b {
    color: var(--liv-accent);
}

.liv-search-empty {
    padding: 16px;
    color: var(--liv-muted);
    font-size: 12px;
    text-align: center;
}

.liv-quick-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    overflow: hidden;
    border: 1px solid var(--liv-line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: var(--liv-shadow);
}

.liv-quick-services > a {
    position: relative;
    min-height: 108px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 18px;
    border-right: 1px solid var(--liv-line);
    color: var(--liv-ink);
    background: #fff;
    text-decoration: none;
}

.liv-quick-services > a:last-child {
    border-right: 0;
}

.liv-quick-services > a:hover {
    background: #f8f7f8;
}

.liv-quick-services > a.primary {
    color: #fff;
    background: var(--liv-accent);
}

.liv-quick-services > a.primary:hover {
    background: var(--liv-accent-dark);
}

.liv-quick-icon {
    color: var(--liv-accent);
    font-size: 10px;
    font-weight: 950;
}

.liv-quick-services .primary .liv-quick-icon {
    color: rgba(255,255,255,.72);
}

.liv-quick-services strong,
.liv-quick-services small {
    display: block;
}

.liv-quick-services strong {
    margin-bottom: 5px;
    font-size: 13.5px;
    line-height: 1.3;
}

.liv-quick-services small {
    color: var(--liv-muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.liv-quick-services .primary small {
    color: rgba(255,255,255,.75);
}

.liv-quick-services b {
    color: var(--liv-accent);
}

.liv-quick-services .primary b {
    color: #fff;
}

/* ---------- Existing sections: cleaner Liv-like rhythm ---------- */

.section {
    padding: 82px 0;
}

.center-heading {
    max-width: 820px;
    margin-bottom: 40px;
}

.center-heading::before {
    width: 34px;
    height: 3px;
    margin-bottom: 13px;
    background: var(--liv-accent);
    box-shadow: none;
}

.center-heading h2 {
    color: var(--liv-ink);
    font-size: clamp(34px, 3vw, 44px);
    letter-spacing: -.03em;
}

.center-heading p {
    color: var(--liv-muted);
    font-size: 16px;
}

.card {
    border-color: var(--liv-line);
    border-radius: 15px;
    box-shadow: 0 9px 28px rgba(45,34,39,.06);
}

.card:hover {
    box-shadow: 0 16px 40px rgba(45,34,39,.10);
}

.service-card img {
    height: 220px;
}

.service-card .card-body,
.doctor-card .card-body,
.news-card .card-body {
    padding: 20px;
}

.service-card h3,
.doctor-card h3,
.news-card h3 {
    color: var(--liv-ink);
}

.secondary-button {
    border-radius: 999px;
    color: var(--liv-accent-dark);
    border-color: rgba(188,61,109,.22);
    box-shadow: none;
}

.secondary-button:hover {
    background: var(--liv-accent);
}

/* ---------- Short brand statement ---------- */

.liv-philosophy {
    padding: 62px 0;
    border-top: 1px solid var(--liv-line);
    border-bottom: 1px solid var(--liv-line);
    background: #f7f6f7;
}

.liv-philosophy-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
}

.liv-philosophy-copy {
    max-width: 900px;
}

.liv-philosophy-copy > span {
    display: block;
    margin-bottom: 11px;
    color: var(--liv-accent);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .12em;
}

.liv-philosophy-copy h2 {
    margin: 0 0 10px;
    color: var(--liv-ink);
    font-size: clamp(29px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.liv-philosophy-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--liv-muted);
    font-size: 15px;
    line-height: 1.7;
}

.liv-philosophy-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.liv-philosophy-actions .button {
    border-radius: 999px;
}

.liv-philosophy-actions > a:not(.button) {
    color: var(--liv-accent-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

/* ---------- Gallery/news/footer cleaner ---------- */

.gallery-preview {
    border-radius: 14px;
}

.map-frame,
.appointment-form {
    border-radius: 16px;
}

.appointment-form {
    box-shadow: 0 15px 45px rgba(45,34,39,.08);
}

.site-footer {
    background: #292327;
}

.footer-grid {
    gap: 45px;
}

/* ---------- Mobile ---------- */

@media (max-width: 1320px) {
    .liv-servicebar-hours {
        display: none;
    }

    .liv-nav a {
        padding-inline: 7px;
        font-size: 13px;
    }
}

@media (max-width: 1240px) {
    .liv-servicebar {
        display: none;
    }

    .liv-navbar {
        min-height: 78px;
    }

    .liv-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 585px;
        padding: 70px 0 125px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(26,22,24,.74),
                rgba(26,22,24,.54) 58%,
                rgba(26,22,24,.22)
            );
    }

    .liv-search-section {
        margin-top: -62px;
    }

    .liv-search-panel {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .liv-quick-services {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .liv-quick-services > a:nth-child(2) {
        border-right: 0;
    }

    .liv-quick-services > a:nth-child(-n + 2) {
        border-bottom: 1px solid var(--liv-line);
    }

    .liv-philosophy-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 650px) {
    .liv-brand .brand-logo-full {
        width: 174px;
        height: 52px;
    }

    .site-header.is-scrolled .liv-brand .brand-logo-full {
        width: 164px;
        height: 49px;
    }

    .liv-search-button {
        display: none;
    }

    .hero {
        min-height: 540px;
        padding: 54px 0 112px;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 44px);
    }

    .hero p {
        font-size: 15px;
    }

    .liv-search-section {
        margin-top: -54px;
        padding-bottom: 35px;
    }

    .liv-search-panel {
        padding: 16px;
        border-radius: 13px 13px 0 0;
    }

    .liv-search-control {
        grid-template-columns: 22px minmax(0,1fr);
        min-height: 52px;
        padding-right: 12px;
    }

    .liv-search-control button {
        grid-column: 1 / -1;
        width: 100%;
        height: 40px;
    }

    .liv-quick-services {
        grid-template-columns: 1fr;
        border-radius: 0 0 13px 13px;
    }

    .liv-quick-services > a,
    .liv-quick-services > a:nth-child(2) {
        min-height: 88px;
        border-right: 0;
        border-bottom: 1px solid var(--liv-line);
    }

    .liv-quick-services > a:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 64px 0;
    }

    .liv-philosophy {
        padding: 48px 0;
    }

    .liv-philosophy-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .liv-nav a,
    .liv-search-button,
    .card {
        transition: none;
    }
}
