/* ============================================================
   Fine Line Woodworks — shared stylesheet
   Luxury / editorial direction. Charcoal + linen, serif display,
   gold used only as a hairline accent.
   ============================================================ */

:root {
  --charcoal:        #1C1A17; /* primary dark bg, body text on light */
  --charcoal-2:      #28251F; /* secondary dark bg (about band, op band) */
  --linen:           #F2EFE9; /* primary light bg, light text on dark */
  --linen-mid:       #EAE6DF; /* contact form right panel bg */
  --stone:           #D4CFC6; /* hairline rules on light bg */
  --dark-rule:       #2e2c28; /* hairline rules on dark bg */
  --gold:            #C9922A; /* accent only */
  --muted-dark:      #7a7670; /* body copy on dark bg */
  --muted-light:     #6a6760; /* body copy on light bg */
  --placeholder-dk:  #2a2825; /* photo placeholder on dark bg */
  --placeholder-lt:  #E0DBD3; /* photo placeholder on light bg */
  --btn-border-dk:   #4a4844; /* outline button border on dark bg */

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--charcoal);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Shared typographic atoms ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 0.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.gold-rule {
  width: 32px;
  height: 0.5px;
  background: var(--gold);
  border: none;
  margin: 24px 0;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
}

.h1 { font-size: 48px; }
.h2 { font-size: 38px; }

.h1 em, .h2 em, .display em {
  font-style: italic;
  font-weight: 300;
}

.lead {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  margin: 0;
}

.muted-dark  { color: var(--muted-dark); }
.muted-light { color: var(--muted-light); }

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 28px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  text-align: center;
}

/* Dark bg context — light outline */
.btn-primary {
  background: transparent;
  color: var(--linen);
  border: 0.5px solid var(--btn-border-dk);
  font-weight: 400;
}
.btn-primary:hover { border-color: var(--linen); }

/* Light bg context — solid linen w/ dark text */
.btn-secondary {
  background: var(--linen);
  color: var(--charcoal);
  border: 0.5px solid var(--charcoal);
  font-weight: 500;
}
.btn-secondary:hover { background: var(--charcoal); color: var(--linen); }

/* Full width submit */
.btn-block { display: block; width: 100%; }

/* Gold text link with arrow */
.link-arrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link-arrow .arrow { transition: transform 0.25s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Photo placeholders ---------- */

.photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.photo svg { stroke: var(--gold); fill: none; stroke-width: 1; opacity: 0.85; }
.photo-dark  { background: var(--placeholder-dk); color: #5a5650; }
.photo-light { background: var(--placeholder-lt); color: #a39e94; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  background: var(--charcoal);
  border-bottom: 0.5px solid var(--dark-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: relative;
  z-index: 50;
}

.logo { display: flex; align-items: center; }
.logo-mark { height: 36px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--linen);
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { opacity: 1; color: var(--gold); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--linen);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--charcoal);
  border-top: 0.5px solid var(--dark-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 48px;
  flex-wrap: wrap;
}
.footer .logo-mark { height: 28px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--linen);
  opacity: 0.8;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-copy {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */

.section { padding: 96px 48px; }
.section-dark    { background: var(--charcoal);   color: var(--linen); }
.section-dark-2  { background: var(--charcoal-2);  color: var(--linen); }
.section-light   { background: var(--linen);       color: var(--charcoal); }

.section-head { max-width: 540px; }
.section-head .display { color: inherit; }

/* ============================================================
   HOME — HERO
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--charcoal);
  color: var(--linen);
  align-items: stretch;
}
.hero-left {
  padding: 104px 56px 104px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
}
.hero-left .h1 { color: var(--linen); margin-bottom: 26px; }
.hero-left .lead { margin-bottom: 38px; max-width: 440px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-right { min-height: 620px; }

/* ============================================================
   HOME — SERVICES
   ============================================================ */

.services { margin-top: 56px; }
.service-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 0.5px solid var(--stone);
}
.service-row:last-child { border-bottom: 0.5px solid var(--stone); }
.service-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  color: var(--charcoal);
}
.service-copy {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted-light);
}
.service-copy .link-arrow { margin-top: 18px; }
.service-photo { height: 200px; }

/* ============================================================
   HOME — ABOUT BAND
   ============================================================ */

.about-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--charcoal-2);
  color: var(--linen);
  align-items: stretch;
}
.about-band-text {
  padding: 96px 56px 96px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
}
.about-band-text .display { color: var(--linen); }
.about-band-text .lead { color: var(--muted-dark); max-width: 440px; }
.about-band-photo { min-height: 560px; }

.stats { display: flex; gap: 56px; margin-top: 44px; flex-wrap: wrap; }
.stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  color: var(--linen);
}
.stat-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 10px;
}

.award-note {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 28px 0 0;
}

/* ============================================================
   PAGE HERO (Work / About intros)
   ============================================================ */

.page-hero {
  background: var(--charcoal);
  color: var(--linen);
  padding: 104px 48px 88px;
}
.page-hero .h1 { color: var(--linen); margin-bottom: 20px; }
.page-hero .lead { color: var(--muted-dark); max-width: 460px; }

/* ============================================================
   WORK — GALLERY
   ============================================================ */

.gallery {
  background: var(--linen);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 190px;
  gap: 8px;
}
.gallery .photo { position: relative; }
.gallery .tall { grid-row: span 2; }
.gallery .photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
  pointer-events: none;
}
.gallery-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  z-index: 1;
}

/* ============================================================
   LIGHTBOX (Work gallery — click to enlarge, carousel)
   ============================================================ */

.gallery .photo { cursor: zoom-in; }
.gallery .photo:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 80px;
  background: rgba(20, 18, 15, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-figure {
  margin: 0;
  max-width: 1120px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox-img.loaded { opacity: 1; }

.lightbox-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linen);
}
.lightbox-caption .divider { width: 20px; height: 0.5px; background: var(--gold); }
.lightbox-caption .count { color: var(--gold); }

/* Controls */
.lightbox-btn {
  position: absolute;
  background: none;
  border: none;
  color: var(--linen);
  cursor: pointer;
  padding: 14px;
  opacity: 0.65;
  transition: opacity 0.25s ease, color 0.25s ease;
  display: flex;
}
.lightbox-btn:hover,
.lightbox-btn:focus-visible { opacity: 1; color: var(--gold); outline: none; }
.lightbox-btn svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 22px; right: 26px; }
.lightbox-close svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .lightbox { padding: 72px 20px; }
  .lightbox-img { max-height: calc(100vh - 220px); }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-btn svg { width: 24px; height: 24px; }
}

/* ============================================================
   ABOUT — INTRO SPLIT
   ============================================================ */

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  background: var(--charcoal);
  color: var(--linen);
  padding: 104px 48px;
  align-items: start;
}
.about-intro .h1 { color: var(--linen); }
.about-intro-copy .lead { color: var(--muted-dark); }

/* ============================================================
   ABOUT — VALUES
   ============================================================ */

.values {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 56px;
}
.value-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-top: 0.5px solid var(--stone);
}
/* close the bottom of each column (3rd item on the left, 6th on the right) */
.value-item:nth-child(3),
.value-item:last-child { border-bottom: 0.5px solid var(--stone); }
.value-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
}
.value-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.25;
  color: var(--charcoal);
  margin: 0 0 12px;
}
.value-body {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted-light);
  margin: 0;
}

/* ============================================================
   ABOUT — OPERATION BAND
   ============================================================ */

.op-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 48px;
}
.op-photos .photo { height: 240px; }

/* ============================================================
   CONTACT
   ============================================================ */

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 73px);
}
.contact-left {
  background: var(--charcoal);
  color: var(--linen);
  padding: 96px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-left .h1 { color: var(--linen); margin-bottom: 26px; }
.contact-left .lead { color: var(--muted-dark); max-width: 420px; }

.contact-details { margin-top: 44px; display: grid; gap: 26px; }
.contact-detail-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-detail-value {
  font-size: 14px;
  font-weight: 300;
  color: var(--linen);
  line-height: 1.6;
}
.contact-detail-value a { transition: color 0.25s ease; }
.contact-detail-value a:hover { color: var(--gold); }

/* Right panel — form */
.contact-right {
  background: var(--linen-mid);
  color: var(--charcoal);
  padding: 96px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  color: var(--charcoal);
  margin: 0 0 4px;
}
.form-heading-rule {
  width: 48px;
  height: 0.5px;
  background: var(--gold);
  border: none;
  margin: 0 0 36px;
}

.form { display: grid; gap: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 0.5px solid #C4BFB6;
  padding: 8px 0;
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; }

/* Honeypot — visually and programmatically hidden from people, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Inline submit feedback */
.form-status {
  margin: 22px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--muted-light);
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 146, 42, 0.08);
}
.form-status.is-error {
  color: #7a2e1e;
  border-left-color: #a5462f;
  background: rgba(165, 70, 47, 0.07);
}

/* ============================================================
   CONTACT — MAP STRIP
   ============================================================ */

.map-strip {
  background: #DDD8D0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: stretch;
  min-height: 320px;
}
.map-info {
  padding: 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-info .contact-detail-value { color: var(--charcoal); }
.map-note {
  font-size: 13px;
  color: var(--muted-light);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-note svg { stroke: var(--gold); fill: none; }
.map-embed { min-height: 320px; }
.map-embed iframe, .map-embed .photo { width: 100%; height: 100%; border: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .section { padding: 72px 32px; }
  .h1 { font-size: 38px; }
  .h2 { font-size: 30px; }

  .nav { padding: 18px 28px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--charcoal);
    border-bottom: 0.5px solid var(--dark-rule);
    padding: 8px 28px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; width: 100%; }

  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 64px 32px; max-width: none; }
  .hero-right { min-height: 360px; }

  .service-row { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }
  .service-photo { height: 200px; order: 3; }

  .about-band { grid-template-columns: 1fr; }
  .about-band-text { padding: 64px 32px; max-width: none; order: 2; }
  .about-band-photo { min-height: 320px; order: 1; }

  .page-hero { padding: 72px 32px 56px; }

  .gallery { grid-template-columns: 1fr 1fr; padding: 24px; }

  .about-intro { grid-template-columns: 1fr; gap: 36px; padding: 72px 32px; }

  .values { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; column-gap: 0; }
  .value-item { grid-template-columns: 36px 1fr; gap: 12px 24px; padding: 36px 0; }

  .op-photos { grid-template-columns: 1fr; }
  .op-photos .photo { height: 220px; }

  .contact-split { grid-template-columns: 1fr; min-height: 0; }
  .contact-left, .contact-right { padding: 64px 32px; }

  .map-strip { grid-template-columns: 1fr; }
  .map-info { padding: 40px 32px; }

  .footer { padding: 32px; flex-direction: column; align-items: flex-start; gap: 22px; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .tall { grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .stats { gap: 36px; }
}
