@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #16232E;
  --ink-soft: #24333F;
  --paper: #EFEAD9;
  --paper-dim: #E5DFC9;
  --accent: #E8A93E;
  --accent-dark: #C88B24;
  --brick: #A3402C;
  --line: #8FA3AF;
  --text: #232323;
  --text-on-ink: #EFEAD9;
  --text-muted-on-ink: #B7C3CB;

  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

p { margin: 0 0 1em; }

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

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--ink);
  color: var(--text-on-ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(143, 163, 175, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text-on-ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted-on-ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-on-ink);
  border-bottom-color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-on-ink);
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(143,163,175,0.35);
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(143,163,175,0.15);
    border-left: 2px solid transparent;
  }
  .nav-links a.active, .nav-links a:hover {
    border-bottom-color: rgba(143,163,175,0.15);
    border-left-color: var(--accent);
  }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile {
    display: block;
    margin: 14px 28px;
    text-align: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--text-on-ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(143,163,175,0.35);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143,163,175,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,163,175,0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 88px 28px 76px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  max-width: 14ch;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted-on-ink);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-outline {
  border-color: var(--line);
  color: var(--text-on-ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--text-on-ink); }

.hero-stats {
  border-left: 1px solid rgba(143,163,175,0.4);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--accent);
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted-on-ink);
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats {
    border-left: none;
    border-top: 1px solid rgba(143,163,175,0.4);
    padding-left: 0;
    padding-top: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 76px 0;
  border-bottom: 1px solid rgba(143,163,175,0.3);
}

.section-dark {
  background: var(--ink);
  color: var(--text-on-ink);
}

.section-alt {
  background: var(--paper-dim);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head .eyebrow-ink {
  color: var(--brick);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 20ch;
}

.section-head p {
  max-width: 40ch;
  color: #4b4b48;
  margin: 0;
}

.section-dark .section-head p { color: var(--text-muted-on-ink); }

/* ---------- Service / category cards ---------- */

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

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--paper);
  border: 1px solid rgba(35,35,35,0.12);
  padding: 28px 24px;
  position: relative;
}

.section-alt .service-card { background: var(--paper); }

.tick {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--brick);
}
.tick.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.tick.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: #4b4b48;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--brick);
}

/* ---------- Placeholder photo block ---------- */

.photo-block {
  background:
    repeating-linear-gradient(135deg, rgba(35,35,35,0.06) 0 2px, transparent 2px 14px),
    var(--paper-dim);
  border: 1.5px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #5c5c58;
  font-size: 0.82rem;
  padding: 20px;
  min-height: 200px;
}

.section-dark .photo-block {
  background:
    repeating-linear-gradient(135deg, rgba(239,234,217,0.06) 0 2px, transparent 2px 14px),
    var(--ink-soft);
  color: var(--text-muted-on-ink);
  border-color: rgba(143,163,175,0.5);
}

.photo-block strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.section-dark .photo-block strong { color: var(--text-on-ink); }

/* ---------- Project cards (portfolio) ---------- */

.project-card {
  background: var(--paper);
  border: 1px solid rgba(35,35,35,0.12);
  overflow: hidden;
  position: relative;
}

.project-card .photo-block { min-height: 180px; }

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--paper-dim);
}

/* ---------- Slideshow ---------- */

.slideshow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(35,35,35,0.15);
  background: var(--ink);
  aspect-ratio: 16 / 9;
}

.slideshow-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 28px 22px;
  background: linear-gradient(to top, rgba(22,35,46,0.92), rgba(22,35,46,0));
  color: var(--text-on-ink);
}

.slide-caption h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.slide-caption p {
  font-size: 0.9rem;
  color: var(--text-muted-on-ink);
  margin: 0;
  max-width: 52ch;
}

.slide-caption .tag {
  margin-bottom: 8px;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(239,234,217,0.5);
  background: rgba(22,35,46,0.55);
  color: var(--text-on-ink);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-nav:hover { background: rgba(22,35,46,0.85); }
.slide-nav.prev { left: 16px; }
.slide-nav.next { right: 16px; }

.slide-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(22,35,46,0.6);
  color: var(--text-on-ink);
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 3px;
  font-family: var(--font-head);
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(35,35,35,0.25);
  cursor: pointer;
  padding: 0;
}

.slide-dot.active { background: var(--brick); }

@media (max-width: 600px) {
  .slideshow { aspect-ratio: 4 / 3; }
  .slide-nav { width: 36px; height: 36px; }
}

.project-body {
  padding: 20px 22px 24px;
}

.tag {
  display: inline-block;
  background: var(--brick);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.project-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.project-body p {
  color: #4b4b48;
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* ---------- Filter tabs ---------- */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(35,35,35,0.25);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-on-ink);
}

/* ---------- Testimonial ---------- */

.testimonial {
  max-width: 62ch;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

.testimonial cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted-on-ink);
  margin-top: 16px;
  font-weight: 400;
}

/* ---------- Contact ---------- */

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

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

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.info-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(35,35,35,0.12);
  display: flex;
  gap: 16px;
}

.info-list .label {
  font-weight: 600;
  min-width: 110px;
  color: var(--brick);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding-top: 2px;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(35,35,35,0.25);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 3px;
}

.field textarea { resize: vertical; min-height: 110px; }

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

.form-note {
  font-size: 0.82rem;
  color: #5c5c58;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--text-muted-on-ink);
  padding: 44px 0 28px;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-brand {
  font-family: var(--font-head);
  color: var(--text-on-ink);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
}

.footer-links a { text-decoration: none; color: var(--text-muted-on-ink); }
.footer-links a:hover { color: var(--text-on-ink); }

.footer-bottom {
  border-top: 1px solid rgba(143,163,175,0.25);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(143,163,175,0.35);
}

.page-header .eyebrow { margin-bottom: 12px; }

.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  max-width: 20ch;
}

.page-header p {
  color: var(--text-muted-on-ink);
  max-width: 50ch;
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---------- Utility ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
