/* ==========================================================================
   Sehli Global – Home page (template-home.php)
   Builds on sehli-pages.css (tokens, buttons, FAQ). Icons: Font Awesome 6.
   ========================================================================== */

.sg-home { --sgh-cream: #FBF7F3; --sgh-line: #EDE5E1; --sgh-ink: #1B182F; }
.sg-home .sg-section { padding: 96px 0; }
.sg-home i[class*="fa-"] { line-height: 1; }

/* ---------- Shared ---------- */
.sgh-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px !important;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-red);
}
.sgh-kicker span {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px;
  border: 1px solid currentColor; border-radius: 999px; font-size: 11px; letter-spacing: .06em;
}
.sgh-kicker--light { color: #FF8A8E; }
.sgh-h2 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.16; font-weight: 700; letter-spacing: -.015em; max-width: 760px; }
.sgh-head { margin-bottom: 48px; }
.sgh-head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.sgh-head__aside { font-size: 16px; line-height: 1.75; color: var(--sg-text); }
.sgh-textlink {
  display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600;
  color: var(--sg-navy) !important; border-bottom: 1.5px solid transparent; padding: 4px 0;
  transition: border-color .2s ease, color .2s ease;
}
.sgh-textlink:hover { border-bottom-color: currentColor; }
.sgh-textlink--dark { color: var(--sg-red) !important; }
.sgh-textlink--light { color: #fff !important; }

/* ---------- 1. Hero ---------- */
.sgh-hero {
  position: relative; overflow: hidden; padding: 72px 0 88px; background: var(--sgh-cream);
  background-image:
    linear-gradient(rgba(27, 24, 47, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 24, 47, .035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.sgh-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.sgh-loc {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px !important; padding: 8px 16px;
  border: 1px solid var(--sgh-line); border-radius: 999px; background: #fff;
  font-size: 13.5px; font-weight: 500; color: var(--sg-navy);
}
.sgh-loc i { color: var(--sg-red); }
.sgh-hero__title { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; }
.sgh-hero__title span {
  background: linear-gradient(transparent 62%, rgba(236, 31, 38, .18) 62%, rgba(236, 31, 38, .18) 92%, transparent 92%);
}
.sgh-hero__lead { margin-top: 24px !important; max-width: 580px; font-size: 18px; line-height: 1.7; color: var(--sg-text); }
.sgh-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
.sgh-hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0 !important; padding: 24px 0 0 !important; border-top: 1px solid var(--sgh-line); }
.sgh-hero__ticks li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--sg-navy); }
.sgh-hero__ticks i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sg-navy); color: #fff; font-size: 10px; }

.sgh-portrait { position: relative; margin: 0; padding: 0 0 34px 34px; }
.sgh-portrait::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 78%; height: 72%;
  border-radius: 0 0 0 24px; background: var(--sg-red);
}
.sgh-portrait__frame {
  position: relative; overflow: hidden; aspect-ratio: 14 / 15;
  border-radius: 999px 999px 24px 24px; background: #E9E2DE;
  box-shadow: 0 40px 70px -40px rgba(27, 24, 47, .55);
}
.sgh-portrait__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.sgh-licence {
  position: absolute; left: 0; bottom: 64px; display: flex; align-items: center; gap: 14px; max-width: 300px;
  padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -22px rgba(27, 24, 47, .5);
  font-size: 13px; line-height: 1.45; color: var(--sg-text);
}
.sgh-licence strong { display: block; font-size: 15px; color: var(--sg-navy); }
.sgh-licence small { color: var(--sg-muted); font-size: 12px; }
.sgh-licence__badge { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sg-navy); color: #fff; font-size: 18px; }
.sgh-rating {
  position: absolute; right: -6px; top: 28px; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; background: #fff; box-shadow: 0 16px 30px -18px rgba(27, 24, 47, .5);
  font-size: 13px; font-weight: 600; color: var(--sg-navy);
}
.sgh-rating .fa-google { color: #4285F4; font-size: 15px; }
.sgh-rating__stars { display: inline-flex; gap: 2px; color: #F5B400; font-size: 11px; }

/* ---------- 2. Trust bar ---------- */
.sgh-trust { background: var(--sg-navy); color: #fff; }
.sgh-trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); }
.sgh-stat { display: flex; align-items: center; gap: 14px; padding: 30px 28px; border-left: 1px solid rgba(255, 255, 255, .1); }
.sgh-stat:first-child { border-left: 0; padding-left: 0; }
.sgh-stat strong { font-size: 34px; font-weight: 700; line-height: 1; color: #fff; }
.sgh-stat span { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
.sgh-stat--badge i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(236, 31, 38, .18); color: #FF6B70; font-size: 18px; }
.sgh-stat--badge span { color: #fff; font-weight: 500; }

/* ---------- 3. Services ---------- */
.sgh-svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--sgh-line); }
.sgh-svc__item { border-bottom: 1px solid var(--sgh-line); }
.sgh-svc__link {
  position: relative; display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) 28px; gap: 18px; align-items: start;
  padding: 28px 8px 28px 0; color: inherit !important;
}
.sgh-svc__link::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--sg-red); transition: width .35s ease;
}
.sgh-svc__link:hover::before, .sgh-svc__link:focus-visible::before { width: 100%; }
.sgh-svc__num { padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--sg-muted); font-variant-numeric: tabular-nums; }
.sgh-svc__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--sgh-cream); color: var(--sg-red); font-size: 20px; transition: background-color .25s ease, color .25s ease;
}
.sgh-svc__link:hover .sgh-svc__icon { background: var(--sg-red); color: #fff; }
.sgh-svc__body { display: block; }
.sgh-svc__title { display: block; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--sg-navy); }
.sgh-svc__text { display: block; margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--sg-text); }
.sgh-svc__tags { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; color: var(--sg-red); }
.sgh-svc__go { padding-top: 14px; color: var(--sg-navy); font-size: 15px; transition: transform .25s ease, color .25s ease; }
.sgh-svc__link:hover .sgh-svc__go { transform: translateX(4px); color: var(--sg-red); }
.sgh-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 36px; font-size: 14.5px; }
.sgh-tools__label { color: var(--sg-muted); }
.sgh-tools a { display: inline-flex; align-items: center; gap: 8px; color: var(--sg-navy) !important; font-weight: 600; }
.sgh-tools a i { color: var(--sg-red); }
.sgh-tools a:hover { color: var(--sg-red) !important; }

/* ---------- 4. Enquiry and booking ---------- */
.sgh-enquire {
  position: relative; background: var(--sg-navy); color: #fff; scroll-margin-top: 90px;
  background-image: radial-gradient(ellipse 45% 60% at 0% 0%, rgba(236, 31, 38, .22) 0%, rgba(236, 31, 38, 0) 70%);
}
.sgh-enquire__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.sgh-enquire .sgh-h2 { color: #fff; }
.sgh-enquire__lead { margin-top: 18px !important; font-size: 16.5px; line-height: 1.75; color: rgba(255, 255, 255, .72); }
.sgh-contact { display: grid; gap: 16px; margin: 34px 0 0 !important; padding: 28px 0 0 !important; border-top: 1px solid rgba(255, 255, 255, .12); }
.sgh-contact li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.sgh-contact i { width: 18px; margin-top: 4px; color: #FF6B70; text-align: center; }
.sgh-contact a { color: #fff !important; }
.sgh-contact a:hover { text-decoration: underline !important; }
.sgh-panel { border-radius: 20px; background: #fff; color: var(--sg-text); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); overflow: hidden; }
.sgh-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--sgh-line); }
.sg-page button.sgh-tab,
.sg-page button.sgh-tab:hover,
.sg-page button.sgh-tab:focus {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
  width: 100% !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 20px 16px !important;
  border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important;
  background: var(--sgh-cream) !important; box-shadow: none !important;
  font: 600 15px/1.2 Poppins, system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--sg-muted) !important; cursor: pointer;
}
.sg-page button.sgh-tab::before, .sg-page button.sgh-tab::after { content: none !important; }
.sg-page button.sgh-tab.is-active { background: #fff !important; color: var(--sg-navy) !important; border-bottom-color: var(--sg-red) !important; }
.sg-page button.sgh-tab:focus-visible { outline: 2px solid var(--sg-red) !important; outline-offset: -2px; }
.sgh-pane { padding: 28px 30px 30px; }
.sgh-pane[hidden] { display: none; }
.sgh-pane .breely-inline { min-height: 460px; }
.sgh-pane .breely-inline iframe { display: block; width: 100% !important; border: 0; }
.sgh-pane__fallback { margin-top: 12px !important; font-size: 13px; color: var(--sg-muted); text-align: center; }
.sgh-pane__fallback a { color: var(--sg-red) !important; font-weight: 600; }

/* ---------- 5. Process ---------- */
.sgh-process { background: var(--sgh-cream); }
.sgh-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0 !important; padding: 0 !important; }
.sgh-steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; border-top: 2px dashed #E3D6D2; }
.sgh-step { position: relative; }
.sgh-step__top { display: flex; align-items: center; gap: 14px; }
.sgh-step__top i {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--sg-navy); color: var(--sg-navy); font-size: 20px;
}
.sgh-step:first-child .sgh-step__top i { background: var(--sg-red); border-color: var(--sg-red); color: #fff; }
.sgh-step__n { position: relative; padding: 2px 10px; border-radius: 999px; background: var(--sgh-cream); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sg-muted); }
.sgh-step__title { margin-top: 22px !important; font-size: 19px; font-weight: 600; line-height: 1.35; }
.sgh-step__text { margin-top: 8px !important; font-size: 15px; line-height: 1.7; color: var(--sg-text); }

/* ---------- 6. Trust ---------- */
.sgh-why__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.sgh-why__lead { margin-top: 18px !important; max-width: 640px; font-size: 16.5px; line-height: 1.75; color: var(--sg-text); }
.sgh-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 40px 0 30px; }
.sgh-pillar { padding-top: 22px; border-top: 2px solid var(--sg-navy); }
.sgh-pillar i { font-size: 22px; color: var(--sg-red); }
.sgh-pillar h3 { margin-top: 16px !important; font-size: 17px; font-weight: 600; line-height: 1.35; }
.sgh-pillar p { margin-top: 8px !important; font-size: 14.5px; line-height: 1.7; color: var(--sg-text); }
.sgh-never { padding: 32px 30px; border-radius: 20px; background: #FFF3F2; border: 1px solid #F8D9D7; }
.sgh-never__title { font-size: 19px; font-weight: 700; }
.sgh-never ul { display: grid; gap: 16px; margin: 22px 0 0 !important; padding: 0 !important; }
.sgh-never li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--sg-navy); }
.sgh-never li i {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--sg-red); color: #fff; font-size: 11px;
}
.sgh-reviews { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--sgh-line); }
.sgh-reviews__head h3 { font-size: 22px; font-weight: 600; margin-bottom: 20px !important; }

/* ---------- 7. Local ---------- */
.sgh-local { background: var(--sgh-cream); }
.sgh-local__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; }
.sgh-offices { display: grid; gap: 20px; }
.sgh-office { padding: 28px 30px; border-radius: 18px; background: #fff; border: 1px solid var(--sgh-line); }
.sgh-office__tag { margin-bottom: 6px !important; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sg-red); }
.sgh-office h3 { font-size: 21px; font-weight: 700; margin-bottom: 14px !important; }
.sgh-office p { display: flex; gap: 12px; margin-top: 8px !important; font-size: 15px; line-height: 1.55; color: var(--sg-text); }
.sgh-office p i { width: 16px; margin-top: 4px; color: var(--sg-red); text-align: center; }
.sgh-office p a { color: var(--sg-navy) !important; font-weight: 500; }
.sgh-office__dir { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--sg-red) !important; }
.sgh-office__dir:hover { text-decoration: underline !important; }
.sgh-map { position: relative; min-height: 380px; overflow: hidden; border-radius: 18px; border: 1px solid var(--sgh-line); background: #E9E5E1; }
.sgh-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sgh-areas { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.sgh-areas__title { font-size: 15px; font-weight: 600; color: var(--sg-navy); }
.sgh-areas__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; padding: 0 !important; }
.sgh-areas__list a, .sgh-areas__list span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid #E3D9D5; background: #fff;
  font-size: 14px; color: var(--sg-navy) !important; transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.sgh-areas__list a { font-weight: 500; }
.sgh-areas__list a:hover { border-color: var(--sg-navy); background: var(--sg-navy); color: #fff !important; }

/* ---------- 8. SEO text ---------- */
.sgh-about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.sgh-about .sgh-h2 { font-size: clamp(26px, 2.6vw, 34px); position: sticky; top: 120px; }
.sgh-about__text { columns: 2; column-gap: 40px; }
.sgh-about__text p { margin: 0 0 18px !important; font-size: 15.5px; line-height: 1.8; color: var(--sg-text); break-inside: avoid; }

/* ---------- 9. Posts ---------- */
.sgh-posts { padding-top: 0 !important; }
.sgh-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sgh-post__img { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 16px; background: var(--sgh-cream); }
.sgh-post__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sgh-post:hover .sgh-post__img img { transform: scale(1.04); }
.sgh-post__ph { display: grid; place-items: center; height: 100%; color: #D9CFCB; font-size: 34px; }
.sgh-post__date { margin-top: 18px !important; font-size: 13px; font-weight: 500; color: var(--sg-muted); }
.sgh-post__title { margin-top: 8px !important; font-size: 18px; font-weight: 600; line-height: 1.4; }
.sgh-post__title a { color: var(--sg-navy) !important; }
.sgh-post__title a:hover { color: var(--sg-red) !important; }

/* ---------- 10. FAQ (accordion styles come from sehli-pages.css) ---------- */
.sgh-faq { background: var(--sgh-cream); scroll-margin-top: 90px; }
.sgh-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.sgh-faq__intro { position: sticky; top: 120px; }
.sgh-faq__intro p { margin-top: 16px !important; font-size: 15.5px; color: var(--sg-text); }
.sgh-faq__intro a { color: var(--sg-red) !important; font-weight: 600; }

/* ---------- 11. Final CTA ---------- */
.sgh-final { background: var(--sg-red); color: #fff; padding: 64px 0; }
.sgh-final__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sgh-final__title { color: #fff !important; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; font-weight: 700; max-width: 680px; }
.sgh-final p { margin-top: 10px !important; color: rgba(255, 255, 255, .85); font-size: 16px; }
.sgh-final__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.sgh-final .sg-btn--red { background: var(--sg-navy); box-shadow: none; }
.sgh-final .sg-btn--red:hover { background: #000; }

/* ---------- CF7 form inside the enquiry tab ---------- */
.sgh-pane .wpcf7 form { gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sgh-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .sgh-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgh-stat { border-left: 0; padding: 22px 0; }
  .sgh-stat--badge { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 991px) {
  .sg-home .sg-section { padding: 72px 0; }
  .sgh-hero__grid, .sgh-head--split, .sgh-enquire__grid, .sgh-why__grid, .sgh-local__grid, .sgh-about__grid, .sgh-faq__grid { grid-template-columns: 1fr; gap: 36px; }
  .sgh-head--split { gap: 16px; }
  .sgh-portrait { max-width: 460px; }
  .sgh-svc { grid-template-columns: 1fr; }
  .sgh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .sgh-steps::before { display: none; }
  .sgh-pillars { grid-template-columns: 1fr; gap: 22px; }
  .sgh-about .sgh-h2, .sgh-faq__intro { position: static; }
  .sgh-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sg-home .sg-section { padding: 56px 0; }
  .sgh-hero { padding: 40px 0 56px; background-size: 40px 40px; }
  .sgh-hero__lead { font-size: 16.5px; }
  .sgh-hero__actions .sg-btn { width: 100%; }
  .sgh-portrait { padding: 0 0 24px 20px; }
  .sgh-licence { bottom: 40px; max-width: 250px; padding: 12px 14px; }
  .sgh-rating { right: 0; top: 14px; }
  .sgh-trust__grid { grid-template-columns: 1fr 1fr; }
  .sgh-stat { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sgh-stat strong { font-size: 28px; }
  .sgh-svc__link { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .sgh-svc__num, .sgh-svc__go { display: none; }
  .sgh-svc__icon { width: 44px; height: 44px; font-size: 17px; }
  .sgh-svc__title { font-size: 18px; }
  .sgh-pane { padding: 20px 16px 22px; }
  .sg-page button.sgh-tab { padding: 16px 8px !important; font-size: 13.5px !important; gap: 6px; }
  .sgh-steps { grid-template-columns: 1fr; }
  .sgh-never { padding: 26px 22px; }
  .sgh-map { min-height: 300px; }
  .sgh-about__text { columns: 1; }
  .sgh-posts__grid { grid-template-columns: 1fr; }
  .sgh-final__actions .sg-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-home *, .sg-home *::before { transition: none !important; }
}
