/* Heartland Tax Advisory: public website. Brand colors match the client portal. */
:root {
  --navy-950: #141940;
  --navy: #1D2355;
  --navy-700: #2E3A82;
  --navy-500: #5263B8;
  --navy-300: #A9B3E6;
  --navy-100: #E7E9F4;
  --navy-50: #F3F4F9;
  --gray: #767677;
  --gray-300: #B9BCCB;
  --ink: #191C33;
  --ink-2: #4E5266;
  --line: #E1E3EB;
  --white: #fff;
  --display: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 35, 85, .06), 0 8px 24px rgba(29, 35, 85, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.small { font-size: .85rem; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 1rem/1 var(--body); padding: .9rem 1.4rem; border-radius: 10px;
  text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: .6rem 1rem; font-size: .92rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn-ghost:hover { border-color: var(--navy); }
.btn:focus-visible, .nav a:focus-visible { outline: 3px solid var(--navy-500); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand img { width: 170px; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--navy); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy-50), var(--white)); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { font: 700 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--gray); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-card { background: var(--navy); color: #fff; border-radius: 22px; padding: 2rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-mark { width: 84px; margin-bottom: 1.25rem; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ticks li { padding-left: 1.9rem; position: relative; color: #E9EBF6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--navy-500)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tint { background: var(--navy-50); }
.section-lead { color: var(--ink-2); font-size: 1.05rem; max-width: 40em; margin-bottom: 2rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 1px 2px rgba(29, 35, 85, .04); }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-100); display: grid; place-items: center; margin-bottom: 1rem; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); }
.steps p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 1rem var(--display); margin-bottom: .9rem; }
.note { margin: 1.75rem 0 0; color: var(--ink-2); }

.security { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sec-list li { padding: 1rem 1.25rem; border-left: 3px solid var(--navy-500); background: var(--navy-50); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.sec-list strong { color: var(--navy); }
.callout { margin: 2.5rem 0 0; padding: 1.1rem 1.4rem; border-radius: var(--radius); background: #FBEFD5; color: #5C3D08; }

.checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.checklist > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.checklist ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: .4rem; font-size: .95rem; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { margin: 0; display: grid; gap: 1.25rem; background: var(--navy-50); border-radius: var(--radius); padding: 1.75rem; }
.contact-list dt { font-weight: 600; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list dd { margin: .2rem 0 0; color: var(--ink-2); }

/* Contact form */
.contact { grid-template-columns: 1.4fr 1fr; }
.contact-form { display: grid; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .4rem; padding: 0; }
.opt { font-weight: 400; color: var(--gray); }
.contact-form input:not([type=radio]):not([type=checkbox]), .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px var(--navy-100); }
.contact-form [aria-invalid=true] { border-color: #B23A31 !important; }
.inline-options { display: flex; gap: 1.25rem; padding-top: .55rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
.inline-options label, .check-grid label { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
input[type=radio], input[type=checkbox] { accent-color: var(--navy); width: 1.05rem; height: 1.05rem; }
.hint { font-size: .82rem; color: var(--ink-2); margin: .4rem 0 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.error { color: #B23A31; }
.form-sent { text-align: center; padding: 2.5rem 1.5rem; }
.form-sent h3 { font-size: 1.35rem; }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .65; cursor: wait; }

/* Office hours note */
.hours-note { font-size: .88rem; color: var(--gray); }

/* Details still to fill in: highlighted so they can't be missed before launch */
[data-placeholder] { background: #FFF4C2; outline: 1px dashed #C9A227; border-radius: 4px; padding: 0 .25rem; }
.btn[data-placeholder] { background: var(--navy); outline: 2px dashed #C9A227; outline-offset: 3px; padding: .9rem 1.4rem; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--gray-300); padding: 2.5rem 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.footer-row nav { display: flex; gap: 1.5rem; }
.footer-row a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-row a:hover { text-decoration: underline; }
.footer-row p { margin: 0 0 0 auto; }

/* Narrow screens */
@media (max-width: 980px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .security, .contact { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-row .btn { margin-left: auto; }
  .brand img { width: 140px; }
  .checklist { grid-template-columns: 1fr; }
  .form-row, .check-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.25rem; }
  .footer-row p { margin-left: 0; }
}
@media (max-width: 520px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
