:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f2;
  --ink: #1a1a1a;
  --muted: #555555;
  --line: #d8d8d4;
  --accent: #2f3a44;
  --footer: #1e252b;
  --max: 1100px;
  --gap: 1.25rem;
  --font: "Source Sans 3", "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / nav — simple like Claremont */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand span span {
  font-weight: 400;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem 0 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.55rem 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-nav:not([hidden]) {
  display: block;
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }
}

/* Hero brand block */
.hero {
  padding: 2.75rem 0 1.5rem;
  text-align: center;
}

.hero-logo {
  width: min(220px, 55vw);
  margin: 0 auto 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .tagline {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.5rem 0 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-title {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.section-lead {
  max-width: 40rem;
  margin: -0.5rem auto 1.75rem;
  text-align: center;
  color: var(--muted);
}

/* Project grid — Claremont style */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

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

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

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  text-decoration: none;
}

.project-card figure {
  margin: 0;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd;
  transition: opacity 0.25s ease;
}

.project-card:hover img {
  opacity: 0.88;
}

.project-card figcaption {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.project-card figcaption span {
  font-weight: 400;
  color: var(--muted);
}

/* Simple lists */
.two-col,
.three-col {
  display: grid;
  gap: 0.65rem 2rem;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }
}

.link-list a {
  display: block;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.prose {
  max-width: 46rem;
  margin-inline: auto;
  color: var(--muted);
}

.prose p + p {
  margin-top: 1rem;
}

.prose-wide {
  max-width: 52rem;
}

.job-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 1.25rem 0 2rem;
}

@media (max-width: 900px) {
  .job-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .job-gallery {
    grid-template-columns: 1fr;
  }
}

.job-gallery figure {
  margin: 0;
}

.job-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #ddd;
}

.includes {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.includes li {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1.1fr;
}

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

.contact-grid p {
  color: var(--muted);
}

.contact-grid .email-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
}

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

button[type="submit"],
.btn {
  display: inline-block;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

button[type="submit"]:hover,
.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

#quote-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

#quote-status[data-state="ok"] {
  color: #1f6b3a;
}

#quote-status[data-state="error"] {
  color: #9b1c1c;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Inner pages */
.page-main {
  padding: 2rem 0 3.5rem;
}

.breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.page-main h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}

.page-main h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

/* Footer — Claremont style bar */
.site-footer {
  background: var(--footer);
  color: #f2f2f0;
  margin-top: 2rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: #f2f2f0;
}

.footer-left {
  justify-self: start;
}

.footer-center {
  justify-self: center;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-right {
  justify-self: end;
  text-align: right;
}

.footer-links {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0 1.75rem;
}

.footer-links .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 0;
}

.footer-links h2 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  padding: 0 0 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 800px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    justify-self: center;
    text-align: center;
  }

  .footer-links .wrap {
    grid-template-columns: 1fr;
  }
}
