:root {
  --paper: #f6f4ee;
  --ink: #1e2522;
  --muted: #66706b;
  --panel: #ffffff;
  --line: #d7ddd4;
  --accent: #6e7f47;
  --accent-strong: #263424;
  --clay: #b45f43;
  --blue: #4f7d91;
  --shadow: 0 20px 50px rgba(20, 28, 24, .12);
  --radius: 6px;
  --display: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", Aptos, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.public-header,
.public-footer {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
}
.public-header {
  background: rgba(246, 244, 238, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.public-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 56px;
}
.brand,
.admin-brand {
  font-family: var(--display);
  font-size: 1.25rem;
}
.public-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: .95rem;
}
.public-header nav a {
  white-space: nowrap;
}
.public-header nav a:hover,
.public-footer a:hover {
  color: var(--accent-strong);
}
.home-page,
.project-detail,
.not-found {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px clamp(18px, 4vw, 56px);
}
.hero,
.project-hero {
  align-items: end;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  min-height: calc(100vh - 130px);
}
.hero h1,
.project-hero h1,
.section-heading h2,
.admin-heading h1,
.login-panel h1 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.02;
  margin: 0;
}
.hero h1,
.project-hero h1 {
  font-size: clamp(3rem, 8vw, 7.4rem);
  overflow-wrap: anywhere;
}
.hero p,
.project-hero p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 660px;
}
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.trust-line {
  border-left: 3px solid var(--clay);
  color: var(--accent-strong) !important;
  font-size: .95rem !important;
  font-weight: 700;
  margin-top: 18px;
  padding-left: 12px;
}
.hero img,
.project-hero img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: min(72vh, 760px);
  object-fit: cover;
  width: 100%;
}
.eyebrow {
  color: var(--clay);
  font-size: .78rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.button-link,
button {
  align-items: center;
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 16px;
}
.button-link.secondary {
  background: transparent;
  color: var(--accent-strong);
}
.button-link:hover,
button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.button-link.secondary:hover {
  background: rgba(38, 52, 36, .08);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}
.services-section,
.process-section,
.trust-section,
.testimonial-section,
.areas-section,
.faq-section,
.contact-section {
  padding-top: 72px;
}
.project-index {
  padding-top: 72px;
}
.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-heading.compact {
  align-items: flex-start;
  display: block;
  max-width: 760px;
}
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  max-width: 700px;
}
.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 360px;
  margin: 0;
}
.service-grid,
.process-grid,
.trust-grid,
.faq-grid,
.story-grid,
.contact-detail-grid {
  display: grid;
  gap: 16px;
}
.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service-card,
.process-grid article,
.trust-grid article,
.faq-grid article,
.story-grid article,
.contact-detail-grid article,
.testimonial-section,
.areas-section,
.quote-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.service-card span,
.process-grid span,
.story-grid span {
  color: var(--clay);
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.service-card h3,
.process-grid h3,
.trust-grid h3,
.faq-grid h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 10px;
}
.service-card p,
.process-grid p,
.trust-grid p,
.faq-grid p,
.testimonial-section p,
.areas-section p,
.quote-form p,
.story-grid p,
.contact-detail-grid p {
  color: var(--muted);
  margin: 0;
}
.process-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.trust-section {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}
.trust-section h2,
.areas-section h2,
.contact-section h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  margin: 0;
}
.trust-grid,
.faq-grid,
.story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.testimonial-section,
.areas-section {
  display: grid;
  gap: 14px;
}
.contact-section {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
}
.contact-section > div > p {
  color: var(--muted);
  max-width: 640px;
}
.contact-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 0;
}
.contact-detail-grid article {
  display: grid;
  gap: 6px;
}
.contact-detail-grid span {
  color: var(--clay);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.contact-detail-grid strong {
  color: var(--accent-strong);
  line-height: 1.2;
}
.quote-form {
  display: grid;
  gap: 13px;
}
.quote-form button {
  justify-content: center;
}
.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-card {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 14px;
}
.project-card:hover h3 {
  color: var(--clay);
}
.project-card img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}
.project-card span,
.project-card p,
.back-link {
  color: var(--muted);
}
.project-card h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0;
}
.project-card p {
  margin: 0;
}
.project-story {
  margin-top: 52px;
}
.media-heading {
  margin-top: 52px;
}
.media-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}
.media-grid figure,
.media-admin-grid figure,
.media-strip figure {
  margin: 0;
}
.media-grid img,
.media-grid video,
.media-admin-grid img,
.media-admin-grid video {
  aspect-ratio: 4 / 3;
  background: #18201d;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}
figcaption {
  color: var(--muted);
  font-size: .9rem;
  padding-top: 8px;
}
figcaption span {
  color: var(--clay);
  display: block;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-shell {
  background:
    linear-gradient(135deg, rgba(80, 125, 145, .20), transparent 38%),
    var(--paper);
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  padding: 30px;
  width: 100%;
}
.login-panel h1 {
  font-size: 2.5rem;
  margin-bottom: 22px;
}
.login-panel form,
.edit-form {
  display: grid;
  gap: 14px;
}
label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: .9rem;
  font-weight: 700;
}
input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}
textarea { resize: vertical; }

.admin-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-nav {
  background: #202823;
  color: #eef3ec;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-nav a,
.admin-nav button {
  border-radius: var(--radius);
  color: #dbe3d9;
  padding: 10px 12px;
  text-align: left;
}
.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}
.admin-nav form {
  margin-top: auto;
}
.admin-nav button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  width: 100%;
}
.admin-main {
  padding: 28px clamp(20px, 4vw, 44px);
}
.admin-heading {
  margin-bottom: 22px;
}
.admin-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}
.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}
.metric-grid article,
.admin-panel,
.status {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.metric-grid span {
  color: var(--muted);
  display: block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}
.metric-grid strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  margin-top: 6px;
}
.admin-panel h2 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0 0 14px;
}
.table-list {
  display: grid;
}
.table-list a {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 0;
}
.table-list a:first-child {
  border-top: 0;
}
.table-list small {
  color: var(--muted);
}
.edit-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
  max-width: 980px;
  padding: 16px;
}
.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.check-row label {
  align-items: center;
  display: flex;
  font-weight: 600;
}
.check-row input {
  min-height: auto;
  width: auto;
}
.media-strip,
.media-admin-grid {
  display: grid;
  gap: 12px;
}
.media-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.media-strip img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}
.media-admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.media-admin-grid figcaption strong,
.media-admin-grid figcaption span {
  display: block;
}
.status.error {
  border-color: #d89a8b;
  color: #8a321f;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 104px;
  }
  .public-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 14px;
  }
  .public-header nav {
    flex-wrap: nowrap;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    padding: 0 0 4px;
    scrollbar-width: thin;
  }
  .public-header nav a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 10px;
  }
  .home-page,
  .project-detail,
  .not-found {
    padding-top: 22px;
  }
  .hero,
  .project-hero,
  .admin-shell,
  .trust-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .hero,
  .project-hero {
    align-items: start;
    gap: 24px;
    min-height: auto;
  }
  .hero img,
  .project-hero img {
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: 430px;
  }
  .project-grid,
  .media-grid,
  .metric-grid,
  .media-admin-grid,
  .service-grid,
  .process-grid,
  .trust-grid,
  .faq-grid,
  .story-grid,
  .contact-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-nav {
    height: auto;
    position: static;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 118px;
  }
  .public-header,
  .public-footer,
  .section-heading,
  .table-list a {
    align-items: flex-start;
    flex-direction: column;
  }
  .public-header {
    gap: 8px;
    padding: 12px 14px;
  }
  .brand,
  .admin-brand {
    font-size: 1.12rem;
  }
  .public-header nav {
    font-size: .88rem;
    width: 100%;
  }
  .home-page,
  .project-detail,
  .not-found {
    padding-inline: 14px;
  }
  .project-grid,
  .media-grid,
  .metric-grid,
  .form-row,
  .media-strip,
  .media-admin-grid,
  .service-grid,
  .process-grid,
  .trust-grid,
  .faq-grid,
  .story-grid,
  .contact-detail-grid {
    grid-template-columns: 1fr;
  }
  .hero h1,
  .project-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }
  .hero p,
  .project-hero p {
    font-size: 1rem;
  }
  .hero img,
  .project-hero img {
    aspect-ratio: 16 / 11;
    max-height: 290px;
  }
  .section-heading h2,
  .trust-section h2,
  .areas-section h2,
  .contact-section h2 {
    font-size: clamp(1.8rem, 11vw, 3rem);
  }
  .services-section,
  .process-section,
  .trust-section,
  .testimonial-section,
  .areas-section,
  .faq-section,
  .contact-section,
  .project-index {
    padding-top: 48px;
  }
  .button-link,
  button {
    justify-content: center;
    width: 100%;
  }
  .media-grid img,
  .media-grid video {
    aspect-ratio: 16 / 11;
  }
}
