/* ---------- Base / variables ---------- */
:root {
  --brand-dark: #161616;
  --brand-darker: #000000;
  --red: #8c1d18;
  --red-bright: #bf0a30;
  --cream: #f7f1e3;
  --tan: #e9dfc7;
  --text: #26221a;
  --muted: #5c584e;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

p { margin: 0 0 1em; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

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

/* ---------- Top banner ---------- */
.site-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-dark);
  border-bottom: 4px solid var(--red);
  box-shadow: var(--shadow);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand .brand-name {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.brand .brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tan);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--tan);
  border-radius: 6px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

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

.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  text-decoration: none;
}

.main-nav a.current {
  background: rgba(191, 10, 48, 0.2);
  border-color: var(--red-bright);
}

.main-nav a.nav-cta {
  margin-left: 6px;
  color: var(--red-bright);
  border-color: rgba(191, 10, 48, 0.55);
  background: rgba(191, 10, 48, 0.08);
}

.main-nav a.nav-cta:hover {
  background: rgba(191, 10, 48, 0.18);
  border-color: var(--red-bright);
  color: var(--red-bright);
}

.main-nav a.nav-cta.current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--brand-darker);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open { max-height: 320px; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav li {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .main-nav a {
    display: block;
    padding: 14px 24px;
    border-radius: 0;
    border: none;
    background: transparent;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: transparent;
  }

  .main-nav a.current {
    background: rgba(191, 10, 48, 0.16);
    border-color: transparent;
    box-shadow: inset 3px 0 0 var(--red-bright);
  }

  .main-nav a.nav-cta {
    margin-left: 0;
    border-color: transparent;
    background: transparent;
  }

  .main-nav a.nav-cta:hover {
    background: rgba(191, 10, 48, 0.12);
    border-color: transparent;
  }

  .main-nav a.nav-cta.current {
    background: rgba(191, 10, 48, 0.16);
    border-color: transparent;
    box-shadow: inset 3px 0 0 var(--red-bright);
    color: var(--white);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--tan);
}

.btn-outline:hover {
  background: var(--tan);
  color: var(--brand-dark);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-darker) 100%);
  color: var(--white);
  padding: 96px 0 110px;
  text-align: center;
  position: relative;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 780px;
  margin: 0 auto 0.4em;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 2em;
  color: var(--tan);
  font-size: 1.15rem;
}

.hero .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--tan);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 2px;
  height: 24px;
  background: var(--tan);
  margin: 8px auto 0;
  animation: scrollpulse 1.6s infinite;
}

@keyframes scrollpulse {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}

/* ---------- Section framing ---------- */
section.page-section {
  padding: 84px 0;
}

section.page-section.alt {
  background: var(--cream);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ---------- Contract history ---------- */
.history-banner {
  border: 3px solid var(--brand-dark);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  margin-bottom: 24px;
}

.history-banner-title {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-dark);
  margin-bottom: 24px;
}

.history-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

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

.history-card {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.history-card .tag {
  display: inline-block;
  background: var(--brand-dark);
  color: var(--white);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.history-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.history-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

.milestones {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

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

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

.milestone {
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.milestone strong { display: block; color: var(--brand-dark); margin-bottom: 4px; }
.milestone span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.team-card .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 18px;
  border: 3px solid var(--red);
}

.team-card h3 { margin-bottom: 0.15em; }
.team-card .role {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: block;
}

.team-card ul {
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.team-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.team-preview .team-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--brand-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info-card h3 { color: var(--white); }

.contact-info-card dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

.contact-info-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tan);
}

.contact-info-card dd {
  margin: 2px 0 0;
  font-size: 1.02rem;
}

.contact-info-card .placeholder-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.82rem;
  color: var(--tan);
  opacity: 0.85;
}

form.contact-form {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfc7ae;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

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

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--brand-dark);
  display: none;
}

.form-status.visible { display: block; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--brand-darker);
  color: var(--tan);
  padding: 40px 0;
  font-size: 0.88rem;
}

footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer a { color: var(--white); }
