/**
 * Global Diploma — Elementor-specific style overrides
 * Loaded only when Elementor is active (enqueued via functions.php hook).
 * These patch Elementor's default widget styles to match our brand.
 */

/* Force our fonts inside Elementor */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Montserrat', sans-serif !important;
}
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  font-family: 'Open Sans', sans-serif;
}

/* Elementor button widget → gold brand style */
.elementor-widget-button .elementor-button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Elementor section dividers — use gold */
.elementor-shape-bottom .elementor-shape-fill,
.elementor-shape-top .elementor-shape-fill {
  fill: var(--gd-gold, #d4af37);
}

/* Patch Elementor's form widget to match our input style */
.elementor-form .elementor-field-group .elementor-field {
  border: 1px solid var(--gd-gray-200, #e5e7eb);
  border-radius: var(--gd-radius, 0.5rem);
  padding: 0.75rem 1rem;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.2s;
}
.elementor-form .elementor-field-group .elementor-field:focus {
  border-color: var(--gd-gold, #d4af37);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.elementor-form .elementor-button {
  background: var(--gd-gold, #d4af37) !important;
  color: var(--gd-navy-dark, #0f2638) !important;
}
.elementor-form .elementor-button:hover {
  background: var(--gd-gold-dark, #b8951f) !important;
}

/* ── Sidebar-left & legal pages — mobile spacing ─────────── */
@media (max-width: 767px) {
  .gd-sidebar-left-elementor-page,
  .gd-legal-elementor-page {
    background: #fff;
  }

  .gd-sidebar-left-elementor-shell.elementor-section,
  .gd-legal-elementor-shell.elementor-section {
    padding-top: 0 !important;
    padding-bottom: 0.75rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .gd-sidebar-left-elementor-shell > .elementor-container,
  .gd-legal-elementor-shell > .elementor-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .gd-sidebar-left-elementor-box.elementor-inner-section,
  .gd-legal-elementor-box.elementor-inner-section {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }

  .gd-sidebar-left-elementor-box .elementor-widget-heading > .elementor-widget-container,
  .gd-legal-elementor-box .elementor-widget-heading > .elementor-widget-container {
    padding-top: 0.75rem !important;
    padding-bottom: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .gd-sidebar-left-elementor-box .elementor-widget-heading:last-of-type > .elementor-widget-container,
  .gd-legal-elementor-box .elementor-widget-heading:last-of-type > .elementor-widget-container {
    padding-bottom: 0.75rem !important;
  }

  .gd-sidebar-left-elementor-aside-col > .elementor-element-populated,
  .gd-legal-elementor-sidebar-col > .elementor-element-populated {
    padding: 0.5rem 0.75rem 0.375rem !important;
  }

  .gd-sidebar-left-elementor-main-col > .elementor-element-populated,
  .gd-legal-elementor-main > .elementor-element-populated,
  .gd-legal-elementor-main-col > .elementor-element-populated {
    padding: 0.625rem 1rem 1rem !important;
  }

  .gd-sidebar-left-elementor-aside-col .elementor-widget-gd_support_sidebar,
  .gd-sidebar-left-elementor-aside-col .elementor-widget-gd_country_links,
  .gd-sidebar-left-elementor-aside-col .elementor-widget-gd_legal_sidebar,
  .gd-legal-elementor-sidebar-col .elementor-widget-gd_legal_sidebar {
    margin-bottom: 0 !important;
  }

  .gd-sidebar-left-elementor-aside-col .elementor-element,
  .gd-legal-elementor-sidebar-col .elementor-element {
    --padding-top: 0px !important;
    --padding-right: 0px !important;
    --padding-bottom: 0px !important;
    --padding-left: 0px !important;
    padding: 0 !important;
  }

  .gd-sidebar-left-elementor-page .gd-sidebar-left-panel,
  .gd-legal-elementor-page .gd-legal-sidebar-panel {
    margin: 0 0 0.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    box-shadow: none;
  }

  .gd-sidebar-left-elementor-page .gd-country-links-sidebar .gd-sidebar-left-panel,
  .gd-sidebar-left-elementor-page .gd-legal-sidebar-panel:last-child {
    margin-bottom: 0;
  }

  .gd-sidebar-left-elementor-page .gd-sidebar-left-nav:not(.gd-country-links-list),
  .gd-legal-elementor-page .gd-legal-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.125rem;
  }

  .gd-sidebar-left-elementor-page .gd-sidebar-left-nav-link,
  .gd-legal-elementor-page .gd-legal-nav-link {
    padding: 0.4375rem 0.5rem;
    font-size: 0.6875rem;
  }

  .gd-sidebar-left-elementor-main-col .elementor-widget-text-editor > .elementor-widget-container,
  .gd-legal-elementor-main .elementor-widget-text-editor > .elementor-widget-container,
  .gd-legal-elementor-main-col .elementor-widget-text-editor > .elementor-widget-container {
    padding: 0 !important;
  }

  .gd-sidebar-left-elementor-main-col .gd-sidebar-left-content h2,
  .gd-legal-elementor-main .gd-legal-content h2 {
    margin-top: 1rem;
  }

  .gd-sidebar-left-elementor-main-col .gd-sidebar-left-content h2:first-child,
  .gd-legal-elementor-main .gd-legal-content h2:first-child {
    margin-top: 0.25rem;
  }
}

/* ── Homepage Phase A (client punchlist) ─────────────────── */
body.home .gd-home-hero.elementor-section,
body.home .gd-home-hero.e-con {
  margin-top: 0 !important;
}

body.home .gd-home-hero > .elementor-container,
body.home .gd-home-hero.e-con {
  padding-top: 1.5rem !important;
}

@media (min-width: 768px) {
  body.home .gd-home-hero > .elementor-container,
  body.home .gd-home-hero.e-con {
    padding-top: 2rem !important;
  }
}

.home .gd-home-how-it-works {
  padding-top: 2.5rem !important;
  padding-bottom: 0 !important;
}

.home .gd-home-how-it-works .elementor-widget-heading .elementor-heading-title {
  margin-bottom: 0 !important;
}

.home .gd-home-how-it-works .elementor-widget-spacer .elementor-spacer-inner {
  height: 8px !important;
}

.home .gd-home-how-it-works .elementor-widget-text-editor p {
  margin: 0.35rem 0 0 !important;
}

.home .gd-home-how-it-works-steps {
  padding-top: 1rem !important;
  padding-bottom: 5rem !important;
}

.home .gd-home-testimonials {
  padding-bottom: 2.5rem !important;
}

.home .gd-home-sample-quote {
  padding-top: 4.5rem !important;
  padding-bottom: 0 !important;
}

.home .gd-home-sample-quote .elementor-widget-html .elementor-widget-container {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.home .gd-home-sample-quote .gd-sample-quote-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  margin-inline: auto;
  text-align: center;
}

.home .gd-home-sample-quote .gd-sample-quote-jump__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.home .gd-home-sample-quote .gd-sample-quote-jump__btn--sample {
  background: var(--gd-gold, #d4af37);
  color: var(--gd-navy-dark, #0f2638);
}

.home .gd-home-sample-quote .gd-sample-quote-jump__btn--sample:hover {
  background: var(--gd-gold-light, #e8c547);
}

.home .gd-home-sample-quote .gd-sample-quote-jump__btn--quote {
  background: var(--gd-navy, #1a3a52);
  color: #fff;
}

.home .gd-home-sample-quote .gd-sample-quote-jump__btn--quote:hover {
  background: #234a66;
}

#gd-home-free-sample,
#gd-home-custom-quote {
  scroll-margin-top: 7rem;
}

.home .gd-home-sample-quote-cards {
  padding-top: 2.5rem !important;
  padding-bottom: 5rem !important;
}

.home .gd-home-sample-quote-cards > .elementor-container {
  align-items: stretch !important;
}

.home .gd-home-sample-quote-cards .elementor-column {
  display: flex !important;
}

.home .gd-home-sample-quote-cards .elementor-column > .elementor-widget-wrap {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  width: 100% !important;
  height: 100% !important;
}

.home .gd-home-sample-quote-cards .elementor-widget-html,
.home .gd-home-sample-quote-cards .elementor-widget-html .elementor-widget-container {
  display: flex !important;
  flex: 1 !important;
  height: 100% !important;
  width: 100% !important;
}

.home .gd-home-sample-quote > .elementor-container {
  align-items: stretch !important;
}

.home .gd-home-sample-quote .elementor-column > .elementor-widget-wrap {
  height: 100%;
}

.home .gd-home-sample-quote-cards .gd-sample-card,
.home .gd-home-sample-quote-cards .gd-quote-card {
  flex: 1 !important;
  height: 100% !important;
  width: 100% !important;
}

.home .gd-home-sample-quote-cards .gd-sample-card-body,
.home .gd-home-sample-quote-cards .gd-quote-card-body {
  flex: 1 !important;
}

.home .gd-home-sample-quote-cards .gd-sample-card .gd-lead-form {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.home .gd-home-sample-quote-cards .gd-sample-card .gd-form-note {
  margin-top: auto !important;
}

.home .gd-home-sample-quote-cards .gd-quote-card-body > a[href*="custom-quote"] {
  margin-top: auto !important;
}

.home .gd-home-sample-quote .elementor-widget-gd_sample_form,
.home .gd-home-sample-quote .gd-sample-card,
.home .gd-home-sample-quote .gd-quote-card {
  height: 100%;
}

.home .gd-home-newsletter-cta .elementor-widget-text-editor p + p {
  display: none;
}

/* ── Homepage Phase E1 (client revision feedback) ──────── */

/* #3 — What Sets Us Apart: client teal + larger sub-headings */
.home .gd-home-why-us.elementor-section,
.home .gd-home-why-us.e-con,
.home .gd-home-why-us > .e-con-inner {
  background-color: #003d4c !important;
}

.home .gd-home-why-us .elementor-widget-heading .elementor-heading-title {
  font-size: clamp(1.125rem, 2vw, 1.375rem) !important;
  line-height: 1.35 !important;
}

/* #4 — Free Sample / Custom Quote: equal height + gold CTA on quote card */
.home .gd-home-sample-quote .elementor-column {
  display: flex;
}

.home .gd-home-sample-quote .elementor-column > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home .gd-home-sample-quote .gd-quote-card .btn-primary,
.home .gd-home-sample-quote .gd-quote-card button[type="submit"],
.home .gd-home-sample-quote .elementor-column:last-child .elementor-button {
  background: var(--gd-gold, #d4af37) !important;
  color: var(--gd-navy-dark, #0f2638) !important;
  border-color: var(--gd-gold, #d4af37) !important;
}

.home .gd-home-sample-quote .gd-quote-card .btn-primary:hover,
.home .gd-home-sample-quote .elementor-column:last-child .elementor-button:hover {
  background: var(--gd-gold-light, #e8c547) !important;
}

/* #5 — Testimonials: spacing + centered stars */
.home .gd-home-testimonials .elementor-column {
  margin-bottom: 1.75rem;
}

.home .gd-home-testimonials .gd-stars,
.home .gd-home-testimonials .elementor-star-rating,
.home .gd-home-testimonials .elementor-widget-star-rating {
  justify-content: center !important;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem !important;
}

.home .gd-home-testimonials .gd-reviewer {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: none;
  padding-top: 0;
}

.home .gd-home-testimonials .gd-review-card {
  padding: 2rem 1.75rem;
}

/* #7 — Samples quality banner */
.home .gd-home-samples-banner .elementor-button {
  background: var(--gd-gold, #d4af37) !important;
  color: var(--gd-navy-dark, #0f2638) !important;
}

/* Phase E2 — hero Order Now + stats bar */
.home .gd-home-hero .elementor-button {
  min-width: 200px;
}

.home .gd-home-newsletter-cta .elementor-widget-html {
  max-width: 760px;
  margin-inline: auto;
}

