/* extravaganzaproductions.com — site additions on top of the carried Divi CSS.
   Brand colours from the live site: magenta #be2065 / #b02566, gold #f7c848, charcoal #444. */
:root { --epi-mag: #be2065; --epi-mag-dark: #9c1a53; --epi-gold: #f7c848; --epi-ink: #1d1d1f; --epi-muted: #555; --epi-line: #e3e3e6; }

/* JB standard (decided for all clients): the whole header stack — branding, contact, menu — stays fixed on scroll. */
.et-l--header { position: sticky; top: 0; z-index: 1000; }
.et-l--header .et_pb_section { transition: box-shadow .2s; }
html { scroll-padding-top: 190px; }
@media (max-width: 980px) { html { scroll-padding-top: 150px; } }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; color: #000; padding: 10px 14px; font-weight: 700; }
.skip-link:focus { left: 10px; top: 10px; }
#main-content:focus { outline: none; }

/* Divi module links carried as real links */
a.epi-block-link { display: block; color: inherit; text-decoration: none; }
a.epi-block-link:hover { opacity: .92; }

/* YouTube click-to-load */
.yt-facade { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 4px; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; background: #e00; border-radius: 12px; }
.yt-play::after { content: ''; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.yt-facade:hover .yt-play, .yt-facade:focus .yt-play { background: #c00; }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.et_pb_code_inner iframe[src*="google.com/maps"] { width: 100%; max-width: 100%; }

/* Reviews (verbatim) */
.rv-block { color: var(--epi-ink); }
.rv-h { font-size: 26px; margin: 28px 0 14px; color: var(--epi-ink); }
.rv-count { color: var(--epi-muted); font-weight: 400; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.rv-teaser .rv-grid { grid-template-columns: 1fr; }
.rv-card { margin: 0; background: #fff; border: 1px solid var(--epi-line); border-radius: 8px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 8px; }
.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--epi-mag); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex: none; }
.rv-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.rv-who { display: flex; flex-direction: column; line-height: 1.3; color: var(--epi-ink); }
.rv-co { color: var(--epi-muted); font-size: 14px; }
.rv-meta { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--epi-muted); }
.rv-stars { color: #e7a800; letter-spacing: 1px; font-size: 16px; }
.rv-title { font-weight: 700; margin: 0; padding: 0; color: var(--epi-ink); }
.rv-text { margin: 0; padding: 0; border: 0; font-style: normal; white-space: pre-line; color: #222; font-size: 16px; line-height: 1.6; quotes: none; }
.rv-text::before, .rv-text::after { content: none; }
.rv-src { font-size: 13px; color: var(--epi-muted); margin-top: auto; }
a.rv-src { color: var(--epi-mag-dark); }
.rv-more { margin-top: 14px; font-weight: 700; }
.rv-more a { color: var(--epi-mag-dark); text-decoration: underline; }

/* Lead form (replaces Gravity Forms). High contrast; works on light or dark sections. */
.lead-form { background: #fff; color: var(--epi-ink); border-radius: 8px; padding: 22px; max-width: 980px; margin: 0 auto; text-align: left; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.lead-form .lf-intro, .lead-form .lf-help, .lead-form .lf-privacy { font-size: 14px; color: var(--epi-muted); }
.lead-form .lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.lead-form .lf-full { grid-column: 1 / -1; }
.lead-form .lf-field { margin: 0 0 14px; padding: 0; }
.lead-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--epi-ink); }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel], .lead-form input[type=url], .lead-form select, .lead-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--epi-ink); background: #fff; border: 1px solid #9a9aa2; border-radius: 6px; padding: 10px 12px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 3px solid rgba(190,32,101,.35); border-color: var(--epi-mag); }
.lead-form input[type=file] { font-size: 15px; color: var(--epi-ink); }
.lead-form .lf-services { border: 1px solid var(--epi-line); border-radius: 6px; padding: 10px 14px 6px; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 12px; }
.lead-form .lf-services legend { font-weight: 600; padding: 0 6px; }
.lead-form .lf-services label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.lead-form .req { color: var(--epi-mag); }
.lead-form .lf-submit { background: var(--epi-mag); color: #fff; border: 0; border-radius: 6px; font: inherit; font-weight: 700; font-size: 18px; padding: 14px 26px; cursor: pointer; }
.lead-form .lf-submit:hover { background: var(--epi-mag-dark); }
.lead-form .lf-submit:disabled { opacity: .6; cursor: wait; }
.lead-form .form__msg { font-weight: 600; min-height: 1.4em; }
.lead-form .form__msg--ok { color: #136c2e; }
.lead-form .form__msg--err { color: #b00020; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .lead-form .lf-grid { grid-template-columns: 1fr; } .lead-form .lf-services { grid-template-columns: 1fr 1fr; } }

/* Cookie consent banner */
.cc-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 3000; display: flex; justify-content: center; }
.cc-banner[hidden] { display: none; }
.cc-inner { background: #fff; color: var(--epi-ink); max-width: 760px; width: 100%; border-radius: 10px; padding: 18px 20px; box-shadow: 0 6px 30px rgba(0,0,0,.25); border-top: 4px solid var(--epi-mag); font-size: 15px; line-height: 1.5; }
.cc-title { font-weight: 700; font-size: 17px; margin: 0 0 4px; padding: 0; }
.cc-text { margin: 0 0 10px; padding: 0; }
.cc-text a { color: var(--epi-mag-dark); text-decoration: underline; }
.cc-choices { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; }
.cc-choices[hidden] { display: none; }
.cc-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btn { font: inherit; font-weight: 700; border-radius: 6px; padding: 9px 16px; border: 2px solid var(--epi-mag); background: #fff; color: var(--epi-mag-dark); cursor: pointer; }
.cc-btn[hidden] { display: none; }
.cc-accept { background: var(--epi-mag); color: #fff; }
.cc-link { border-color: transparent; text-decoration: underline; }

/* Privacy Center and legal pages (new, plugin-free) */
.epi-legal { background: #fff; color: var(--epi-ink); }
.epi-legal .wrap { max-width: 900px; margin: 0 auto; padding: 48px 20px 64px; font-size: 17px; line-height: 1.65; }
.epi-legal h1 { font-size: 40px; line-height: 1.2; margin-bottom: 8px; color: var(--epi-ink); }
.epi-legal h2 { font-size: 26px; margin: 34px 0 10px; color: var(--epi-ink); }
.epi-legal h3 { font-size: 20px; margin: 22px 0 6px; color: var(--epi-ink); }
.epi-legal p, .epi-legal li { color: #222; }
.epi-legal a { color: var(--epi-mag-dark); text-decoration: underline; }
.epi-legal .lede { font-size: 19px; color: #333; }
.epi-legal .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 14px 0; }
.epi-legal .card { border: 1px solid var(--epi-line); border-radius: 8px; padding: 16px 18px; background: #fafafa; }
.epi-legal .card h3 { margin-top: 0; }
.epi-legal .btn { display: inline-block; background: var(--epi-mag); color: #fff !important; text-decoration: none !important; font-weight: 700; padding: 10px 18px; border-radius: 6px; }
.epi-legal .lead-form { box-shadow: none; border: 1px solid var(--epi-line); padding: 18px; }

/* Mobile header (staging overflowed the phone screen by ~230px). The fixed stack stays: logo + email + call button
   on one compact row, menu bar under it. The street address moves to the footer only on phones. */
@media (max-width: 767px) {
  .et-l--header .et_pb_section_1_tb_header { padding: 8px 0 !important; }
  .et-l--header .et_pb_row_1_tb_header { width: 92% !important; max-width: 92% !important; padding: 0 !important; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 10px !important; }
  .et-l--header .et_pb_column_3_tb_header { flex: 0 0 38% !important; width: 38% !important; max-width: 38% !important; margin: 0 !important; }
  .et-l--header .et_pb_column_4_tb_header { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; margin: 0 !important; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: flex-end !important; gap: 8px !important; }
  .et-l--header .et_pb_image_1_tb_header, .et-l--header .et_pb_image_1_tb_header .et_pb_image_wrap { margin: 0 !important; display: block !important; max-width: 100% !important; width: 100% !important; }
  .et-l--header .et_pb_image_1_tb_header img { width: 100% !important; height: auto !important; max-height: 56px; object-fit: contain; object-position: left center; }
  .et-l--header .et_pb_icon_list_0_tb_header { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; flex: 0 0 auto !important; }
  .et-l--header .et_pb_icon_list_item_0_tb_header { display: none !important; }
  .et-l--header .et_pb_icon_list_item_1_tb_header { font-size: 0 !important; padding: 6px !important; margin: 0 !important; }
  .et-l--header .et_pb_icon_list_item_1_tb_header * { font-size: 22px !important; }
  .et-l--header .et_pb_icon_list_item_1_tb_header .et_pb_icon_list_text { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }  /* still read by screen readers */
  .et-l--header .et_pb_button_0_tb_header_wrapper { margin: 0 !important; flex: 0 0 auto !important; width: auto !important; }
  .et-l--header .et_pb_button_0_tb_header { font-size: 15px !important; padding: 8px 12px !important; white-space: nowrap; }
  .et-l--header .et_pb_section_2_tb_header { padding: 0 !important; }
  .et-l--header .et_pb_section_2_tb_header .et_pb_row { padding: 4px 0 !important; }
  html { scroll-padding-top: 120px; }
}
@media (max-width: 767px) {
  /* Divi buttons with fixed 150px side padding (e.g. "Start a Project") overflowed phones on staging */
  #main-content .et_pb_button, #main-content .et_pb_button:hover { max-width: 100%; padding-left: 20px !important; padding-right: 20px !important; white-space: normal; text-align: center; }
}
#page-container { overflow-x: clip; }   /* safety net: nothing carried from Divi may widen the page */

/* Leave a Review (replaces the plugin form) */
.rv-leave { background: #fff; color: var(--epi-ink); border: 1px solid var(--epi-line); border-radius: 8px; padding: 22px; max-width: 720px; margin: 0 auto; text-align: center; }
.rv-leave p { padding: 0; margin: 0 0 14px; color: var(--epi-ink); font-size: 17px; }
.rv-leave-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rv-leave-btn { display: inline-block; font-weight: 700; padding: 12px 22px; border-radius: 6px; text-decoration: none; color: #fff !important; }
.rv-leave-google { background: var(--epi-mag); } .rv-leave-google:hover { background: var(--epi-mag-dark); }
.rv-leave-fb { background: #1b4980; } .rv-leave-fb:hover { background: #143a66; }
.rv-leave-alt a { color: var(--epi-mag-dark); text-decoration: underline; }

/* FooGallery carousels rebuilt as grids (no plugin JS). Thumbs open the full image in the viewer in /js/site.js. */
.epi-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 20px; }
.epi-gallery-item { display: block; overflow: hidden; border-radius: 4px; background: #eee; }
.epi-gallery-item img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
a.epi-gallery-item:hover img, a.epi-gallery-item:focus img { transform: scale(1.04); }
.epi-gallery--logos { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); align-items: center; }
.epi-gallery--logos .epi-gallery-item { background: transparent; }
.epi-gallery--logos .epi-gallery-item img { aspect-ratio: auto; object-fit: contain; max-height: 110px; }
@media (max-width: 600px) { .epi-gallery { grid-template-columns: repeat(2, 1fr); } .epi-gallery--logos { grid-template-columns: repeat(3, 1fr); } }
.epi-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.epi-lightbox::backdrop { background: rgba(0,0,0,.9); }
.epi-lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 60px; box-sizing: border-box; }
.epi-lightbox img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; }
.epi-lightbox figcaption { color: #fff; font-size: 15px; margin-top: 10px; text-align: center; }
.epi-lightbox button { position: absolute; background: rgba(0,0,0,.55); color: #fff; border: 2px solid #fff; border-radius: 50%; width: 48px; height: 48px; font-size: 26px; line-height: 1; cursor: pointer; }
.epi-lightbox button:focus-visible { outline: 3px solid var(--epi-gold); }
.epi-lb-close { top: 12px; right: 12px; } .epi-lb-prev { left: 8px; top: 50%; margin-top: -24px; } .epi-lb-next { right: 8px; top: 50%; margin-top: -24px; }

/* h1 fixes (staging pages that had no h1) */
#main-content h1.epi-h1-lead { font-family: 'Open Sans', Arial, sans-serif; font-size: 54px; font-weight: 700; line-height: 54px; color: #fff; text-transform: none; margin: 0; padding: 0 0 10px; text-align: center; }
.epi-archive-head { background: #111; background: linear-gradient(90deg, #111 0%, #2a0d1c 100%); padding: 34px 0 30px; }
.epi-archive-head h1 { width: 80%; max-width: 1080px; margin: 0 auto; padding: 0; color: #fff; font-family: 'Open Sans', Arial, sans-serif; font-size: 40px; line-height: 1.2; font-weight: 700; }
.epi-archive-head .epi-archive-kicker { display: block; color: var(--epi-gold); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
@media (max-width: 767px) { .epi-archive-head h1 { font-size: 30px; width: 90%; } }

/* Divi background videos (Divi sized them with JS): cover the section, content above */
.et-pb-has-background-video { position: relative; overflow: hidden; }
.et-pb-background-video { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.et-pb-background-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.et-pb-has-background-video > .et_pb_row { position: relative; z-index: 1; }
