/* ============ N.S. CPA Advisory Services — Custom Styles ============ */

@font-face {
  font-family: 'Plastic Template JNL';
  src: url('/font.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0f2d43;
  --navy-dark: #0a1e2d;
  --teal: #297bb8;
  --teal-dark: #1d5a8c;
  --gold: #e56e4e;
  --gold-dark: #c9421d;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(229, 110, 78, 0.28);
}

/* ---- Page transition ---- */
.page {
  animation: pageIn 0.4s ease both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Hero decorations ---- */
.hero-glow {
  background:
    radial-gradient(55% 70% at 75% 15%, rgba(41, 123, 184, 0.4), transparent 65%),
    radial-gradient(45% 55% at 15% 85%, rgba(229, 110, 78, 0.25), transparent 60%);
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(10, 30, 45, 0.68) 0%, rgba(10, 30, 45, 0.82) 55%, rgba(10, 30, 45, 0.95) 100%);
}

/* ---- Typography helpers ---- */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.section-title {
  font-family: 'Plastic Template JNL', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(2.45rem, 4.15vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-top: 0.6rem;
}

/* ---- Navigation ---- */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover {
  color: var(--navy);
  background: #e1dfd9;
}
.nav-link.nav-active {
  color: var(--navy);
  background: #e3eef7;
  font-weight: 600;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.65rem;
  font-size: 0.925rem;
  font-weight: 600;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover {
  background: #ef8a6d;
  box-shadow: 0 8px 20px -8px rgba(229, 110, 78, 0.45);
  transform: translateY(-1px);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: #1d4560;
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ---- Cards ---- */
.feature-card {
  background: #fff;
  border: 1px solid #dad8d1;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(10, 30, 45, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: #c6c4bb;
  box-shadow: 0 16px 32px -16px rgba(10, 30, 45, 0.2);
}
.card-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}
.card-dark:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
}
/* Solid dark card for light sections (services) */
.card-navy {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}
.card-navy:hover {
  border-color: var(--navy-light);
  box-shadow: 0 16px 32px -16px rgba(10, 30, 45, 0.5);
}
.card-navy .card-num { color: var(--gold); }
.card-num {
  display: block;
  font-family: 'Plastic Template JNL', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
}
.card-md h3 {
  margin-top: 0.8rem;
}
.card-md > p:first-of-type em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.card-dark .card-md > p:first-of-type em,
.card-navy .card-md > p:first-of-type em {
  color: var(--gold);
}

/* ---- Rendered markdown ---- */
.md {
  color: #475569;
  line-height: 1.75;
  font-size: 1rem;
}
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md h1 {
  font-family: 'Plastic Template JNL', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(2.8rem, 6.1vw, 4.15rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 0.9rem;
}
.md h2 {
  font-family: 'Plastic Template JNL', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 2.25rem 0 0.6rem;
}
.md h3 {
  font-family: 'Plastic Template JNL', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.md p { margin: 0.8rem 0; }
.md ul {
  list-style: none;
  margin: 0.9rem 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.md ul li {
  position: relative;
  padding-left: 1.45rem;
}
.md ul li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.52em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 0.15rem;
  background: var(--teal);
}
.md ol {
  list-style: decimal;
  margin: 0.9rem 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.55rem;
}
.md ol li::marker {
  font-weight: 600;
  color: var(--teal);
}
.md a {
  color: var(--teal-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.md a:hover { color: var(--teal); }
.md strong {
  color: var(--navy);
  font-weight: 600;
}
.md hr {
  border: 0;
  border-top: 1px solid #dad8d1;
  margin: 2rem 0;
}
.md blockquote {
  border-left: 3px solid var(--gold);
  background: #f0efee;
  padding: 1rem 1.25rem;
  border-radius: 0 0.7rem 0.7rem 0;
  color: #334155;
  font-style: italic;
  margin: 1rem 0;
}
.md blockquote p { margin: 0; }

/* Hero markdown overrides */
#hero-content.md h1 { color: #fff; }
#hero-content.md p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Dark card markdown overrides */
.card-dark .md, .card-navy .md { color: rgba(255, 255, 255, 0.72); }
.card-dark .md h3, .card-navy .md h3 { color: #fff; }
.card-dark .md ul li::before, .card-navy .md ul li::before { background: var(--gold); }
.card-dark .md strong, .card-navy .md strong { color: #fff; }
.card-dark .md a, .card-navy .md a { color: var(--gold); }

/* Testimonial carousel */
.testi-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.testi-slide {
  min-width: 100%;
}
.testi-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 9999px;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.testi-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}
.testi-dot-active {
  background: var(--gold);
  transform: scale(1.15);
}
.testi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.testi-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Testimonial cards */
.testimonial .md {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.testimonial .md blockquote {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}
.testimonial .md h3 {
  margin: 0;
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.quote-mark {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

/* ---- Footer ---- */
.footer-heading {
  font-family: 'Plastic Template JNL', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}
.footer-link {
  color: #94a3b8;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}
.footer-link:hover { color: #e2e8f0; }
