/* Frontend theme - Centenary House brand (Poppins, primary/secondary) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #8a1d03;        /* main brand (buttons, accents) */
    --secondary: #231f20;      /* dark brand (text, hover) */
    --primary-dark: #231f20;   /* kept for legacy usages, same as secondary */
    --primary-light: #f4d3c7;
    --black: #000;
    --realblack: #252525;
    --white: #fff;
    --grey: #ccc;
}

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

/* Scroll reveal animation (used across public pages) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.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;
    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; flex-shrink: 0; }
.navbar-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.navbar-links { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.navbar-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.navbar-partner-logo { height: 40px; display: flex; align-items: center; }
.navbar-partner-logo img { max-height: 40px; width: auto; object-fit: contain; display: block; }
.navbar-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s;
}
.navbar-links a:hover,
.navbar-links a.active {
    color: var(--primary);
}

/* Emphasized Login button in navbar */
.nav-link-login {
    margin-left: 12px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.15s;
}
.nav-link-login:hover,
.nav-link-login.active {
    background: var(--secondary);
    color: var(--primary) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}
@media (max-width: 991px) {
    .nav-link-login {
        display: none;
    }
}
.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, color 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-appointment:hover {
    background: var(--secondary);
    color: var(--primary);
}
@media (max-width: 991px) {
    .navbar { padding: 0 20px; height: 70px; }
    .navbar-links .nav-link { display: none; }
    .navbar-links .nav-link.mobile-show { display: block; }
}

/* 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: 50vh;
    height: 75vh;
    max-height: 820px;
    position: relative;
    overflow: hidden;
}
@media (max-width: 768px) {
    .locator { min-height: 40vh; height: 55vh; max-height: 500px; }
}
.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, color 0.3s, border-color 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

/* Footer */
.footer {
    width: 100%;
    margin-top: 60px;
    padding: 0;
    background: #0d0d0d;
    color: var(--white);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
    padding: 48px 50px 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.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-quote {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
}
.footer-contacts-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-contacts-wrap h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--white);
    letter-spacing: 0.02em;
}
.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(--secondary);
    color: var(--primary);
    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, color 0.3s, transform 0.2s;
    width: fit-content;
}
.btn-appointment-footer:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}
.footer-links h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    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 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    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: 2px;
}
.footer-links a::before {
    content: '›';
    font-size: 0.9rem;
    color: var(--primary);
}
.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, color 0.3s, transform 0.2s;
    white-space: nowrap;
}
.btn-suggestion:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 50px;
    display: flex;
    justify-content: center;
}
.copyright-and-credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
.footer-credits {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
.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: 28px; padding: 40px 24px 24px; }
    .footer-links-wrap { flex-direction: column; gap: 24px; }
    .footer-bottom { padding: 16px 24px; }
    .copyright-and-credits {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }
}
@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; }
}

/* Floating "Book Your Space" button (right middle) */
.book-space-float {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    background: var(--primary);
    color: var(--white);
    padding: 14px 10px;
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.book-space-float:hover {
    background: var(--secondary);
    transform: translateY(-50%) translateX(-2px);
    box-shadow: 0 8px 26px rgba(0,0,0,0.3);
    color: var(--primary);
}
@media (max-width: 768px) {
    .book-space-float {
        padding: 10px 6px;
        font-size: 0.72rem;
        right: 0;
    }
}

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

.main-content { width: 100%; }
