:root {
  --cream: #f6f0e7;
  --cream-2: #efe4d6;
  --paper: #fffdf9;
  --ink: #2e2018;
  --muted: #6f6258;
  --maple: #c85e1d;
  --maple-dark: #9f4312;
  --line: #ddcdbb;
  --wood: #2a180f;

  --shadow: 0 22px 60px rgba(56, 34, 19, .12);
  --shadow-soft: 0 14px 34px rgba(56, 34, 19, .07);

  --frame-radius: 26px;
  --image-radius: 17px;
  --frame-padding: 18px;
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(61, 38, 22, .09);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

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

.brand-text {
  display: inline-block;
  max-width: 320px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--maple);
}

.nav-cta {
  padding: 12px 17px;
  border-radius: 9px;
  background: var(--maple);
  color: white;
  box-shadow: 0 8px 24px rgba(200, 94, 29, .25);
}

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

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px;
  background: var(--ink);
}

/* ---------- Typography ---------- */

.eyebrow {
  margin: 0 0 16px;
  color: var(--maple);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 700;
}

.eyebrow.light {
  color: #f0a36f;
}

h1,
h2,
h3,
h4 {
  font-family: "Libre Caslon Text", Georgia, serif;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
  margin-bottom: 25px;
}

h1 span {
  display: inline-block;
  color: var(--maple);
  font-size: .7em;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 8px;
}

h2 {
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  margin-bottom: 22px;
}

h3 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--maple);
  color: white;
  box-shadow: 0 12px 28px rgba(200, 94, 29, .24);
}

.button.primary:hover {
  background: var(--maple-dark);
}

.button.secondary {
  border: 1px solid #8e7a69;
  background: rgba(255, 255, 255, .5);
}

.button.secondary:hover {
  background: white;
  box-shadow: 0 10px 25px rgba(60, 35, 18, .10);
}

/* ---------- Shared framed image treatment ---------- */

.hero-image,
.feature-card,
.gallery-grid figure,
.custom-image {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--frame-radius);
  box-shadow: var(--shadow-soft);
}

.hero-image,
.custom-image {
  padding: var(--frame-padding);
}

.hero-image img,
.feature-card img,
.gallery-grid img,
.custom-image img {
  border-radius: var(--image-radius);
}

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

.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(209, 149, 94, .15), transparent 38%),
    linear-gradient(135deg, #fbf7f0, var(--cream));
  padding: 74px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: clamp(45px, 7vw, 90px);
}

.hero-text {
  color: var(--muted);
  font-size: 1.17rem;
  max-width: 570px;
  margin: 0 0 32px;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: .9rem;
}

.trust-list li::before {
  content: "•";
  color: var(--maple);
  margin-right: 8px;
}

.hero-image {
  margin: 0;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
}

/* ---------- Featured work ---------- */

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.feature-card {
  overflow: hidden;
  padding: var(--frame-padding);
}

.feature-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  background: #f8f2e9;
}

.card-copy {
  padding: 26px 12px 12px;
}

.card-kicker {
  color: var(--maple);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  font-size: .72rem;
  margin: 0 0 9px;
}

.card-copy p:not(.card-kicker) {
  color: var(--muted);
}

.card-copy a,
.text-link {
  color: var(--maple-dark);
  font-weight: 700;
  text-decoration: none;
}

.card-copy a:hover,
.text-link:hover {
  text-decoration: underline;
}

/* ---------- Gallery ---------- */

.gallery-block {
  margin-top: 80px;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}

.gallery-heading h3 {
  max-width: 650px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-grid figure {
  margin: 0;
  padding: var(--frame-padding);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-grid img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  object-position: center;
  background: #f8f2e9;
  transition: transform .35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.015);
}

.gallery-grid figcaption {
  padding: 18px 8px 8px;
  text-align: center;
}

.gallery-grid figcaption h4 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  letter-spacing: -.02em;
}

.gallery-grid figcaption p {
  margin: 0 auto;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.55;
  max-width: 28ch;
}

/* ---------- Custom section ---------- */

.custom {
  background: var(--cream);
}

.custom-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(45px, 7vw, 90px);
  align-items: center;
}

.custom-image {
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.custom-image img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  background: #f8f2e9;
}

.custom-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.custom-details {
  display: grid;
  gap: 13px;
  margin: 28px 0 32px;
}

.custom-details div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
}

.custom-details strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--maple);
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* ---------- About ---------- */

.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 8vw, 110px);
}

.about-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.about-copy p:first-child {
  margin-top: 0;
}

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

.contact {
  background: var(--wood);
  color: white;
  padding: 78px 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.contact-panel h2 {
  max-width: 700px;
  margin-bottom: 15px;
}

.contact-panel p:not(.eyebrow) {
  color: #dbcdbf;
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button.cream {
  background: var(--cream);
  color: var(--ink);
}

.button.outline-light {
  border: 1px solid rgba(255, 255, 255, .6);
  color: white;
}

.button.outline-light:hover {
  background: rgba(255, 255, 255, .08);
}

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

.site-footer {
  background: #180e09;
  color: #d9cdc4;
  padding: 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: white;
}

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

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand span {
  color: #bcaea4;
  font-size: .86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  color: #9f9187;
}

/* ---------- Desktop tuning ---------- */

@media (min-width: 901px) {
  .hero {
    padding: 58px 0 68px;
  }

  .hero-grid {
    grid-template-columns: 1.02fr .98fr;
    gap: clamp(34px, 4.5vw, 58px);
  }

  .hero-copy {
    max-width: 660px;
  }

  h1 {
    font-size: clamp(3.35rem, 4.7vw, 5rem);
  }

  .hero-image {
    width: min(100%, 600px);
    justify-self: end;
  }

  .hero-image img {
    max-height: 460px;
  }

  .featured-grid {
    max-width: 1040px;
    margin-inline: auto;
    gap: 26px;
  }

  .feature-card img {
    height: 300px;
  }

  .gallery-grid img {
    height: 230px;
  }

  .gallery-grid figcaption {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .custom-grid {
    grid-template-columns: .88fr 1.12fr;
  }

  .custom-image {
    max-width: 520px;
  }

  .custom-image img {
    max-height: 430px;
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 12px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 6px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .hero-image img {
    max-height: 420px;
  }

  .featured-grid,
  .custom-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .feature-card img {
    height: 300px;
  }

  .custom-image img {
    max-height: 440px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 680px) {
  :root {
    --frame-radius: 22px;
    --image-radius: 15px;
    --frame-padding: 12px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 72px 0;
  }

  .nav-wrap {
    min-height: 72px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand-text {
    font-size: .98rem;
    max-width: 210px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  h1 br {
    display: none;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 58px;
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .hero-image img {
    max-height: 290px;
  }

  .button-row,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-list {
    display: grid;
    gap: 5px;
  }

  .featured-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-card img {
    height: 245px;
  }

  .card-copy {
    padding: 22px 8px 8px;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    gap: 14px;
  }

  .gallery-grid img {
    height: 220px;
  }

  .gallery-grid figcaption {
    padding: 15px 8px 8px;
  }

  .gallery-grid figcaption h4 {
    font-size: 1.12rem;
  }

  .gallery-grid figcaption p {
    font-size: .94rem;
  }

  .custom-image img {
    max-height: 330px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
