/* =========================================================
   Nibas & Associates P.C. — Site Stylesheet
   Design system: navy + gold, clean professional services
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0b1f38;
  --navy-800: #0f2742;
  --navy-700: #13345c;
  --navy-600: #1c4a7e;
  --gold-500: #c8a24a;
  --gold-600: #b8902f;
  --gold-100: #f6edd6;

  --ink: #1a2433;
  --body: #44505f;
  --muted: #6b7280;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-tint: #eef3f8;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 56, .06), 0 2px 8px rgba(11, 31, 56, .05);
  --shadow-md: 0 10px 30px rgba(11, 31, 56, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 56, .16);

  --container: 1140px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

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

img, svg { max-width: 100%; display: block; }

a { color: var(--navy-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1rem; }

ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-800); color: #d9e2ee; }
.section--navy h2,
.section--navy h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .9rem;
}
.section--navy .eyebrow { color: var(--gold-500); }

.lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .lead { color: #aebfd4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .92rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-600); color: var(--navy-900); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.04rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 44px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-weight: 500;
  color: var(--ink);
  font-size: .98rem;
  position: relative;
  padding: .25rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width .25s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--navy-800); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__phone {
  font-weight: 600;
  color: var(--navy-800);
  white-space: nowrap;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--navy-800);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(200, 162, 74, .16), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
  color: #e8eef6;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(closest-side at 70% 30%, #000, transparent);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(64px, 9vw, 116px) 0;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 .accent { color: var(--gold-500); }
.hero p { color: #b9c8dc; font-size: 1.18rem; max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__trust {
  margin-top: 2.6rem;
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
}
.hero__trust .num { font-family: var(--font-head); font-size: 1.9rem; color: var(--gold-500); font-weight: 700; }
.hero__trust .lbl { font-size: .82rem; color: #9fb1c8; letter-spacing: .04em; }

.hero__card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; font-family: var(--font-body); font-size: 1.05rem; letter-spacing: .02em; }
.hero__card ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.hero__card li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: #cdd9e8;
  padding: .55rem 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.hero__card li:first-child { border-top: none; }
.hero__card .check { color: var(--gold-500); flex: none; margin-top: .15rem; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(200, 162, 74, .14), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: clamp(56px, 8vw, 92px) 0 clamp(48px, 7vw, 76px);
  text-align: center;
}
.page-banner h1 { color: #fff; }
.page-banner p { color: #b9c8dc; max-width: 60ch; margin-inline: auto; }
.crumbs { font-size: .85rem; color: #93a6bf; margin-bottom: 1rem; letter-spacing: .03em; }
.crumbs a { color: #cfe; }
.crumbs a:hover { color: var(--gold-500); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d4dce7; }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--gold-100);
  color: var(--gold-600);
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 0; color: var(--body); }
.card__link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem; font-weight: 600; font-size: .95rem;
}
.card__link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }

/* ---------- Feature / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  aspect-ratio: 4 / 3;
  position: relative;
}
.split__media .badge {
  position: absolute;
  inset: auto auto 18px 18px;
  background: #fff;
  color: var(--navy-800);
  padding: .9rem 1.1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-weight: 600;
  display: flex; gap: .7rem; align-items: center;
}
.split__media .badge .big { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-600); }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.checklist li {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .55rem 0;
  color: var(--ink);
  font-weight: 500;
}
.checklist .check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: grid; place-items: center;
  margin-top: .15rem;
}
.checklist .check svg { width: 14px; height: 14px; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  text-align: center;
}
.stats .stat { padding: 1rem; }
.stats .num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-500); font-weight: 700; }
.stats .lbl { color: #aebfd4; font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { position: relative; padding-top: .5rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-500);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.12rem; }
.step p { margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.quote .stars { color: var(--gold-500); margin-bottom: .8rem; letter-spacing: 2px; }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1.05rem; color: var(--ink); }
.quote cite { font-style: normal; font-weight: 600; color: var(--navy-800); }
.quote .role { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(200, 162, 74, .18), transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--navy-700));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #c2d1e5; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }

.info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--line); }
.info-list li:first-child { border-top: none; }
.info-list .ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-tint); color: var(--navy-700);
  display: grid; place-items: center;
}
.info-list .ic svg { width: 22px; height: 22px; }
.info-list .k { font-weight: 600; color: var(--ink); display: block; }
.info-list .v { color: var(--body); }
.info-list a { color: var(--navy-700); font-weight: 500; }

.form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.field .req { color: var(--gold-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: .8rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(28, 74, 126, .12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .error { color: #b91c1c; font-size: .85rem; margin-top: .3rem; display: none; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #dc2626; }
.field.invalid .error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.form-note { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form-status.show { display: block; }
.form-status.success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.form-status.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.map-embed {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 360px; border: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: .9rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; transition: transform .25s var(--ease); color: var(--gold-600); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .faq__body { padding: 0 1.3rem 1.2rem; color: var(--body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebccf; padding: clamp(48px, 6vw, 72px) 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.2rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; letter-spacing: .04em; margin-bottom: 1.1rem; }
.site-footer a { color: #aebccf; }
.site-footer a:hover { color: var(--gold-500); }
.footer-brand .mark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; margin-bottom: .6rem;
}
.footer-brand .mark span { color: var(--gold-500); }
.footer-brand p { color: #93a6bf; font-size: .95rem; max-width: 32ch; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: .7rem; display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--gold-500); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: #7c8ea6;
}
.footer-bottom a { color: #93a6bf; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold-500); color: var(--navy-900);
  padding: .7rem 1.1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { order: -1; max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    left: 0; right: 0; top: 76px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem 24px 1.2rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta .nav__phone { display: none; }
  .grid--3, .grid--2, .stats { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
