/* ==========================================================================
   DM Design — design tokens
   ========================================================================== */
:root {
  --espresso: #1B1512;
  --espresso-2: #241C17;
  --walnut: #3E2A1E;
  --walnut-light: #6B4A34;
  --ivory: #F2EBDD;
  --ivory-2: #E8DFCC;
  --brass: #B8935A;
  --brass-light: #D4B584;
  --stone: #9C9184;
  --stone-dark: #55493D;
  --line: rgba(242, 235, 221, 0.14);

  --font-display: 'Noto Serif Georgian', 'Noto Serif', serif;
  --font-body: 'Noto Sans Georgian', 'Noto Sans', sans-serif;
  --font-label: 'Jost', 'Noto Sans Georgian', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
  font-weight: 500;
}
.eyebrow-light { color: var(--brass-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  margin: 0 0 44px;
  font-weight: 600;
  color: var(--espresso);
  max-width: 14ch;
}
.section-title em { color: var(--brass); font-style: normal; }
.section-title-dark { color: var(--ivory); }

/* faint film-grain overlay for warmth, subtle */
.grain-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(27, 21, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ivory);
}
.brand-mark { color: var(--brass); display: flex; }
.brand-chip {
  background: var(--ivory);
  border-radius: 8px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-footer .brand-chip { width: 36px; height: 36px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 21px; letter-spacing: 0.01em;
}
.brand-text em { font-style: normal; color: var(--brass-light); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: var(--font-label);
  font-size: 13.5px; letter-spacing: 0.05em;
  color: var(--ivory-2);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--brass);
  transition: width 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--brass);
  color: var(--brass-light) !important;
  padding: 9px 18px;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-cta:hover { background: var(--brass); color: var(--espresso) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1.5px; background: var(--ivory); display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--espresso);
  color: var(--ivory);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 78% 30%, rgba(184,147,90,0.16), transparent 60%),
    repeating-linear-gradient(100deg, rgba(242,235,221,0.025) 0px, rgba(242,235,221,0.025) 1px, transparent 1px, transparent 68px);
}
.hero-inner { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 110px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.08;
  margin: 0 0 28px;
  max-width: 11ch;
}
.hero-title em { font-style: normal; color: var(--brass-light); }
.hero-sub {
  font-size: 17px; line-height: 1.65;
  color: var(--stone);
  max-width: 46ch;
  margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-label);
  font-size: 13.5px; letter-spacing: 0.05em;
  padding: 15px 30px;
  border-radius: 2px;
  display: inline-block;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--brass); color: var(--espresso); }
.btn-primary:hover { background: var(--brass-light); }
.btn-ghost { border-color: var(--line); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-light); }
.btn-block { display: block; width: 100%; text-align: center; border: none; }

/* signature joinery divider — a dovetail-joint zigzag line marking section seams */
.joinery-divider {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  color: var(--ivory); line-height: 0;
}
.joinery-divider svg { width: 100%; height: 34px; fill: var(--ivory); }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 120px 0 100px; background: var(--ivory); }
.about-grid {
  display: grid; grid-template-columns: 0.9fr 1fr; gap: 72px; align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: 2px; }
.about-badge {
  position: absolute; left: -28px; bottom: -28px;
  background: var(--espresso); color: var(--ivory);
  padding: 22px 26px; max-width: 200px;
  border: 1px solid var(--brass);
}
.about-badge strong {
  font-family: var(--font-display); font-size: 34px; color: var(--brass-light);
  display: block; line-height: 1;
}
.about-badge span { font-size: 12.5px; color: var(--stone); line-height: 1.4; display: block; margin-top: 8px; }

.about-copy h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25;
  margin: 0 0 22px; max-width: 15ch;
}
.about-copy h2 em { color: var(--brass); font-style: normal; }
.about-copy p {
  font-size: 15.5px; line-height: 1.75; color: var(--stone-dark);
  margin: 0 0 18px;
}
.about-points { margin-top: 26px; }
.about-points li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 14.5px; color: var(--espresso);
}
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 10px; height: 1px; background: var(--brass);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 110px 0; background: var(--espresso); color: var(--ivory); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--espresso); border: none; text-align: left;
  padding: 40px 28px; color: var(--ivory);
  transition: background 0.3s ease;
}
.service-card:hover { background: var(--espresso-2); }
.service-icon { color: var(--brass); display: block; margin-bottom: 24px; }
.service-icon svg { width: 38px; height: 38px; }
.service-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  margin: 0 0 12px;
}
.service-card p { font-size: 13.5px; line-height: 1.6; color: var(--stone); margin: 0; }

/* ==========================================================================
   Process
   ========================================================================== */
.process { padding: 110px 0; background: var(--walnut); color: var(--ivory); }
.process-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  position: relative;
}
.process-list li { position: relative; padding-top: 8px; }
.process-list li:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: calc(100% - 8px); width: 40px;
  height: 1px; background: var(--brass); opacity: 0.5;
}
.process-num {
  font-family: var(--font-display); font-size: 15px; color: var(--brass-light);
  display: block; margin-bottom: 18px; letter-spacing: 0.06em;
}
.process-list h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 10px;
}
.process-list p { font-size: 13.5px; line-height: 1.6; color: rgba(242,235,221,0.65); margin: 0; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding: 110px 0; background: var(--espresso); color: var(--ivory); }
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--font-label); font-size: 12.5px; letter-spacing: 0.04em;
  background: transparent; border: 1px solid var(--line); color: var(--stone);
  padding: 9px 18px; border-radius: 2px; transition: all 0.25s ease;
}
.filter-btn:hover { border-color: var(--brass); color: var(--ivory); }
.filter-btn.active { background: var(--brass); border-color: var(--brass); color: var(--espresso); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  min-height: 200px;
}
.gallery-loading { color: var(--stone); grid-column: 1 / -1; text-align: center; padding: 40px 0; }
.gallery-card {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4/5; background: var(--espresso-2);
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 20px;
  background: linear-gradient(to top, rgba(27,21,18,0.92), transparent);
}
.gallery-caption h4 {
  font-family: var(--font-display); font-size: 16px; margin: 0 0 4px; color: var(--ivory);
}
.gallery-caption span { font-size: 11.5px; color: var(--brass-light); letter-spacing: 0.04em; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: 100px 0; background: var(--ivory); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.testimonials blockquote { margin: 0; padding-top: 22px; border-top: 1px solid var(--stone); }
.testimonials p {
  font-family: var(--font-display); font-size: 17px; line-height: 1.6;
  color: var(--espresso); margin: 0 0 16px; font-style: normal;
}
.testimonials cite { font-size: 12.5px; color: var(--stone-dark); font-style: normal; letter-spacing: 0.02em; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 110px 0 120px; background: var(--espresso); color: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 72px; }
.contact-lead { font-size: 15px; line-height: 1.7; color: var(--stone); max-width: 40ch; margin: 0 0 40px; }
.contact-details div {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.contact-details div:last-child { border-bottom: 1px solid var(--line); }
.contact-details span {
  font-family: var(--font-label); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--brass-light);
}
.contact-details a { font-size: 16px; }

.contact-form {
  background: var(--espresso-2); border: 1px solid var(--line);
  padding: 36px; border-radius: 2px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--stone); margin-bottom: 8px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; background: var(--espresso); border: 1px solid var(--line);
  color: var(--ivory); padding: 12px 14px; font-family: var(--font-body);
  font-size: 14.5px; border-radius: 2px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brass);
}
.form-row textarea { resize: vertical; }
.form-status { margin: 14px 0 0; font-size: 13.5px; min-height: 18px; }
.form-status.success { color: #8CBF8C; }
.form-status.error { color: #D98686; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--espresso-2); color: var(--stone); padding: 44px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.brand-footer .brand-text { font-size: 17px; }
.footer-note { font-size: 12.5px; margin: 0; }
.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-links a:hover { color: var(--brass-light); }

/* ==========================================================================
   Focus states / a11y
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process-list li::after { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-badge { left: 0; bottom: -20px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--espresso); flex-direction: column;
    justify-content: flex-start; padding: 40px 28px; gap: 28px;
    transform: translateX(100%); transition: transform 0.35s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 130px; }
}
