/*
Theme Name: GreatLight
Theme URI: https://glcnc.net/
Author: GreatLight Metal Technology Co., LTD.
Author URI: https://glcnc.net/
Description: Custom block theme for GreatLight Metal Technology — precision 5-axis CNC machining. Design system: #5804FA primary, 30px buttons, 18px cards, system fonts.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: greatlight
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --gl-primary: #5804FA;
  --gl-primary-600: #4903D0;
  --gl-primary-100: #EDE5FE;
  --gl-ink: #0F172A;
  --gl-ink-2: #1E293B;
  --gl-ink-3: #0B1120;
  --gl-tint: #F2F0FE;
  --gl-link: #046BD2;
  --gl-ok: #22C55E;
  --gl-line: #E5E3F1;
  --gl-line-strong: #CFC4F7;
  --gl-text: #1B2337;
  --gl-muted: #5B6478;
  --gl-muted-2: #94A3B8;
  --gl-card-r: 18px;
  --gl-btn-r: 30px;
  --gl-wrap: 1240px;
  --gl-font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gl-shadow: 0 14px 36px rgba(15, 23, 42, .10);
  --gl-shadow-sm: 0 6px 18px rgba(15, 23, 42, .07);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--gl-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gl-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gl-font);
  font-weight: 700;
  color: var(--gl-ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { line-height: 1.08; }
h2 { line-height: 1.15; }
h3 { line-height: 1.3; }

p { margin: 0 0 1em; }

a { color: var(--gl-link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gl-primary);
  outline-offset: 2px;
}

::selection { background: var(--gl-primary); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */
.gl-wrap {
  width: 100%;
  max-width: var(--gl-wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.gl-section { padding: clamp(64px, 8vw, 104px) 0; }
.gl-section--sm { padding: clamp(44px, 5vw, 72px) 0; }
.gl-section--tint { background: var(--gl-tint); }

.gl-section--dark {
  background: var(--gl-ink);
  color: #C7D0DF;
}
.gl-section--dark h1, .gl-section--dark h2, .gl-section--dark h3, .gl-section--dark h4 { color: #fff; }
.gl-section--dark .gl-lead { color: #A9B4C7; }
.gl-section--dark .gl-kicker { color: #B9A6FF; }
.gl-section--dark p { color: #C7D0DF; }

.gl-section__head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.gl-section__head--center { text-align: center; margin-inline: auto; }

.gl-kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gl-primary);
  margin: 0 0 14px;
}

.gl-title-xl { font-size: clamp(38px, 6.2vw, 66px); line-height: 1.04; margin: 0 0 22px; }
.gl-title { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 18px; }
.gl-title-sm { font-size: clamp(20px, 2vw, 24px); }
.gl-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--gl-muted); margin: 0; }

.gl-note { font-size: 14px; color: var(--gl-muted); }

/* Grids */
.gl-grid { display: grid; gap: 24px; }
.gl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gl-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gl-grid--5 { grid-template-columns: repeat(5, 1fr); }
.gl-grid--gap-sm { gap: 16px; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.gl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--gl-btn-r);
  border: 1.5px solid var(--gl-primary);
  background: var(--gl-primary);
  color: #fff !important;
  font-family: var(--gl-font);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.gl-btn:hover {
  background: var(--gl-primary-600);
  border-color: var(--gl-primary-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(88, 4, 250, .28);
}
.gl-btn--sm { padding: 11px 22px; font-size: 14px; }
.gl-btn--lg { padding: 17px 36px; font-size: 16.5px; }

.gl-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: #fff !important;
}
.gl-btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  box-shadow: none;
}

.gl-btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--gl-primary) !important;
}
.gl-btn--light:hover {
  background: var(--gl-tint);
  border-color: var(--gl-tint);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.gl-btnrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.gl-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--gl-line);
  backdrop-filter: saturate(180%) blur(8px);
}
body.admin-bar .gl-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .gl-header { top: 46px; } }

.gl-header__in {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 76px;
}

.gl-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.gl-logo img { height: 48px; width: auto; display: block; }

.gl-nav { margin-left: auto; }
.gl-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gl-nav > ul > li { position: relative; }
.gl-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--gl-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.gl-nav a:hover { color: var(--gl-primary); background: var(--gl-tint); text-decoration: none; }

.gl-nav a.gl-has-sub::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s;
}
.gl-nav li:hover > a.gl-has-sub::after { transform: rotate(225deg) translateY(-1px); }

.gl-sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 264px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .16s, transform .16s, visibility .16s;
  z-index: 100;
}
.gl-nav li:hover > .gl-sub,
.gl-nav li:focus-within > .gl-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.gl-sub a { display: block; padding: 9px 12px; border-radius: 9px; font-weight: 500; }

.gl-header__aside { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.gl-header__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gl-ink);
  white-space: nowrap;
}
.gl-header__tel:hover { color: var(--gl-primary); text-decoration: none; }
.gl-header__tel svg { color: var(--gl-primary); }

/* CSS-only mobile menu */
.gl-mobile { display: none; position: relative; }
.gl-mobile > summary {
  list-style: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  color: var(--gl-ink);
}
.gl-mobile > summary::-webkit-details-marker { display: none; }
.gl-mobile[open] > summary { border-color: var(--gl-primary); color: var(--gl-primary); }
.gl-mobile__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(92vw, 360px);
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .18);
  padding: 14px;
  max-height: 76vh;
  overflow: auto;
}
.gl-mobile__panel ul { list-style: none; margin: 0; padding: 0; }
.gl-mobile__panel li { border-bottom: 1px solid #F1EFF9; }
.gl-mobile__panel li:last-child { border-bottom: 0; }
.gl-mobile__panel a { display: block; padding: 11px 10px; color: var(--gl-ink); font-weight: 600; font-size: 15px; }
.gl-mobile__panel a:hover { color: var(--gl-primary); text-decoration: none; }
.gl-mobile__panel .gl-mobile__cta { margin-top: 12px; display: grid; }
.gl-mobile__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gl-muted); padding: 10px 10px 4px; display: block; }

@media (max-width: 1120px) {
  .gl-nav { display: none; }
  .gl-mobile { display: block; margin-left: auto; }
  .gl-header__aside .gl-header__tel { display: none; }
}
@media (max-width: 560px) {
  .gl-header__aside .gl-btn { display: none; }
}

/* ==========================================================================
   6. Hero (home)
   ========================================================================== */
.gl-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(90vh, 880px);
  padding: clamp(96px, 14vh, 168px) 0 clamp(76px, 10vh, 132px);
  color: #fff;
  background: var(--gl-ink);
  overflow: hidden;
}
.gl-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .45;
}
.gl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .62) 0%, rgba(15, 23, 42, .78) 58%, rgba(15, 23, 42, .95) 100%),
    radial-gradient(900px 460px at 78% 18%, rgba(88, 4, 250, .38), transparent 65%);
}
.gl-hero .gl-wrap { position: relative; z-index: 2; }

.gl-hero h1 { color: #fff; }
.gl-hero__sub {
  max-width: 780px;
  margin: 0 0 36px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
  color: #C7D0DF;
}
.gl-hero__cta { margin-bottom: 42px; }
.gl-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  color: #D6DDEC;
}
.gl-hero__points li { display: inline-flex; align-items: center; gap: 10px; }
.gl-hero__points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #A78BFA;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, .18);
}

/* ==========================================================================
   7. Page head (inner pages)
   ========================================================================== */
.gl-pagehead {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  background: var(--gl-ink);
  color: #fff;
  overflow: hidden;
}
.gl-pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 340px at 85% 0%, rgba(88, 4, 250, .34), transparent 62%);
}
.gl-pagehead .gl-wrap { position: relative; z-index: 2; }
.gl-pagehead h1 { color: #fff; margin-bottom: 16px; }
.gl-pagehead .gl-lead { color: #A9B4C7; max-width: 820px; }
.gl-pagehead .gl-kicker { color: #B9A6FF; }

/* ==========================================================================
   8. Trust bar
   ========================================================================== */
.gl-trustbar {
  background: var(--gl-ink-3);
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #E2E8F0;
  padding: 20px 0;
}
.gl-trustbar__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 34px;
}
.gl-trustbar__item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.gl-trustbar__item svg { color: #A78BFA; flex: 0 0 auto; }

/* ==========================================================================
   9. Cards
   ========================================================================== */
.gl-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: var(--gl-card-r);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.gl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gl-shadow);
  border-color: var(--gl-line-strong);
}
a.gl-card, a.gl-card:hover { color: inherit; text-decoration: none; }
.gl-card h3 { margin: 0; font-size: 19px; }
.gl-card p { margin: 0; color: var(--gl-muted); font-size: 15px; }
.gl-card__more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--gl-primary);
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gl-card__more::after { content: "→"; transition: transform .18s; }
a.gl-card:hover .gl-card__more::after { transform: translateX(4px); }

.gl-card--center { text-align: center; align-items: center; }
.gl-card--center .gl-icon { margin-inline: auto; }

.gl-card--media { padding: 0; overflow: hidden; gap: 0; }
.gl-card--media > img,
.gl-card--media .gl-card__img img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.gl-card--media .gl-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 28px;
  flex: 1;
}

.gl-card--flat { background: var(--gl-tint); border-color: transparent; }
.gl-card--flat:hover { background: #fff; }

.gl-section--dark .gl-card { background: #16213A; border-color: rgba(255, 255, 255, .10); }
.gl-section--dark .gl-card h3 { color: #fff; }
.gl-section--dark .gl-card p { color: #A9B4C7; }

.gl-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gl-tint);
  color: var(--gl-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.gl-icon svg { width: 26px; height: 26px; }
.gl-section--dark .gl-icon { background: rgba(88, 4, 250, .18); color: #B9A6FF; }

.gl-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 99px;
  background: var(--gl-tint);
  color: var(--gl-primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ==========================================================================
   10. Split (media + content)
   ========================================================================== */
.gl-split {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.gl-split--rev .gl-split__media { order: -1; }
.gl-split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--gl-card-r);
  box-shadow: var(--gl-shadow);
  display: block;
}
.gl-split__media .gl-note { margin-top: 12px; }

/* Checklist */
.gl-checks { list-style: none; margin: 22px 0 0; padding: 0; }
.gl-checks li {
  position: relative;
  padding: 7px 0 7px 34px;
  color: var(--gl-text);
  font-size: 15.5px;
}
.gl-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gl-primary-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235804FA' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.gl-section--dark .gl-checks li { color: #D6DDEC; }
.gl-section--dark .gl-checks li::before { background-color: rgba(88, 4, 250, .25); }

/* ==========================================================================
   11. Stats
   ========================================================================== */
.gl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.gl-stat__num {
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--gl-primary);
  letter-spacing: -0.02em;
}
.gl-stat__label { margin-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--gl-muted); }
.gl-section--dark .gl-stat__num { color: #B9A6FF; }
.gl-section--dark .gl-stat__label { color: #A9B4C7; }

/* ==========================================================================
   12. Tables
   ========================================================================== */
.gl-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  background: #fff;
}
.gl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}
.gl-table th {
  text-align: left;
  padding: 13px 18px;
  background: var(--gl-tint);
  color: #3B3663;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gl-line);
  white-space: nowrap;
}
.gl-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #F0EEF9;
  color: #2A3247;
  vertical-align: top;
}
.gl-table tr:last-child td { border-bottom: 0; }
.gl-table--dark { border-color: rgba(255,255,255,.12); }
.gl-table--dark th { background: rgba(255,255,255,.06); color: #CBD5E1; border-color: rgba(255,255,255,.12); }
.gl-table--dark td { border-color: rgba(255,255,255,.08); color: #C7D0DF; }

/* ==========================================================================
   13. FAQ accordion
   ========================================================================== */
.gl-faq { display: grid; gap: 12px; }
.gl-faq details {
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.gl-faq details[open] { border-color: var(--gl-line-strong); box-shadow: var(--gl-shadow-sm); }
.gl-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--gl-ink);
  list-style: none;
}
.gl-faq summary::-webkit-details-marker { display: none; }
.gl-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gl-tint);
  color: var(--gl-primary);
  font-size: 19px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  transition: transform .18s;
}
.gl-faq details[open] summary::after { content: "−"; background: var(--gl-primary); color: #fff; }
.gl-faq__a { padding: 0 22px 20px; color: var(--gl-muted); font-size: 15.5px; }
.gl-faq__a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   14. CTA band
   ========================================================================== */
.gl-cta {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0;
  background: linear-gradient(118deg, #5804FA 0%, #4102BE 52%, #23015F 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.gl-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(720px 320px at 18% 110%, rgba(255, 255, 255, .17), transparent 60%);
}
.gl-cta .gl-wrap { position: relative; z-index: 2; }
.gl-cta h2 { color: #fff; margin-bottom: 14px; }
.gl-cta p { color: #E3DBFF; max-width: 720px; margin: 0 auto 32px; font-size: 17.5px; }
.gl-cta .gl-btnrow { justify-content: center; }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.gl-footer {
  background: var(--gl-ink-3);
  color: #93A1B5;
  padding: 72px 0 34px;
  font-size: 15px;
}
.gl-footer a { color: #C7D0DF; text-decoration: none; }
.gl-footer a:hover { color: #fff; text-decoration: underline; }
.gl-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.gl-footer__logo img { height: 46px; width: auto; margin-bottom: 18px; display: block; }
.gl-footer p { color: #93A1B5; font-size: 14.5px; line-height: 1.7; }
.gl-footer__certs { margin-top: 16px; font-size: 13px; letter-spacing: .02em; color: #7C8AA0; }
.gl-footer h4 {
  color: #fff;
  font-size: 13.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.gl-footer ul { list-style: none; margin: 0; padding: 0; }
.gl-footer li { padding: 5px 0; font-size: 14.5px; }
.gl-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.gl-footer__contact svg { flex: 0 0 auto; margin-top: 4px; color: #8F79FF; }
.gl-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 26px;
  font-size: 13.5px;
  color: #6B7A94;
}

/* ==========================================================================
   16. Prose & misc components
   ========================================================================== */
.gl-prose { max-width: 880px; }
.gl-prose h2 { margin: 2em 0 .6em; font-size: clamp(24px, 2.6vw, 32px); }
.gl-prose h3 { margin: 1.6em 0 .5em; font-size: 21px; }
.gl-prose p { color: #2A3247; font-size: 16.5px; }
.gl-prose ul, .gl-prose ol { padding-left: 22px; color: #2A3247; }
.gl-prose li { margin: 6px 0; }
.gl-prose img { border-radius: var(--gl-card-r); }
.gl-cols2 { columns: 2; column-gap: 44px; }
@media (max-width: 720px) { .gl-cols2 { columns: 1; } }

.gl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.gl-chips li {
  padding: 7px 15px;
  border: 1px solid var(--gl-line);
  border-radius: 99px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #3B3663;
}

.gl-steps { list-style: none; margin: 0; padding: 0; counter-reset: gl-step; }
.gl-steps li {
  position: relative;
  counter-increment: gl-step;
  padding: 4px 0 22px 64px;
}
.gl-steps li::before {
  content: counter(gl-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gl-primary);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gl-steps h3 { margin: 4px 0 6px; font-size: 18px; }
.gl-steps p { color: var(--gl-muted); font-size: 15px; margin: 0; }

.gl-quote {
  margin: 0;
  padding: 28px 30px;
  background: var(--gl-tint);
  border-left: 4px solid var(--gl-primary);
  border-radius: 0 var(--gl-card-r) var(--gl-card-r) 0;
  color: #2A3247;
  font-size: 16.5px;
}
.gl-quote footer { margin-top: 14px; font-size: 14px; color: var(--gl-muted); font-weight: 600; }

.gl-media-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gl-media-row img { border-radius: 14px; width: 100%; height: 220px; object-fit: cover; }

/* WordPress core block helpers */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-button__link, .wp-element-button {
  border-radius: var(--gl-btn-r);
  padding: 15px 30px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
  background: var(--gl-primary);
  color: #fff;
}
.wp-block-button__link:hover { background: var(--gl-primary-600); }

/* Contact Form 7 */
.wpcf7 { max-width: 720px; }
.wpcf7 p { margin: 0 0 18px; }
.wpcf7 label { display: block; font-weight: 700; font-size: 14.5px; color: var(--gl-ink); margin-bottom: 8px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="file"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  background: #fff;
  font-family: var(--gl-font);
  font-size: 15.5px;
  color: var(--gl-text);
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  border-color: var(--gl-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 4, 250, .12);
}
.wpcf7 input[type="submit"] {
  display: inline-flex;
  padding: 16px 34px;
  border: 0;
  border-radius: var(--gl-btn-r);
  background: var(--gl-primary);
  color: #fff;
  font-family: var(--gl-font);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.wpcf7 input[type="submit"]:hover { background: var(--gl-primary-600); transform: translateY(-1px); }
.wpcf7-response-output {
  border-radius: 12px !important;
  border-color: var(--gl-primary) !important;
  padding: 14px 18px !important;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--gl-ok) !important; color: #166534 !important; }
.wpcf7 .gl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .wpcf7 .gl-form-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .gl-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gl-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .gl-split { grid-template-columns: 1fr; }
  .gl-split--rev .gl-split__media { order: 0; }
  .gl-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .gl-media-row { grid-template-columns: repeat(2, 1fr); }
  .gl-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .gl-grid--2, .gl-grid--3, .gl-grid--4, .gl-grid--5 { grid-template-columns: 1fr; }
  .gl-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .gl-hero { min-height: auto; }
  .gl-footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .gl-media-row { grid-template-columns: 1fr; }
  .gl-btnrow .gl-btn { width: 100%; }
}
@media (max-width: 480px) {
  .gl-grid--5 { grid-template-columns: 1fr; }
}
