/* ============================================================
   EC Bookkeeping Arizona - styles
   Palette: black + deep red + gold, warm cream ground
   Voice: trustworthy, established, financial (bookkeeping since 2000)
   ============================================================ */

:root {
  --black: #151515;
  --black-2: #1f1f1f;
  --black-deep: #0c0c0c;
  --ink: #1b1b1b;
  --muted: #6d6d6d;

  --red: #b01e2e;
  --red-dark: #8c1624;
  --gold: #c6a15b;
  --gold-dark: #a9853f;
  --gold-ink: #90702f;   /* readable gold for text on light backgrounds */

  --line: #e7e2d8;
  --bg: #ffffff;
  --bg-soft: #faf8f3;
  --bg-alt: #f3efe6;
  --cream: #f2ede3;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(21, 21, 21, 0.06), 0 1px 2px rgba(21, 21, 21, 0.04);
  --shadow: 0 10px 30px rgba(21, 21, 21, 0.10);
  --shadow-lg: 0 24px 60px rgba(12, 12, 12, 0.22);

  --font-head: "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1120px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--black); margin: 0 0 0.5em; }
p { margin: 0 0 1rem; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--black); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--gold-ink);
  margin: 0 0 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(176, 30, 46, 0.28); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 10px 26px rgba(176, 30, 46, 0.36); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--black); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(150deg, #1f1f1f, #000);
  color: var(--gold); font-family: var(--font-head); font-weight: 700; letter-spacing: 0.02em;
  display: grid; place-items: center; font-size: 1rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(198, 161, 91, 0.45);
}
.brand-mark.small { width: 32px; height: 32px; font-size: 0.85rem; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }

.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a { font-family: var(--font-head); font-weight: 500; color: var(--black); font-size: 0.96rem; }
.primary-nav a:hover { color: var(--red-dark); text-decoration: none; }
.primary-nav .nav-cta {
  background: var(--black); color: var(--gold); padding: 0.6rem 1.15rem; border-radius: 999px;
  border: 1px solid rgba(198, 161, 91, 0.45);
}
.primary-nav .nav-cta:hover { background: #000; color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(198, 161, 91, 0.16), transparent 60%),
    radial-gradient(900px 400px at 0% 110%, rgba(176, 30, 46, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.75rem 0 1.5rem; }
.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--black); font-size: 0.95rem; }
.check {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(198, 161, 91, 0.20); color: var(--gold-dark); font-size: 0.72rem; font-weight: 700;
}

/* Hero card visual - dark, to feature the black + gold + red palette */
.hero-card { display: flex; justify-content: center; }
.stat-card {
  width: 100%; max-width: 360px;
  background: linear-gradient(165deg, #1c1c1c, #0c0c0c);
  border: 1px solid rgba(198, 161, 91, 0.28);
  border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg);
}
.stat-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.stat-label { font-family: var(--font-head); font-weight: 600; color: #f0ece3; font-size: 0.92rem; }
.stat-pill { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.stat-pill.up { background: rgba(198, 161, 91, 0.20); color: var(--gold); border: 1px solid rgba(198, 161, 91, 0.35); }
.stat-bignum { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: #ffffff; letter-spacing: 0.04em; }
.stat-sub { color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; margin-bottom: 20px; }
.stat-bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; }
.stat-bars span {
  flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  opacity: 0.9;
}
.stat-bars span:last-child { background: linear-gradient(180deg, var(--red), var(--red-dark)); opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-intro { color: var(--muted); font-size: 1.08rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(198, 161, 91, 0.55); }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(198, 161, 91, 0.20), rgba(176, 30, 46, 0.10));
}
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.photo-frame {
  aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #1a1a1a, var(--gold-dark));
  display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid rgba(198, 161, 91, 0.3);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.photo-placeholder { color: rgba(255, 255, 255, 0.9); font-family: var(--font-head); text-align: center; font-weight: 600; }
.photo-placeholder small { font-weight: 400; opacity: 0.78; font-size: 0.8rem; }
.about-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.credentials { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 12px; }
.credentials li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--black); }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative; box-shadow: var(--shadow-sm);
}
.why-item::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--red)); opacity: 0.85;
}
.why-num {
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--red-dark);
  background: rgba(198, 161, 91, 0.18); width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.why-item h3 { font-size: 1.2rem; }
.why-item p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.section-contact { background: linear-gradient(180deg, var(--bg-alt), var(--bg-soft)); }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.contact-copy > p { color: var(--muted); font-size: 1.05rem; max-width: 32rem; }
.contact-details { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 14px; }
.contact-details li { display: flex; align-items: center; gap: 14px; color: var(--black); font-weight: 500; }
.ci {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line); color: var(--red-dark); font-size: 1.1rem; box-shadow: var(--shadow-sm);
}

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px;
  border-top: 3px solid var(--gold);
}
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: 0.9rem; color: var(--black); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg-soft); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.22);
}
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 4px 0 0; font-size: 0.92rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #2f7d52; }
.form-status.err { color: var(--red-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black-deep); color: rgba(255, 255, 255, 0.82); padding: 44px 0; border-top: 3px solid var(--gold); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-head); font-weight: 600; }
.footer-note { margin: 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }
.footer-copy { margin: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.site-footer a { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { order: -1; }
  .stat-card { max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 340px; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0; }
  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
