/* ============================================
   Blue Spruce Accounting, Inc. — styles
   Brand: teal #30C1C4 + deep #05221E
   ============================================ */
:root {
  --teal: #30c1c4;
  --teal-600: #1f9da0;
  --teal-700: #157c7f;
  --teal-50: #e8f8f8;
  --teal-100: #d2f0f1;
  --deep: #05221e;
  --deep-800: #0a312b;
  --deep-700: #103f38;
  --ink: #0e2723;
  --muted: #5a6f6a;
  --line: #e0eae7;
  --bg: #ffffff;
  --bg-alt: #f3f8f6;
  --gold: #c8a24a;
  --radius: 16px;
  --shadow: 0 20px 55px -26px rgba(5, 34, 30, 0.5);
  --shadow-sm: 0 8px 24px -14px rgba(5, 34, 30, 0.45);
  --maxw: 1140px;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.16; letter-spacing: -0.02em; color: var(--deep); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem;
  font-weight: 700; color: var(--teal-700); margin-bottom: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.96rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--deep-700); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-50); border-color: var(--teal-600); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 38px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; }
.nav-links a { padding: 0.55rem 0.9rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem; color: var(--ink); transition: background 0.2s, color 0.2s; }
.nav-links a:hover { background: var(--bg-alt); color: var(--teal-700); }
.nav-cta { background: var(--deep); color: #fff !important; }
.nav-cta:hover { background: var(--deep-700) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--deep); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 460px at 82% -12%, rgba(48,193,196,0.20), transparent 60%),
    linear-gradient(180deg, #f4faf9 0%, #ffffff 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy .lead { font-size: 1.18rem; color: var(--muted); margin: 1.25rem 0 1.85rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }
.hero-trust { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--teal-700); }
.hero-trust span { font-size: 0.82rem; color: var(--muted); }

.hero-card { position: relative; }
.card-glow { position: absolute; inset: -10% -8% -16% -8%; background: radial-gradient(closest-side, rgba(48,193,196,0.28), transparent); filter: blur(22px); z-index: 0; }
.pillars-preview {
  position: relative; z-index: 1; background: var(--deep); color: #dff3f1;
  border-radius: 22px; padding: 2rem; box-shadow: var(--shadow);
}
.pillars-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 700; color: var(--teal); margin-bottom: 1.25rem; }
.pillars-preview ul { list-style: none; display: grid; gap: 0.9rem; margin-bottom: 1.5rem; }
.pillars-preview li { display: flex; align-items: center; gap: 0.9rem; font-family: var(--font-head); font-size: 1.3rem; color: #fff; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.pillars-preview li:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-num { font-size: 0.85rem; font-weight: 700; color: var(--deep); background: var(--teal); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-body); flex-shrink: 0; }
.pillars-foot { font-size: 0.9rem; color: #a7ccc7; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin: 0 auto 3rem; text-align: center; }
.section-intro { color: var(--muted); font-size: 1.08rem; margin-top: 0.9rem; }
.section-intro strong { color: var(--ink); }
.section-head-light h2, .section-head-light .section-intro { color: #fff; }
.section-head-light .section-intro { color: #b8d8d4; }

/* ---------- Pillar / summary cards ---------- */
.cards { display: grid; gap: 1.5rem; }
.pillar-cards { grid-template-columns: repeat(3, 1fr); }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.service-num { font-family: var(--font-head); font-size: 1rem; color: var(--deep); background: var(--teal); width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 1.1rem; font-weight: 600; }
.service h3 { color: var(--deep); margin-bottom: 0.5rem; }
.service p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1.1rem; }
.card-link { font-weight: 600; color: var(--teal-700); font-size: 0.92rem; }
.card-link:hover { color: var(--deep); }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.why-icon { font-size: 1.2rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); border-radius: 13px; margin-bottom: 1.1rem; }
.why-item h3 { color: var(--deep); font-size: 1.15rem; margin-bottom: 0.45rem; }
.why-item p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Service blocks ---------- */
.service-block { border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 2rem; background: #fff; }
.service-block:last-child { margin-bottom: 0; }
.service-block-head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.75rem; }
.block-num { font-family: var(--font-head); font-size: 1.2rem; color: #fff; background: var(--deep); width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.service-block-head h3 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.service-block-head p { color: var(--muted); max-width: 70ch; }

.feature-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2rem; }
.feature-list li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; color: var(--muted); }
.feature-list li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.1rem; }
.feature-list li::before { content: "■"; position: absolute; left: 0; top: 0.05rem; color: var(--teal); font-size: 0.7rem; }

.callout { margin-top: 1.75rem; background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 16px; padding: 1.5rem; }
.callout h4 { color: var(--deep); font-size: 1.15rem; margin-bottom: 0.5rem; }
.callout p { color: var(--muted); margin-bottom: 1rem; }
.inline-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.inline-list li { background: #fff; border: 1px solid var(--teal-100); color: var(--ink); font-size: 0.88rem; font-weight: 500; padding: 0.45rem 0.9rem; border-radius: 999px; }

/* ---------- Construction specialization ---------- */
.construction { background: linear-gradient(180deg, #ffffff 0%, var(--teal-50) 100%); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.spec {
  background: #fff; border: 1px solid var(--teal-100); border-top: 3px solid var(--teal);
  border-radius: var(--radius); padding: 1.7rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.spec:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.spec-icon { font-size: 1.4rem; width: 50px; height: 50px; display: grid; place-items: center; background: var(--teal-50); border-radius: 13px; margin-bottom: 1rem; }
.spec h3 { color: var(--deep); font-size: 1.18rem; margin-bottom: 0.45rem; }
.spec p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Technology (deep) ---------- */
.section-deep { background: var(--deep); }
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; max-width: 880px; margin: 0 auto; }
.tech-chip {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(48,193,196,0.35);
  color: #eafafa; font-weight: 500; font-size: 0.95rem; padding: 0.7rem 1.25rem; border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.tech-chip:hover { background: rgba(48,193,196,0.16); border-color: var(--teal); transform: translateY(-2px); }

/* ---------- Credentials ---------- */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 940px; margin: 0 auto; }
.cred {
  display: flex; align-items: center; gap: 0.85rem; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 1.25rem 1.4rem; font-weight: 600; color: var(--deep); box-shadow: var(--shadow-sm);
}
.cred-mark { width: 30px; height: 30px; flex-shrink: 0; background: var(--teal); color: var(--deep); border-radius: 50%; display: grid; place-items: center; font-weight: 700; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg-alt), #fff); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-copy h2 { margin-bottom: 1.75rem; }
.contact-info { list-style: none; display: grid; gap: 0.9rem; }
.contact-info li { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; font-size: 1.05rem; }
.contact-info a:hover { color: var(--teal-700); text-decoration: underline; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow-sm); display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.96rem; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fcfdfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(48,193,196,0.18); }
.field textarea { resize: vertical; }
.form-status { font-size: 0.9rem; font-weight: 600; min-height: 1.2rem; }
.form-status.ok { color: var(--teal-700); }
.form-status.err { color: #c0492f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #a7ccc7; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a:hover { color: var(--teal); }
.footer-col li { font-size: 0.92rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; max-width: 460px; }
  .pillar-cards, .why-grid, .creds, .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 24px 1.5rem; box-shadow: var(--shadow-sm);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform 0.2s, opacity 0.2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.75rem 1rem; }
  .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); }
  .pillar-cards, .why-grid, .creds, .spec-grid, .feature-list, .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.25rem; }
  .service-block-head { flex-direction: column; gap: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
