/* ===========================================================
   Meszaros Administrative Solutions — site stylesheet
   =========================================================== */

:root {
  --navy: #16324a;
  --navy-dark: #0d2135;
  --cream: #faf6ef;
  --cream-dark: #f1ead9;
  --charcoal: #262a2e;
  --slate: #5b6470;
  --line: #e2dbc9;
  --brass: #b8863c;
  --brass-dark: #96682a;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(13, 33, 53, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); }
a:hover { color: var(--brass-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo svg {
  height: 42px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  color: var(--white);
  font-size: 1rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--brass);
}

.main-nav .nav-cta {
  background: var(--brass);
  color: var(--navy-dark);
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  border-bottom: none;
}

.main-nav .nav-cta:hover {
  background: #cf9a4c;
  color: var(--navy-dark);
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
  }
  .main-nav.open { display: block; }
  .nav-wrap { flex-wrap: wrap; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1rem 0 0.5rem;
    width: 100%;
  }
  .main-nav .nav-cta { margin-top: 0.5rem; }
}

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

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--cream);
  padding: 5rem 0 4.5rem;
}

.hero .container { max-width: 780px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 1rem;
  display: block;
}

.hero h1 { color: var(--white); }

.hero p.lede {
  font-size: 1.15rem;
  color: rgba(250,246,239,0.85);
  max-width: 620px;
}

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--brass);
  color: var(--navy-dark);
}
.btn-primary:hover { background: #cf9a4c; color: var(--navy-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250,246,239,0.4);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--white); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-dark); color: var(--white); }

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

section { padding: 4rem 0; }
section.alt { background: var(--cream-dark); }
section.navy-block { background: var(--navy); color: var(--cream); }
section.navy-block h2 { color: var(--white); }

.section-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

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

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.card .tier-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  background: rgba(184,134,60,0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.8rem;
}

.card ul { padding-left: 1.1rem; margin: 0.8rem 0 0; }
.card li { margin-bottom: 0.4rem; }

.card .price-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--slate);
  font-style: italic;
}

/* ---------- Author / avatar ---------- */

.author-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.avatar-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  font-weight: 700;
  border: 3px solid var(--brass);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Stat tiles ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

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

.stat-tile .stat-number {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-tile .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250,246,239,0.75);
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

.step { position: relative; padding-left: 3rem; }

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--brass);
  color: var(--navy-dark);
  font-weight: 700;
  font-family: "Fraunces", serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Tables (service matrix) ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

table.matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 820px;
  font-size: 0.92rem;
}

table.matrix caption { display: none; }

table.matrix th, table.matrix td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.matrix thead th {
  background: var(--navy);
  color: var(--white);
  font-family: "Fraunces", serif;
  font-weight: 600;
  position: sticky;
  top: 0;
}

table.matrix tbody tr:nth-child(even) { background: var(--cream-dark); }

table.matrix td:first-child, table.matrix th:first-child {
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Pricing table ---------- */

table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

table.pricing th, table.pricing td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.pricing thead th {
  background: var(--navy);
  color: var(--white);
  font-family: "Fraunces", serif;
}

table.pricing tr:last-child td { border-bottom: none; }

/* ---------- Callout / audit box ---------- */

.callout {
  background: var(--brass);
  color: var(--navy-dark);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.callout h3 { color: var(--navy-dark); margin-bottom: 0.3rem; }
.callout p { margin: 0; }

/* ---------- Lists w/ marks ---------- */

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brass-dark);
  font-weight: 700;
}

/* ---------- Blog / insights ---------- */

.post-list { display: grid; gap: 1.5rem; }

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.post-meta {
  font-size: 0.8rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.post-card h3 a { text-decoration: none; }

article.post {
  max-width: 720px;
  margin: 0 auto;
}

article.post h1 { margin-bottom: 0.4rem; }

.post-body h2 { margin-top: 2rem; }
.post-body ul { padding-left: 1.3rem; }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Forms ---------- */

form.contact-form {
  display: grid;
  gap: 1.2rem;
  max-width: 640px;
}

.form-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

label {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--charcoal);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

textarea { resize: vertical; min-height: 140px; }

.form-note { font-size: 0.85rem; color: var(--slate); }

#form-status {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 0;
}

/* ---------- Contact info block ---------- */

.contact-info { display: grid; gap: 1.5rem; }
.contact-info dt {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-info dd { margin: 0.2rem 0 0; }

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

.site-footer {
  background: var(--navy-dark);
  color: rgba(250,246,239,0.75);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.site-footer a { color: rgba(250,246,239,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(250,246,239,0.15);
  padding-top: 1.2rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.88rem; color: var(--slate); }
