:root {
  --bg: #f5f1ea;
  --bg-alt: #ece6da;
  --ink: #0f1b2d;
  --ink-soft: #3c4759;
  --muted: #6b7280;
  --accent: #c2410c;
  --line: #d8d1c1;
  --card: #fbf8f2;
  --focus: #c2410c;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}

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

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

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .brand { font-size: 1rem; }
  .brand-mark { font-size: 0.95rem; }
}

.brand-mark {
  color: var(--accent);
  font-size: 1.1rem;
  transform: translateY(-1px);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

/* --- Typography / Shared --- */
.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

h2 em {
  font-style: italic;
  color: var(--accent);
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section-title {
  margin-bottom: 2.5rem;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

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

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Hero (home) --- */
.hero {
  padding: 80px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 30px 60px -20px rgba(15, 27, 45, 0.25);
  filter: saturate(0.9);
}

/* --- Page hero (inner pages) --- */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 16ch;
}

/* --- Services / cards --- */
.services {
  padding: 100px 0;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(15, 27, 45, 0.18);
}

.card-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

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

/* --- Stats --- */
.stats {
  padding: 60px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.divider {
  width: 1px;
  height: 40px;
  background: var(--line);
}

/* --- CTA section --- */
.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-inner p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

/* --- About page --- */
.about-image {
  padding: 40px 0 0;
}

.about-image img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.9);
}

.content-section {
  padding: 100px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.two-col p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.team {
  padding: 0 0 100px;
}

.person {
  padding: 8px 0;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.person .role {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.person > p:last-child {
  color: var(--ink-soft);
  margin: 0;
}

.values {
  padding: 0 0 120px;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
  max-width: 900px;
}

.values-list li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.values-list strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

/* --- Contact page --- */
.contact-section {
  padding: 80px 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.info-list {
  margin: 0;
}

.info-list dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 1.5rem;
}

.info-list dt:first-child { margin-top: 0; }

.info-list dd {
  margin: 6px 0 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.info-list a {
  border-bottom: 1px solid var(--line);
}

.info-list a:hover {
  border-color: var(--accent);
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
}

.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.error-msg {
  display: block;
  color: #b91c1c;
  font-size: 0.85rem;
  margin-top: 6px;
  min-height: 1em;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #b91c1c;
}

.success-msg {
  margin-top: 16px;
  padding: 14px 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #065f46;
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-alt);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .services,
  .content-section,
  .cta-section {
    padding: 72px 0;
  }

  .contact-form {
    padding: 28px;
  }

  .divider { display: none; }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    transition: transform .3s ease;
  }

  .nav.open { transform: translateY(0); }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --- Page entrance animation --- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text > *,
.page-hero > .container > * {
  animation: riseIn .7s ease both;
}

.hero-text > *:nth-child(1), .page-hero > .container > *:nth-child(1) { animation-delay: .05s; }
.hero-text > *:nth-child(2), .page-hero > .container > *:nth-child(2) { animation-delay: .15s; }
.hero-text > *:nth-child(3), .page-hero > .container > *:nth-child(3) { animation-delay: .25s; }
.hero-text > *:nth-child(4)                                          { animation-delay: .35s; }

.hero-image {
  animation: riseIn .9s ease .2s both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
