/*reset*/
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*main*/
:root {
    --primary-bg-color: #E6ECF4;
    --secondary-bg-color: #D6DEE8;
    --primary-font: "Roboto", sans-serif;
    --primary-color: #547FAA;
    --secondary-color: #19102B;
}

* {
    box-sizing: border-box;
    font-family: var(--primary-font);
}

a {
  text-decoration: none;
  color: inherit;
}

html, body {
    height: 100%;
    background-color: var(--primary-bg-color);
    font-family: var(--primary-font);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0rem;
}

.section-tight {
    padding: 3rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.split-layout-tight {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 0.5rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

img, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.section + .section {
    border-top: 1.5px solid rgba(0,0,0,0.05);
}

.section-tight + .section-tight {
    border-top: 1.5px solid rgba(0,0,0,0.05);
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 700;
}

.primary-button {
    background-color: var(--primary-color);
    padding: 0.9rem 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.2rem;
    font-size: 1.1rem;
    color: var(--primary-bg-color);
    transition: background-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    line-height: 1.2;
    width: fit-content;
    text-align: center;
}

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

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.9rem 2rem;
    border-radius: 1.2rem;
    font-weight: 600;
    width: fit-content;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.secondary-button:hover {
    background-color: rgba(255,255,255, 0.85);
    transform: translateY(-4px);
}

.outline-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 0.9rem 2rem;
    border-radius: 1.2rem;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.2s ease;
}

.outline-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.final-cta {
    padding: 0;
    display: flex;
    justify-content: center;
}

.final-cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1.5rem;
}

.final-cta-icon {
    width: 1.5rem;
    height: auto;
}

.final-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: center;
    width: 100%;
    max-width: 500px;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 2rem;
    border: 1.5px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: background-color 0.2s ease;
}

.final-cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

@media (max-width: 1100px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
    }

    .split-layout-tight {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 1.25rem;
    }

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

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .location-written {
        flex-direction: column;
        gap: 2rem;
    }

    .primary-button {
        padding: 0.9rem 1rem;
    }

    .secondary-button {
        font-size: 1.3;
        text-align: center;
    }

}

@media (max-width: 440px) {
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.1;
    }
}

/*header*/

header {
    width: 100%;
    height: 6rem;
    position: sticky;
    top: 0;
    background: var(--primary-bg-color);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.header-container {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 2.5rem;
    width: auto;
}

.clinic-name {
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-clinic-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.secondary-clinic-name {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 2rem;
    position: static;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    background: var(--primary-bg-color);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    list-style: none;
    z-index: 10000;
}

.dropdown-item {
    display: block;
    padding: 0.9rem 1.5rem;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(0,0,0,0.05);
}

.dropdown-menu li:not(:last-child) {
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item span {
    font-size: 1.1em;
    margin-left: 0.2rem;
}

.lang-current {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 1rem;
    border-radius: 1.2rem;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    color: var(--secondary-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.language-icon {
    width: 1.4rem;
    flex-shrink: 0;
    height: auto;
}

.lang-dropdown {
    position: relative;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    font-size: 1.1rem;
    background: var(--primary-bg-color);
    border-radius: 0.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 11000;
    width: max-content;
}

.language-item {
    display: flex;
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
    align-items: center;
    gap: 0.6rem;
}

.language-item:hover {
    background: rgba(0,0,0,0.05);
}

.lang-menu li:not(:last-child) {
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown.active .lang-current span {
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 1100px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-bg-color);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        padding: 1.5rem 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.25s ease;
        pointer-events: none;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
        width: 100%;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-toggle {
        display: block;
    }

    .clinic-name {
        display: none;
    }

    .dropdown-menu {
        display: none;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-item span {
        display: none;
    }

    .nav-item {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        display: block;
        width: 100%;
    }

    .nav-list li:not(:last-child) {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 0.75rem;
    }

    .lang-dropdown.active .lang-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .header-container {
        padding: 0 1.25rem;
    }

    .appointment-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .logo-img {
        height: 2rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .primary-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 440px) {
    .logo-img {
        display: none;
    }
}

/*footer*/
footer {
    background: var(--secondary-color);
    color: #fff;
    margin-top: 4rem;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 0.8fr;
    gap: 2rem;
}

.logo-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    align-self: center;
}

.footer-title {
    font-weight: 600;
}

.footer-nav,
.footer-contact,
.footer-socials {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-menu-item {
    line-height: 1.4rem;
}

.footer-socials-item {
    line-height: 1.4rem;
    display:  flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-menu-item a, .footer-privacy, .footer-socials-item {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    padding: 0.3rem;
}

.footer-menu-item a:hover, .footer-privacy:hover {
    opacity: 1;
}

.footer-icon {
    width: 1rem;
    height: auto;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-socials-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 1.5rem;
    height: auto;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 700px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
        gap: 2rem;
        text-align: left;
    }

    .logo-footer {
        align-items: center;
        text-align: center;
    }

    .footer-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    }

    .footer-menu-item a,
    .footer-socials-item {
        font-size: 0.95rem;
    }

    .footer-socials-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-nav,
    .footer-contact,
    .footer-socials {
        align-items: flex-start;
        text-align: left;
    }   

    .footer-socials-icons {
        justify-content: center;
    }
}