/* ================================================================
   RS ACCOUNTING & BOOKKEEPING — Brand Stylesheet (V2)
   Authoritative tokens per 2026 Brand Guidelines.
   Tagline: "Accounting that grows with you."
   ================================================================ */

:root {
  /* ===== Primary palette ===== */
  --navy:        #1B2B6B;   /* Primary brand navy (logo block, buttons, headlines) */
  --navy-deep:   #101D52;   /* Pressed states, deep backgrounds */
  --navy-darker: #0E1D4A;   /* Avatar gradient end */
  --steel-blue:  #5B8FCC;   /* Brand accent — chart bars in lockup */
  --blue:        #2D5FC4;   /* Secondary blue — links, hovers, secondary accents */
  --blue-bright: #3B78E8;   /* Hover states */
  --cyan:        #3BB8FF;   /* Highlight/glow accent */
  --periwinkle:  #C5D5E8;   /* Soft tint, on-navy text */

  /* ===== Signature accent — used sparingly ===== */
  --magenta:     #FF2A7A;   /* Growth-curve endpoint, "this matters" highlights */

  /* ===== Neutrals ===== */
  --charcoal:    #1A1A2E;
  --mid-gray:    #6B7280;
  --light-gray:  #E8EAED;
  --off-white:   #F4F5F7;
  --white:       #FFFFFF;
  --steel-gray:  #A0A8B0;

  /* ===== Semantic ===== */
  --success:     #0A9F5F;
  --warn:        #F59E0B;
  --danger:      #DC2626;

  /* ===== Type ===== */
  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  /* ===== Layout ===== */
  --container: 1280px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  /* ===== Shadows ===== */
  --shadow-sm: 0 4px 12px -4px rgba(27, 43, 107, 0.12);
  --shadow:    0 14px 28px -8px rgba(27, 43, 107, 0.22);
  --shadow-lg: 0 30px 60px -18px rgba(27, 43, 107, 0.35), 0 8px 16px -4px rgba(27, 43, 107, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  overflow-x: hidden;
}

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

/* ==== Type ==== */
h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { color: var(--mid-gray); line-height: 1.65; }

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

.eyebrow {
  font-family: var(--f-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--blue);
}
.eyebrow-magenta { color: var(--magenta); }
.eyebrow-magenta::before { background: var(--magenta); }
.eyebrow-cyan    { color: var(--cyan); }
.eyebrow-cyan::before { background: var(--cyan); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ==== Underline accent (cyan growth motif) ==== */
/* Uses background-image so the underline wraps cleanly across lines on mobile */
.accent-underline {
  background-image: linear-gradient(180deg, transparent 70%, rgba(59, 184, 255, 0.42) 70%, rgba(59, 184, 255, 0.42) 88%, transparent 88%);
  background-repeat: no-repeat;
  background-size: 100% 1.1em;
  background-position: 0 1.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Stop browsers from hyphenating long brand words on narrow viewports */
h1, h2, h3 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; word-break: normal; }

/* ==== Nav ==== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--light-gray);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 18px 28px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 68px; width: auto; }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--f-body); color: var(--charcoal);
  font-size: 0.92rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--navy); font-weight: 700; }
.nav-cta {
  background: var(--navy); color: var(--white) !important; padding: 11px 22px;
  font-weight: 600 !important; display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform .2s;
}
.nav-cta:hover { background: var(--blue) !important; transform: translateY(-1px); }
.nav-cta::after { content: "→"; }

/* Hamburger toggle button (hidden on desktop, shown on mobile) */
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--navy);
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-inner { flex-wrap: wrap; padding: 14px 20px; }
  .nav-logo img { height: 56px; }
  .nav-toggle { display: flex; }
  .nav-links {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, margin-top .3s ease, padding-top .3s ease;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
  }
  .nav.is-open .nav-links {
    max-height: 520px;
    margin-top: 14px;
    padding-top: 14px;
    border-top-color: var(--light-gray);
  }
  .nav-links a {
    display: block;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 6px;
  }
  .nav-links a:hover { background: var(--off-white); }
  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
    padding: 12px 16px;
    font-size: .95rem;
  }
}

/* ==== Buttons ==== */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  font-family: var(--f-body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; transition: all 0.25s; border: 0;
  border-radius: var(--radius-sm);
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary::after { content: "→"; transition: transform .2s; }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(27,43,107,.4); color: var(--white); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 12px 26px; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue::after { content: "→"; transition: transform .2s; }
.btn-blue:hover { background: var(--blue-bright); color: var(--white); }
.btn-blue:hover::after { transform: translateX(4px); }
.btn-magenta { background: var(--magenta); color: var(--white); }
.btn-magenta:hover { filter: brightness(1.1); color: var(--white); }

/* ==== Sections ==== */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-bottom: 56px;
  align-items: end;
}
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

/* ==== Page header (interior pages) ==== */
.page-header {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--light-gray);
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(27,43,107,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,43,107,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
}
.page-header-inner { position: relative; z-index: 1; max-width: 720px; }
.page-header h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); margin-top: 18px; }
.page-header p { font-size: 1.15rem; color: var(--charcoal); margin-top: 22px; max-width: 60ch; }

/* ==== Cards ==== */
.card {
  background: var(--white); border: 1px solid var(--light-gray);
  border-radius: var(--radius); padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--steel-blue); }

/* ==== Trust bar ==== */
.trust { background: var(--navy); color: var(--white); padding: 36px 0; position: relative; }
.trust::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.trust-grid { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.trust-label {
  font-family: var(--f-head); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--periwinkle);
}
.trust-logos { display: flex; gap: 14px 30px; flex-wrap: wrap; align-items: center; row-gap: 14px; }
.trust-logo { display: flex; align-items: center; gap: 9px; font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: var(--white); opacity: .92; white-space: nowrap; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ==== Footer ==== */
.footer { background: var(--navy); color: var(--white); padding: 72px 0 32px; position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand-logo { margin-bottom: 18px; }
.footer-brand-logo img { height: 56px; width: auto; }
.footer-tagline { font-size: 0.95rem; line-height: 1.6; color: var(--periwinkle); max-width: 36ch; margin-bottom: 16px; }
.footer-tagline-italic { font-style: italic; color: var(--cyan); font-size: 1.02rem; margin-bottom: 8px; }
.footer-division { font-size: 0.75rem; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.footer-col h5 {
  font-family: var(--f-head); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-col a { color: var(--white); font-size: 0.9rem; }
.footer-col a:hover { color: var(--cyan); }
/* ==== Shared CTA band ==== */
.cta {
  background: var(--navy); color: var(--white);
  padding: 96px 0; position: relative; overflow: hidden; text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 50% 100%, rgba(59,184,255,.18) 0%, transparent 55%);
}
.cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 28px; }
.cta h2 { color: var(--white); margin-top: 16px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.2; }
.cta p  { color: var(--periwinkle); margin-top: 18px; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.cta .btn-primary { background: var(--cyan); color: var(--navy); }
.cta .btn-primary:hover { background: var(--white); color: var(--navy); box-shadow: 0 14px 28px -12px rgba(59,184,255,.45); }
.cta .btn-ghost { color: var(--white); border-color: var(--white); }
.cta .btn-ghost:hover { background: var(--white); color: var(--navy); }
.cta .eyebrow { display: inline-flex; justify-content: center; color: var(--cyan); }
.cta .eyebrow::before { background: var(--cyan); }

/* Footer social icons */
.footer-social {
  display: flex; gap: 10px; margin-top: 22px;
}
.footer-social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.08);
  color: var(--periwinkle); transition: all .2s;
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--cyan); color: var(--navy);
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; display: block; }

/* Shared QuickBooks badge link wrapper */
.qb-link { display: inline-flex; line-height: 0; }
.qb-link:hover { color: inherit; }

/* Footer certifications strip */
.footer-certs {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 26px 0 22px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-certs-label {
  font-family: var(--f-head); font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan);
  padding-right: 14px; border-right: 1px solid rgba(255,255,255,.16);
}
.footer-certs img {
  height: 52px; width: auto; display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  transition: transform .2s;
}
.footer-certs img:hover { transform: translateY(-2px); }
@media (max-width: 640px) {
  .footer-certs-label { width: 100%; border-right: 0; padding-right: 0; }
}

.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--f-head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.5);
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } .footer-brand-col { grid-column: 1 / -1; } }

/* ==== Reveal anims (light) ==== */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .6s .1s ease forwards; }
.rd1 { animation-delay: .12s; } .rd2 { animation-delay: .24s; }
.rd3 { animation-delay: .36s; } .rd4 { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ==== Utility ==== */
.text-magenta { color: var(--magenta); }
.text-cyan { color: var(--cyan); }
.text-blue { color: var(--blue); }
.text-navy { color: var(--navy); }
.bg-navy   { background: var(--navy); color: var(--white); }
.bg-offwhite { background: var(--off-white); }
.center { text-align: center; }

/* ==== Growth-curve hero motif (reusable backdrop) ==== */
.growth-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(45,95,196,.08) 0%, transparent 42%),
    radial-gradient(circle at 90% 75%, rgba(91,143,204,.10) 0%, transparent 42%);
}
.growth-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(27,43,107,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,43,107,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
}

/* ==== Mobile safety pass ==== */
/* Long emails and URLs should wrap rather than overflow horizontally */
@media (max-width: 760px) {
  .footer-col a,
  .footer-tagline,
  .footer-brand,
  .footer-meta,
  .footer a[href^="mailto"],
  .footer a[href^="tel"] {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .footer-col { min-width: 0; }
  .footer-meta { font-size: .62rem; gap: 10px; }

  /* Stack 2-col footer to 1-col below 520px so nothing crowds */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }

  /* Hero typography breathes a bit better on small screens */
  .hero { padding: 56px 0 72px; }
  .hero h1 { max-width: none; }
  .hero-sub { font-size: 1.08rem; max-width: none; }

  /* Stop the hero proof bar from cramping into 4 tiny columns */
  .hero-proof-item strong { font-size: 1.05rem; }
  .hero-proof-item span { font-size: .7rem; }

  /* Contact card values (long emails, addresses) wrap nicely */
  .contact-card a,
  .contact-card p,
  .contact-info a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Pricing cards: long bullet items wrap inside the card cleanly */
  .pricing-features li,
  .service-bullets li,
  .pricing-disclosure {
    overflow-wrap: anywhere;
  }

  /* Trust logo labels can wrap rather than push wider */
  .trust-logo { white-space: normal; }

  /* Inline-code-like strings (emails, urls) anywhere on the page break cleanly */
  p, li, dd { overflow-wrap: break-word; }
}

/* Extra-narrow phones (iPhone SE etc.) */
@media (max-width: 380px) {
  .container { padding: 0 18px; }
  h1 { font-size: 2.3rem !important; }
  h2 { font-size: 1.7rem !important; }
  .hero-proof { gap: 16px; }
}
