/* =====================================================================
   site.css — shared chrome: top bar, navbar, footer, mobile bottom bar.
   Page-specific styles stay in each page's own <style> block.
   ===================================================================== */
:root {
    --brand-teal: #57CCC3;
    --brand-pink: #FD556D;
    --brand-pink-hover: #e04359;
    --text-gray: #6e7272;
    --bg-light: #f8f9fa;
    --topbar-h: 34px;
    --nav-h: 83px;
    --header-h: calc(var(--topbar-h) + var(--nav-h)); /* refined by JS to the real height */
    --bottombar-h: 62px;
}

html { scroll-padding-top: var(--header-h); }
/* prevent stray horizontal scroll on narrow phones (rows with negative gutters) */
html, body { max-width: 100%; overflow-x: hidden; }

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    padding-top: var(--header-h);
}

/* === STICKY HEADER (top bar + navbar scroll as one unit) === */
.site-header { z-index: 1030; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.top-bar {
    background-color: var(--brand-teal);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: var(--topbar-h);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: var(--topbar-h);
}
.top-bar-item {
    color: white;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    padding: 6px 0;
}
.top-bar-item:hover { color: #fff; text-decoration: underline; }

/* Navbar (same look as before, minus fixed-top — the wrapper is fixed now) */
.navbar { background: white; min-height: var(--nav-h); }
.navbar-brand { font-weight: 700; font-size: 1.4rem; }
.nav-link { color: #333 !important; font-weight: 600; margin: 0 10px; }
.nav-link:hover { color: var(--brand-teal) !important; }

.btn-brand {
    background-color: var(--brand-pink);
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    display: inline-block;
}
.btn-brand:hover { background-color: var(--brand-pink-hover); color: white; transform: translateY(-2px); }

/* === FOOTER === */
footer {
    background-color: #222;
    color: #ccc;
    padding-top: 60px;
    overflow: hidden;
}
footer h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; }
footer p { color: #ccc; }
footer ul { list-style: none; padding-left: 0; }
footer ul li { margin-bottom: 12px; }
footer ul li a { color: #ccc; text-decoration: none; transition: 0.3s; }
footer ul li a:hover { color: var(--brand-teal); padding-left: 5px; }
footer .social-icons a {
    color: white;
    background: var(--brand-teal);
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}
footer .social-icons a:hover { background: var(--brand-pink); }
.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}
.map-container iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 10px;
}

/* === CLICK-TO-PLAY YOUTUBE === */
.yt-lazy { position: relative; cursor: pointer; background: #000; overflow: hidden; }
.ratio > .yt-lazy { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } /* keep Bootstrap's aspect-ratio box behaviour */
.yt-lazy img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-lazy .yt-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 68px; height: 48px; border-radius: 12px;
    background: rgba(253, 85, 109, 0.95);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 22px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transition: transform 0.2s ease;
}
.yt-lazy:hover .yt-play, .yt-lazy:focus .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-lazy iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* === MOBILE BOTTOM BAR (3 equal thirds, icon above label) === */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 8px 4px 7px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.mobile-bottom-nav a i { font-size: 20px; }
.mobile-bottom-nav a:hover, .mobile-bottom-nav a:focus { color: white; filter: brightness(0.95); }
.btn-mobile-call { background-color: var(--brand-pink); }
.btn-mobile-whatsapp { background-color: #25D366; }
.btn-mobile-directions { background-color: var(--brand-teal); }

/* === RESPONSIVE === */
@media (max-width: 767.98px) {
    /* room for the fixed bottom bar so it never covers the footer */
    body { padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom)); }
    :root { --topbar-h: 30px; }
    .top-bar { font-size: 0.78rem; }
    .top-bar .container { padding-left: 12px; padding-right: 12px; }
    .top-bar-item { padding: 4px 0; }
}
@media (max-width: 400px) {
    /* very narrow phones: drop the pin icon, keep both items on one line */
    .top-bar-location i { display: none; }
    .top-bar { font-size: 0.74rem; }
}
