/* Site-specific overrides on top of Bootstrap. */

/* Navbar uses .fixed-top (position: fixed), which takes it out of normal
   document flow. Push page content down by the navbar's rendered height
   so the hero section doesn't start underneath it. */
body {
    padding-top: 88px;
}

/* Slightly roomier fixed navbar to give the icon + wordmark lockup some
   breathing room. Keep body padding-top above in sync with the rendered
   height so content never hides behind it. */
.site-header .navbar {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

/* Mobile navbar toggler shows the word "MENIU" instead of the default
   hamburger icon. Styled to match the weight/color of the other nav
   links rather than looking like a separate control. */
.navbar-toggler-text {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: rgba(0, 0, 0, 0.65);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-text:focus {
    box-shadow: none;
}

/* Footer background photo, darkened with a gradient overlay so the
   white (text-light) footer text stays readable on top of it. */
.site-footer {
    background-image: linear-gradient(rgba(15, 20, 26, 0.82), rgba(15, 20, 26, 0.82)), url('/assets/img/footer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mobile nav dropdown only (below Bootstrap's lg breakpoint, where
   .navbar-collapse becomes the toggleable panel). Desktop keeps the
   default white navbar untouched. Dark navy = footer's dark tone
   (rgb(15, 20, 26)) tinted slightly toward the primary blue used by the
   "Programează-te chiar acum" button, so menu/footer/CTA read as one palette. */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #0f223c;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding: 1rem 0.75rem;
    }

    .navbar-collapse .nav-link {
        color: rgba(255, 255, 255, 0.85);
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link:focus {
        color: #ffffff;
    }

    /* Close ("X") button shown inside the open mobile menu, top-right. */
    .navbar-close-btn {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.75rem;
        line-height: 1;
        padding: 0 0.25rem;
        margin-bottom: 0.5rem;
    }

    .navbar-close-btn:hover,
    .navbar-close-btn:focus {
        color: #ffffff;
    }
}

/* "Built by NRFBIZ" footer credit. Kept small and understated to match the
   copyright line above it; mirrors how nrfbiz.com shows the same lockup
   (muted text, small size, centered). The SVG is white and sits on the
   dark footer. */
.nrfbiz-credit-logo {
    height: 2em;          /* ~2x the "Built by" text height, sits inline with it */
    width: auto;
    aspect-ratio: 1 / 1;  /* logo viewBox is square; keep it square if a browser
                             ignores the intrinsic ratio of a viewBox-only SVG */
    flex: 0 0 auto;       /* it's a flex item of the .d-inline-flex link */
    min-width: 0;         /* don't let the SVG's intrinsic size set a min-width */
}

.footer-credit-link:hover,
.footer-credit-link:focus {
    color: #ffffff !important;
}

/* Brief loading indicator over a service image while a newly selected tab's
   image is still downloading. Tab images are preloaded on page load, so this
   only ever shows on slow connections. */
.image-tabs-spinner {
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Service subcategory tabs: full content panels swapped by top-level pills
   (see includes/service-images.php). Offset the scroll target so the fixed
   navbar doesn't cover the tab bar when a panel is switched. */
.subcategory-tabs {
    scroll-margin-top: 90px;
}

/* Head/face icon + stacked "Reconstruct / Maxillodent" wordmark that
   together form the navbar brand lockup. */
.navbar-brand-icon {
    height: 42px;
    width: auto;
}

.navbar-brand-wordmark {
    height: 40px;
    width: auto;
}

/* servicii.php header banner: primary-blue strip with a subtle, low-opacity
   repeating pattern of clinical Bootstrap Icons (plus-lg / capsule / check-circle)
   behind centered white heading + intro text. */
.services-banner {
    position: relative;
    background-color: var(--bs-primary);
    overflow: hidden;
}

.services-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22150%22%20height%3D%22150%22%20viewBox%3D%220%200%20150%20150%22%20fill%3D%22%23ffffff%22%3E%3Cg%20transform%3D%22translate(12%2C14)%20scale(2.2)%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M8%202a.5.5%200%200%201%20.5.5v5h5a.5.5%200%200%201%200%201h-5v5a.5.5%200%200%201-1%200v-5h-5a.5.5%200%200%201%200-1h5v-5A.5.5%200%200%201%208%202%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(96%2C18)%20scale(1.9)%22%3E%3Cpath%20d%3D%22M1.828%208.9%208.9%201.827a4%204%200%201%201%205.657%205.657l-7.07%207.071A4%204%200%201%201%201.827%208.9Zm9.128.771%202.893-2.893a3%203%200%201%200-4.243-4.242L6.713%205.429z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(44%2C90)%20scale(1.8)%22%3E%3Cpath%20d%3D%22M8%2015A7%207%200%201%201%208%201a7%207%200%200%201%200%2014m0%201A8%208%200%201%200%208%200a8%208%200%200%200%200%2016%22%2F%3E%3Cpath%20d%3D%22m10.97%204.97-.02.022-3.473%204.425-2.093-2.094a.75.75%200%200%200-1.06%201.06L6.97%2011.03a.75.75%200%200%200%201.079-.02l3.992-4.99a.75.75%200%200%200-1.071-1.05%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(110%2C102)%20scale(1.7)%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M8%202a.5.5%200%200%201%20.5.5v5h5a.5.5%200%200%201%200%201h-5v5a.5.5%200%200%201-1%200v-5h-5a.5.5%200%200%201%200-1h5v-5A.5.5%200%200%201%208%202%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
    opacity: 0.13;
    pointer-events: none;
}

.services-banner > .container {
    position: relative;
}

/* Floating "back to top" button — shown after scrolling down (main.js adds
   .is-visible). Small circular button, fixed bottom-right, site-wide. */
#back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Photo gallery (galerie.php): uniform 4:3 thumbnails in a responsive grid;
   clicking one opens the full image in a Bootstrap modal (see main.js). */
.gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #f8f9fa;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
    transform: scale(1.05);
}
