/*
Theme Name:  SAEL Partners
Theme URI:   https://saelpartners.com
Description: Custom theme for SAEL Partners. Navy design, letter-reference and property forms connected to SAEL CRM.
Version:     1.2.7
Author:      SAEL Partners
Requires at least: 6.4
Requires PHP: 8.1
License:     Proprietary
Text Domain: sael
*/

:root {
	--navy: #1C3557;
	--navy-dark: #14253D;
	--ink: #17202B;
	--muted: #4B5563;
	--accent: #9A4A26;
	--ground: #FFFFFF;
	--surface: #F4F6F9;
	--line: #DCE2EA;
	--ok: #1F6B3A;
	--err: #A3261B;
	--focus: #2F6FB0;
	--head: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
	--body: 'Public Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
	--wrap: 1200px;
	--radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--body);
	font-size: 19px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(38px, 5vw, 56px); margin: 0 0 20px; }
h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 0 0 20px; }
h3 { font-size: 24px; margin: 0 0 10px; }
p { margin: 0 0 18px; }

.screen-reader-text, .sael-hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: #fff; padding: 12px 16px; border: 2px solid var(--navy);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
	font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
	color: var(--accent); margin: 0 0 12px;
}
.lede { font-size: 21px; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 12px 24px; border-radius: 6px; border: 2px solid transparent;
	font-family: var(--body); font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer;
	line-height: 1.2;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-light { background: #fff; color: var(--navy-dark); }
.btn-light:hover { color: var(--navy-dark); background: #EEF2F7; }
.btn-ghost-light { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--head); font-size: 30px; font-weight: 700; letter-spacing: 3px; color: var(--navy); }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: 5px; color: var(--muted); margin-top: 5px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 600; padding: 8px 0; }
.main-nav a:hover, .main-nav .current a { color: var(--navy); border-bottom: 2px solid var(--accent); }
.header-phone { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.header-cta { min-height: 46px; font-size: 16px; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 6px; min-width: 48px; min-height: 48px; cursor: pointer; color: var(--ink); }

@media (max-width: 1000px) {
	.header-phone span.label { display: none; }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.header-cta, .header-phone { display: none; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
	.main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { padding: 64px 0 72px; background: linear-gradient(#fff, var(--surface)); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.hero-copy { flex: 1 1 500px; min-width: 0; padding-top: 12px; }
.hero-form { flex: 1 1 420px; min-width: 0; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: 0 0 24px; margin-top: 3px; color: var(--navy); }

/* Cards and forms */
.card {
	background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px;
	box-shadow: 0 14px 36px rgba(20, 37, 61, .08);
}
.form-card h2 { font-size: 28px; margin-bottom: 8px; }
.field { margin: 0 0 18px; }
.field label, .field .label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.field .hint { font-size: 15px; color: var(--muted); margin: 4px 0 0; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
	width: 100%; font: inherit; font-size: 18px; color: var(--ink);
	padding: 12px 14px; border: 2px solid var(--line); border-radius: 6px; background: #fff;
	min-height: 52px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 180px; }
.ref-input { font-size: 26px !important; letter-spacing: 6px; text-align: center; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); margin: 6px 0 20px; }
.consent input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; margin: 22px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-alt { text-align: center; font-size: 17px; margin: 0; }
.form-msg { border-radius: 6px; padding: 14px 16px; margin: 0 0 18px; font-size: 17px; }
.form-msg.error { background: #FBEDEB; color: var(--err); border: 1px solid #F0C9C4; }
.form-msg.info { background: var(--surface); border: 1px solid var(--line); }
.found-box { background: #EEF4FB; border: 1px solid #C9D8EA; border-radius: 8px; padding: 16px 18px; margin: 0 0 20px; }
.found-box strong { display: block; font-size: 20px; color: var(--navy); }
.steps-bar { display: flex; gap: 8px; margin: 0 0 20px; }
.steps-bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps-bar span.on { background: var(--navy); }
.step-label { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--navy); font: inherit; font-size: 17px; text-decoration: underline; cursor: pointer; min-height: 44px; }
.done { text-align: center; }
.done svg { color: var(--ok); }
[hidden] { display: none !important; }

/* Home page form tabs */
.form-tabs { display: flex; gap: 6px; margin: 0 0 -1px; position: relative; z-index: 1; }
.form-tabs button {
	flex: 1; min-height: 52px; padding: 10px 12px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
	border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0;
	background: var(--surface); color: var(--muted);
}
.form-tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: inset 0 3px 0 var(--accent); }
.hero-forms .card { border-top-left-radius: 0; border-top-right-radius: 0; }

/* Promise band */
/* 1.2.7: "Got an offer letter from us?" strip above the hero. */
.offer-strip { background: #EEF4FB; border-bottom: 1px solid #C9D8EA; }
.offer-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; padding-top: 14px; padding-bottom: 14px; font-size: 18px; text-align: center; }
.offer-strip strong { color: var(--navy); }
.offer-strip .btn { padding: 10px 20px; font-size: 17px; }
.band { background: var(--navy-dark); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; padding-top: 26px; padding-bottom: 26px; font-size: 17px; font-weight: 600; }
.band span { display: inline-flex; gap: 10px; align-items: center; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: flex; flex-wrap: wrap; gap: 24px; }
.grid > * { flex: 1 1 280px; min-width: 0; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
.pillar p { color: var(--muted); margin: 0; }
.steps { display: flex; flex-wrap: wrap; gap: 32px; counter-reset: step; }
.steps > div { flex: 1 1 230px; }
.step-num {
	width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff;
	display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 24px; font-weight: 700;
	margin-bottom: 16px;
}
.steps h3 { font-family: var(--body); font-size: 21px; }
.steps p { color: var(--muted); margin: 0; }

.quotes { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.quote { flex: 1 1 420px; min-width: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; }
.quote blockquote { margin: 14px 0 20px; font-family: var(--head); font-size: 19px; line-height: 1.6; flex: 1; }
.quote figcaption { font-weight: 700; }
.quote figcaption span { font-weight: 400; color: var(--muted); }

.note-from { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.note-photo { flex: 0 0 200px; height: 200px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.note-photo img { width: 100%; height: 100%; object-fit: cover; }
.note-photo .initial { font-family: var(--head); font-size: 72px; color: var(--navy); }
.note-card { flex: 0 1 300px; width: 300px; max-width: 100%; min-width: 0; }
.note-card img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20, 37, 61, .18); }
.note-text { flex: 1 1 420px; min-width: 0; }
.note-text .big { font-family: var(--head); font-size: 25px; line-height: 1.45; }

.cta-band { background: var(--navy-dark); color: #fff; padding: 80px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .9; font-size: 20px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Inner pages */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { margin: 0; color: var(--muted); font-size: 20px; max-width: 40em; }
.content { padding: 56px 0 80px; }
.content .wrap { max-width: 860px; }
.content h2 { font-size: 32px; margin-top: 44px; }
.content .wrap > :first-child, .contact-info > :first-child { margin-top: 0; }
.content h3 { margin-top: 28px; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 18px; }
.content li { margin-bottom: 8px; }
.content details { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; background: #fff; }
.content summary { cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.content summary::-webkit-details-marker { display: none; }
.content summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--navy); }
.content details[open] summary::after { content: "–"; }
.content details > *:not(summary) { padding: 0 20px; }
.content details > p:last-child { padding-bottom: 6px; }
.two-col { display: flex; flex-wrap: wrap; gap: 40px; }
.two-col > * { flex: 1 1 360px; min-width: 0; }
.contact-list { list-style: none; padding: 0 !important; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-size: 21px; font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 16px; padding-bottom: 72px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 52px; padding-bottom: 28px; }
.site-footer .cols > div { flex: 1 1 200px; }
.site-footer .cols > div:first-child { flex-basis: 280px; }
.site-footer h2 { font-family: var(--body); font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: var(--ink); }
.footer-legal { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 24px; color: var(--muted); font-size: 15px; }
.footer-legal .copy { margin-right: auto; }
.footer-legal a { color: var(--muted); }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 900px) {
	.call-bar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		background: var(--navy); box-shadow: 0 -4px 16px rgba(0,0,0,.15);
	}
	.call-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; min-height: 58px; }
	.call-bar a + a { border-left: 1px solid rgba(255,255,255,.25); }
	.hero { padding-top: 36px; }
	.section { padding: 64px 0; }
	.card { padding: 24px; }
}
@media (min-width: 901px) {
	.site-footer { padding-bottom: 0; }
}
