/* ==========================================================================
   BYB Global — Services page
   Editorial-luxury DNA: Cormorant + Outfit, gold/black, sharp corners.
   Row-by-row card reveal (each row of 3 rises together, then the next).
   Scoped to .svc-page.
   ========================================================================== */

.svc-page {
	/* Brand colour + type tokens are global — see assets/css/tokens.css.
	   Only page-local aliases live here. */
	--line:var(--hairline);

	/* ONE measure for the stacked reading blocks (stage badge + each service).
	   They were 640px and 820px, both left-aligned with no auto margin, so in
	   the full-width container they hugged the left edge and left a large dead
	   gutter on the right while the hero, legal note and enquiry block were
	   centred — the page had no shared alignment edge. Centred on one measure
	   now; the copy inside stays left-aligned, which is correct for a
	   checklist. */
	--svc-measure:860px;

	font-family:var(--sans);
	color:var(--text);
	background:#fff;
	font-size:15px;
	line-height:1.6;
	-webkit-font-smoothing:antialiased;
	overflow-x:hidden;
}
.svc-page *,
.svc-page *::before,
.svc-page *::after { box-sizing:border-box; }
.svc-page .serif { font-family:var(--serif); }

.svc-container { max-width:var(--container); margin:0 auto; padding:0 var(--container-pad); }

/* ---------- Reveal (from the bottom) ---------- */
.svc-reveal { opacity:0; transform:translateY(40px); transition:opacity .6s ease, transform .6s ease; }
.svc-reveal.is-visible { opacity:1; transform:none; }
/* Phones: a shorter, gentler rise, so content that scrolls in fast is
   already readable (the reveal also fires earlier there, see the template). */
@media (max-width: 720px) {
	.svc-reveal { transform:translateY(12px); transition-duration:.4s; }
}
@media (prefers-reduced-motion: reduce) {
	.svc-reveal { opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.svc-hero {
	position:relative; overflow:hidden;
	background-color:var(--ink);
	background-size:cover; background-position:center; background-repeat:no-repeat;
	padding:110px 0 100px; min-height:58vh; text-align:center;
	display:flex; align-items:center; justify-content:center;
}
.svc-hero__overlay { position:absolute; inset:0; z-index:1; pointer-events:none;
	background:radial-gradient(ellipse 90% 120% at 50% 50%, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.75) 100%); }
.svc-hero__inner { position:relative; z-index:2; max-width:760px; margin:0 auto; }
.svc-hero__tag { display:inline-flex; align-items:center; gap:14px; font-size:11px; letter-spacing:0.24em; text-transform:uppercase; color:var(--gold-light); margin-bottom:24px; }
.svc-hero__tag::before, .svc-hero__tag::after { content:""; width:34px; height:1px; background:linear-gradient(90deg, transparent, var(--gold)); }
.svc-hero__tag::after { background:linear-gradient(90deg, var(--gold), transparent); }
.svc-hero__title { font-family:var(--serif); font-weight:300; font-size:clamp(40px,5.8vw,68px); line-height:1.06; color:#fff; margin:0 0 22px; text-wrap:balance; }
.svc-hero__sub { font-size:15px; color:rgba(255,255,255,0.85); max-width:560px; line-height:1.85; margin:0 auto; text-shadow:0 2px 14px rgba(0,0,0,0.8); }

/* ==========================================================================
   CATEGORY SECTION
   ========================================================================== */
.svc-cat { padding:var(--sec-py) 0; background:#fff; }
.svc-cat--paper { background:var(--paper); }
.svc-cat__head { max-width:var(--svc-measure); margin:0 auto 44px; }
/* The Wealth section's head sits above a full-container 3-card grid, so it
   must share the grid's edges rather than the narrower reading measure the
   stacked service blocks use — otherwise the heading is inset from its own
   cards on both sides. */
.svc-cat--wealth .svc-cat__head { max-width:none; margin-left:0; margin-right:0; }
.svc-cat__no { display:inline-block; font-family:var(--serif); font-size:22px; font-weight:600; color:var(--gold); vertical-align:middle; }
.svc-cat__rule { display:inline-block; width:40px; height:2px; background:var(--gold); vertical-align:middle; margin:0 0 6px 12px; }
.svc-cat__title { font-family:var(--serif); font-weight:300; font-size:clamp(30px,4.2vw,44px); line-height:1.16; color:var(--black); margin:12px 0 12px; }
.svc-cat__intro { font-size:14px; color:var(--muted); line-height:1.85; margin:0; }

/* ---------- Service card grid ---------- */
.svc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.svc-card {
	display:flex; flex-direction:column;
	background:#fff;
	border:1px solid var(--line-2);
	border-top:2px solid var(--gold);
	padding:30px 28px;
	transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover {
	transform:translateY(-6px);
	box-shadow:0 26px 48px -34px rgba(0,0,0,0.42);
	border-color:var(--line-2);
	border-top-color:var(--gold-dark);
}
.svc-card__title { font-family:var(--sans); font-size:16px; font-weight:600; letter-spacing:0.01em; color:var(--ink); margin:0 0 10px; line-height:1.35; }
.svc-card__desc { font-size:13.5px; line-height:1.7; color:var(--muted); margin:0 0 20px; flex:1; }
.svc-card__link { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold-dark); text-decoration:none; }
.svc-card__arrow { display:inline-flex; transition:transform .25s ease; }
.svc-card__arrow svg { width:15px; height:15px; }
.svc-card:hover .svc-card__link { color:var(--gold); }
.svc-card:hover .svc-card__arrow { transform:translateX(5px); }

/* ==========================================================================
   NOT LISTED / ENQUIRY
   ========================================================================== */
.svc-enquire { padding:var(--sec-py) 0; background:var(--paper); }
.svc-enquire__inner { max-width:640px; margin:0 auto; text-align:center; }
.svc-enquire__tag { display:block; font-size:11px; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold-dark); margin-bottom:14px; }
.svc-enquire__title { font-family:var(--serif); font-weight:300; font-size:clamp(30px,4.2vw,46px); line-height:1.12; color:var(--black); margin:0 0 16px; }
.svc-accent { color:var(--gold-dark); }
.svc-enquire__sub { font-size:14px; color:var(--muted); line-height:1.85; max-width:520px; margin:0 auto 36px; }

/* form (the CF7 form, or the built-in fallback form; same markup and class) */
.svc-form { display:flex; flex-direction:column; text-align:left; }
/* Text-like fields only. The bare `input` selector also matched the consent
   CHECKBOX, stretching it to width:100% with 15px padding so it ate the
   whole row and squeezed the label text beside it down to roughly one word
   per line. Checkboxes and radios keep their native box. */
.svc-form input:not([type="checkbox"]):not([type="radio"]), .svc-form select, .svc-form textarea {
	width:100%; font-family:var(--sans); font-size:14px; color:var(--text);
	background:#fff; border:1px solid var(--line-2); border-radius:var(--input-radius);
	padding:15px 18px; outline:none; transition:border-color .2s ease, box-shadow .2s ease;
}
.svc-form textarea { resize:vertical; min-height:130px; }
.svc-form input:not([type="checkbox"]):not([type="radio"]):focus, .svc-form select:focus, .svc-form textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(183,162,106,0.18); }
.svc-form input:not([type="checkbox"]):not([type="radio"])::placeholder, .svc-form textarea::placeholder { color:#9a9a9a; }
.svc-form .svc-btn { margin-top:6px; align-self:center; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
	.svc-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 620px) {
	.svc-container { padding:0 var(--container-pad-mobile); }
	.svc-cat { padding:var(--sec-py-mobile) 0; }
	.svc-grid { grid-template-columns:1fr; }
	/* Full-width button in the enquiry form only. Scoped so it does not also
	   stretch the Advisory button, which sits in a row beside a text link. */
	.svc-form .svc-btn { align-self:stretch; text-align:center; }
	.svc-service__actions { gap:12px 18px; }
	.svc-lifecycle-wrap { padding:var(--sec-py-mobile) 0; }
}

/* ==========================================================================
   BYB WEALTH — distinct, premium, last section (dark over gold-map image)
   ========================================================================== */
.svc-cat--wealth { position:relative; overflow:hidden; padding:var(--sec-py) 0;
	background:radial-gradient(ellipse 60% 80% at 82% 16%, rgba(183,162,106,0.16), transparent 55%), linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 58%, var(--ink) 100%); }
.svc-cat--wealth .svc-container { position:relative; z-index:1; }
/* badge on its own line, above the number (badge -> number+rule -> title -> desc) */
.svc-cat--wealth .svc-cat__badge { display:table; font-size:10px; font-weight:600; letter-spacing:0.16em; text-transform:uppercase; color:var(--ink); background:var(--gold); padding:6px 14px; margin-bottom:20px; }
.svc-cat--wealth .svc-cat__no { color:var(--gold-light); }
.svc-cat--wealth .svc-cat__rule { background:var(--gold-light); }
.svc-cat--wealth .svc-cat__title { color:#fff; }
.svc-cat--wealth .svc-cat__intro { color:rgba(255,255,255,0.75) !important; }
.svc-cat--wealth .svc-card { background:rgba(11,11,13,0.55); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); border:1px solid rgba(214,195,130,0.28); border-top:2px solid var(--gold); }
.svc-cat--wealth .svc-card:hover { background:rgba(11,11,13,0.72); border-top-color:var(--gold-light); box-shadow:0 26px 48px -34px rgba(0,0,0,0.7); }
.svc-cat--wealth .svc-card__title { color:#fff; }
.svc-cat--wealth .svc-card__desc { color:rgba(255,255,255,0.72) !important; }
.svc-cat--wealth .svc-card__link { color:var(--gold-light); }
.svc-cat--wealth .svc-card:hover .svc-card__link { color:#fff; }

/* ---------- Hero image: mobile variant (F06/B06) -------------------------- */
@media (max-width: 760px) {
	.svc-hero { background-image:url('../img/hero/world-map-800.webp') !important; }
}

/* ==========================================================================
   PHASE 06 — lifecycle restructure additions
   ========================================================================== */

/* Lifecycle diagram wrapper (component itself lives in components.css). */
/* Full top padding, like every other section. It previously had `padding:0`
   on top, so the diagram sat flush against the hero and read as part of it.
   Matches the homepage's own lifecycle section, which uses --sec-py. */
.svc-lifecycle-wrap { padding:var(--sec-py) 0; background:#fff; }
/* Centred head, matching the homepage treatment of the same component. The
   stage badge is display:table by default (left-aligned); centre it here. */
.svc-lifecycle__head { max-width:720px; margin:0 auto 44px; text-align:center; }
.svc-lifecycle__head .svc-cat__badge { margin-left:auto; margin-right:auto; }

/* Stage badge — reused outside the wealth section too, on light backgrounds. */
.svc-cat__badge {
	display:table; font-family:var(--sans); font-size:10px; font-weight:600;
	letter-spacing:0.16em; text-transform:uppercase; color:var(--gold-dark);
	border:1px solid var(--hairline); padding:6px 14px; margin-bottom:8px;
}
.svc-cat--wealth .svc-cat__badge { color:var(--ink); background:var(--gold); border-color:var(--gold); }

/* ---------- Individual service block (paragraph + list + disclaimer) ---------- */
.svc-service { max-width:var(--svc-measure); margin:0 auto; padding:36px 0; border-top:1px solid var(--hairline); }
.svc-cat > .svc-container > .svc-service:first-of-type { border-top:none; padding-top:0; }
.svc-service__head { display:flex; align-items:baseline; gap:16px; margin-bottom:10px; }
.svc-service__no { font-family:var(--serif); font-size:20px; font-weight:600; color:var(--gold); flex:none; }
.svc-service__title { font-family:var(--serif); font-weight:300; font-size:clamp(22px,2.8vw,28px); line-height:1.2; color:var(--black); margin:0; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.svc-service__badge { font-family:var(--sans); font-size:10px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--ink); background:var(--gold-light); padding:3px 10px; }
.svc-service__intro { font-size:14.5px; color:var(--muted); line-height:1.8; margin:0 0 18px; }
.svc-service__list { list-style:none; margin:0 0 14px; padding:0; display:grid; gap:10px; }
.svc-service__list li { display:flex; align-items:flex-start; gap:10px; font-size:14px; color:var(--text); line-height:1.6; }
.svc-service__check { flex:none; width:18px; height:18px; margin-top:2px; color:var(--gold); }
.svc-service__check svg { width:100%; height:100%; }
.svc-service__note { font-size:12.5px; color:var(--muted); font-style:italic; line-height:1.7; margin:0 0 16px; padding-top:10px; border-top:1px dashed var(--hairline); }
.svc-service__link { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold-dark); text-decoration:none; }
.svc-service__link:hover { color:var(--gold); }
/* Advisory (07) is the only service carrying a button alongside the "Learn
   More" link. As bare inline-flex siblings they sat on the text baseline with
   only HTML whitespace between them, so the button's 13px/32px padding read as
   an odd gap against the small uppercase link. A flex row with an explicit gap
   aligns them on their centres and controls the spacing. */
.svc-service__actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; margin-top:4px; }
.svc-service__link:hover .svc-card__arrow { transform:translateX(5px); }

/* ---------- Nominee/tax/treaty disclaimer block (CB8) ---------- */
.svc-legal { padding:56px 0; background:var(--paper); }
.svc-legal__title { font-family:var(--serif); font-weight:300; font-size:clamp(22px,2.8vw,28px); color:var(--black); margin:0 0 14px; text-align:center; }
.svc-legal__text { max-width:760px; margin:0 auto; font-size:13.5px; color:var(--muted); line-height:1.85; text-align:center; }

@media (max-width: 720px) {
	.svc-service__head { flex-wrap:wrap; }
}

/* Hero at the Service Detail interior scale on mobile (L32) */
@media (max-width: 720px) {
	.svc-hero { padding:84px 0 76px; min-height:0; }
}
