/* Custom CSS variables */
*,
*:before,
*:after {
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --brand-100: #f3f7fb;
    --brand-200: #e7eff7;
    --brand-300: #b7cee6;
    --brand-400: #86add5;
    --brand-500: #0e5cab;
    --brand-600: #0a427b;
    --brand-700: #08335e;
    --brand-800: #051e39;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-50: #f8fafc;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;
    --fontBold: 700;
    --fontSemiBold: 600;
    --fontRegular: 400;
    --dividerHeight: 4px;
}

body {
    font-family: Lato, sans-serif;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    max-width: 520px;
}

.button {
    display: inline-flex;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    border: none;
}

.button-primary {
    background-color: var(--brand-500);
    color: var(--white);
}

.button-primary:hover {
    background-color: var(--brand-600);
}

.button-primary:focus-visible { 
    background-color: var(--brand-600);
    box-shadow: 0px 0px 0px 2px var(--brand-400);
}

.button-text {
    padding: 10px 16px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.2px;
    line-height: 20px;
}

.button-icon {
    align-items: center;
    justify-content: center;
    padding: 8px;
    height: 32px;
    width: 32px;
}

.button-secondary {
    color: var(--brand-500);
    border: 1px solid var(--brand-500);
    background-color: transparent;
}

.button-secondary:hover {
    color: var(--brand-600);
    border-color: var(--brand-600);
    background-color: var(--brand-200);
}

.button-secondary:focus-visible {
    color: var(--brand-600);
    background-color: var(--brand-200);
    border-color: var(--brand-600);
    box-shadow: 0px 0px 0px 2px var(--brand-400);
}

.site-header {
    background-color: var(--white);
    padding: 8px 0 8px;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    box-shadow: 0px -4px 10px 0px rgba(0,0,0,0.15)
}

.site-header_container {
    position: relative;
}

.navbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
}

.navbar-link {
    text-decoration: none;
}

.nav-logo {
    width: 106px;
    height: 40px;
    display: block;
}

.nav-menu {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.16);
    list-style-type: none;
    padding: 8px 0;
    overflow: hidden;
    width: 180px;
    position: absolute;
    right: 0;
    top: 20px;
    transition: all 0.15s linear;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0,-10px,0);
}

.nav-menu__active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0,0,0);
}

.nav-menu_item {
    margin: 0;
}

.nav-menu-link {
    display: flex;
    border-left: 4px solid transparent;
    color: var(--gray-700);
    font-size: 14px;
    gap: 8px;
    line-height: 20px;
    padding: 12px 20px;
    text-decoration: none;
}

.nav-menu-link:hover {
    color: var(--brand-500);
    background-color: var(--gray-100, #F1F5F9);
}

.nav-menu-link:focus {
    background-color: var(--gray-100, #F1F5F9);
}

.nav-menu-link.active {
    color: var(--brand-500);
    border-color: var(--brand-500, #0E5CAB);
}

.section-title-container {
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-weight: var(--fontBold);
    color: var(--gray-700);
    display: inline-block;
    font-size: 20px;
    line-height: normal;
    margin: 0;
}

.section-title:after {
    content: '';
    background-color: var(--gray-700);
    display: block;
    height: var(--dividerHeight);
    width: 100%;
    margin-top: 20px;
    opacity: .3;
}

.border-spacer {
    border-radius: 8px;
    height: var(--dividerHeight);
}

.intro-section {
    background-color: var(--brand-700);
    color: var(--white);
    padding: 24px 4px;
}

.intro-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.intro-text {
    background-color: var(--brand-600);
    border-radius: 8px 48px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    gap: 24px;
}

.intro-text_title {
    font-size: 20px;
    font-weight: var(--fontBold);
    margin: 0;
}

.intro-image {
    background-image: url('/sante-sport/assets/intro.jpg');
    background-position: center;
    background-size: cover;
    border-radius: 48px 8px;
    height: 0;
    padding-bottom: 56.25%;
    width: 100%;
}

.intro-spacer {
    width: 33.33%;
    background-color: var(--white);
}

.intro-text_description {
    color: var(--brand-300);
    font-size: 14px;
    font-weight: var(--fontSemiBold);
    line-height: 20px;
    margin: 0;
}

.page-section {
    padding: 32px 20px 48px;
}

.service-item-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-thumbnail {
    background-size: cover;
    background-position: center;
    border: 1px solid var(--gray-300);
    border-radius: 8px 48px;
    height: 0;
    padding-bottom: 52%;
    width: 100%;
}

.service-content-divider {
    display: none;
}

.service-title {
    color: var(--gray-600);
    font-size: 18px;
    font-weight: var(--fontBold);
    margin: 0 0 8px;
}

.service-subtitle,
.service-description {
    font-size: 14px;
    line-height: 20px;
}

.service-subtitle {
    color: var(--gray-800);
    font-weight: var( --fontBold);
    margin: 12px 0 4px;
}

.service-description {
    color: var(--gray-600);
    margin: 0 0 20px;
}

.team-physician-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.team-section {
    background: var(--brand-100);
}

.team-physician {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 308px;
}

.team-physician_thumbnail {
    background-size: cover;
    background-position: center;
    border: 2px solid var(--gray-200, #E2E8F0);
    border-radius: 80px;
    width: 80px;
    height: 80px;
}

.team-physician_credentials {
    color: var(--gray-800);
    flex-grow: 1;
}

.team-physician_name {
    font-size: 14px;
    font-weight: var(--fontSemiBold);
    line-height: 20px;
    margin: 0;
}

.team-physician_title,
.team-physician_experience {
    font-size: 12px;
    font-weight: var(--fontRegular);
    line-height: 14px;
    margin: 4px 0 0;
}

.contact-section {
    background-color: var(--gray-700);
    color: var(--gray-200);
    font-size: 14px;
    font-weight: var(--fontRegular);
    line-height: 20px;
}

.section-title_contact {
    color: var(--gray-300);
}

.section-title_contact:after {
    background-color: var(--gray-300);
}

.contact-section_info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-section_info-item + .contact-section_info-item {
    margin-top: 20px;
}

.contact-section_item-icon-container {
    display: flex;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 20px;
    background: var(--gray-600);
}

.contact-section_info-details {
    margin: 0;
    flex-grow: 1;
}

.contact-section_hours-row td {
    padding-right: 16px;
}

.contact-section_cell-day {
    width: 30%;
}

.contact-section_map-container {
    position: relative;
    height: 0;
    padding-bottom: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 40px;
}

.contact-section_map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
}

.site-footer {
    padding: 24px 20px;
    background: var(--gray-800);
    color: var(--gray-400);
    font-size: 11px;
    font-weight: var(--fontRegular);
    line-height: 13px;
}

.site-footer_list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
}

.site-footer p {
    margin: 0; 
}

.site-footer a {
    color: inherit;
}

.site-footer a:hover {
    color: var(--gray-100);
}



@media (min-width: 768px) {
    .container {
        max-width: 800px;
    }

    .intro-section {
        padding: 32px 4px 32px;        
    }

    .intro-layout {
        flex-direction: row;
        gap: 32px;
    }

    .intro-text {
        padding: 40px;
    }

    .intro-image {
        padding: 0;
        height: auto;
    }

    .page-section {
        padding: 48px 44px 64px;
    }

    .service-title {
        margin-bottom: 12px;
    }

    .service-grid {
        display: flex;
        gap: 32px;
    }

    .service-thumbnail {
        padding: 0;
        height: auto;
        width: 248px;
        flex-shrink: 0;
    }

    .service-subtitle {
        margin-bottom: 8px;
        margin-top: 0;
    }

    .team-physician_thumbnail {
        width: 108px;
        height: 108px;
    }

    .team-physician_name {
        font-size: 16px;
        line-height: 22px;
    }

    .team-physician_title {
        font-size: 14px;
        line-height: 20px;
    }

    .contact-section_layout {
        display: flex;
        gap: 24px;
    }

    .contact-section_map-container {
        padding: 0;
        height: auto;
        margin: 0;
    }

    .contact-section_map-frame {
        position: relative;
    }

    .site-footer_list {
        gap: 20px;
        flex-direction: row;
    }
}



@media (min-width: 992px) {
    .container {
        max-width: 992px;
    }

    .nav-logo {
        width: 138px;
        height: 54px;
    }

    .nav-menu {
        display: flex !important;
        position: relative;
        right: auto;
        top: auto;
        width: auto;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        margin: 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none;
        transition: none;
    }

    .nav-menu-link {
        padding: 24px 16px;
        border: 0;
        border-bottom: 4px solid transparent;
    }
    
    .site-header {
        padding: 0;
    }
    
    .intro-spacer {
        width: 25%;
    }

    .intro-section {
        padding: 40px 4px 40px;
    }

    .intro-text {
        padding: 56px 56px 64px 56px;
        gap: 32px;
    }
    
    .intro-text_title {
        font-size: 32px;
    }

    .intro-text_description {
        font-size: 20px;
        line-height: 1.3;
    }

    .intro-image {
        flex-shrink: 0;
        width: 360px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title-container {
        margin-bottom: 56px;
    }

    .service-item {
        flex: 1;
    }

    .service-grid {
        flex-direction: column;
        gap: 20px;
    }

    .service-title {
        margin-bottom: 20px;
        font-size: 20px;
    }
    
    .service-thumbnail {
        height: 0;
        padding-bottom: 56.25%;
        width: 100%;
    }
    
    .service-item-list {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .service-content-divider {
        display: block;
        height: var(--dividerHeight);
        border-radius: 4px;
        background: var(--gray-300);
        width: 40px;
    }

    .team-physician-list {
        gap: 48px 32px;
    }

    .team-physician {
        flex-basis: 296px;
    }

    .header-menu-trigger-button {
        display: none;
    }

    .contact-section_map-container {
        flex-shrink: 0;
        width: 65%;
    }

    .contact-section_clinic-info {
        flex: 1 1 auto;
    }
}



@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .intro-image {
        width: 480px;
    }

    .intro-text {
        padding: 64px 56px 88px 56px;
        gap: 42px;
    }
    
    .page-section {
        padding: 56px 56px 80px;
    }
    
    .service-title {
        font-size: 24px;
    }
    
    .service-grid {
        gap: 24px;
    }
    
    .service-subtitle {
        font-size: 16px;
        line-height: 22px;
    }
    
    .team-physician_thumbnail {
        width: 140px;
        height: 140px;
    }
    
    .team-physician-list {
        gap: 56px 40px;
    }
    
    .team-physician_title {
        font-weight: var(--fontSemiBold);
    }
    
    .team-physician_experience {
        font-size: 14px;
        line-height: 20px;
    }

}