/*
Theme Name:  GGIS Divi Child
Theme URI:   https://greengarden.my
Description: GreenGarden Integrated Services Malaysia — Divi 5 child theme carrying the GGIS design system and the class-driven GSAP/Lenis motion layer.
Author:      rezani
Template:    Divi
Version:     4.21.0
*/

/* ---------------------------------------------------------------------------
   This file holds ONLY the Divi-specific reconciliation.

   The design system itself lives in css/ggis.css — byte-identical to the file
   the static build uses (website/assets/css/ggis.css), enqueued separately by
   functions.php. Keep it that way: to update the design, swap that one file.
   Never fork it here.
--------------------------------------------------------------------------- */

/* Divi's normalize adds padding under every paragraph. All GGIS spacing is
   margin-based, so that padding shows up as unwanted gaps inside our blocks. */
[class*="ggis-"] p {
  padding-bottom: 0;
}

/* Divi constrains rows to its own content width and adds default gutters.
   Sections that carry .ggis-container manage their own 1800px frame, so let
   the Divi row go edge to edge and hand spacing back to our class.
   (You can also do this per-section in the builder: Row → Sizing → Width 100%,
   Max Width 100%, and zero the row padding. Doing it here keeps it consistent.) */
.ggis-shell .et_pb_row {
  width: 100%;
  max-width: none;
  padding: 0;
}

/* Divi applies its own link colours inside modules; GGIS buttons and links
   set their own and must win without resorting to !important elsewhere. */
.ggis-shell a.ggis-btn,
.ggis-shell a.ggis-link {
  text-decoration: none;
}

/* The fixed GGIS navbar is only used when the header is built from a Code
   module. If you use Divi's Theme Builder header instead, keep the class on
   the header section so the scroll state still fires, and let Divi own the
   layout. */
.ggis-navbar .et_pb_row {
  padding: 0;
}
