/* ==========================================================================
   Nelson Fernandez LLC — site stylesheet
   Palette: deep navy (trust) + gold (accounting) + clean neutrals
   ========================================================================== */

:root {
  /* Brand palette taken from the Nelson Fernandez, LLC. logo */
  --brand-cyan: #2ba6e0;
  --brand-cyan-light: #5cc2ec;
  --brand-cyan-dark: #1b87bd;
  --brand-navy: #353b54;
  --brand-navy-deep: #262b3d;

  --navy-900: #21263a;
  --navy-800: #2f3550;
  --navy-700: #414964;
  --navy-600: #1b87bd;
  --blue-500: #2ba6e0;
  --gold-500: #2ba6e0;   /* accent — cyan from the logo */
  --gold-400: #5cc2ec;
  --green-600: #2ba6e0;
  --ink: #262b3d;
  --body: #55607a;
  --muted: #7b8598;
  --line: #dfe4ec;
  --line-soft: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-tint: #e9f4fb;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(38, 43, 61, .06), 0 2px 8px rgba(38, 43, 61, .05);
  --shadow-md: 0 4px 14px rgba(38, 43, 61, .10), 0 12px 32px rgba(38, 43, 61, .07);
  --shadow-lg: 0 18px 48px rgba(38, 43, 61, .16);

  --radius: 12px;
  --radius-lg: 18px;
  --wrap: 1160px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --logo: "Jost", "Century Gothic", "Futura", var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-700); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-size: .97rem; font-weight: 600;
  padding: 13px 26px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s ease; text-align: center;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-md); }

.btn-gold { background: var(--brand-cyan); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--brand-cyan-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-600); color: var(--navy-700); background: var(--bg-soft); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn-lg { padding: 16px 32px; font-size: 1.03rem; }
.btn-block { width: 100%; }

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--brand-navy-deep); color: rgba(255,255,255,.78);
  font-size: .84rem; letter-spacing: .01em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: var(--gold-400); text-decoration: none; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar-contact span.sep { opacity: .35; }

.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { text-decoration: none; }

/* Real logo file, when assets/img/logo.png|svg is present */
.brand-logo { height: 52px; width: auto; display: block; }
.site-footer .brand-logo { height: 48px; }

/* CSS lockup that mirrors the logo when no image file is uploaded yet */
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-words { display: flex; flex-direction: column; line-height: 1; font-family: var(--logo); }
.brand-line1 {
  font-size: 1.42rem; font-weight: 300; letter-spacing: .16em;
  color: var(--brand-cyan); text-transform: uppercase;
}
.brand-line2 {
  font-size: .82rem; font-weight: 300; letter-spacing: .17em;
  color: var(--brand-cyan); text-transform: uppercase; margin-top: 6px;
}
.brand-rule { width: 2px; align-self: stretch; background: var(--brand-cyan); border-radius: 2px; }
.brand-monogram { height: 42px; width: auto; flex: none; display: block; }
.brand-monogram .mg-navy { fill: var(--brand-navy); }

.site-footer .brand-line1, .site-footer .brand-line2 { color: var(--brand-cyan-light); }
.site-footer .brand-rule { background: var(--brand-cyan-light); }
.site-footer .brand-monogram .mg-navy { fill: #ffffff; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--ink); }
.brand-tag {
  font-size: .72rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.site-footer .brand-tag { color: rgba(255,255,255,.55); }

@media (max-width: 560px) {
  .brand-line1 { font-size: 1.12rem; letter-spacing: .13em; }
  .brand-line2 { font-size: .68rem; }
  .brand-monogram { height: 34px; }
  .brand-logo { height: 42px; }
}

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 9px; padding: 9px 11px; cursor: pointer; color: var(--ink);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle span + span { margin-top: 5px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a.nav-link {
  padding: 9px 14px; border-radius: 8px; font-size: .95rem; font-weight: 500;
  color: var(--ink);
}
.site-nav a.nav-link:hover { background: var(--bg-tint); text-decoration: none; color: var(--navy-700); }
.site-nav a.nav-link.is-active { color: var(--navy-600); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 10px; }

.lang-switch {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 9px;
  overflow: hidden; background: var(--white);
}
.lang-switch button {
  border: 0; background: none; padding: 7px 12px; cursor: pointer;
  font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted);
}
.lang-switch button.is-active { background: var(--navy-800); color: #fff; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1100px 480px at 78% -12%, rgba(43,166,224,.34), transparent 62%),
    linear-gradient(160deg, var(--brand-navy-deep), var(--brand-navy) 58%, #1f2436);
  color: #fff; padding: 84px 0 92px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-cyan-light), var(--brand-cyan));
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--gold-500); border-radius: 2px;
}
.hero-lede { font-size: 1.14rem; color: rgba(255,255,255,.86); max-width: 40em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-badges {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-badge {
  font-size: .82rem; color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 14px;
  background: rgba(255,255,255,.05);
}

.hero-card {
  background: rgba(255,255,255,.97); color: var(--body);
  border-radius: var(--radius-lg); padding: 30px 30px 26px;
  box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-size: 1.3rem; margin-bottom: .5em; }
.hero-card ul { list-style: none; margin: 0 0 22px; padding: 0; }
.hero-card li {
  position: relative; padding-left: 30px; margin-bottom: 11px; font-size: .96rem;
}
.hero-card li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand-cyan) 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* --- Sections ----------------------------------------------------------- */

.section { padding: 82px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--brand-navy-deep); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 0 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: .77rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--navy-600); margin: 0 0 12px;
}
.section-dark .eyebrow { color: var(--gold-400); }
.section-head p { font-size: 1.06rem; margin-bottom: 0; }

/* --- Cards & grids ------------------------------------------------------ */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #cdd9e4; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--navy-600); margin-bottom: 18px;
}
.card-icon svg { width: 23px; height: 23px; }
.card-gold .card-icon { background: #dff0fa; color: var(--brand-cyan-dark); }
.card-green .card-icon { background: #e9eef7; color: var(--brand-navy); }

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative; padding-left: 27px; margin-bottom: 10px; font-size: .96rem;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500);
}
.section-dark .tick-list li::before { background: var(--gold-400); }

/* --- Service detail blocks ---------------------------------------------- */

.service-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.service-block > header { border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; margin-bottom: 24px; }
.service-block h2 { font-size: 1.6rem; margin-bottom: .3em; }
.service-block .flag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy-600); background: var(--bg-tint);
  border-radius: 999px; padding: 5px 13px; margin-bottom: 14px;
}

/* --- Stats -------------------------------------------------------------- */

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 30px; background: rgba(255,255,255,.04);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--serif); font-size: 2rem; color: var(--gold-400); line-height: 1;
  margin-bottom: 8px; display: block;
}
.stat-label { font-size: .88rem; color: rgba(255,255,255,.7); }

/* --- Steps -------------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 12px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-400);
  font-family: var(--serif); font-size: 1.05rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .96rem; margin-bottom: 0; }

/* --- CTA band ----------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--brand-navy-deep), var(--brand-navy));
  color: #fff; border-radius: var(--radius-lg); padding: 48px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 34px;
  flex-wrap: wrap; box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 0; max-width: 46em; }
.cta-band .cta-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* --- Contact page ------------------------------------------------------- */

.contact-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px;
}
.field .req { color: #b3341f; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,127,184,.16);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field-error { display: none; font-size: .83rem; color: #c0392b; margin-top: 6px; }
.field.has-error .field-error { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checkbox-line {
  display: flex; align-items: flex-start; gap: 11px; font-size: .9rem; color: var(--body);
}
.checkbox-line input { width: auto; margin-top: 4px; flex: none; }

.form-status {
  display: none; border-radius: 10px; padding: 15px 18px; margin-bottom: 22px; font-size: .95rem;
}
.form-status.is-visible { display: block; }
.form-status.ok { background: #e8f5ee; border: 1px solid #b9ddc9; color: #1d6b40; }
.form-status.err { background: #fdeceb; border: 1px solid #f3c4bf; color: #a32f22; }

.contact-aside .info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-bottom: 20px;
}
.contact-aside .info-card h3 { font-size: 1.08rem; margin-bottom: .7em; }
.info-line { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 15px; font-size: .95rem; }
.info-line:last-child { margin-bottom: 0; }
.info-line svg { width: 19px; height: 19px; flex: none; color: var(--navy-600); margin-top: 3px; }
.info-line .label {
  display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; margin-bottom: 2px;
}

/* --- FAQ ---------------------------------------------------------------- */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.09rem; color: var(--ink); font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; color: var(--navy-600); line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 8px 22px 0; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* --- Footer ------------------------------------------------------------- */

.site-footer { background: var(--brand-navy-deep); color: rgba(255,255,255,.68); padding: 62px 0 0; font-size: .94rem; }
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 700;
}
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--gold-400); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { background: rgba(255,255,255,.08); }
.footer-brand p { margin-top: 18px; max-width: 34em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0 30px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .86rem; color: rgba(255,255,255,.5);
}

.disclaimer { font-size: .84rem; color: var(--muted); }
.section-dark .disclaimer { color: rgba(255,255,255,.55); }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px;
    box-shadow: var(--shadow-md); gap: 2px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a.nav-link { padding: 12px 10px; }
  .nav-actions { margin: 12px 0 0; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
  .lang-switch { align-self: flex-start; }
  .header-bar { position: relative; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 58px 0; }
  .hero { padding: 60px 0 66px; }
  .grid-3, .grid-4, .grid-2, .field-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 34px 26px; }
  .service-block { padding: 26px 22px; }
  .form-card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .cta-band { display: none; }
}

/* --- Intuit ProAdvisor certification badge ------------------------------ */
.cert-badge { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; text-decoration: none; }
.cert-badge:hover .cert-caption { text-decoration: underline; }
.cert-badge img {
  height: 84px; width: auto; display: block;
}
.cert-badge .cert-caption {
  font-size: .82rem; line-height: 1.4; color: rgba(255,255,255,.82); max-width: 15em;
}
.section .cert-badge .cert-caption { color: var(--muted); }

/* Badge inside the light hero card: no frame, sits above the checklist */
.hero-card .cert-badge {
  margin: 0 0 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft); width: 100%;
}
.hero-card .cert-badge .cert-caption { color: var(--ink); font-weight: 500; }
