/* Основні стилі теми AltaMedical */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Типографіка */
body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Сітка */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1 0 0%;
    padding: 0 15px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
}

/* Стилі форм перенесено в assets/css/forms.css */

/* Картки */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card-title {
    margin-bottom: 0.75rem;
}

.card-text:last-child {
    margin-bottom: 0;
}

/* Хедер */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-branding {
    padding: 1rem 0;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Футер */
.site-footer {
    background-color: #343a40;
    color: #fff;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer-widget {
    flex: 1;
    padding: 0 15px;
}

.footer-widget-title {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Утиліти */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Доступність */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Клікабельні контактні посилання */
.contact-phone-link,
.contact-link {
    color: inherit;
    text-decoration: none;
}

/* Специфічні стилі для різних блоків */
.header .contact-phone-link {
    color: inherit;
}

.footer .contact-link {
    color: inherit;
}

.contact-info-section .contact-link {
    color: inherit;
}

/* Кнопки міст у секції філіалів */
.branches-cities .city-item {
    display: inline-block;
    padding-left: 15px;
    padding-right: 15px;
    min-width: 80px;
    text-align: center;
    margin: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(36, 180, 227, 0.08);
    font-weight: 700;
    font-size: 1.25rem;
    color: #24B4E3;
    transition: box-shadow 0.2s;
}

.branches-cities .city-item a {
    color: #24B4E3;
    text-decoration: none;
    display: block;
    padding: 12px 0;
}

.branches-cities .city-item:hover {
    box-shadow: 0 4px 16px rgba(36, 180, 227, 0.16);
}

/* Відступи для text-page */
.text-page .text-hero-section {
    margin-bottom: 60px;
}

.text-page .text-content-section {
    margin-bottom: 60px;
}

/* Галерея сертифікатів/ліцензій (Licenses Page) */
.licenses-gallery-section {
    padding: 60px 0;
}
.licenses-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 0 auto;
    max-width: 1200px;
}
.licenses-gallery-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(36,180,227,0.08);
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px 20px 8px;
}
.licenses-gallery-item:hover {
    box-shadow: 0 4px 16px rgba(36,180,227,0.16);
}
.licenses-gallery-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
    background: #f7f7f7;
    border-radius: 8px;
    transition: transform 0.2s;
}
.licenses-gallery-item:hover .licenses-gallery-img {
    transform: scale(1.04);
}
.licenses-gallery-title {
    font-size: 1rem;
    color: #333;
    margin-top: 4px;
    font-weight: 500;
}

/* Адаптивність */
@media (max-width: 1024px) {
    .licenses-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .licenses-gallery-grid {
        grid-template-columns: 1fr;
    }
    .licenses-gallery-img {
        height: 140px;
    }
}

/* Модальне вікно */
.license-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    text-align: center;
}
.license-modal-content {
    margin: 40px auto 0 auto;
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
    background: #fff;
}
.license-modal-close {
    position: absolute;
    top: 24px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}
.license-modal-close:hover {
    color: #24B4E3;
}
.license-modal-caption {
    color: #fff;
    margin-top: 18px;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Кнопка "На верх" */
.scroll-to-top {
  position: fixed;
  right: 32px;
  bottom: 100px;
  width: 64px;
  height: 64px;
  background: #24B4E3;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(36, 180, 227, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-to-top img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}
@media (max-width: 600px) {
  .scroll-to-top {
    right: 24px;
    bottom: 100px;
    width: 48px;
    height: 48px;
  }
  .scroll-to-top img {
    width: 24px;
    height: 24px;
  }
}

/* Footer logo fix for mobile */
.footer-logo-img {
    max-width: 200px;
    height: auto;
    width: auto;
}

@media (max-width: 768px) {
    .footer-logo-img {
        max-width: 230px;
        height: auto;
        width: auto;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .footer-logo-img {
        max-width: 230px;
        height: auto;
        width: auto;
        object-fit: contain;
    }
} 