:root {
    --bg: #f4f8ff;
    --bg-soft: #edf4ff;
    --surface: #ffffff;
    --text: #1d2939;
    --muted: #667085;
    --primary: #0f4c8121;
    --primary-2: #1066b1;
    --accent: #18a0fb;
    --border: rgba(15, 76, 129, 0.14);
    --shadow-lg: 0 20px 50px rgba(16, 40, 72, 0.12);
    --shadow-md: 0 10px 30px rgba(16, 40, 72, 0.08);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Bahnschrift", "Segoe UI", "Inter", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 5% 8%, rgba(24, 160, 251, 0.22), transparent 35%),
        radial-gradient(circle at 95% 0%, rgba(15, 76, 129, 0.16), transparent 36%),
        var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    /* position: sticky; */
    top: 0;
    z-index: 100;
    padding-top: 10px;
    background: transparent;
    border: none;
    transition: padding-top 0.25s ease;
}

.site-header .container {
    width: 100%;
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
}

.page-content.container {
    width: 87%;
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 0 6px;
    transition: gap 0.25s ease, padding 0.25s ease;
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.08);
    backdrop-filter: blur(8px);
    transition: none;
}

.header-bottom {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.08);
    transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-align: center;
    text-decoration: none;
}

.brand-logo {
    width: 116px;
    /* height: 116px; */
    object-fit: contain;
    border-radius: 0;
    filter: none;
    transition: none;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 700;
    transition: none;
}

.brand-subtitle {
    display: none;
    font-size: 1rem;
    font-weight: 500;
    transition: none;
}

.header-contact {
    position: static;
    transform: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: #111111;
    padding-top: 0;
    flex-wrap: wrap;
    transition: none;
}

.header-contact a,
.header-contact span {
    text-decoration: none;
    color: inherit;
    font-size: 0.95rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    font-weight: 700;
    color: #23364c;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.96rem;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #0f4c81;
    background: rgba(16, 102, 177, 0.12);
    border-color: rgba(16, 102, 177, 0.18);
}


.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(16, 102, 177, 0.22);
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #edf5ff);
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--primary);
}

.page-content {
    min-height: calc(100vh - 220px);
    padding: 56px 0;
}

h1,
h2 {
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.95rem, 4vw, 3rem);
    color: #0e3557;
}

h2 {
    font-size: 1.25rem;
    color: #12395f;
}

p {
    margin-top: 0;
}

.eyebrow {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 12px;
    color: var(--primary-2);
    background: rgba(16, 102, 177, 0.12);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lead {
    color: #334155;
}

.hero,
.section-head,
.contact-cta {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: clamp(24px, 4vw, 42px);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 28px;
    align-items: start;
    margin: 13px;
}

.hero-copy .lead {
    margin-bottom: 12px;
}

.hero-hint {
    margin-top: 10px;
    color: #37516b;
    font-weight: 500;
}

.hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-image,
.team-photo {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(15, 76, 129, 0.15);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.hero-media-text {
    margin: 0;
    text-align: center;
    color: #284866;
    font-weight: 500;
}

.hero-media-actions {
    margin-top: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: var(--shadow-md);
}

.btn-doctolib {
    gap: 8px;
}

.btn-doctolib-logo {
    height: 18px;
    object-fit: contain;
    border-radius: 0;
    flex-shrink: 0;
}

.btn-secondary {
    color: var(--primary);
    background: #ffffff;
    border: 1px solid var(--border);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.card {
    grid-column: span 4;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.card p {
    color: #475467;
    margin-bottom: 0;
}

.hero-copy .lead,
.section-head .lead,
.card p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card-image {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(15, 76, 129, 0.15);
}

.service-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.service-detail {
    margin-top: 16px;
}

.service-detail-image {
    max-width: 360px;
}

.service-address {
    font-weight: 600;
}

.muted {
    color: var(--muted);
    font-weight: 600;
}

.contact-grid .card {
    grid-column: span 4;
}

.hours-section {
    margin-top: 26px;
}

.hours-head {
    margin-bottom: 16px;
}

.hours-grid .hours-card {
    grid-column: span 6;
}

.hours-card h3 {
    margin: 0 0 10px;
    color: #12395f;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 76, 129, 0.12);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 700;
    color: #1f3c5c;
}

.hours-time {
    color: #37516b;
    text-align: right;
}

.hours-note {
    margin-top: 12px;
    margin-bottom: 0;
    color: #4b6076;
}

.hours-note a {
    color: #0f4c81;
    text-decoration: none;
    font-weight: 700;
}

.appointment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.cv-grid .cv-card {
    grid-column: span 6;
}

.cv-grid .cv-card-wide {
    grid-column: span 12;
}

.cv-grid-table .card h2 {
    margin-bottom: 14px;
}

.cv-table-wrap {
    overflow-x: auto;
}

.cv-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(16, 102, 177, 0.14);
    background: #ffffff;
}

.cv-table th,
.cv-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(16, 102, 177, 0.12);
    vertical-align: top;
    text-align: left;
}

.cv-table thead th {
    background: rgba(16, 102, 177, 0.1);
    color: #12395f;
    font-weight: 700;
}

.cv-table tbody tr:nth-child(even) {
    background: rgba(16, 102, 177, 0.03);
}

.cv-table tbody tr:last-child td,
.cv-table tbody tr:last-child th {
    border-bottom: none;
}

.cv-col-period {
    width: 180px;
    white-space: nowrap;
    color: #0f4c81;
    font-weight: 700;
}

.team-card {
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.team-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.specialty-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(16, 102, 177, 0.12);
    color: #0f4c81;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(16, 102, 177, 0.18);
}

.team-photo {
    margin-bottom: 10px;
}

.team-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-cta {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    color: #1f3c5c;
}

.site-footer {
    margin-top: 16px;
    color: #d7e8fb;
    background: linear-gradient(130deg, #0c3255, #092944);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 30px 0 24px;
}

.footer-col {
    min-width: 0;
}

.footer-col + .footer-col {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 18px;
}

.footer-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-links a {
    text-decoration: none;
    color: #d7e8fb;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-inner p {
    margin: 0 0 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 12px 0 20px;
    color: #b9d3ef;
    font-size: 0.9rem;
}

.cookie-notice {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 29, 49, 0.96);
}

.cookie-notice-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0 14px;
}

.cookie-notice p {
    margin: 0;
    color: #d7e8fb;
}

.cookie-notice a {
    color: #ffffff;
    text-decoration: underline;
}

.scroll-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(15, 76, 129, 0.2);
    background: linear-gradient(135deg, #ffffff, #e8f2ff);
    color: #0f4c81;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 76, 129, 0.24);
    z-index: 220;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.scroll-top-button:hover {
    transform: translateY(6px);
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .header-top {
        padding: 14px 16px;
    }

    .header-bottom {
        padding: 8px 10px;
    }

    .header-contact {
        font-size: 0.9rem;
        gap: 14px;
    }

    .card {
        grid-column: span 6;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

* {
    border-radius: 5px !important;
}

