/* ==========================================================
   GG + OceanWP OVERRIDES (SAFE)
   Applies only to pages wrapped with .gg-ui
   Purpose: consistency across child theme + OceanWP customizer
   ========================================================== */

/* ------------------------------------------
   1) Consistent container behavior
------------------------------------------- */
.gg-ui{
  /* Global width token */
  --gg-max: 1200px;
  --gg-pad: 16px;
}

/* If you use a wrapper like .gg-page-wrap or .gg-section-inner */
.gg-ui .gg-page-wrap,
.gg-ui .gg-section-inner{
  max-width: var(--gg-max);
  margin: 0 auto;
  padding-left: var(--gg-pad);
  padding-right: var(--gg-pad);
}

/* Prevent OceanWP containers from squeezing GG content */
.gg-ui #content-wrap.container,
.gg-ui #content-wrap{
  width: 100% !important;
  max-width: none !important;
}

/* ------------------------------------------
   2) Heading scale normalization (GG pages)
------------------------------------------- */
.gg-ui h1{
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.06;
  margin: 0 0 12px;
}

.gg-ui h2{
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.gg-ui h3{
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
}

.gg-ui p{
  margin: 0 0 12px;
}

/* ------------------------------------------
   3) Hero pattern (optional but lovely)
   Use: <section class="gg-card gg-hero-card">...</section>
------------------------------------------- */
.gg-ui .gg-hero-card{
  position: relative;
}

/* Gold accent line like About page */
.gg-ui .gg-hero-card::after{
  content:"";
  display:block;
  width: 86px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--gg-accent);
  opacity: 0.9;
}

/* ------------------------------------------
   4) OceanWP stubborn button fixes inside GG
------------------------------------------- */
.gg-ui a.gg-button,
.gg-ui a.gg-button-secondary{
  text-decoration: none !important;
  box-shadow: none !important;
}

.gg-ui a.gg-button::before,
.gg-ui a.gg-button::after,
.gg-ui a.gg-button-secondary::before,
.gg-ui a.gg-button-secondary::after{
  content: none !important;
}

/* Improve secondary button to match your current GG style */
.gg-ui .gg-button-secondary,
.gg-ui .gg-button-secondary:visited{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-width: 2px;
  border-radius: 10px;
  padding: 12px 20px;
}

/* ------------------------------------------
   5) Section headers with “divider line” (Home-v2 fix)
   Use markup:
   <div class="gg-section-head">
     <h2>Title</h2>
   </div>
------------------------------------------- */
.gg-ui .gg-section-head{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: nowrap;
}

.gg-ui .gg-section-head h2{
  margin: 0;
  white-space: nowrap;
}

.gg-ui .gg-section-head::after{
  content:"";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(59,42,34,0.16);
  border-radius: 999px;
}

/* Let it wrap normally on small screens */
@media (max-width: 720px){
  .gg-ui .gg-section-head{ flex-wrap: wrap; }
  .gg-ui .gg-section-head h2{ white-space: normal; }
}

/* ------------------------------------------
   6) Consistent card sizing + spacing
------------------------------------------- */
.gg-ui .gg-card{
  border-radius: 18px; /* match your newer pages */
  padding: 26px;
}

@media (max-width: 900px){
  .gg-ui .gg-card{ padding: 18px; }
}

/* ------------------------------------------
   7) OceanWP link underline quirks in widgets/menus
   (Only affects things INSIDE .gg-ui)
------------------------------------------- */
.gg-ui .widget a,
.gg-ui .oceanwp-widget a{
  text-decoration: none !important;
}

.gg-ui .widget a:hover,
.gg-ui .oceanwp-widget a:hover{
  text-decoration: underline !important;
}