/* VMG shared header and banner corrections — September 2026. */
:root {
  --vmg-header-height: 92px;
  --vmg-hero-height: calc(100vh - var(--vmg-header-height));
  --vmg-admin-offset: 0px;
}
body.admin-bar { --vmg-admin-offset: 32px; }
#page { padding-top: var(--vmg-header-height); }
#masthead.site-header {
  top: var(--vmg-admin-offset);
  height: var(--vmg-header-height);
  box-sizing: border-box;
  padding: 0 120px 0 50px;
  gap: 28px;
  background: #fff;
  border-bottom: 1px solid rgba(24,25,70,.1);
}
#masthead .site-branding { flex: 0 1 376px; min-width: 0; margin: 0; }
#masthead .custom-logo-link { display: block; }
#masthead .custom-logo { display: block; width: 100%; max-width: 376px; height: auto; }
#masthead .custom-logo-link ~ .site-title,
#masthead .custom-logo-link ~ .site-description {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap;
}
#masthead .menu-phone-number-container { margin: 0 0 0 auto; right: auto; flex-shrink: 0; white-space: nowrap; }
#masthead .menu-get-a-quote-container { margin: 0; flex-shrink: 0; white-space: nowrap; }
body > .menu-icon { top: var(--vmg-admin-offset); height: var(--vmg-header-height); width: 92px; }

/* Restore the earlier full-screen banner proportions below the clear header. */
@supports (height: 100svh) {
  :root { --vmg-hero-height: calc(100svh - var(--vmg-header-height)); }
}
#primary .entry-header {
  height: auto !important;
  min-height: var(--vmg-hero-height) !important;
  box-sizing: border-box;
  padding: 48px 50px !important;
  background-position: center bottom !important;
  background-size: cover !important;
  background-repeat: no-repeat;
  display: flex !important;
  align-items: flex-end !important;
  align-content: flex-end;
  justify-content: flex-start !important;
  isolation: isolate;
}
#primary .entry-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(12,14,20,.58) 100%);
}
#primary .entry-header .entry-title {
  margin: 0 !important;
  color: #fff;
  max-width: 1200px;
  font-size: clamp(30px, 3.4vw, 46px) !important;
  line-height: 1.2;
  overflow-wrap: break-word;
}

/* The homepage copy stays in normal flow, so it cannot cross the header. */
#primary .vmg-fresh-hero {
  display: grid; align-items: end; height: auto;
  min-height: var(--vmg-hero-height);
  isolation: isolate;
}
#primary .vmg-fresh-hero .slcontainer { position: absolute; inset: 0; height: 100%; min-height: 0; }
#primary .vmg-fresh-hero .hero-slider,
#primary .vmg-fresh-hero .slick-list,
#primary .vmg-fresh-hero .slick-track,
#primary .vmg-fresh-hero .slick-slide,
#primary .vmg-fresh-hero .img--holder {
  height: 100% !important; min-height: 0;
}
#primary .vmg-fresh-hero .img--holder {
  background-position: center bottom !important;
  transform-origin: center bottom;
}
#primary .vmg-fresh-hero::after {
  background: linear-gradient(180deg, rgba(12,14,20,.04) 12%, rgba(12,14,20,.76) 100%);
  z-index: 1;
}
#primary .vmg-hero-copy {
  position: relative; left: auto; top: auto; transform: none;
  width: 100%; box-sizing: border-box; padding: 48px 50px; margin: 0 auto;
  z-index: 2;
}
#primary .vmg-hero-copy-inner { max-width: 1080px; }
#primary .vmg-hero-copy .vmg-kicker { color: #fff; margin-bottom: 14px; line-height: 1.5; }
#primary .vmg-hero-copy h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700; text-transform: uppercase; line-height: 1.2;
  max-width: 1050px; margin: 0 0 18px;
}
#primary .vmg-hero-copy p { max-width: 1000px; font-size: 18px; line-height: 1.65; margin: 0 0 24px; }
#primary .vmg-hero-actions { gap: 12px; }
#primary .vmg-hero-actions .vmg-btn { text-align: center; }
#primary .vmg-fresh-hero .slick-arrow { top: 28px; z-index: 3; width: 36px; height: 36px; }
#primary .vmg-fresh-hero .PrevArrow { left: auto; right: 104px; }
#primary .vmg-fresh-hero .NextArrow { right: 50px; }

/* Fixed photo restores the shutter-style reveal as the banner scrolls past. */
#vmg-contact-banner.getintouch {
  position: relative; isolation: isolate; box-sizing: border-box;
  height: auto; min-height: 384px; padding: 56px 24px;
  background-image: url(https://www.vmgmarbles.com/wp-content/uploads/2024/04/contactus.jpg);
  background-size: cover; background-position: center bottom !important;
  background-repeat: no-repeat; background-attachment: fixed;
}
#vmg-contact-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(10,14,22,.38);
}
#vmg-contact-banner .row { width: 100%; max-width: 1200px; padding: 0; margin: 0 auto; }
#vmg-contact-banner h2 { margin: 0 0 24px; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.25; color: #fff; }
#vmg-contact-banner .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
#vmg-contact-banner .wp-block-button__link { margin: 0; padding: 13px 24px; border-radius: 999px; font-weight: 700; }
#vmg-contact-banner .wp-block-button:first-child .wp-block-button__link { background: #a73333; color: #fff; }
#vmg-contact-banner .wp-block-button:nth-child(2) .wp-block-button__link { background: #181946; color: #fff; }

@media (max-width: 960px) {
  #masthead.site-header { padding-left: 24px; padding-right: 110px; gap: 18px; }
  #masthead .site-branding { flex-basis: 300px; }
  #primary .entry-header, #primary .vmg-hero-copy { padding: 36px 24px !important; }
}
@media (max-width: 782px) { body.admin-bar { --vmg-admin-offset: 46px; } }
@media (max-width: 768px) {
  :root { --vmg-header-height: 72px; }
  #masthead.site-header { padding-left: 20px; padding-right: 98px; gap: 14px; }
  #masthead .site-branding { flex-basis: 250px; }
  body > .menu-icon { width: 78px; }
  #primary .vmg-hero-copy p { font-size: 17px; line-height: 1.6; }
  #primary .vmg-fresh-hero .NextArrow { right: 24px; }
  #primary .vmg-fresh-hero .PrevArrow { right: 76px; }
  #vmg-contact-banner.getintouch { min-height: 340px; padding: 44px 20px; }
}
@media (max-width: 600px) {
  #masthead .menu-get-a-quote-container { display: none; }
  #masthead .site-branding { margin-right: auto; }
  #primary .entry-header, #primary .vmg-hero-copy { padding: 32px 20px !important; }
  #primary .vmg-hero-copy { padding-top: 88px !important; padding-right: 56px !important; }
  #primary .vmg-fresh-hero::after { background: linear-gradient(180deg, rgba(12,14,20,.35), rgba(12,14,20,.8)); }
  #primary .vmg-hero-copy h1 { font-size: 30px; }
  #primary .vmg-hero-copy .vmg-kicker { font-size: 12px; letter-spacing: .12em; }
  #primary .vmg-hero-actions .vmg-btn { padding: 12px 18px; }
}
@media (max-width: 400px) {
  #masthead.site-header { padding-left: 16px; padding-right: 80px; }
  body > .menu-icon { width: 64px; }
}


/* Shared transparent header: the banner continues behind the navigation. */
body { --vmg-hero-height: 100vh; }
@supports (height: 100svh) {
  body { --vmg-hero-height: 100svh; }
}
body.home #page,
body:has(#primary .entry-header.clear) #page { padding-top: 0; }
body #masthead.site-header {
  background: rgba(255,255,255,.2);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
body #masthead.site-header.nav-shrink {
  background: rgba(255,255,255,.97);
  border-bottom-color: rgba(24,25,70,.1);
}
body #primary .entry-header.clear,
body #primary .vmg-hero-copy {
  padding-top: calc(var(--vmg-header-height) + 64px) !important;
}
body #primary .vmg-fresh-hero .slick-arrow {
  top: calc(var(--vmg-header-height) + 24px);
}
