/* Cajun Masonry — site overrides (Divi-like sections and layout) */

/* Section / row / column layout (sl-*) — CSS Grid */
.sl-section { position: relative; padding: 4rem 0; }
.sl-row {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 30px;
}
.et_pb_row_4col { grid-template-columns: repeat(4, 1fr); }
.et_pb_column_4_4 { grid-column: 1 / -1; min-width: 0; }
.et_pb_column_1_2 { min-width: 0; }
@media (max-width: 768px) {
  .sl-row { grid-template-columns: 1fr; }
  .et_pb_row_4col { grid-template-columns: 1fr; }
}
.et_pb_text_inner { max-width: 800px; margin: 0 auto; }
.et_pb_text_align_center { text-align: center; }

/* Blurb grid — live: Charm 40px black titles, image border #0c71c3, Georgia 24px body */
.et_pb_blurb_content { padding: 1rem 0; }
.et_pb_main_blurb_image img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.sl-blurb .et_pb_module_header,
.sl-blurb h4 { font-family: Charm, Georgia, "Times New Roman", serif; font-size: 40px; color: #000; margin: 0.5rem 0; }
/* Theme base (.sl-blurb { display: flex }) lays the image and text out
   side by side; override to stack the image above its text, both centered. */
.sl-blurb { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem 0; font-family: Georgia, "Times New Roman", serif; font-size: 24px; color: #000; }
.sl-blurb img { width: 271px; max-width: 100%; height: auto; display: block; margin: 0 auto 0.5rem; border: 2px solid #0c71c3; border-radius: 15px; overflow: hidden; }
.sl-blurb p { margin: 0; color: #000; line-height: 1.6; }

/* Main page background images (from export et-critical-inline-css) */
.et_pb_section_0.sl-section {
  background-image: url(../images/fireplace.jpg);
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  background-blend-mode: soft-light;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 0;
}
/* First text section (tagline) — live: black bg, white text, Georgia 27px */
.et_pb_section_1.sl-section { background-color: #000; padding: 4rem 0; }
.et_pb_section_1 .sl-column,
.et_pb_section_1 .et_pb_text_inner,
.et_pb_section_1 strong { color: #fff; }
.et_pb_section_1 .sl-column {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.8em;
  letter-spacing: 1px;
}
.et_pb_section_2.sl-section {
  background-image: url(../images/tuscany_1.jpg);
  background-size: initial;
  background-repeat: repeat;
  background-blend-mode: soft-light;
  background-color: rgba(0, 0, 0, 0.67);
}
.et_pb_section_2 .sl-column,
.et_pb_section_2 .et_pb_text_inner { color: #fff; }
.et_pb_section_2 .sl-column {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.8em;
  letter-spacing: 1px;
}
.et_pb_section_2 .et_pb_text_inner strong { color: #fff; }
@media (max-width: 980px) {
  .et_pb_section_2 { display: none !important; }
}
@media (max-width: 767px) {
  .et_pb_section_2 { display: none !important; }
}
.et_pb_section_4.sl-section {
  background-image: url(../images/Wall-Texture.jpeg);
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  background-color: #933838;
}

/* Slider (hero) — live: Georgia 48px title, yellow button, text-shadow */
.et_pb_section_0 .et_pb_slider { min-height: 300px; display: flex; align-items: center; justify-content: center; background: transparent; color: #fff; }
.et_pb_slider { min-height: 300px; display: flex; align-items: center; justify-content: center; background: #333; color: #fff; }
.et_pb_slide_description { text-align: center; padding: 2rem; text-shadow: 0.22em 0.22em 0.52em #000; }
.et_pb_slide_title { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: 48px; line-height: 1.8em; text-align: center; color: #fff; }
.et_pb_slide_title a { color: inherit; text-decoration: none; }
.et_pb_button { display: inline-block; padding: 0.75rem 1.5rem; text-decoration: none; border-radius: 3px; margin-top: 1rem; }
/* Hero button — live: yellow bg, blue text; client requested larger dark-grey
   text with no shadow (text-shadow inherited from .et_pb_slide_description) */
.et_pb_section_0 .et_pb_more_button.et_pb_button { color: #333; border: 0; background-color: rgba(237, 240, 0, 0.93); font-size: 20px; text-shadow: none; }
.et_pb_section_0 .et_pb_more_button.et_pb_button:hover { opacity: 0.9; }

/* CTA / promo section — live: Luckiest Guy 55px #edf000, blue button */
.et_pb_section_4 .et_pb_promo { padding: 3rem 2rem; background: transparent; color: #fff; text-align: center; }
.et_pb_section_4 .et_pb_promo h2,
.et_pb_section_4 .et_pb_module_header,
.single-page .entry-content .et_pb_section_4 .et_pb_module_header { font-family: "Luckiest Guy", display, sans-serif; font-size: 55px; color: #edf000; text-shadow: 0 0.1em 0.21em #000; margin: 0 0 0.5rem; }
.et_pb_section_4 .et_pb_promo_description,
.et_pb_section_4 .promo-body { font-family: Georgia, "Times New Roman", serif; font-weight: 300; font-size: 18px; line-height: 2em; text-shadow: 0.44em -0.08em 1.5em #000; margin-bottom: 1rem; }
.et_pb_section_4 .et_pb_promo_button.et_pb_button { border-color: rgba(26, 50, 155, 0.93); background-color: rgba(26, 50, 155, 0.93); color: #fff; font-family: Arial, Helvetica, sans-serif; }
.et_pb_section_4 .et_pb_promo_button.et_pb_button:hover { opacity: 0.9; }
@media (max-width: 767px) {
  .et_pb_section_4 .et_pb_promo h2,
  .et_pb_section_4 .et_pb_module_header { font-size: 35px; }
  .et_pb_section_4 .et_pb_promo_description,
  .et_pb_section_4 .promo-body { font-size: 15px; }
  .et_pb_slide_title { font-size: 36px; }
}
/* Fallback when not in section_4 */
.et_pb_promo { padding: 3rem 2rem; background: #222; color: #fff; text-align: center; }
.et_pb_promo_description { margin-bottom: 1rem; }
.et_pb_promo_button { display: inline-block; padding: 0.75rem 1.5rem; background: rgba(26, 50, 155, 0.93); color: #fff; text-decoration: none; border-radius: 3px; }

/* Section dividers — live: wavy skyline shape at the top/bottom edge of a
   section, colored to match the *adjacent* section so it reads as a soft
   blended transition rather than a hard line. Shapes copied from live. */
.et_pb_top_divider,
.et_pb_bottom_divider { position: relative; }
.et_pb_top_divider::before,
.et_pb_bottom_divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.et_pb_top_divider::before {
  top: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiMwMDAwMDAiPjxwYXRoIGQ9Ik0wIDkwLjcybDE0MC0yOC4yOCAzMTUuNTIgMjQuMTRMNzk2LjQ4IDY1LjggMTE0MCAxMDQuODlsMTQwLTE0LjE3VjBIMHY5MC43MnoiIGZpbGwtb3BhY2l0eT0iLjUiLz48cGF0aCBkPSJNMCAwdjQ3LjQ0TDE3MCAwbDYyNi40OCA5NC44OUwxMTEwIDg3LjExbDE3MC0zOS42N1YwSDB6Ii8+PC9nPjwvc3ZnPg==");
}
.et_pb_bottom_divider::after {
  bottom: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0wIDQ3LjQ0TDE3MCAwbDYyNi40OCA5NC44OUwxMTEwIDg3LjExbDE3MC0zOS42N1YxNDBIMFY0Ny40NHoiIGZpbGwtb3BhY2l0eT0iLjUiLz48cGF0aCBkPSJNMCA5MC43MmwxNDAtMjguMjggMzE1LjUyIDI0LjE0TDc5Ni40OCA2NS44IDExNDAgMTA0Ljg5bDE0MC0xNC4xN1YxNDBIMFY5MC43MnoiLz48L2c+PC9zdmc+");
}

/* ========== Step 5.1: Header — live: semi-transparent black, white nav, fixed = solid black + yellow links ========== */
/* Interior pages reserve space for the fixed header; pages with their own
   full-bleed hero/banner section let it bleed underneath the header instead
   (live: transparent nav overlapping the hero/banner image) — add more
   body classes here as more pages get their own banner treatment. */
#page-container { padding-top: 133px; }
body.home-page #page-container,
body.showcase-page #page-container,
body.about-page #page-container,
body.project-page #page-container { padding-top: 0; }
#main-header {
  transition: height 0.4s ease, background-color 0.4s ease;
  height: 133px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.69);
  box-shadow: none;
}
#main-header.et-fixed-header {
  height: 60px;
  background-color: #000;
}
#main-header.et-fixed-header .logo_container img {
  max-height: 40px;
}
body.et_fixed_nav #page-container {
  padding-top: 60px;
}
body.home-page.et_fixed_nav #page-container,
body.showcase-page.et_fixed_nav #page-container,
body.about-page.et_fixed_nav #page-container,
body.project-page.et_fixed_nav #page-container {
  padding-top: 0;
}
.et_header_style_centered .header-container {
  flex-direction: column;
  text-align: center;
  width: 90%;
  max-width: 1080px;
}
.et_header_style_centered .logo_container {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#main-header.et-fixed-header .logo_container {
  height: 50px;
}
.et_header_style_centered #et-top-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
}
.et_header_style_centered #top-menu {
  justify-content: center;
}
#top-menu a {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
}
#top-menu a:hover,
.design-link a:hover,
.et-fixed-header#main-header #top-menu a:hover {
  color: #edf000;
}
.et-fixed-header#main-header #top-menu a {
  color: #edf000;
}
#top-menu a.active,
#top-menu li.current-menu-item a {
  color: #2134bc;
}
.et-fixed-header#main-header #top-menu a.active,
.et-fixed-header#main-header #top-menu li.current-menu-item a {
  color: #2134bc;
}
/* Mobile menu: hide desktop nav, show toggle and dropdown */
#et_mobile_nav_menu { display: none; }
@media (max-width: 980px) {
  #et_mobile_nav_menu { display: block; }
  #top-menu-nav { display: none !important; }
  #mobile_menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
  }
  #mobile_menu.show { display: block; }
  #mobile_menu li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
  #mobile_menu a { display: block; padding: 0.5rem; color: #333; text-decoration: none; }
  .mobile_nav { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
  .mobile_menu_bar_toggle { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0.25rem; }

  /* Toggle bar (hamburger + "Select Page") sits directly on the header's
     dark semi-transparent background, same as the desktop nav links --
     match #top-menu a's white/yellow treatment instead of the default
     dark grey text color, which was unreadable against that background. */
  .select_page,
  #main-header .mobile_menu_bar { color: #fff; }
  #main-header.et-fixed-header .mobile_menu_bar { color: #edf000; }
}

/* ========== Step 5.2: Footer — live: accent #3531c4 for headings/links ========== */
#main-footer { background: #222; color: #fff; }
#main-footer .footer-title,
#main-footer h3,
#main-footer h4 { color: #3531c4; }
#footer-bottom { background: #1f1f1f; padding: 1rem 0; }
#footer-info { margin: 0; font-size: 14px; color: rgba(255,255,255,0.8); text-align: center; }
#footer-info a { color: #3531c4; text-decoration: none; }
#footer-info a:hover { color: #edf000; }
.et-social-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.et-social-icon a { color: #fff; text-decoration: none; }
.et-social-icon a:hover { color: #3531c4; }
#footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; width: 90%; max-width: 1080px; margin: 0 auto; }

/* Top footer — brick/stone textured band with company name, tagline, phone CTA.
   Theme base sets width:80%/max-width:1080px (meant for the *content*); the
   band itself should bleed full viewport width, so override to 100% here —
   the nested .container div still centers the text/buttons at 1080px. */
#footer-widgets.footer-content-area {
  background-image: url(../images/Wall-Texture.jpeg);
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  background-color: #933838;
  padding: 3rem 0;
  width: 100%;
  max-width: none;
  margin: 0;
}
#footer-widgets .footer-title {
  font-family: "Luckiest Guy", display, sans-serif;
  font-size: 40px;
  color: #edf000;
  text-shadow: 0 0.1em 0.21em #000;
  margin: 0 0 0.5rem;
}
#footer-widgets .footer-address {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: #fff;
  margin: 0 0 1rem;
}
#footer-widgets .footer-buttons .et_pb_button.btn-primary {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  border-radius: 3px;
  text-decoration: none;
  background-color: #3531c4;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
}
#footer-widgets .footer-buttons .et_pb_button.btn-primary:hover { opacity: 0.9; }

/* ========== Step 5.3: Main page — Slider (multi-slide, dots) ========== */
.et_pb_slider { position: relative; overflow: hidden; min-height: 400px; }
.et_pb_slides { position: relative; }
.et_pb_slide {
  display: none;
  min-height: 400px;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
}
.et_pb_slide.et-pb-active-slide,
.et_pb_slide:first-child { display: flex !important; }
.et-pb-controllers {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}
.et-pb-controllers a {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  text-indent: -9999px;
  overflow: hidden;
  transition: opacity 0.3s;
}
.et-pb-controllers a:hover,
.et-pb-controllers a.et-pb-active-control { background: #fff; opacity: 1; }

/* ========== Step 5.4: Single content pages — grid layout ========== */
.single-page .entry-content,
body.single-page article { max-width: 1080px; margin: 0 auto; padding: 2rem 1rem; }
.single-page .entry-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.single-page .entry-content > .sl-section { grid-column: 1 / -1; }
/* Interior page banners (Showcase, About Us, ...): let the Wall-Texture
   section bleed up under the transparent fixed header (like the home hero),
   instead of leaving a gap from the article's own top padding. Add more
   body classes / hero selectors here as more pages get this treatment. */
body.showcase-page .entry-content,
body.about-page .entry-content,
body.project-page .entry-content { padding-top: 0; }
.showcase-hero.sl-section,
.about-hero.sl-section {
  padding-top: 180px;
  padding-bottom: 3rem;
  /* Break out of .entry-content's centered 1080px column so the
     Wall-Texture background bleeds full viewport width, like live. */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.single-page .entry-content h1,
.single-page .entry-content h2,
.single-page .entry-content h3 { color: #333; margin-top: 1.5rem; }
.single-page .entry-content p { line-height: 1.7; color: #666; }
.single-page .entry-content img { max-width: 100%; height: auto; }

/* Project page hero: the project's own photo as a full-bleed background
   (unlike the solid Wall-Texture CTA banner used on Showcase/About Us),
   with a centered white title — matches live's fullwidth_header module. */
.project-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background-size: cover;
  background-position: 50%;
  background-color: #333;
  background-repeat: no-repeat;
  padding: 220px 1rem 120px;
  text-align: center;
}
.project-page .entry-content .project-hero h1 {
  color: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 48px;
  font-weight: 500;
  margin: 0;
  padding: 0;
}
@media (max-width: 767px) {
  .project-hero { padding: 160px 1rem 80px; }
  .project-hero h1 { font-size: 32px; }
}

/* Project page body content — live: Open Sans blue (#0c71c3) subheadings,
   justified Georgia body text, light-grey "card" testimonial. */
.project-page .entry-content h2 { color: #0c71c3; font-family: "Open Sans", Arial, sans-serif; font-size: 26px; font-weight: 500; text-align: center; margin-top: 1rem; }
/* Target the column itself, not just p — a lone single-paragraph column's
   text isn't wrapped in a <p> by markdownify (Goldmark inlines it instead
   of a block), so relying on a `p` selector alone silently misses it. */
.project-page .entry-content .sl-column,
.project-page .entry-content p { font-family: Georgia, "Times New Roman", serif; font-size: 18px; color: rgba(0, 0, 0, 0.99); text-align: justify; }
/* Project body photos (Pizza Oven, Stone Steps, Stucco Wall) — same brand
   border treatment as live, measured at 2px (vs. 3px on gallery/portrait
   photos elsewhere on the site). */
.project-photo { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto 1rem; border: 2px solid #0c71c3; border-radius: 15px; }
.project-page .entry-content blockquote {
  background: #f5f5f5;
  padding: 30px;
  margin: 1.5rem 0;
  border: none;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.99);
}
.project-page .entry-content blockquote p { font-family: inherit; font-size: inherit; text-align: left; }
.project-page .entry-content blockquote strong { font-weight: 700; }
/* Shrunk portrait photo with the site's brand border, matching the
   blurb/gallery image treatment (blue border, rounded corners). */
.portrait-photo { width: 315px; max-width: 100%; height: auto; display: block; margin: 0 auto; border: 3px solid #0c71c3; border-radius: 15px; }
.single-page .entry-content .video-embed { grid-column: 1 / -1; margin: 1rem 0; }
.single-page .entry-content .video-embed iframe { max-width: 100%; width: 100%; aspect-ratio: 16/9; }

/* ========== Step 5.5: List pages (blog) ========== */
.news-listing { max-width: 1080px; margin: 0 auto; padding: 2rem 1rem; }
.news-listing h1 { color: #333; margin-bottom: 1rem; }
.posts-list { display: flex; flex-direction: column; gap: 2rem; }
.et_pb_post {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}
.et_pb_post .entry-title { margin: 0 0 0.5rem; font-size: 1.5rem; }
.et_pb_post .entry-title a { color: #3531c4; text-decoration: none; }
.et_pb_post .entry-title a:hover { text-decoration: underline; }
.et_pb_post .post-meta { font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; }
.et_pb_post .entry-content { color: #666; line-height: 1.6; }
.et_pb_post .more-link { color: #3531c4; text-decoration: none; margin-top: 0.5rem; display: inline-block; }
.et_pb_post .entry-featured-image-url img { max-width: 100%; height: auto; display: block; margin-bottom: 1rem; }

/**
 * adding custom overrides
 */
.sl-section--dark p,
.sl-section--dark span {
    color: #fff;
}

/* ========== Showcase gallery grid + lightbox ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 30px;
  max-width: 1080px;
  margin: 0 auto;
}
.gallery-item { margin: 0; }
.gallery-link {
  display: block;
  aspect-ratio: 400 / 284;
  overflow: hidden;
  border: 3px solid #0c71c3;
  border-radius: 15px;
}
.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-link:hover img { transform: scale(1.05); }
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}
.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}
body.gallery-lightbox-active { overflow: hidden; }
