/* Core Web Vitals: reserve space, prevent layout shift */

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

img[width][height]:not(.logo img) {
    height: auto;
}

picture {
    display: block;
    line-height: 0;
}

.footer-logo picture,
.footer-logo img {
    max-width: 326px;
    background: #fff;
    padding: 5px 30px;
    box-sizing: border-box;
}

.single-service-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.single-service-img img,
.single-service-img picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-about-img-inner {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.single-about-img-inner img,
.single-about-img-inner picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hgb-gmb-card__image {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.hgb-gmb-card__image picture,
.hgb-gmb-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hgb-gmb-card__badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
}

.hgb-video-card__embed {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #111;
}

.hgb-video-card__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hgb-intro-modal-video {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000;
}

.hgb-intro-modal-video iframe,
.hgb-intro-modal-video video,
#introYoutubePlayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

#introYoutubePlayer iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hgb-video-local video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.hgb-short-card a {
    display: block;
    aspect-ratio: 9 / 16;
    position: relative;
    overflow: hidden;
}

.hgb-short-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-section,
.home-single-slide {
    min-height: clamp(420px, 55vw, 800px);
}

.home-single-slide {
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
    aspect-ratio: 16 / 7;
}

#page-banner .single-page-title-area {
    min-height: clamp(220px, 32vw, 360px);
    aspect-ratio: 16 / 5;
}

/* Font fallback metrics to reduce CLS while Google Fonts load */
body {
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.top-tagline {
    font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

@media (max-width: 767px) {
    .home-single-slide {
        min-height: 420px;
        aspect-ratio: 4 / 5;
    }

    .slider-section {
        min-height: 420px;
    }
}
