/* Thomas J. O'Malley III, CPA — site styles */
:root {
  --navy: #14213d;
  --navy-deep: #0d1730;
  --ink: #1f2937;
  --muted: #5b6474;
  --line: #e3e0d8;
  --cream: #f7f5f0;
  --paper: #ffffff;
  --brass: #b8892e;
  --brass-dark: #8f6a1f;
  --brass-soft: #f1e6cd;
  --radius: 10px;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--brass-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-dark); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Header */
.topbar {
  background: var(--navy-deep);
  color: #cbd2e0;
  font-size: 0.86rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-left { opacity: .85; }
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--navy);
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 700; color: var(--brass-soft);
  font-size: 1.1rem; letter-spacing: 0.02em; flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.12rem; display: block; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: block; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink); font-weight: 600; font-size: 0.94rem; position: relative; padding: 0.3rem 0; white-space: nowrap; }
.nav a.btn-navy { color: #fff; }
.brand-name { white-space: nowrap; }
.nav a:hover { text-decoration: none; color: var(--navy); }
.nav a.active { color: var(--navy); }
.nav a.active::after, .nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brass); border-radius: 2px;
}
.nav .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.nav .btn::after { display: none; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #1d2f5c 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,137,46,0.35), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: #e5c777; }
.hero .lead { color: #d5dbe8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 1.6rem 1.7rem;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { padding: 0.55rem 0; border-top: 1px solid rgba(255,255,255,0.1); color: #dfe4ee; display: flex; gap: .7rem; align-items: baseline; }
.hero-card li:first-child { border-top: 0; }
.hero-card li::before { content: "◆"; color: var(--brass); font-size: .6rem; }

/* Page hero (interior) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: #e5c777; }
.page-hero .lead { color: #d5dbe8; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 70ch; margin-bottom: 2.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--brass-soft); color: var(--brass-dark);
  display: grid; place-items: center;
  font-size: 1.25rem; margin-bottom: 0.9rem;
}
.card-icon svg { width: 24px; height: 24px; }

/* Industries */
.industry { text-align: center; padding: 1.8rem 1rem; }
.industry .card-icon { margin: 0 auto 0.9rem; width: 56px; height: 56px; border-radius: 50%; }
.industry h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.industry p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-visual {
  background: var(--navy);
  border-radius: 16px;
  padding: 2.4rem;
  color: #fff;
  position: relative; overflow: hidden;
}
.split-visual::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,137,46,0.45), transparent 65%);
}
.stat { position: relative; z-index: 1; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.12); }
.stat:first-child { border-top: 0; padding-top: 0; }
.stat-num { font-family: "Fraunces", serif; font-size: 2.4rem; font-weight: 600; color: #e5c777; line-height: 1; }
.stat-label { color: #d5dbe8; font-size: .95rem; margin-top: .3rem; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; }
.checklist li::before {
  content: "✓"; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brass-soft); color: var(--brass-dark);
  font-weight: 700; font-size: .85rem;
  display: grid; place-items: center; margin-top: .15rem;
}

/* Service list (large) */
.service-list { display: grid; gap: 1rem; }
.service-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow);
}
.service-item .num {
  font-family: "Fraunces", serif; font-size: 1.6rem; color: var(--brass); font-weight: 600; line-height: 1;
  padding-top: .15rem;
}
.service-item h3 { margin-bottom: .3rem; font-size: 1.2rem; }
.service-item p { margin: 0; color: var(--muted); }

/* Quote / callout */
.callout {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.callout h2 { color: #fff; }
.callout p { color: #d5dbe8; }
.callout .actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }

/* Resources */
.resource {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; color: var(--ink); transition: border-color .15s, transform .15s;
}
.resource:hover { text-decoration: none; border-color: var(--brass); transform: translateY(-2px); }
.resource strong { display: block; color: var(--navy); font-size: 1.05rem; }
.resource span { color: var(--muted); font-size: .9rem; }
.resource .arrow { color: var(--brass); font-size: 1.3rem; flex-shrink: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.contact-detail { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-detail:first-of-type { border-top: 0; padding-top: 0; }
.contact-detail .card-icon { margin: 0; flex-shrink: 0; }
.contact-detail strong { display: block; color: var(--navy); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .15rem; }
.contact-detail a, .contact-detail span { font-size: 1.1rem; color: var(--ink); }
form.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.field input, .field textarea {
  font: inherit; padding: .8rem .95rem; border: 1px solid #cfd4dd; border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.field textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-status { font-weight: 600; color: var(--brass-dark); min-height: 1.4em; margin: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c2d3; padding: 3.5rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-family: "Source Sans 3", sans-serif; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #e2e7f0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-brand .brand-sub { color: #e5c777; }
.footer-brand p { margin-top: 1rem; max-width: 40ch; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .85rem; color: #8b95a8; }

/* Responsive */
@media (max-width: 1100px) and (min-width: 761px) {
  .nav { gap: 1rem; }
  .nav a { font-size: 0.88rem; }
  .brand-name { font-size: 1rem; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .callout, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .callout .actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar .tb-left { display: none; }
  .topbar .wrap { justify-content: center; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.2rem;
    box-shadow: var(--shadow);
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
  .grid-2, .grid-3, .grid-4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .service-item { grid-template-columns: 40px 1fr; padding: 1.2rem; }
}
