/* Robert Bruce Business Consulting Ltd. - shared styles */

:root {
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --ink-faint: #8a94a6;
  --accent: #14655a;
  --accent-dark: #0e4a42;
  --accent-tint: #eef5f3;
  --bg: #ffffff;
  --bg-alt: #f7f9f8;
  --line: #e6eae8;
  --radius: 10px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img.logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

.brand .brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand .brand-sub {
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

nav { display: flex; gap: 28px; align-items: center; }

nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav a:hover { color: var(--accent); }

nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  border-bottom: none;
}

nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 88px; }

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-flex .hero-logo {
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

.hero .kicker,
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 720px;
}

.hero p.lead {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
}

.btn-row { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Illustrations ---------- */

.hero-art {
  width: 300px;
  height: auto;
  flex-shrink: 0;
}

.section-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.section-art {
  width: 250px;
  height: auto;
  flex-shrink: 0;
  margin-bottom: 44px;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

section.alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 44px; }

.section-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
}

/* ---------- Cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-4 .card { padding: 26px 22px; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(20, 101, 90, 0.08);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 { font-size: 1.12rem; font-weight: 650; margin-bottom: 10px; letter-spacing: -0.01em; }

.card p { color: var(--ink-soft); font-size: 0.95rem; }

.card a.more {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.card a.more:hover { text-decoration: underline; }

/* ---------- Feature / trust strip ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.trust-item h3 {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.trust-item p { color: var(--ink-soft); font-size: 0.93rem; }

.trust-item .num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 10px;
}

/* ---------- Service detail blocks ---------- */

.service-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.service-block:first-of-type { border-top: none; }

.service-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.service-block .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 12px;
  border-radius: 999px;
}

.service-block .body p { color: var(--ink-soft); margin-bottom: 14px; }

.service-block ul {
  list-style: none;
  margin-top: 6px;
}

.service-block ul li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
  margin-bottom: 9px;
  font-size: 0.97rem;
}

.service-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }

.cta-band p { color: #b8c0cc; margin-top: 8px; max-width: 480px; }

.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--accent-tint); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.about-grid .bio p { color: var(--ink-soft); margin-bottom: 16px; }

.bio-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: 0 8px 28px rgba(26, 35, 50, 0.12);
}

.cred-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.cred-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.cred-card ul { list-style: none; }

.cred-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.cred-card li:last-child { border-bottom: none; }

.cred-card li strong { display: block; font-size: 0.98rem; }

.cred-card li span { color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}

.contact-card h3 { font-size: 1.05rem; font-weight: 650; margin-bottom: 8px; }

.contact-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }

.contact-card .big-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.contact-card .big-link:hover { text-decoration: underline; }

.contact-note {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-row img { height: 40px; width: auto; }

footer .f-brand { font-weight: 650; font-size: 0.95rem; }

.cpa-mark {
  height: 34px;
  width: auto;
  margin-right: 6px;
}

footer .f-tagline {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  font-style: italic;
}

footer .f-sub { color: var(--ink-faint); font-size: 0.85rem; margin-top: 4px; }

footer nav { gap: 20px; }

footer nav a { font-size: 0.88rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .grid-3, .trust { grid-template-columns: 1fr; }
  .hero-flex .hero-logo { display: none; }
  .brand img.logo { height: 38px; }
  .grid-4 { grid-template-columns: 1fr; }
  nav .cpa-mark { display: none; }
  .hero-art, .section-art { display: none; }
  .service-block { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .cta-band { padding: 40px 28px; }
  nav { gap: 16px; width: 100%; justify-content: space-between; }
  nav a { padding: 8px 0; }
  nav a.nav-cta { padding: 9px 18px; }
  .header-inner { flex-wrap: wrap; gap: 6px; padding-top: 12px; padding-bottom: 12px; }
  .btn { padding: 13px 22px; }
}
