:root {
  --terracotta: #C4714F;
  --terracotta-light: #E8A98A;
  --olive: #6B7A42;
  --olive-light: #A3B47A;
  --ivory: #F8F4EE;
  --ivory-dark: #EDE7DC;
  --dark: #2A2318;
  --text: #3D3327;
  --mid: #8C7F6E;
  --border: #DDD5C5;
  --white: #FFFFFF;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --max-w: 1100px;
  --max-w-narrow: 720px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
}

/* ─── TYPOGRAPHY ──────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { max-width: 68ch; }

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s;
}

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

strong { font-weight: 600; }
em { font-style: italic; }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ─── LAYOUT ──────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
section + section { padding-top: 0; }

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

.section-header .label {
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── NAVIGATION ──────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 238, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--dark);
  font-weight: normal;
  letter-spacing: 0.02em;
}

.site-logo span {
  color: var(--terracotta);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--mid);
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
}

.nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--dark) !important;
  color: var(--white) !important;
}

/* ─── HERO ────────────────────────────────────────────── */

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 0;
}

.hero-content .label { margin-bottom: 1.5rem; }

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--mid);
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

.hero-img {
  position: relative;
  overflow: hidden;
}

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

.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,113,79,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── BUTTONS ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}

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

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

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

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-ghost {
  color: var(--terracotta);
  padding: 0;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--terracotta);
  border-radius: 0;
  padding-bottom: 2px;
}

.btn-ghost:hover {
  color: var(--dark);
  border-color: var(--dark);
}

/* ─── CARDS ───────────────────────────────────────────── */

.card-grid {
  display: grid;
  gap: 2rem;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42,35,24,0.1);
}

.project-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.project-card:hover .project-card-img img {
  transform: scale(1.03);
}

.project-card-body {
  padding: 1.5rem;
}

.project-card-body .label {
  margin-bottom: 0.5rem;
}

.project-card-body h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.project-card-body p {
  font-size: 0.9rem;
  color: var(--mid);
  max-width: none;
}

/* ─── BLOG CARDS ──────────────────────────────────────── */

.blog-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.blog-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.blog-card-body .label {
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  margin-bottom: 0.75rem;
}

.blog-card-body p {
  color: var(--mid);
  font-size: 0.9rem;
  max-width: none;
  margin-bottom: 1rem;
}

/* ─── SERVICES STRIP ──────────────────────────────────── */

.services-strip {
  background: var(--dark);
  color: var(--ivory);
  padding: 5rem 0;
}

.services-strip h2 {
  color: var(--ivory);
}

.services-strip .label {
  color: var(--terracotta-light);
}

.services-strip p {
  color: var(--ivory-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-item {
  border-top: 2px solid var(--terracotta);
  padding-top: 1.5rem;
}

.service-item h3 {
  color: var(--ivory);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-item p {
  font-size: 0.875rem;
  color: #B0A898;
  max-width: none;
}

/* ─── ABOUT STRIP ─────────────────────────────────────── */

.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-strip img {
  width: 100%;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-strip-text .label {
  margin-bottom: 1rem;
}

.about-strip-text h2 {
  margin-bottom: 1.5rem;
}

.about-strip-text p {
  color: var(--mid);
  margin-bottom: 1rem;
  max-width: none;
}

/* ─── STATS ───────────────────────────────────────────── */

.stats-row {
  display: flex;
  gap: 4rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-item {}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--terracotta);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── PAGE HEADER ─────────────────────────────────────── */

.page-header {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-header .label { margin-bottom: 1rem; }
.page-header h1 { margin-bottom: 1rem; }
.page-header p {
  color: var(--mid);
  font-size: 1.1rem;
}

/* ─── PROJECT DETAIL ──────────────────────────────────── */

.project-hero-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  display: block;
}

.project-meta-bar {
  display: flex;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.meta-item {}

.meta-item .label { margin-bottom: 0.25rem; }
.meta-item strong { font-size: 0.95rem; color: var(--dark); }

.project-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  padding: 4rem 0;
}

.project-body-text h2 {
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
}

.project-body-text h2:first-child { margin-top: 0; }

.project-body-text p {
  color: var(--mid);
  margin-bottom: 1rem;
  max-width: none;
}

.project-sidebar {}

.project-sidebar h4 {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid);
}

.detail-list {
  list-style: none;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.detail-list li:last-child { border-bottom: none; }

.detail-list li span:first-child { color: var(--mid); }
.detail-list li span:last-child { color: var(--dark); font-weight: 500; }

/* ─── BLOG POST ───────────────────────────────────────── */

.post-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.post-header .label { margin-bottom: 1rem; }
.post-header h1 { margin-bottom: 1.25rem; }
.post-header .post-meta { color: var(--mid); font-size: 0.9rem; }

.post-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
  margin: 3rem 0;
}

.post-body {
  max-width: 680px;
}

.post-body p {
  color: var(--mid);
  margin-bottom: 1.25rem;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-body h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--mid);
}

.post-body li {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-body blockquote {
  border-left: 3px solid var(--terracotta);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--ivory-dark);
  color: var(--text);
  font-style: italic;
  font-size: 1.1rem;
}

.post-body blockquote p {
  color: var(--text);
  font-size: inherit;
}

/* ─── CONTACT ─────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 4rem 0;
}

.contact-form-group {
  margin-bottom: 1.5rem;
}

.contact-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 1rem;
  border-radius: 2px;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
  border-color: var(--terracotta);
}

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

/* ─── FOOTER ──────────────────────────────────────────── */

.site-footer {
  background: var(--dark);
  color: var(--ivory-dark);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-logo {
  color: var(--ivory);
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #8C8378;
  max-width: 28ch;
}

.footer-col h4 {
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: #8C8378;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--ivory); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #6C6358;
}

/* ─── UTILITIES ───────────────────────────────────────── */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-mid { color: var(--mid); }
.text-dark { color: var(--dark); }
.text-sm { font-size: 0.875rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.bg-ivory-dark {
  background: var(--ivory-dark);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 4rem 0 2rem; }
  .hero-img { height: 320px; }

  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-strip { grid-template-columns: 1fr; gap: 2rem; }
  .about-strip img { aspect-ratio: 16/9; }

  .project-body { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .blog-card { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: 1.5rem; }
  .project-meta-bar { flex-wrap: wrap; gap: 1.5rem; }
}
