/* Trueline Advisory site styles. Brand colors are injected as CSS variables by build.mjs from site.json. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--navy);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page { width: 100%; overflow-x: clip; }
a { color: var(--navy); }
a:hover { color: var(--coral); }
img { max-width: 100%; }
.display { font-family: 'Oswald', sans-serif; font-weight: 700; }
.accent { color: var(--accent); }
.eyebrow { margin: 0 0 12px; color: var(--coral-dark); font-weight: 700; font-size: 15px; letter-spacing: 3px; }
.container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.anchor { display: block; position: relative; top: -40px; height: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--wordmark-navy); font-family: 'Oswald', sans-serif; }
.wordmark:hover { color: var(--wordmark-navy); }
.wordmark-mark { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.wordmark-mark span { position: absolute; border-radius: 50%; }
.wordmark-mark .c1 { left: 8px; top: 0; width: 32px; height: 32px; background: #F6DCD7; }
.wordmark-mark .c2 { left: 0; top: 17px; width: 21px; height: 21px; background: #D5F0EC; }
.wordmark-mark .c3 { left: 27px; top: 29px; width: 11px; height: 11px; background: #F3CC6A; }
.wordmark-type { display: flex; align-items: center; gap: 2px; }
.wordmark-text { font-size: 26px; font-weight: 600; letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; display: flex; gap: 0.28em; }
.wordmark-text .w1 { color: var(--wordmark-navy); }
.wordmark-text .w2 { color: var(--wordmark-coral); }
.wordmark-slash { display: block; flex-shrink: 0; overflow: visible; margin-top: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 16px max(24px, calc((100% - 1192px) / 2));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 16px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.btn-outline-sm { border: 2px solid var(--navy); color: var(--navy); background: transparent; padding: 10px 20px; border-radius: 999px; text-decoration: none; }
.btn-outline-sm:hover { background: var(--navy); color: #FFFFFF; }
@media (max-width: 720px) { .nav-link { display: none; } }
@media (max-width: 520px) {
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .site-header .wordmark-text { font-size: 20px; }
  .site-header .wordmark-mark { transform: scale(0.8); transform-origin: left center; margin-right: -8px; }
  .site-header .btn-outline-sm { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; font-family: inherit; font-weight: 700; font-size: 17px; padding: 16px 30px; border-radius: 999px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #FFFFFF; border: 2px solid var(--accent); }
.btn-primary:hover { color: #FFFFFF; filter: brightness(0.94); }
.btn-secondary { background: #FFFFFF; color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { color: var(--navy); background: var(--ground-alt); }

/* Hero */
.hero { position: relative; padding-top: 72px; padding-bottom: 96px; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero .b1 { right: -40px; top: 10px; width: 420px; height: 420px; background: #FBDCD5; }
.hero .b2 { right: 300px; top: 230px; width: 170px; height: 170px; background: #CFF2EE; }
.hero .b3 { right: 70px; top: 400px; width: 80px; height: 80px; background: var(--yellow); }
.hero-inner { position: relative; max-width: 780px; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { margin: 0; font-size: clamp(56px, 9vw, 112px); line-height: 0.95; letter-spacing: -1px; }
.hero-body { margin: 32px 0 0; font-size: 22px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 720px) {
  .hero .b1 { width: 260px; height: 260px; right: -90px; }
  .hero .b2 { right: 150px; top: 200px; width: 110px; height: 110px; }
  .hero .b3 { display: none; }
  .hero-body { font-size: 19px; }
}

/* Audiences */
.audiences { padding-bottom: 96px; }
.audiences .eyebrow { margin-bottom: 20px; }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.audience { border-top: 5px solid var(--navy); padding-top: 18px; }
.audience-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 32px; }
.audience-body { font-size: 16px; color: var(--muted); line-height: 1.5; }

/* Section headings */
.section-heading { margin: 0 0 48px; font-size: clamp(40px, 5vw, 64px); line-height: 1; }

/* Services */
.services { background: var(--ground-alt); padding: 96px 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card { background: #FFFFFF; border-radius: 20px; padding: 32px; border-top: 6px solid var(--coral); }
.service-num { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 600; }
.service-card h3 { margin: 8px 0 12px; font-size: 22px; }
.service-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Engage */
.engage { padding-top: 96px; padding-bottom: 96px; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 56px; }
.model { border-radius: 20px; padding: 32px; }
.model h3 { margin: 0 0 10px; font-size: 22px; }
.model p { margin: 0; font-size: 16px; line-height: 1.6; color: #334155; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.phase { border-radius: 12px; padding: 22px 20px; font-weight: 700; font-size: 20px; }

/* About */
.about { background: var(--navy); color: #FFFFFF; padding: 96px 0; }
.about-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-photo { flex: 0 0 160px; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; display: block; }
.about-copy { flex: 999 1 520px; min-width: 0; }
.about .eyebrow { color: var(--yellow); }
.about h2 { margin: 0 0 20px; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.about p.body { margin: 0 0 16px; font-size: 19px; line-height: 1.6; color: #E2E8F0; }
.about p.body:last-child { margin-bottom: 0; }

/* Contact */
.contact { position: relative; padding-top: 112px; padding-bottom: 112px; text-align: center; }
.contact .b1 { left: -60px; top: 40px; width: 220px; height: 220px; background: #FBDCD5; }
.contact .b2 { right: 40px; bottom: 50px; width: 120px; height: 120px; background: #CFF2EE; }
.contact-inner { position: relative; }
.contact h2 { margin: 0 0 20px; font-size: clamp(48px, 7vw, 88px); line-height: 1; }
.contact-body { margin: 0 auto 36px; font-size: 20px; color: var(--muted); max-width: 560px; line-height: 1.5; }
.form-card { max-width: 760px; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 40px; text-align: left; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-card h3 { grid-column: 1 / -1; margin: 0; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 32px; color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 8px; grid-column: 1 / -1; }
.field.half { grid-column: span 1; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #94A3B8; border-radius: 12px; font-size: 16px; font-family: inherit; color: var(--navy); background: #FFFFFF; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(232, 71, 58, 0.25); border-color: var(--accent); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-error { margin: 0; color: var(--coral-dark); font-weight: 500; }
.form-success { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 56px 40px; text-align: center; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: #D5F0EC; display: flex; align-items: center; justify-content: center; }
.form-success p { margin: 0; font-size: 24px; font-weight: 700; color: var(--navy); }
.hidden { display: none !important; }
/* Compact form on tablet and desktop so the whole form and button fit on screen. Mobile keeps the roomier layout. */
@media (min-width: 641px) {
  .form-card { padding: 28px 32px; }
  .form-grid { gap: 12px 16px; }
  .form-card h3 { font-size: 24px; }
  .field { gap: 6px; }
  .field label { font-size: 14px; }
  .field input, .field textarea { padding: 10px 14px; }
  .field textarea { height: 84px; min-height: 84px; }
  .form-actions .btn { min-height: 48px; padding: 12px 28px; }
}
/* Desktop: heading and intro on the left, form on the right */
@media (min-width: 1024px) {
  .contact { padding-top: 56px; padding-bottom: 72px; }
  .contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); grid-template-areas: "heading card" "body card"; grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; text-align: left; }
  .contact h2 { grid-area: heading; margin: 24px 0 20px; font-size: clamp(48px, 5.4vw, 80px); }
  .contact-body { grid-area: body; margin: 0; }
  .form-card { grid-area: card; max-width: none; margin: 0; }
}
@media (max-width: 640px) {
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .field.half { grid-column: 1 / -1; }
  .contact .b1 { width: 140px; height: 140px; }
}

/* Footer */
.site-footer { background: #FFFFFF; border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand { flex: 1 1 320px; max-width: 420px; }
.footer-brand p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .heading { font-weight: 700; color: var(--wordmark-navy); }
.footer-col a { text-decoration: none; color: var(--muted); }
.footer-col a:hover { color: var(--coral); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* Privacy page */
.legal { max-width: 820px; margin: 0 auto; padding: 48px 24px 96px; font-size: 17px; line-height: 1.7; color: #334155; }
.legal h1 { margin: 0 0 12px; font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--navy); }
.legal .effective { margin: 0 0 40px; font-size: 15px; color: var(--muted); }
.legal h2 { margin: 40px 0 12px; font-size: 22px; color: var(--navy); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0; padding-left: 22px; }
