/* GMC platform look: navy + white + green, Geist, 12px radii, soft navy shadows.
   Tokens mirror gmc-platform/apps/dashboard/app/globals.css. */
:root {
  --gmc-navy: #0c2b48;
  --gmc-navy-2: #123a5e;
  --gmc-ink: #071c30;
  --gmc-green: #137a45;
  --gmc-green-2: #3ecf7f;
  --gmc-green-soft: #e2f4e9;
  --gmc-bg: #f1f4f8;
  --gmc-border: #dde4ec;
  --gmc-muted: #5a6b7c;
  --gmc-radius: 12px;
  --gmc-shadow: 0 1px 2px rgb(7 28 48 / .05), 0 4px 16px -4px rgb(7 28 48 / .08);
  --gmc-shadow-hover: 0 2px 4px rgb(7 28 48 / .06), 0 12px 32px -8px rgb(7 28 48 / .16);
  --gmc-font: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Re-point Elementor globals so widgets that use them follow the brand. */
  --e-global-color-primary: var(--gmc-navy);
  --e-global-color-secondary: var(--gmc-muted);
  --e-global-color-text: var(--gmc-ink);
  --e-global-color-accent: var(--gmc-green);
}

body,
button, input, select, textarea,
.elementor-widget-container,
.site-header, .site-footer, .primary-menu a {
  font-family: var(--gmc-font);
}
body { color: var(--gmc-ink); background: var(--gmc-bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--gmc-font);
  color: var(--gmc-navy);
  letter-spacing: -.015em;
  line-height: 1.2;
}
a { transition: color .15s ease; }
a:hover { color: var(--gmc-green); }
::selection { background: var(--gmc-green-soft); color: var(--gmc-ink); }
:focus-visible { outline: 2px solid var(--gmc-green); outline-offset: 2px; }

/* Header */
.site-header, .header-v2 .row-v2-main { background: #fff; }
.site-header { border-bottom: 1px solid var(--gmc-border); box-shadow: var(--gmc-shadow); }
.primary-menu > li > a, .primary-menu .menu > li > a { color: var(--gmc-navy); font-weight: 500; }
.primary-menu li:hover > a, .primary-menu li.current-menu-item > a, .primary-menu li.current-menu-ancestor > a {
  color: var(--gmc-green);
}
.primary-menu .sub-menu {
  border: 1px solid var(--gmc-border); border-radius: var(--gmc-radius);
  box-shadow: var(--gmc-shadow-hover); overflow: hidden;
}

/* Buttons */
.button, button, input[type="submit"], input[type="button"],
.elementor-button, .woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .wc-block-components-button {
  background: var(--gmc-navy);
  color: #fff;
  border: 1px solid var(--gmc-navy);
  border-radius: var(--gmc-radius);
  font-family: var(--gmc-font);
  font-weight: 600;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover,
.elementor-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.wc-block-components-button:hover {
  background: var(--gmc-green);
  border-color: var(--gmc-green);
  color: #fff;
  box-shadow: var(--gmc-shadow);
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order {
  background: var(--gmc-green); border-color: var(--gmc-green);
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #place_order:hover {
  background: var(--gmc-navy); border-color: var(--gmc-navy);
}

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], input[type="url"], select, textarea, .select2-container--default .select2-selection--single {
  border: 1px solid var(--gmc-border);
  border-radius: 8px;
  background: #fff;
  color: var(--gmc-ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--gmc-green); box-shadow: 0 0 0 3px rgb(19 122 69 / .15); outline: 0; }

/* Cards: products, posts, Elementor boxes */
.wc-product-inner, .woocommerce ul.products li.product, .elementor-widget-icon-box .elementor-widget-container,
.elementor-post, .elementor-cta, .elementor-flip-box__layer {
  border-radius: var(--gmc-radius);
}
.wc-product-inner, .woocommerce ul.products li.product, .elementor-post {
  background: #fff;
  border: 1px solid var(--gmc-border);
  box-shadow: var(--gmc-shadow);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.wc-product-inner:hover, .woocommerce ul.products li.product:hover, .elementor-post:hover {
  box-shadow: var(--gmc-shadow-hover);
  transform: translateY(-2px);
}
.wc-product__title a, .woocommerce-loop-product__title { color: var(--gmc-navy); font-weight: 600; }
.wc-product__category, .link-meta { color: var(--gmc-muted); }
.price, .woocommerce .price, .amount { color: var(--gmc-green); font-weight: 600; }
.woocommerce span.onsale { background: var(--gmc-green); color: #fff; border-radius: 999px; }
img { border-radius: 0; }
.wc-product-media img { border-radius: 0; }

/* Tables / WooCommerce panels */
.woocommerce table.shop_table, .woocommerce-checkout #customer_details, .woocommerce-checkout-review-order,
.woocommerce-cart .cart_totals, .woocommerce .woocommerce-message, .woocommerce-info {
  border: 1px solid var(--gmc-border); border-radius: var(--gmc-radius); background: #fff;
}
.woocommerce-message, .woocommerce-info { border-top: 3px solid var(--gmc-green); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--gmc-green); }

/* Footer: deep navy like the dashboard sidebar */
.site-footer, .site-footer .footer-row, .footer-main, .footer-bottom {
  background: var(--gmc-ink);
  color: #a9c4dc;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gmc-green-2); }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }

/* Green hairline under Elementor section headings */
.elementor-widget-heading .elementor-heading-title.gmc-rule { position: relative; padding-bottom: .5rem; }
.elementor-widget-heading .elementor-heading-title.gmc-rule::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 2.5rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gmc-green), var(--gmc-green-2));
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Course catalog */
.gmc-catalog { max-width: 1200px; margin: 0 auto; padding: 32px 16px; font-family: var(--gmc-font); }
.gmc-catalog__search { display: flex; gap: 8px; margin-bottom: 24px; }
.gmc-catalog__search input[type="search"] { flex: 1; padding: 12px 16px; }
.gmc-catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gmc-catalog__card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; text-decoration: none;
  border: 1px solid var(--gmc-border); border-radius: var(--gmc-radius); box-shadow: var(--gmc-shadow);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.gmc-catalog__card:hover { box-shadow: var(--gmc-shadow-hover); transform: translateY(-2px); border-color: var(--gmc-green); }
.gmc-catalog__name { color: var(--gmc-navy); font-weight: 600; font-size: 1.05rem; }
.gmc-catalog__count { color: var(--gmc-green); font-size: .85rem; font-weight: 500; }
.gmc-catalog__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.gmc-catalog__head a { color: var(--gmc-green); font-weight: 500; text-decoration: none; }
.gmc-catalog__head h2 { margin: 0; flex: 1 1 100%; }
.gmc-catalog__head span { color: var(--gmc-muted); font-size: .9rem; }
.gmc-catalog__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.gmc-catalog__list a {
  display: block; padding: 14px 16px; background: #fff; color: var(--gmc-navy); text-decoration: none;
  border: 1px solid var(--gmc-border); border-radius: 8px; transition: border-color .15s ease, color .15s ease;
}
.gmc-catalog__list a:hover { border-color: var(--gmc-green); color: var(--gmc-green); }
.gmc-catalog__pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.gmc-catalog__pages a, .gmc-catalog__pages span {
  min-width: 38px; padding: 8px 12px; text-align: center; border-radius: 8px; border: 1px solid var(--gmc-border);
  background: #fff; color: var(--gmc-navy); text-decoration: none;
}
.gmc-catalog__pages span { background: var(--gmc-navy); color: #fff; border-color: var(--gmc-navy); }

/* Catalog sits inside Elementor containers that shrink-wrap their content */
.elementor-widget-shortcode, .elementor-widget-shortcode > .elementor-widget-container { width: 100%; }
.gmc-catalog { width: 100%; box-sizing: border-box; }
.gmc-catalog__search button { background: var(--gmc-navy); border-color: var(--gmc-navy); }
.gmc-catalog__search button:hover { background: var(--gmc-green); border-color: var(--gmc-green); }

/* Courses hero: dashboard font and green accent instead of its own gold */
body .mh-hero { --mh-accent: var(--gmc-green-2); --mh-navy: var(--gmc-navy); --mh-deep: var(--gmc-ink); font-family: var(--gmc-font); }

/* Landing page (front page) */
.home #page-breadcrumb { display: none; }
.home .elementor-element-e4e23fa {
  background:
    radial-gradient(60% 50% at 85% 0%, rgb(62 207 127 / .18), transparent 70%),
    radial-gradient(120% 120% at 50% -10%, var(--gmc-navy-2) 0%, var(--gmc-navy) 45%, var(--gmc-ink) 100%);
  padding: 72px max(24px, calc((100% - 1200px) / 2));
  align-items: center;
}
.home .elementor-element-e4e23fa .elementor-heading-title { color: #fff; }
.home .elementor-element-e4e23fa .elementor-widget-text-editor,
.home .elementor-element-e4e23fa .elementor-widget-text-editor p,
.home .elementor-element-e4e23fa li { color: #a9c4dc; }
.home .elementor-element-e4e23fa li::marker { color: var(--gmc-green-2); }
.home .elementor-element-e4e23fa .elementor-button {
  background: var(--gmc-green-2); border-color: var(--gmc-green-2); color: var(--gmc-ink); white-space: nowrap; border-radius: 999px;
}
.home .elementor-element-e4e23fa .elementor-button:hover { background: #fff; border-color: #fff; color: var(--gmc-navy); }

/* Elementor writes per-element rules with high specificity, so these need !important */
.home .elementor-element.elementor-element-e4e23fa { width: 100% !important; max-width: none !important; margin: 0 !important; }
.home .elementor-element-e4e23fa .elementor-heading-title,
.home .elementor-element-e4e23fa h1, .home .elementor-element-e4e23fa h2 { color: #fff !important; }
.home .elementor-element-e4e23fa .elementor-widget-text-editor,
.home .elementor-element-e4e23fa .elementor-widget-text-editor *,
.home .elementor-element-e4e23fa li { color: #c5d8ea !important; }
.home .elementor-element-e4e23fa a.elementor-button,
.home .elementor-element-e4e23fa .elementor-button { background-color: var(--gmc-green-2) !important; color: var(--gmc-ink) !important; border-color: var(--gmc-green-2) !important; }
.home .elementor-element-e4e23fa .elementor-button-text { color: var(--gmc-ink) !important; }
.gmc-catalog__search button { background: var(--gmc-navy) !important; color: #fff !important; }
#site-footer, #site-footer [class*="footer-"] { background: var(--gmc-ink) !important; }
#site-footer, #site-footer * { color: #a9c4dc; }
#site-footer a { color: #fff; }

/* Desktop uses the navbar only; the slide-out menu stays for tablet and phone */
.cb-row--desktop .builder-item--nav-icon { display: none; }

/* Empty title and breadcrumb bars under the header */
#page-titlebar:not(:has(h1, h2, .page-title)) { display: none; }
body.page #page-breadcrumb { display: none; }

/* Slide-out menu (tablet and phone): same navy look as the dashboard sidebar */
#header-menu-sidebar { max-width: 86vw; }
#header-menu-sidebar, #header-menu-sidebar-inner { background: var(--gmc-ink) !important; color: #a9c4dc; }
#header-menu-sidebar a { color: #fff; font-weight: 500; }
#header-menu-sidebar a:hover, #header-menu-sidebar .current-menu-item > a { color: var(--gmc-green-2); }
#header-menu-sidebar li { border-color: rgb(255 255 255 / .08) !important; }
#header-menu-sidebar input[type="search"] { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .14); color: #fff; }

/* Footer */
.gmc-footer { background: var(--gmc-ink) !important; color: #a9c4dc; font-family: var(--gmc-font); }
.gmc-footer a { color: #fff; text-decoration: none; }
.gmc-footer a:hover { color: var(--gmc-green-2); }
.gmc-footer__inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 40px; }
.gmc-footer__logo { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.gmc-footer p { margin: 0 0 16px; max-width: 34ch; line-height: 1.6; }
.gmc-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.gmc-footer h3::after { content: ""; display: block; width: 2rem; height: 2px; margin-top: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--gmc-green), var(--gmc-green-2)); }
.gmc-footer address { font-style: normal; line-height: 1.9; }
.gmc-footer ul { list-style: none; margin: 0; padding: 0; }
.gmc-footer__col li { margin-bottom: 10px; }
.gmc-footer__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.gmc-footer__badges li { padding: 4px 12px; font-size: .78rem; color: #c5d8ea; border: 1px solid rgb(255 255 255 / .14); border-radius: 999px; }
.gmc-footer__bar { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .82rem; color: #7f98b0; }
@media (max-width: 820px) {
  .gmc-footer__inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 28px; }
  .gmc-footer__bar { padding: 16px 20px; flex-direction: column; }
}

/* Customizer "Additional CSS" scales the whole page down on phones (body zoom .35). Real responsive layout instead. */
@media (max-width: 768px) {
  html body { zoom: 1 !important; }
}
