﻿:root {
  --sand: #e2ded3;
  --pine: #1f231f;
  --rust: #8a5b3d;
  --sage: #4f5b52;
  --cream: #f5f3ed;
  --ink: #131313;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--pine);
  background: #f9f7f1;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sage);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--rust);
}

.site-header {
  background: var(--sand);
  border-bottom: 1px solid rgba(19, 19, 19, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.container-wide,
.container-narrow {
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
}

.container-wide {
  max-width: 1200px;
}

.container-narrow {
  max-width: 900px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-lockup img {
  width: 72px;
  height: auto;
}

.brand-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: #5a5a5a;
}

.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

.primary-nav a {
  color: var(--pine);
}

.primary-nav .btn {
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(19, 19, 19, 0.2);
  background: transparent;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.hero {
  background: linear-gradient(135deg, var(--sand), #f9f3e2 60%, #ffffff);
  padding-top: clamp(4rem, 9vw, 6rem);
  padding-bottom: clamp(4rem, 9vw, 6rem);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Roboto Slab', 'Times New Roman', serif;
  color: var(--ink);
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.lead {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.supporting {
  max-width: 680px;
  margin-bottom: 2rem;
}

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

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.detail-callout,
.credential-card {
  background: #fff;
  border: 1px solid rgba(19, 19, 19, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.detail-callout ul,
.credential-card ul {
  padding-left: 1.1rem;
  margin: 0;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7a7a7a;
  margin-bottom: 0.8rem;
}

.focus {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid rgba(19, 19, 19, 0.06);
  min-height: 220px;
}

.feature-number {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--rust);
  margin-bottom: 0.3rem;
}

.approach {
  background: #f0ece4;
}

.text-block {
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portfolio .muted {
  color: #7a7a7a;
  font-style: italic;
}

.project-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.project-card {
  position: relative;
  background: linear-gradient(160deg, #fff, #f3efea);
  border: 1px solid rgba(19, 19, 19, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(143, 108, 80, 0.35), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.project-card h3 {
  margin-bottom: 0.4rem;
}

.project-card p,
.project-card ul {
  position: relative;
  z-index: 1;
}

.project-card ul {
  padding-left: 1rem;
  margin: 0.6rem 0 0;
}

.project-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.location {
  background: #fff;
}

.cta-block {
  background: var(--sage);
  color: #fff;
  text-align: center;
}

.cta-block h2 {
  color: #fff;
}

.contact {
  background: #f7f3eb;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.contact-highlights {
  padding-left: 1.2rem;
}

.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(11, 11, 11, 0.08);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-field label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field textarea {
  border: 1px solid rgba(19, 19, 19, 0.2);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(138, 91, 61, 0.4);
  background: #fff;
}

.form-field.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-accent {
  background: var(--rust);
  color: #fff;
}

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

.btn-dark {
  background: #1d1c1a;
  color: #fff;
}

.btn-full {
  width: 100%;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: var(--sage);
}

.site-footer {
  background: #161513;
  color: #d8d8d1;
  text-align: center;
  padding: 2.5rem 1rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.is-visible {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  max-width: 420px;
  width: calc(100% - 2rem);
  z-index: 1;
}

.modal-dialog.success .modal-title {
  color: var(--sage);
}

.modal-dialog.error .modal-title {
  color: #b03a2e;
}

.modal-title {
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.modal-message {
  margin: 0;
  color: var(--pine);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  color: var(--pine);
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(19, 19, 19, 0.1);
    display: none;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header .container-wide {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .brand-lockup img {
    width: 56px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .section {
    padding: 2.5rem 0;
  }
}
