/* ---------------------------------------------------------------------
   leadmasters.org — matches the current WordPress/Elementor look, so new
   pages sit beside the old ones without a seam while the site is converted
   one page at a time. Values were measured from the live /services/ page
   (2026-10-15).

   Images and the PolySans font are the WordPress site's own files under
   /wp-content/uploads/. That folder stays when WordPress is removed (see
   docs/PLAN.md). Their addresses -- the @font-face and the --bg-top,
   --bg-blush and --marker variables -- are written into each page's <head>
   by _inc/site.php, which knows whether it is on the live site or the PC.

   Light only, like the live site.
   --------------------------------------------------------------------- */

:root {
  --navy:      #110557;
  --navy-76:   rgba(17, 5, 87, .76);   /* body text */
  --orange:    #ff6600;
  --green:     #33cc00;                /* rules, submit */
  --green-h:   #81b426;                /* the green section heading */
  --pale:      #e2e8f0;                /* text on navy */
  --cream:     #fafbf2;
  --blush:     #fdf6f4;
  --line:      #e4e1ea;
  --wrap:      1140px;
  --font:      "polysans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--navy);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.text { color: var(--navy-76); font-size: 18px; line-height: 1.6; }
.text p + p { margin-top: 16px; }
.center { text-align: center; }
.center .text, .text.center { margin-left: auto; margin-right: auto; }
.narrow { max-width: 760px; }

/* the orange marker stroke behind a few words of a heading */
.textbg {
  background: var(--marker) no-repeat 0 0 / cover;
  padding: 0 4px 0 20px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--font); font-size: 18px; font-weight: 600;
  line-height: 1.2; padding: 14px 26px; border-radius: 3px; border: 0; cursor: pointer;
  background: var(--orange); color: #fff; text-decoration: none;
}
.btn:hover { filter: brightness(.95); }
.btn-caps { text-transform: uppercase; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-green { background: linear-gradient(90deg, #7fc31c, #99e01d); color: #fff; }
.btn-line { background: none; border: 2px solid var(--navy); color: var(--navy); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* ---- page top: the soft orange/green wash behind header + hero ------ */
body { background: #fff var(--bg-top) no-repeat 100% 0 / 100% auto; }
@media (max-width: 860px) { body { background-size: 200% auto; } }
.site-head .wrap {
  display: flex; align-items: center; gap: 24px; min-height: 134px;
}
.logo img { width: 168px; }
.site-nav { display: flex; align-items: center; margin: 0 auto; }
.site-nav a {
  color: var(--navy); font-weight: 600; text-decoration: none; padding: 0 16px; line-height: 80px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange); }
.get-started {
  background: var(--orange); color: var(--navy); font-weight: 600; text-decoration: none;
  padding: 17px 24px; border-radius: 3px; box-shadow: 0 8px 18px rgba(255, 102, 0, .28); white-space: nowrap;
}
.get-started:hover { filter: brightness(.96); }
.menu-btn { display: none; }

@media (max-width: 1024px) {
  .site-head .wrap { min-height: 96px; flex-wrap: wrap; }
  .logo img { width: 130px; }
  .menu-btn {
    display: block; margin-left: auto; background: none; border: 2px solid var(--navy); color: var(--navy);
    border-radius: 4px; padding: 8px 12px; font: 600 15px var(--font); cursor: pointer;
  }
  .site-nav, .get-started { display: none; }
  .site-head.open .site-nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; margin: 0; padding-bottom: 8px; }
  .site-head.open .site-nav a { line-height: 1.2; padding: 12px 4px; border-top: 1px solid var(--line); }
  .site-head.open .get-started { display: block; order: 4; width: 100%; text-align: center; margin-bottom: 16px; }
}

/* ---- heroes ------------------------------------------------------------ */
/* (1) photo hero, as on /services/: a wide rounded photo, a line under it */
.hero-photo { padding: 16px 0 70px; }
.hero-photo img { width: 100%; border-radius: 16px; }
.hero-photo .text { margin-top: 18px; font-weight: 600; }

/* (2) words hero: label, headline, text, buttons, optional picture beside */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 30px 20px 80px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero.solo { grid-template-columns: 1fr; }
.hero.solo > div { max-width: 860px; }
.hero h1 { margin-bottom: 20px; }
.hero img { border-radius: 16px; }
/* a service icon standing in for the hero picture */
.hero img.hero-icon { width: min(240px, 60%); justify-self: center; border-radius: 0; }
@media (max-width: 860px) { .hero img.hero-icon { width: 140px; justify-self: start; order: -1; } }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 30px; padding-bottom: 56px; } }

/* ---- sections ---------------------------------------------------------- */
.section { padding: 80px 0; }
.section-head { margin-bottom: 44px; }
.section-head .text { margin-top: 14px; max-width: 640px; }
.section-head.center .text { margin-left: auto; margin-right: auto; }
.bg-blush { background: var(--blush) var(--bg-blush) repeat 0 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.bg-navy h2, .bg-navy h3 { color: var(--pale); }
.bg-navy .text { color: var(--pale); }
.green-head { color: var(--green-h); }
.rule { width: 316px; max-width: 60%; border: 0; border-top: 4.5px solid var(--green); margin: 26px 0; }
.center .rule { margin-left: auto; margin-right: auto; }

/* two columns: words one side, picture/video the other */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 8px; }
.split .caption { margin-top: 12px; color: var(--orange); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* icon grid: three across, centred, thin rules between, as on /services/ */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 64px; }
.icon-item { text-align: center; padding: 0 34px; border-left: 2px solid var(--line); }
.icon-item:nth-child(3n + 1) { border-left: 0; }
.icon-item img { width: 92px; height: 88px; object-fit: contain; margin: 0 auto 18px; }
.icon-item h3 { margin-bottom: 14px; }
.icon-item p { color: var(--navy-76); font-size: 15px; font-weight: 600; line-height: 1.6; }
.icon-item a { color: inherit; text-decoration: none; }
.icon-item a:hover h3 { color: var(--orange); }
@media (max-width: 860px) {
  .icon-grid { grid-template-columns: 1fr 1fr; }
  .icon-item { border-left: 0; padding: 0 12px; }
}
@media (max-width: 560px) { .icon-grid { grid-template-columns: 1fr; row-gap: 48px; } }

/* cards: white boxes, one may be orange ("featured"), as the packages are */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 6px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.card .kicker { font-size: 16px; font-weight: 600; text-transform: uppercase; }
.card h3 { font-size: 2.2rem; color: var(--orange); line-height: 1.15; }
.card p { color: var(--navy); font-weight: 600; font-size: 15px; line-height: 1.6; }
.card .btn { margin-top: auto; text-align: center; }
.card.featured { background: var(--orange); }
.card.featured h3 { color: var(--navy); }
.card.featured p { color: #fff; }
.card .tag { align-self: flex-start; background: #fff; color: var(--orange); border-radius: 20px; padding: 2px 16px; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; color: var(--green); }
.price small { font-size: 15px; font-weight: 600; line-height: 1.15; text-transform: uppercase; }
.price strong { font-size: 2.6rem; font-weight: 600; line-height: 1; }
.card.featured .price { color: var(--navy); }
.price + .btn { margin-top: 12px; }

/* numbered steps */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 28px; font-weight: 600; color: var(--orange); line-height: 1.2; }
.step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step p { color: var(--navy-76); }

/* ticked list */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--navy-76); font-size: 17px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-size: 1.2rem; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; color: var(--navy-76); }

/* one big line, beside a block of text on the navy band */
.big-quote {
  margin: 0; padding-left: 26px; border-left: 4.5px solid var(--orange);
  font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.25; font-weight: 600; color: #fff;
}

/* a smaller heading straight under a hero's H1 */
.hero-sub { font-size: 1.35rem; margin: 0 0 12px; }

/* two-across version of the icon grid */
.icon-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.icon-grid.two .icon-item { border-left: 2px solid var(--line); }
.icon-grid.two .icon-item:nth-child(2n + 1) { border-left: 0; }
.icon-item p + p { margin-top: 10px; }
@media (max-width: 560px) { .icon-grid.two { grid-template-columns: 1fr; } .icon-grid.two .icon-item { border-left: 0; } }

/* white box for a payment widget (Stripe buy button) on a coloured band */
.buy-box { background: #fff; border-radius: 12px; padding: 18px; max-width: 340px; width: 100%; justify-self: center; min-height: 240px; }

/* a closing tagline in italics, with the orange bar */
.pull-line { margin: 34px 0 0; padding-left: 18px; border-left: 4px solid var(--orange); font-style: italic; font-weight: 600; color: var(--navy-76); }

/* ---- long forms (the hacked-site intake) ----------------------------- */
.intake { display: flex; flex-direction: column; gap: 22px; }
.intake fieldset {
  margin: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px;
}
.intake legend { padding: 0 8px; margin-left: -8px; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.intake label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--navy); }
.intake input[type=text], .intake input[type=tel], .intake input[type=email], .intake textarea {
  width: 100%; font: 15px var(--font); color: var(--navy); background: #fff;
  border: 1px solid #d9d6e3; border-radius: 4px; padding: 10px;
}
.intake input[readonly] { background: var(--cream); }
.intake textarea { resize: vertical; }
.intake input:focus, .intake textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.intake .q { margin: 4px 0 -4px; font-size: 15px; font-weight: 600; }
.intake .opt { font-weight: 400; color: var(--navy-76); }
.intake .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 20px; }
.intake .choices.inline { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.intake .choice { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--navy-76); line-height: 1.45; cursor: pointer; }
.intake .choice input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--orange); }
.intake .choice.auth { color: var(--navy); font-weight: 600; }
.intake .warn-box { background: #fff4e0; border-left: 4px solid var(--orange); padding: 12px 14px; border-radius: 4px; font-size: 15px; }
.intake > .btn { align-self: flex-start; font-size: 20px; padding: 16px 34px; }

/* long plain text: legal pages, articles */
.prose { max-width: 820px; color: var(--navy-76); font-size: 17px; }
.prose h2 { font-size: 1.9rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.3rem; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose li > ul, .prose li > ol { margin: 6px 0 4px; }
.prose li > ul > li { margin-bottom: 2px; }

/* ---- the call-to-action panel + form, at the foot of every page ------ */
.cta { padding: 20px 0 30px; }
.cta-panel {
  background: var(--orange); border-radius: 24px; padding: 70px 30px 300px; text-align: center;
  transform: rotate(-1.2deg);
}
.cta-panel > * { transform: rotate(1.2deg); }
.cta-panel h2 { max-width: 800px; margin: 0 auto 18px; }
.cta-panel .text { max-width: 500px; margin: 0 auto; }
.cta-form { position: relative; margin: -261px auto 0; max-width: 392px; }

.lead-form {
  background: #fff; border-radius: 6px; padding: 24px 20px; box-shadow: 0 18px 40px rgba(17, 5, 87, .12);
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.lead-form h2 { font-size: 1.5rem; }
.f-row { display: flex; gap: 8px; }
.f-row > * { flex: 1 1 0; min-width: 0; }
.lead-form label { display: block; }
.lead-form .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: 14px var(--font); color: var(--navy); background: #fff;
  border: 1px solid #d9d6e3; border-radius: 4px; padding: 10px 8px;
}
.lead-form ::placeholder { color: var(--navy); opacity: 1; }
.lead-form textarea { min-height: 120px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.lead-form button {
  width: 100%; background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: 4px;
  padding: 11px 20px; font: 600 15px var(--font); cursor: pointer;
}
.lead-form button:hover { filter: brightness(.95); }
.f-note { font-size: 12px; color: var(--navy-76); text-align: center; }
.f-note a { color: inherit; }
/* honeypot: off-screen (not display:none, which some bots skip) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  .cta-panel { transform: none; border-radius: 16px; padding: 50px 20px 290px; }
  .cta-panel > * { transform: none; }
  .f-row { flex-direction: column; }
}

/* ---- footer ------------------------------------------------------------ */
.site-foot { background: var(--orange); color: var(--navy-76); padding-top: 90px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.foot-brand img { width: 230px; margin-bottom: 14px; }
.foot-brand p { max-width: 280px; font-weight: 600; }
.site-foot h3 { font-size: 20px; margin-bottom: 18px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.site-foot li { line-height: 1.25; }
.site-foot a { color: var(--navy-76); text-decoration: none; font-weight: 600; }
.site-foot a:hover { color: var(--navy); }
.foot-contact li { display: flex; align-items: center; gap: 18px; }
.foot-contact img { width: 34px; flex: none; }
.foot-addr { margin-top: 26px; text-transform: uppercase; font-weight: 600; line-height: 1.6; }
.foot-base { border-top: 1px solid rgba(17, 5, 87, .25); margin-top: 50px; padding: 26px 0 30px; text-align: center; font-weight: 600; font-size: 15px; color: var(--navy); }
.foot-base a { color: var(--navy); margin: 0 6px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } .site-foot { padding-top: 60px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
