/*
Theme Name: Atlanta Basement Remodeling (Divi Child)
Theme URI: https://www.atlantabasementdesign.com/
Template: Divi
Author: Back Bay Digital
Description: Divi child theme for Atlanta Basement Remodeling. Ships the original compiled stylesheet and page templates so the design matches the previous build exactly. Requires the Divi parent theme to be installed.
Version: 3.9.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atlanta-basement
*/

/* Design lives in assets/app.css (compiled from the original build) and is
   enqueued in functions.php. Add your own overrides below this line. */

/* ---------------------------------------------------------------------------
   Divi wrapper neutralisation — narrow on purpose.

   Our sections carry their own container + py-16 spacing, so Divi's section/row
   padding and max-width must stand down. This is scoped to .abd-section and to
   our own Code modules only: Divi's accordion / gallery / video modules keep
   their own spacing, and any page you build in the Builder is untouched.
   --------------------------------------------------------------------------- */
.abd-section.et_pb_section{padding:0!important;margin:0!important}
.abd-section > .et_pb_row{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
.abd-section > .et_pb_row > .et_pb_column{width:100%!important;margin:0!important;padding:0!important;float:none!important}
/* Only OUR code blocks lose their module margin — not Divi's modules. */
.abd-section .et_pb_code.abd-block{margin-bottom:0!important}
.abd-section .et_pb_code.abd-block .et_pb_code_inner{padding:0!important}

/* Divi's page template can wrap content in its own padded container. */
.abd-section .et_pb_code_inner > section{margin:0}

/* Native Divi accordion, styled to match the original FAQ. */
.abd-faq .et_pb_toggle{background-color:#fff;border:1px solid #e5e7eb;border-radius:.5rem;margin-bottom:.75rem;padding:0 1.5rem}
.abd-faq .et_pb_toggle_title{font-weight:700;color:#132039;padding:1rem 0;font-family:inherit}
.abd-faq .et_pb_toggle_content{color:#6b7280;line-height:1.625;padding-bottom:1rem}
.abd-faq .et_pb_toggle_open{background-color:#fff}

/* Native Divi gallery + video, matching the original grids. */
.abd-gallery .et_pb_gallery_items{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
@media(min-width:768px){.abd-gallery .et_pb_gallery_items{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1024px){.abd-gallery .et_pb_gallery_items{grid-template-columns:repeat(4,1fr)}}
.abd-gallery .et_pb_gallery_item{width:100%!important;margin:0!important;float:none!important}
.abd-gallery .et_pb_gallery_image{border-radius:.5rem;overflow:hidden;aspect-ratio:4/3}
.abd-gallery .et_pb_gallery_image img{width:100%;height:100%;object-fit:cover}
.abd-video,.abd-video .et_pb_video_box{border-radius:.5rem;overflow:hidden}

/* Gallery fallback grid (used until the media plugin builds native galleries). */
.abd-block .grid.gap-3 > div{margin:0}

/* Video captions, matching the original card layout. */
.abd-videos .et_pb_column{margin-bottom:1.5rem!important}
.abd-video-title .et_pb_text_inner{padding:1rem}
.abd-video-title h2,.abd-video-title h3{font-weight:700;text-transform:uppercase;font-size:.875rem;color:#132039;margin:0}

/* GHL form: the embed is height:100% and relies on form_embed.js to size it.
   This floor keeps it visible if that script is slow, blocked, or fails. */
iframe[data-form-id="brDLArwyOAGdgVozE9a3"]{min-height:574px;width:100%;border:none;border-radius:8px;display:block}
