/* AWF Blocks — shared front-end + editor styles.
   Tokens match the homepage export (navy #0e185f, accent #30a4ff, squared cards). */

.awf, .awf * { box-sizing: border-box; }
.awf {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0e185f;
  line-height: 1.5;
}
.awf h1, .awf h2, .awf h3 { font-family: 'Sora', 'Manrope', sans-serif; font-weight: 700; letter-spacing: -.01em; }
.awf a { color: inherit; }
.awf img { max-width: 100%; height: auto; display: block; }
.awf-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #30a4ff; margin: 0 0 14px; }

/* ---------- BUTTONS ---------- */
.awf-btn {
  display: inline-block; background: #0e185f; color: #fff !important;
  padding: 17px 34px; border-radius: 6px; text-decoration: none;
  font-weight: 700; font-size: 17px; transition: opacity .2s; margin: 0 12px 10px 0;
}
.awf-btn:hover { opacity: .88; }
.awf-btn-ghost {
  display: inline-block; border: 2px solid #0e185f; color: #0e185f !important;
  padding: 15px 32px; border-radius: 6px; text-decoration: none;
  font-weight: 700; font-size: 17px; transition: all .2s; margin-bottom: 10px;
}
.awf-btn-ghost:hover { background: #0e185f; color: #fff !important; }

/* ---------- HERO ---------- */
.awf-page-hero { position: relative; overflow: hidden; background: #0e185f; display: flex; align-items: center; min-height: 62vh; }
.awf-page-hero.awf-no-img { background: #f2f5fa; min-height: 0; }
.awf-hero-bg { position: absolute; inset: 0; z-index: 0; }
.awf-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.awf-page-hero:not(.awf-no-img):after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.56); z-index: 1; }
.awf-page-hero-inner { position: relative; z-index: 2; width: 100%; padding: 96px 6% 80px; }
.awf-page-hero.awf-no-img .awf-page-hero-inner { padding: 72px 6%; }
.awf-geo { font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #30a4ff; margin: 0 0 18px; }
.awf-page-hero h1 { font-size: clamp(38px, 5.6vw, 74px); line-height: 1.06; max-width: 1000px; margin: 0 0 20px; color: #0e185f; }
.awf-hero-sub { font-size: clamp(17px, 2vw, 22px); color: #333; max-width: 680px; margin: 0 0 34px; line-height: 1.6; }

/* ---------- STATS ROW ---------- */
.awf-stats-block { padding: 34px 6%; background: #f7f8fb; }
.awf-proof {
  display: flex; gap: 0; flex-wrap: nowrap; margin: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.awf-proof::-webkit-scrollbar { display: none; }
.awf-proof-item { flex: 0 0 auto; padding: 0 22px 0 0; margin: 0 22px 0 0; border-right: 1px solid rgba(14,24,95,.2); }
.awf-proof-item:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.awf-proof-num { font-size: clamp(17px, 2.1vw, 26px); font-weight: 700; color: #0e185f; display: block; line-height: 1; font-family: 'Sora', sans-serif; white-space: nowrap; }
.awf-proof-label { font-size: clamp(10px, 1.05vw, 13px); color: #555; margin-top: 5px; display: block; white-space: nowrap; }
.awf-proof-item a { text-decoration: none; }
.awf-on-dark { background: #0e185f; }
.awf-on-dark .awf-proof-item { border-right-color: rgba(255,255,255,.25); }
.awf-on-dark .awf-proof-num { color: #fff; }
.awf-on-dark .awf-proof-label { color: rgba(255,255,255,.75); }

/* ---------- CITY CARDS ---------- */
.awf-areas { padding: 76px 6%; background: #eef2f9; }
.awf-areas-head { max-width: 760px; margin: 0 0 40px; }
.awf-areas-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 14px; color: #0e185f; }
.awf-areas-head p { font-size: 17px; color: #555; line-height: 1.7; margin: 0; }
.awf-areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(14,24,95,.12); }
.awf-area-card { background: #fff; padding: 26px 24px; }
.awf-area-card h3 { font-size: 17px; margin: 0 0 8px; color: #0e185f; line-height: 1.3; }
.awf-area-card p { font-size: 14px; color: #555; line-height: 1.6; margin: 0; }
.awf-areas-links { margin: 32px 0 0; font-size: 15px; color: #555; line-height: 1.8; }
.awf-areas-links a { color: #0e185f; font-weight: 700; }

/* ---------- REVIEWS ---------- */
.awf-reviews { padding: 76px 6%; background: #fbf7f1; }
.awf-reviews-head { max-width: 720px; margin: 0 0 40px; }
.awf-reviews-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 12px; color: #0e185f; }
.awf-reviews-head p { font-size: 17px; color: #555; margin: 0; }
.awf-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(14,24,95,.12); }
.awf-review-card { background: #fff; padding: 32px 28px; display: flex; flex-direction: column; }
.awf-stars { color: #f0a500; font-size: 16px; letter-spacing: 3px; margin: 0 0 14px; }
.awf-review-text { font-size: 16px; line-height: 1.7; color: #333; margin: 0 0 20px; flex: 1; }
.awf-review-author { font-weight: 700; font-size: 15px; color: #0e185f; }
.awf-review-tag { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #30a4ff; font-weight: 700; margin-top: 4px; }
.awf-reviews-cta { margin-top: 30px; }
.awf-reviews-cta a { font-weight: 700; color: #0e185f; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- FAQ ---------- */
.awf-faq { padding: 76px 6%; background: #fff; }
.awf-faq h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 12px; color: #0e185f; }
.awf-faq-sub { font-size: 17px; color: #555; margin: 0 0 36px; max-width: 720px; line-height: 1.7; }
.awf-faq-list { border-top: 1px solid rgba(14,24,95,.15); max-width: 900px; }
.awf-faq-item { border-bottom: 1px solid rgba(14,24,95,.15); }
.awf-faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: 'Sora', 'Manrope', sans-serif; font-weight: 700;
  font-size: clamp(16px, 1.7vw, 19px); color: #0e185f; line-height: 1.4;
}
.awf-faq-icon { font-size: 24px; font-weight: 400; color: #30a4ff; flex: 0 0 auto; transition: transform .2s; }
.awf-faq-q[aria-expanded="true"] .awf-faq-icon { transform: rotate(45deg); }
.awf-faq-a { display: none; }
.awf-faq-item.is-open .awf-faq-a { display: block; }
.awf-faq-a-inner { padding: 0 0 24px; font-size: 16px; line-height: 1.75; color: #444; max-width: 760px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .awf-areas-grid { grid-template-columns: repeat(2, 1fr); }
  .awf-reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .awf-areas-grid { grid-template-columns: 1fr; }
  .awf-page-hero-inner { padding: 72px 7% 60px; }
  .awf-areas, .awf-reviews, .awf-faq { padding: 56px 7%; }
  .awf-proof-item { padding-right: 16px; margin-right: 16px; }
}

/* ---------- EDITOR ---------- */
.editor-styles-wrapper .awf-page-hero { min-height: 0; }
.wp-block[data-type^="awf/"] .awf { pointer-events: none; }
.awf-block-hint {
  font-size: 12px; color: #555; background: #f2f5fa;
  border-left: 3px solid #30a4ff; padding: 8px 12px; margin-bottom: 8px;
}

/* ================================================================== */
/* EDITOR DESIGN CONTROLS — padding, background tone, button style.   */
/* Every value below is a homepage token; nothing here changes a      */
/* block's shipped look until an option is chosen in the sidebar.     */
/* ================================================================== */
.awf {
  --awf-navy: #0e185f;
  --awf-accent: #30a4ff;
  --awf-white: #fff;
  --awf-cloud: #f7f8fb;
  --awf-mist: #eef2f9;
  --awf-sand: #fbf7f1;
  --awf-pad: 76px;
}

/* ---------- PADDING ---------- */
.awf-pad-none { --awf-pad: 0px; }
.awf-pad-xs   { --awf-pad: 24px; }
.awf-pad-sm   { --awf-pad: 40px; }
.awf-pad-md   { --awf-pad: 60px; }
.awf-pad-lg   { --awf-pad: 76px; }
.awf-pad-xl   { --awf-pad: 108px; }

.awf-pad > section,
.awf-pad.awf-stats-block { padding-top: var(--awf-pad); padding-bottom: var(--awf-pad); }
.awf-pad > section > .awf-page-hero-inner { padding-top: var(--awf-pad); padding-bottom: var(--awf-pad); }
.awf-pad > .awf-page-hero { min-height: 0; }

/* ---------- BACKGROUND TONE ---------- */
.awf-bg-none > section,   .awf-bg-none.awf-stats-block   { background: transparent; }
.awf-bg-white > section,  .awf-bg-white.awf-stats-block  { background: var(--awf-white); }
.awf-bg-cloud > section,  .awf-bg-cloud.awf-stats-block  { background: var(--awf-cloud); }
.awf-bg-mist > section,   .awf-bg-mist.awf-stats-block   { background: var(--awf-mist); }
.awf-bg-sand > section,   .awf-bg-sand.awf-stats-block   { background: var(--awf-sand); }
.awf-bg-navy > section,   .awf-bg-navy.awf-stats-block   { background: var(--awf-navy); }
.awf-bg-none > .awf-page-hero:after,
.awf-bg-navy > .awf-page-hero:after { display: none; }

/* Navy tone: lift the section's own type to white. Cards keep their
   white surfaces and navy text, exactly as on the homepage. */
.awf-bg-navy .awf-page-hero h1,
.awf-bg-navy .awf-areas-head h2,
.awf-bg-navy .awf-reviews-head h2,
.awf-bg-navy .awf-faq h2,
.awf-bg-navy .awf-faq-q { color: var(--awf-white); }
.awf-bg-navy .awf-hero-sub,
.awf-bg-navy .awf-areas-head p,
.awf-bg-navy .awf-reviews-head p,
.awf-bg-navy .awf-faq-sub,
.awf-bg-navy .awf-areas-links,
.awf-bg-navy .awf-faq-a-inner { color: rgba(255,255,255,.82); }
.awf-bg-navy .awf-areas-links a,
.awf-bg-navy .awf-reviews-cta a { color: var(--awf-white); }
.awf-bg-navy .awf-faq-list,
.awf-bg-navy .awf-faq-item { border-color: rgba(255,255,255,.22); }
.awf-bg-navy .awf-areas-grid,
.awf-bg-navy .awf-reviews-grid { background: rgba(255,255,255,.22); }
.awf-bg-navy .awf-proof-item { border-right-color: rgba(255,255,255,.25); }
.awf-bg-navy .awf-proof-num { color: var(--awf-white); }
.awf-bg-navy .awf-proof-label { color: rgba(255,255,255,.75); }

/* ---------- BUTTON STYLES ---------- */
.awf-btnstyle-outline .awf-btn {
  background: transparent; color: var(--awf-navy) !important;
  border: 2px solid var(--awf-navy); padding: 15px 32px;
}
.awf-btnstyle-outline .awf-btn:hover { background: var(--awf-navy); color: var(--awf-white) !important; opacity: 1; }
.awf-btnstyle-accent .awf-btn { background: var(--awf-accent); color: var(--awf-navy) !important; }
.awf-btnstyle-soft .awf-btn {
  background: rgba(48,164,255,.14); color: var(--awf-navy) !important;
  border: 1px solid rgba(48,164,255,.45); padding: 16px 33px;
}
.awf-btnstyle-soft .awf-btn:hover { background: rgba(48,164,255,.24); opacity: 1; }
.awf-btnstyle-link .awf-btn {
  background: transparent; color: var(--awf-navy) !important; padding: 6px 0;
  border-radius: 0; text-decoration: underline; text-underline-offset: 6px;
  margin-right: 26px;
}

/* Navy sections need inverted buttons to stay legible. */
.awf-bg-navy .awf-btn { background: var(--awf-white); color: var(--awf-navy) !important; }
.awf-bg-navy .awf-btn-ghost { border-color: var(--awf-white); color: var(--awf-white) !important; }
.awf-bg-navy .awf-btn-ghost:hover { background: var(--awf-white); color: var(--awf-navy) !important; }
.awf-bg-navy.awf-btnstyle-outline .awf-btn { background: transparent; color: var(--awf-white) !important; border-color: var(--awf-white); }
.awf-bg-navy.awf-btnstyle-outline .awf-btn:hover { background: var(--awf-white); color: var(--awf-navy) !important; }
.awf-bg-navy.awf-btnstyle-accent .awf-btn { background: var(--awf-accent); color: var(--awf-navy) !important; }
.awf-bg-navy.awf-btnstyle-soft .awf-btn { background: rgba(255,255,255,.12); color: var(--awf-white) !important; border-color: rgba(255,255,255,.4); }
.awf-bg-navy.awf-btnstyle-link .awf-btn { background: transparent; color: var(--awf-white) !important; }

/* ---------- BUTTON SIZE ---------- */
.awf-btnsize-sm .awf-btn { padding: 13px 26px; font-size: 15px; }
.awf-btnsize-sm .awf-btn-ghost { padding: 11px 24px; font-size: 15px; }
.awf-btnsize-lg .awf-btn { padding: 21px 42px; font-size: 19px; }
.awf-btnsize-lg .awf-btn-ghost { padding: 19px 40px; font-size: 19px; }
.awf-btnsize-sm.awf-btnstyle-outline .awf-btn { padding: 11px 24px; }
.awf-btnsize-lg.awf-btnstyle-outline .awf-btn { padding: 19px 40px; }
.awf-btnsize-sm.awf-btnstyle-link .awf-btn,
.awf-btnsize-lg.awf-btnstyle-link .awf-btn { padding: 6px 0; }


/* ------------------------------------------------------------------ */
/* SCHEMA PREVIEW (editor only — server render suppresses it on front) */
/* ------------------------------------------------------------------ */
.awf-schema-preview {
	margin: 0 0 16px;
	border: 1px dashed #9aa7c7;
	border-radius: 6px;
	background: #f7f8fb;
	padding: 12px 14px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: #0e185f;
}
.awf-schema-preview-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}
.awf-schema-preview-badge {
	background: #0e185f;
	color: #fff;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.awf-schema-preview-type { font-size: 12px; font-weight: 700; }
.awf-schema-preview-hint { font-size: 11px; color: #5b6480; margin-left: auto; }
.awf-schema-preview-note {
	margin: 4px 0;
	font-size: 11px;
	line-height: 1.5;
	color: #5b6480;
	font-family: inherit;
}
.awf-schema-pre {
	margin: 8px 0 0;
	max-height: 340px;
	overflow: auto;
	background: #fff;
	border: 1px solid #e2e7f2;
	border-radius: 4px;
	padding: 10px 12px;
	font-size: 11.5px;
	line-height: 1.55;
	white-space: pre;
	tab-size: 2;
}
