/* ===========================================================================
   AOPA Solutions — styling derived from the wordmark logo:
   near-black ink on a warm cream paper, an elegant high-contrast serif for
   display type, a clean sans for everything else, and a recurring "dot" accent.
   =========================================================================== */

:root {
  --cream: #f4f0e6;
  --cream-deep: #ece6d6;
  --ink: #161412;
  --ink-soft: #3a3733;
  --muted: #6f6a60;
  --line: #d8d1c0;
  --accent: #161412; /* the wordmark is monochrome; the "dot" is the accent */
  --white: #fffdf8;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1120px;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

em {
  font-style: italic;
}

a {
  color: var(--ink);
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ---------------------------- Brand wordmark ---------------------------- */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.brand-mark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  color: var(--ink);
}

.brand-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------------------------- Header / nav ---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 230, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  color: var(--ink) !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--cream) !important;
}

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ---------------------------- Hero ---------------------------- */
.hero {
  padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  max-width: 14ch;
}

.hero .lede {
  max-width: 56ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  margin: 1.5rem 0 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------------------------- Section heads ---------------------------- */
.section-head {
  max-width: 40ch;
  margin-bottom: 3rem;
}

.section-head h2,
.about h2,
.contact h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
}

/* ---------------------------- Services ---------------------------- */
.services {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

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

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(22, 20, 18, 0.45);
}

.service-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
  display: block;
  margin-bottom: 1.5rem;
}

.service-num::after {
  content: '.';
  color: var(--ink);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.service-card p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

.service-link {
  margin-top: auto;
  padding-top: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.service-link:hover {
  text-decoration: underline;
}

/* ---------------------------- About ---------------------------- */
.about {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-copy p {
  max-width: 52ch;
  color: var(--ink-soft);
}

.about-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.about-stats li {
  border-left: 2px solid var(--ink);
  padding-left: 1.25rem;
}

.about-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.about-stats span {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------------------------- Contact ---------------------------- */
.contact {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info p {
  max-width: 42ch;
  color: var(--ink-soft);
}

.office {
  font-style: normal;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  line-height: 1.8;
  color: var(--ink-soft);
}

.office strong {
  color: var(--ink);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22, 20, 18, 0.08);
}

.field textarea {
  resize: vertical;
}

/* Honeypot — visually hidden but reachable by bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}

.form-status.is-error {
  color: #9a2b2b;
}

.form-status.is-success {
  color: #1f6b34;
}

/* ---------------------------- Footer ---------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 0;
}

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

.brand--footer,
.brand--footer .brand-mark,
.brand--footer .brand-dot {
  color: var(--cream);
}

.brand--footer .brand-sub {
  color: var(--cream);
  opacity: 0.8;
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.75;
}

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 880px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 1.1rem;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .brand-mark {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
