/* Frontend theme - matches Vue template (Poppins, #f46f58) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #f46f58;
    --primary-dark: #e64b2e;
    --primary-light: #f46f583b;
    --black: #000;
    --realblack: #252525;
    --white: #fff;
    --grey: #ccc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--realblack); overflow-x: hidden; }

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.main-content {
    width: 100%;
}

.content {
    width: 100%;
    padding: 0 30px;
}
@media (max-width: 500px) { .content { padding: 0 20px; } }

/* Site loader (preload) - ECG heartbeat animation */
#site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#site-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-ecg {
    width: 140px;
    height: 50px;
    color: var(--primary);
}
.loader-ecg__svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.loader-ecg__path {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: ecgDraw 1.4s ease-in-out infinite;
}
@keyframes ecgDraw {
    0% { stroke-dashoffset: 260; }
    45% { stroke-dashoffset: 0; }
    55% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 260; }
}

/* Top bar */
.topheader {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 20px;
    background: var(--primary);
    color: var(--white);
}
.topheader a { color: var(--white); text-decoration: none; }
.topheader .top-left { display: flex; align-items: center; gap: 20px; font-size: 0.8rem; }
.topheader .top-left svg { width: 17px; height: 17px; margin-right: 5px; fill: var(--white); vertical-align: middle; }
.topheader .top-right { display: flex; align-items: center; gap: 20px; }
.topheader .top-right a { display: inline-flex; }
.topheader .top-right svg { width: 17px; height: 17px; fill: var(--white); }
@media (max-width: 600px) { .topheader { padding: 7px 10px; } .topheader .top-left { font-size: 0.7rem; } }
@media (max-width: 430px) { .topheader { display: none; } }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    height: 80px;
}
.navbar-logo { width: 150px; height: 50px; display: flex; align-items: center; }
.navbar-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); }
.btn-appointment {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-appointment:hover { background: var(--primary-dark); color: var(--white); }

/* Mobile menu toggler (hamburger) - visible only on small screens */
.navbar-toggler {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--realblack);
    position: relative;
    transition: transform 0.3s, opacity 0.3s;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--realblack);
    transition: transform 0.3s;
}
.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { bottom: -7px; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { background: transparent; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
.navbar-mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
}
.navbar-mobile-dropdown .nav-link,
.navbar-mobile-dropdown .btn-appointment {
    padding: 12px 16px;
    border-radius: 6px;
    display: block;
    text-decoration: none;
}
.navbar-mobile-dropdown .nav-link:hover,
.navbar-mobile-dropdown .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}
.navbar-mobile-dropdown .btn-appointment {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .navbar { padding: 0 20px; height: 70px; position: relative; }
    .navbar-links { display: none; }
    .navbar-toggler { display: flex; }
    .navbar-mobile-dropdown {
        display: flex;
    }
}

/* Page locator (hero strip) - full width, title & caption on image, centered */
.locator-outer {
    width: 100vw;
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    left: 0;
}
.locator {
    width: 100%;
    min-height: 45vh;
    height: 55vh;
    max-height: 520px;
    position: relative;
    overflow: hidden;
}
@media (max-width: 768px) {
    .locator { min-height: 35vh; height: 45vh; max-height: 400px; }
}
.locator-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.locator img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.locator-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}
.locator-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
.locator-title {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    font-size: 2rem;
    margin: 0 0 8px 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.locator-caption {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
@media (max-width: 768px) {
    .locator-title { font-size: 1.5rem; }
    .locator-caption { font-size: 1rem; }
}

/* Section headings */
.section-heading { font-size: 1.1rem; font-weight: 600; color: var(--primary); text-transform: uppercase; margin-bottom: 5px; }
.section-sub { font-size: 0.9rem; color: #666; margin-bottom: 24px; }

/* Buttons */
.btn-primary {
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }

/* Footer */
.footer {
    width: 100%;
    margin-top: 60px;
    padding: 0;
    background: #0d0d0d;
    color: var(--white);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
    padding: 48px 50px 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}
.footer-logo-img {
    max-width: 200px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.98;
}
.footer-logo-link:hover .footer-logo-img {
    opacity: 1;
}
.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
}
.footer-contact-icon {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}
.footer-contact-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--primary); }
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}
.footer-social-icon:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-appointment-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    width: fit-content;
}
.btn-appointment-footer:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.footer-links h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
    letter-spacing: 0.02em;
}
.footer-links-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    justify-content: space-between;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}
.btn-suggestion {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}
.btn-suggestion:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
}
.footer .copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
.footer-credits {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}
.footer-credits a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-credits a:hover {
    color: var(--primary);
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 24px; }
    .footer-links-wrap { flex-direction: column; gap: 24px; }
    .footer-bottom { padding: 16px 24px; }
}
@media (max-width: 630px) {
    .footer-grid { padding: 32px 20px 20px; }
}

/* Floating WhatsApp button (left lower side) */
.whatsapp-float {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
    color: var(--white);
}
@media (max-width: 600px) {
    .whatsapp-float { left: 16px; bottom: 16px; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
}

/* Wire navigate progress bar (optional) */
 [x-cloak] { display: none !important; }

.main-content { width: 100%; }
