/* ==========================================================================
   Sehli Global – Canadian location pages (template-location.php)
   Builds on sehli-pages.css (tokens, buttons, FAQ), sehli-home.css (kicker,
   offices, map, final CTA) and sehli-contact.css (form 3314).
   ========================================================================== */

.sg-loc .sg-section { padding: 80px 0; }

/* ---------- Hero ---------- */
.sgl-hero {
  position: relative; overflow: hidden; padding: 48px 0 64px;
  background:
    radial-gradient(ellipse 50% 70% at 100% 0%, rgba(236, 31, 38, .10) 0%, rgba(236, 31, 38, 0) 60%),
    var(--sgh-cream);
}
.sgl-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: center; }
.sgl-crumbs { margin-bottom: 22px; color: var(--sg-muted); }
.sgl-crumbs span[aria-current] { color: var(--sg-muted); }
.sgl-hero .sgh-loc { margin-bottom: 18px !important; }
.sgl-hero__title { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; max-width: 760px; }
.sgl-hero__title span { color: var(--sg-red); }
.sgl-hero__lead { margin-top: 20px !important; max-width: 640px; font-size: 17.5px; line-height: 1.75; color: var(--sg-text); }

.sgl-glance {
  position: relative; overflow: hidden; padding: 28px 28px 22px; border-radius: 20px; color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(236, 31, 38, .45) 0%, rgba(236, 31, 38, 0) 65%),
    linear-gradient(150deg, #1B182F 0%, #2A2547 100%);
  box-shadow: 0 30px 60px -36px rgba(27, 24, 47, .7);
}
.sgl-glance__title { margin-bottom: 8px !important; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #FF8A8E; }
.sgl-glance__list { margin: 0; }
.sgl-glance__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sgl-glance__list > div:last-child { border-bottom: 0; }
.sgl-glance__list dt { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 400; white-space: nowrap; }
.sgl-glance__list dt i { width: 16px; color: #FF6B70; text-align: center; }
.sgl-glance__list dd { margin: 0; color: #fff; font-size: 14px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.sgl-glance__list dd a { color: #fff !important; }
.sgl-glance__reviewed { margin-top: 10px !important; font-size: 12.5px; color: rgba(255, 255, 255, .6); }

/* ---------- Main + sidebar ---------- */
.sgl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding: 72px 0 88px; }
.sgl-block + .sgl-block { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--sgh-line); }
.sgl-h2 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin-bottom: 18px !important; }
.sgl-block > p { font-size: 16px; line-height: 1.8; color: var(--sg-text); }
.sgl-block > p + p { margin-top: 14px !important; }
.sgl-block > .sg-btn { margin-top: 28px; }

.sgl-talk {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  margin-top: 32px; padding: 22px 26px; border-radius: 16px; background: var(--sg-red-50); border: 1px solid #F8D5D5;
}
.sgl-talk strong { display: block; color: var(--sg-navy); font-size: 18px; font-weight: 700; }
.sgl-talk span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--sg-text); }

.sgl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.sgl-card { position: relative; padding: 26px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--sgh-line); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.sgl-card:hover { border-color: #F3CFCF; box-shadow: 0 22px 40px -30px rgba(27, 24, 47, .45); transform: translateY(-2px); }
.sgl-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sgh-cream); color: var(--sg-red); font-size: 19px; }
.sgl-card__title { margin: 16px 0 8px !important; font-size: 18px; line-height: 1.35; font-weight: 600; }
.sgl-card__title a { color: var(--sg-navy) !important; }
.sgl-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.sgl-card__title a:hover { color: var(--sg-red) !important; }
.sgl-card p { font-size: 15px; line-height: 1.7; color: var(--sg-text); }

.sgl-visas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 24px 0 0 !important; padding: 0 !important; }
.sgl-visas li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; line-height: 1.5; color: var(--sg-navy); }
.sgl-visas i { margin-top: 3px; color: var(--sg-red); }
.sgl-visas a { color: var(--sg-navy) !important; border-bottom: 1px solid transparent; }
.sgl-visas a:hover { color: var(--sg-red) !important; border-bottom-color: currentColor; }
.sgl-note { margin-top: 22px !important; font-size: 14px !important; color: var(--sg-muted) !important; }

.sgl-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; margin-top: 28px; }
.sgl-service { display: flex; gap: 16px; }
.sgl-service > i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sg-navy); color: #fff; font-size: 16px; }
.sgl-service h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px !important; }
.sgl-service p { font-size: 15px; line-height: 1.7; color: var(--sg-text); }

.sgl-facts { display: grid; gap: 12px; margin: 24px 0 0 !important; padding: 0 !important; }
.sgl-facts li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; color: var(--sg-navy); }
.sgl-facts i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sg-red-50); color: var(--sg-red); font-size: 14px; }

/* Sidebar */
/* The column stretches to the content's height so the form (last) can stay in view while scrolling. */
.sgl-side { align-self: stretch; }
.sgl-side > * + * { margin-top: 20px; }
.sgl-form { position: sticky; top: 110px; scroll-margin-top: 110px; padding: 28px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--sgh-line); box-shadow: 0 30px 60px -40px rgba(27, 24, 47, .45); }
.sgl-form__kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-red); }
.sgl-form__title { margin-top: 6px !important; font-size: 24px; line-height: 1.25; font-weight: 700; }
.sgl-form__lead { margin: 8px 0 20px !important; font-size: 14.5px; line-height: 1.65; }
.sgl-form__alt { margin-top: 16px !important; font-size: 14px; color: var(--sg-muted); }
.sgl-form__alt a { color: var(--sg-red) !important; font-weight: 600; }
/* Form 3314 is two columns on the Contact page; one column fits the sidebar. */
.sgl-form .wpcf7[data-wpcf7-id="3314"] form { grid-template-columns: 1fr; gap: 14px; }
.sgl-form .wpcf7[data-wpcf7-id="3314"] form > p { grid-column: 1 / -1 !important; }
.sgl-form .wpcf7[data-wpcf7-id="3314"] .wpcf7-submit { width: 100%; }

.sgl-reach, .sgl-links { padding: 24px; border-radius: 20px; background: var(--sgh-cream); border: 1px solid var(--sgh-line); }
.sgl-side__title { font-size: 17px; font-weight: 700; margin-bottom: 14px !important; }
.sgl-reach p { display: flex; gap: 12px; margin-top: 10px !important; font-size: 14.5px; line-height: 1.55; }
.sgl-reach p i { width: 16px; margin-top: 4px; color: var(--sg-red); text-align: center; flex: none; }
.sgl-reach a { color: var(--sg-navy) !important; font-weight: 500; overflow-wrap: anywhere; }
.sgl-links ul { margin: 0 !important; padding: 0 !important; }
.sgl-links li + li { border-top: 1px solid var(--sgh-line); }
.sgl-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 15px; font-weight: 500; color: var(--sg-navy) !important; }
.sgl-links a i { font-size: 11px; color: var(--sg-red); }
.sgl-links a:hover { color: var(--sg-red) !important; }

/* ---------- Contact: map left, details right ---------- */
.sgl-contact { background: #fff; }
.sgl-contact__head { margin-bottom: 36px; }
.sgl-contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: stretch; }
.sgl-map { min-height: 420px; }
.sgl-contact .sgh-office { background: var(--sgh-cream); }
.sgl-contact__note { font-size: 14.5px; line-height: 1.65; color: var(--sg-muted); }

/* ---------- Visas people are talking about ---------- */
.sgl-topics { background: var(--sgh-cream); }
.sgl-topics .sgl-h2 { margin-bottom: 26px !important; }
.sgl-topics__row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px 24px; padding: 18px 0; border-top: 1px solid var(--sgh-line); }
.sgl-topics__row h3 { font-size: 16px; font-weight: 600; }
.sgl-topics__row ul { display: flex; flex-wrap: wrap; margin: 0 !important; padding: 0 !important; font-size: 15px; line-height: 1.9; color: var(--sg-text); }
.sgl-topics__row li:not(:last-child)::after { content: "|"; margin: 0 10px; color: #CFC6C3; }
.sgl-topics__row a { color: var(--sg-navy) !important; }
.sgl-topics__row a:hover { color: var(--sg-red) !important; text-decoration: underline !important; }
.sgl-topics__row strong { color: var(--sg-red); font-weight: 600; }

.sg-loc .sgh-final .sg-btn--dark { box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sgl-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
@media (max-width: 991px) {
  .sg-loc .sg-section { padding: 64px 0; }
  .sgl-hero__grid, .sgl-layout, .sgl-contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .sgl-form { position: static; }
  .sgl-map { min-height: 320px; }
}
@media (max-width: 640px) {
  .sg-loc .sg-section { padding: 52px 0; }
  .sgl-hero { padding: 32px 0 48px; }
  .sgl-layout { padding: 48px 0 64px; }
  .sgl-cards, .sgl-visas, .sgl-services { grid-template-columns: 1fr; }
  .sgl-block + .sgl-block { margin-top: 44px; padding-top: 40px; }
  .sgl-talk .sg-btn { width: 100%; }
  .sgl-topics__row { grid-template-columns: 1fr; }
  .sgl-glance__list > div { flex-direction: column; gap: 4px; }
  .sgl-glance__list dd { text-align: left; }
}
/* Short screens: a sticky form taller than the window would be cut off. */
@media (max-height: 820px) {
  .sgl-form { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .sgl-card { transition: none; }
  .sgl-card:hover { transform: none; }
}
