/* ============================================================
   Image Accounting Solutions — Shared Stylesheet
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --navy:        #14243f;
  --navy-800:    #1b2f4e;
  --navy-700:    #24406a;
  --green:       #1f7a4c;
  --green-600:   #23885a;
  --green-500:   #2aa062;
  --green-050:   #e8f3ec;

  /* Neutrals */
  --ink:         #1a2233;
  --body:        #4a5568;
  --muted:       #7a8698;
  --line:        #e6e9ee;
  --bg:          #ffffff;
  --bg-soft:     #f6f8f9;
  --bg-card:     #ffffff;

  /* Type */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 36, 63, .06);
  --shadow: 0 10px 30px rgba(20, 36, 63, .08);
  --shadow-lg: 0 24px 60px rgba(20, 36, 63, .12);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 62px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 46px 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--green-500); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(23px, 2.6vw, 30px); }
.section-head p { margin-top: 12px; color: var(--body); font-size: 15px; }

/* Decorative centered heading with side rules */
.rule-head {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-bottom: 34px;
}
.rule-head::before, .rule-head::after {
  content: ""; height: 1px; width: 80px; background: var(--line);
}
.rule-head h2 { font-size: clamp(22px, 2.5vw, 28px); white-space: nowrap; }

.lead { font-size: 16px; color: var(--body); }
.text-green { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 15px 26px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { height: 50px; width: auto; display: block; }
.brand__logo--footer { height: 56px; filter: brightness(0) invert(1); opacity: .95; }
/* legacy text-logo styles (kept for safety) */
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-family: var(--serif); font-size: 16px; color: var(--navy); letter-spacing: .02em; font-weight: 700; }
.brand__text span { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--green); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--ink); position: relative;
  display: inline-flex; align-items: center; gap: 5px; transition: color .18s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--green); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--green);
}
.nav__links .caret { width: 9px; height: 9px; opacity: .6; }

.nav__actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav__phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--ink); }
.nav__phone svg { width: 15px; height: 15px; color: var(--green); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c5cede; padding: 66px 0 26px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 40px;
}
.footer-brand .brand__text b { color: #fff; }
.footer-brand p { margin: 18px 0 20px; font-size: 14px; color: #9fadc4; max-width: 260px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: background .2s;
}
.footer-social a:hover { background: var(--green); }
.footer-social svg { width: 15px; height: 15px; color: #fff; }

.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .04em; margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.7; color: #9fadc4; }
.footer-col address b { color: #fff; font-weight: 600; }

.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: #8497b2; flex-wrap: wrap;
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Generic hero (dark) ---------- */
.hero-dark {
  background: var(--navy);
  color: #eaf0f8;
  position: relative;
  overflow: hidden;
}
.hero-dark .eyebrow { color: var(--green-500); }
.hero-dark h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); }
.hero-dark p { color: #b9c4d6; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: .22s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d9e5dd; }

.icon-badge {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-050); color: var(--green); margin-bottom: 20px;
}
.icon-badge svg, .icon-badge img { width: 28px; height: 28px; object-fit: contain; }
.icon-badge--round { border-radius: 50%; }

.icon-ring {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--green-050); background: #fff; color: var(--green);
  box-shadow: inset 0 0 0 6px #fff, 0 0 0 1px var(--green-050);
}
.icon-ring svg, .icon-ring img { width: 30px; height: 30px; object-fit: contain; }

/* Arrow circle link */
.arrow-link {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-items: center; transition: .2s;
}
.arrow-link svg { width: 16px; height: 16px; }
.arrow-link:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- CTA band (shared: about + services) ---------- */
.cta-band {
  background: var(--navy); border-radius: 18px; color: #fff;
  display: flex; align-items: center; gap: 28px; padding: 40px 44px;
}
.cta-band__icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(42,160,98,.14); display: grid; place-items: center; flex-shrink: 0; }
.cta-band__icon svg { width: 30px; height: 30px; }
.cta-band__text { flex: 1; }
.cta-band__text h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.cta-band__text p { color: #b9c4d6; margin: 0; font-size: 14px; }
.cta-band--svc .cta-band__actions { display: flex; gap: 14px; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cta-band { flex-direction: column; text-align: center; align-items: center; }
  .cta-band--svc .cta-band__actions { flex-direction: column; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links.is-open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 22px;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open a { padding: 10px 0; width: 100%; }
  .section { padding: 60px 0; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .rule-head::before, .rule-head::after { width: 30px; }
}
