/* =====================================================================
   Conrad — inner-page sections.
   These widgets deliberately REUSE the homepage's proven compositions
   (.cta2 hero band, .split/.obj-media edge media, .svc-c2 cards,
   .checks, .sec-head).  Only the genuinely new pieces are styled here.
   ===================================================================== */

/* hide empty slots so auto-built pages never show holes */
.g-phero .eyebrow:empty, .g-phero h1:empty, .g-phero p:empty,
.g-text .eyebrow:empty, .g-text h2:empty,
.g-list .eyebrow:empty, .g-list h2:empty,
.g-cards .eyebrow:empty, .g-cards h2:empty, .g-cards .g-lead:empty,
.g-gallery .eyebrow:empty, .g-gallery h2:empty,
.g-faq .eyebrow:empty, .g-faq h2:empty,
.g-cta .eyebrow:empty, .g-cta h2:empty, .g-cta p:empty,
.svc-c2 .num:empty, .svc-c2 h3:empty, .svc-c2 p:empty { display: none !important; }

/* ---- 1. page hero (extends .cta2) ----------------------------------- */
.g-phero { min-height: 460px; padding: clamp(120px, 14vw, 200px) 0 clamp(64px, 8vw, 110px); }
.g-phero h1 { font-family: var(--ff-display); font-weight: 200; color: #fff;
  font-size: clamp(2.05rem, 4.4vw, 3.35rem); line-height: 1.12; letter-spacing: -.005em; text-wrap: balance; }
.g-phero p { margin: 1.4rem auto 0; max-width: 58ch; color: rgba(255,255,255,.82);
  font-size: 1rem; line-height: 1.85; }
/* when a page has no hero photo, fall back to the brand navy gradient */
.g-phero .cta2-bg:not(:has(img[src])) { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); }
.g-phero .cta2-bg img[src=""] { display: none; }

/* ---- 2. rich text (extends .split / .obj-media) --------------------- */
.g-text .obj-media { min-height: 480px; }
.g-text .split-copy p { color: var(--muted); line-height: 1.9; font-size: .94rem; max-width: 100%; }
.g-text .split-copy p + p { margin-top: 1rem; }
.g-text .rule-l { display: block; width: 54px; height: 1px; background: var(--gold); opacity: .9; margin: 20px 0 4px; }
/* flip the columns when "Media Left" is chosen */
.g-text .split.rev .split-copy { order: 2; }
.g-text .split.rev .obj-media { order: 1; }
/* copy-only instance: centre it like the homepage's statement blocks */
.g-text .split:not(:has(.obj-media img[src])) { grid-template-columns: 1fr; max-width:900px; margin-inline: auto; }
.g-text .split:not(:has(.obj-media img[src])) .obj-media { display: none; }
@media (max-width: 1080px) { .g-text .obj-media { min-height: 320px; } }

/* ---- 3. check list (extends .sec-head / .checks.guide-checks) ------- */
.g-list .g-lead { margin: 1rem auto 0; max-width: 720px; text-wrap: pretty; }
.g-list .guide-checks { margin-top: 46px; }
.g-list .checks h4 { line-height: 1.5; }

/* ---- 4. card grid (extends .svc-c2) --------------------------------- */
.g-cards .g-lead { margin: 1rem auto 0; max-width: 720px; text-wrap: pretty; }
.g-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.g-card-grid .svc-c2 { text-decoration: none; }
@media (max-width:1080px) { .g-card-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 640px)  { .g-card-grid { grid-template-columns: 1fr; } }

/* ---- 5. gallery ------------------------------------------------------ */
.g-gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.g-gal-i { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--navy-soft); }
.g-gal-i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.g-gal-i::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(201,160,99,0);
  transition: border-color .45s var(--ease); }
.g-gal-i:hover img { transform: scale(1.07); }
.g-gal-i:hover::after { border-color: rgba(201,160,99,.8); }
@media (max-width:1080px) { .g-gal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .g-gal-grid { grid-template-columns: 1fr; } }

/* ---- 6. faq accordion (main.js contract: .accordion .ac-q / .ac-a) --- */
.g-faq-list { margin: 46px auto 0; max-width: 880px; border-top: 1px solid var(--line); }
.ac-item { border-bottom: 1px solid var(--line); }
.ac-q { display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--ff-display); font-size: 1.05rem; font-weight: 400; color: var(--ink);
  padding: 25px 52px 25px 0; position: relative; letter-spacing: .01em; line-height: 1.45;
  transition: color .3s var(--ease); }
.ac-q::after { content: ""; position: absolute; right: 10px; top: 50%; width: 13px; height: 1px;
  background: var(--gold); transform: translateY(-50%); }
.ac-q::before { content: ""; position: absolute; right: 16px; top: 50%; width: 1px; height: 13px;
  background: var(--gold); transform: translateY(-50%); transition: transform .35s var(--ease), opacity .35s var(--ease); }
.ac-item.open .ac-q::before { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.ac-item.open .ac-q, .ac-q:hover { color: var(--gold); }
.ac-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.ac-a p { font-size: .92rem; color: var(--muted); line-height: 1.85; padding: 0 40px 25px 0; max-width: 78ch; }

/* ---- 7. cta band (extends .cta2) ------------------------------------ */
.g-cta .cta2-bg:not(:has(img[src])) { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); }
.g-cta .cta2-bg img[src=""] { display: none; }
.g-cta .hero-btns:empty { display: none; }

/* ---- WordPress-driven nav menu (header + mobile drawer) -------------- */
.hdr .nav .sub-menu { position: absolute; top: calc(100% + 14px); left: -20px; min-width: 268px;
  background: #fff; box-shadow: 0 18px 44px rgba(8,23,32,.16); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: .3s var(--ease); padding: 8px 0; z-index: 40; list-style: none; }
.hdr .nav > li { position: relative; }
.hdr .nav > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.hdr .nav .sub-menu a { display: block; padding: 11px 24px; font-size: .82rem; color: var(--ink);
  letter-spacing: .01em; text-transform: none; white-space: normal; line-height: 1.45; }
.hdr .nav .sub-menu a:hover { background: var(--cream); color: var(--gold); }
/* dropdown chevron — thin stroke, sits beside the label.
   Uses ::before (::after already carries the gold hover underline) with flex order
   so the mark renders after the text without leaving the link's line box. */
.hdr .nav > li.menu-item-has-children > a { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.hdr .nav > li.menu-item-has-children > a::before {
  content: ""; order: 2; flex: 0 0 auto; width: 6px; height: 6px;
  border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .55;
  transition: transform .34s var(--ease), opacity .34s var(--ease);
}
.hdr .nav > li.menu-item-has-children:hover > a::before,
.hdr .nav > li.menu-item-has-children:focus-within > a::before { transform: translateY(1px) rotate(-135deg); opacity: 1; }
.drawer .mnav { list-style: none; padding: 0; margin: 0; }
.drawer .mnav a { display: block; font-family: var(--ff-display); font-size: .92rem; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer .mnav .sub-menu { list-style: none; padding: 0 0 6px 14px; margin: 0; }
.drawer .mnav .sub-menu a { font-size: .76rem; letter-spacing: .04em; text-transform: none;
  color: rgba(255,255,255,.72); padding: 9px 0; border-bottom: 0; }

/* ---- 8. location cards (compact, icon-led — no photography) ----------- */
.g-place-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.g-place { display: flex; align-items: center; gap: 15px; padding: 20px 22px; background: #fff;
  border: 1px solid var(--line); text-decoration: none;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.g-place:hover { transform: translateY(-4px); border-color: rgba(176,137,79,.55);
  box-shadow: 0 18px 40px rgba(8,23,32,.10); }
.g-pin { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center;
  transition: background .35s var(--ease); }
.g-place:hover .g-pin { background: rgba(176,137,79,.10); }
.g-pin svg { width: 19px; height: 19px; fill: none; stroke: var(--gold); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.g-place-b { display: block; min-width: 0; }
.g-place h3 { font-family: var(--ff-display); font-weight: 400; font-size: 1rem; color: var(--ink);
  letter-spacing: .01em; line-height: 1.25; }
.g-place-sub { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-top: 5px; }
@media (max-width: 1080px) { .g-place-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .g-place-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width:480px)  { .g-place-grid { grid-template-columns: 1fr; } }

/* ---- 9. team grid ----------------------------------------------------- */
.g-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 50px; }
.g-member { margin: 0; background: #fff; border: 1px solid var(--line); }
.g-member-ph { display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--cream); }
.g-member-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block;
  transition: transform .7s var(--ease); }
.g-member:hover .g-member-ph img { transform: scale(1.04); }
.g-member figcaption { padding: 22px 24px 26px; }
.g-member h3 { font-family: var(--ff-display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.g-role { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-top: 6px; }
.g-member p { font-size: .85rem; color: var(--muted); line-height: 1.75; margin-top: 12px; }
@media (max-width:1080px) { .g-team-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width:640px) { .g-team-grid { grid-template-columns: 1fr; } }

/* ---- 10. certification badge strip ------------------------------------ */
.g-badge-strip { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 42px; }
.g-badge { display: flex; align-items: center; justify-content: center; background: #fff;
  border: 1px solid var(--line); border-radius: 5px; padding: 14px 20px; height: 88px; min-width: 150px;
  transition: transform .3s var(--ease), border-color .3s var(--ease); }
.g-badge:hover { transform: translateY(-3px); border-color: rgba(176,137,79,.5); }
.g-badge img { max-height: 100%; width: auto; max-width: 170px; object-fit: contain; display: block; }

/* ---- 11. content boxes (numbered, no imagery) ------------------------- */
/* SAFETY NET: a service card whose photo is missing must never leave a
   blank image well — collapse it instead. */
.svc-c2 .ph:empty { display: none !important; }
.g-card-grid .svc-c2 .ph:empty { display: none !important; }

.g-boxes .g-lead { margin: 1rem auto 0; max-width: 720px; text-wrap: pretty; }
.g-box-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 46px; margin-top: 52px; }
.g-boxes .step { padding-top: 22px; border-top: 1px solid var(--line); }
.g-boxes .step .no { font-size: 2.1rem; margin-bottom: 12px; }
.g-boxes .step h4 { font-size: 1.05rem; margin-bottom: 9px; }
.g-boxes .step p { font-size: .88rem; line-height: 1.75; max-width: 42ch; }
/* the homepage draws a connector between steps; not wanted on a 3-up text grid */
.g-boxes .step:not(:last-child)::after { display: none; }
/* dark ground variant */
.g-boxes.sec-dark .step { border-top-color: rgba(255,255,255,.16); }
.g-boxes.sec-dark .step h4 { color: #fff; }
.g-boxes.sec-dark .step p { color: rgba(255,255,255,.62); }
.g-boxes.sec-dark .step .no { color: var(--gold-lt); }
@media (max-width:1080px) { .g-box-grid { grid-template-columns: 1fr 1fr; gap: 26px 32px; } }
@media (max-width:640px) { .g-box-grid { grid-template-columns: 1fr; gap: 22px; } }
