:root {
  --color-ivory: #f6f3ec;
  --color-paper: #ffffff;
  --color-charcoal: #232323;
  --color-muted: #66685f;
  --color-border: #d9d1c1;
  --color-post: #2c312b;
  --color-post-dark: #1d241d;
  --color-sage: #66725c;
  --color-brass: #a68447;

  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1120px;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-ivory);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 980px;
  margin: 0 0 2.05rem;
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  white-space: nowrap;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
}

h3,
p {
  margin-top: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.04rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--color-brass);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 243, 236, 0.96);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  width: 210px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.92rem;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 74px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 21px;
  width: 100%;
  height: 2px;
  background: var(--color-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-link:hover::after,
.nav-link:focus::after,
.has-dropdown:hover > .nav-link::after,
.has-dropdown:focus-within > .nav-link::after {
  transform: scaleX(1);
}

.nav-button {
  padding: 0.68rem 0.95rem;
  color: var(--color-paper) !important;
  background: var(--color-post);
  border-radius: 4px;
}

.nav-button:hover,
.nav-button:focus {
  background: var(--color-post-dark);
}

/* Dropdown */

.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: -1rem;
  z-index: 30;
  min-width: 255px;
  padding: 0.65rem;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(35, 35, 35, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.68rem 0.75rem;
  color: var(--color-charcoal);
  border-radius: 4px;
  font-size: 0.93rem;
  line-height: 1.2;
  text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--color-ivory);
  color: var(--color-post);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-post-dark);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(246, 243, 236, 0.72) 0%,
    rgba(246, 243, 236, 0.46) 30%,
    rgba(246, 243, 236, 0.10) 51%,
    rgba(246, 243, 236, 0) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  z-index: 3;
  left: 7%;
  top: 41%;
  width: 540px;
  max-width: calc(100% - 4rem);
  transform: translateY(-50%);
}

.hero-content h1 {
  max-width: 540px;
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  position: relative;
}

.button-row::before {
  content: "";
  position: absolute;
  top: -1.1rem;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--color-brass);
  border-radius: 1px;
}

.button {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.12rem;
  border: 1px solid var(--color-post);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--color-paper);
  background: var(--color-post);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--color-post-dark);
}

.button-secondary {
  color: var(--color-post);
  background: rgba(246, 243, 236, 0.72);
}

.button-secondary:hover,
.button-secondary:focus {
  background: var(--color-paper);
}

/* Proof */

.proof-strip {
  padding: 1.45rem 0;
  background: var(--color-ivory);
  border-bottom: 1px solid var(--color-border);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.proof-grid div {
  padding: 0 1.2rem;
  border-right: 1px solid var(--color-border);
}

.proof-grid div:last-child {
  border-right: 0;
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  margin-bottom: 0.2rem;
  font-size: 0.96rem;
}

.proof-grid span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Sections */

.section {
  padding: 4.75rem 0;
}

.section-light {
  background: var(--color-paper);
}

.section-dark {
  color: var(--color-paper);
  background: var(--color-post-dark);
}

.section-header {
  max-width: 740px;
  margin: 0 auto 2.35rem;
  text-align: center;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.04rem;
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-link-card {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  color: var(--color-charcoal);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  position: relative;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-link-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--color-brass);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 160ms ease;
}

.service-link-card:hover,
.service-link-card:focus {
  background: var(--color-ivory);
  border-color: var(--color-brass);
  box-shadow: 0 12px 26px rgba(35, 35, 35, 0.08);
  transform: translateY(-2px);
}

.service-link-card:hover::before,
.service-link-card:focus::before {
  opacity: 1;
}

.service-link-card:hover h3,
.service-link-card:focus h3 {
  color: var(--color-post);
}

.service-link-card p {
  color: var(--color-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* Work */

.work-strip {
  background: var(--color-paper);
  padding: 3.2rem 0 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.work-grid img {
  width: 100%;
  height: 238px;
  object-fit: cover;
}

/* Owner */

.owner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.owner-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

/* Service Area */

.service-area {
  text-align: center;
}

/* Contact */

.contact-section {
  background: var(--color-ivory);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
}

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

.contact-methods {
  margin-top: 1.5rem;
}

.contact-methods a,
.contact-methods strong {
  display: block;
}

.contact-methods a {
  color: var(--color-post);
  font-weight: 800;
}

.service-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.service-form textarea,
.service-form button,
.form-status {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  color: var(--color-charcoal);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(166, 132, 71, 0.22);
  border-color: var(--color-brass);
}

textarea {
  resize: vertical;
}

.website-field {
  display: none;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.25rem 0;
  font-weight: 600;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

/* Footer */

.site-footer {
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--color-post-dark);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Responsive */

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

  h1 {
    white-space: normal;
  }

  .proof-grid,
  .service-grid,
  .work-grid,
  .owner-layout,
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  .hero-content {
    left: 1rem;
    top: 46%;
    width: calc(100% - 2rem);
  }

  .hero-overlay {
    background: rgba(246, 243, 236, 0.78);
  }

  h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8.5vw, 2.35rem);
  }

  .proof-grid,
  .service-grid,
  .work-grid,
  .owner-layout,
  .contact-layout,
  .service-form {
    grid-template-columns: 1fr;
  }

  .proof-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
  }

  .proof-grid div:last-child {
    border-bottom: 0;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}
