/* Mastertmonk Inc. — industrial, sturdy, honest.
   Warm concrete + timber + safety orange on near-black. */

:root {
  --ink: #16130f;          /* near-black */
  --coal: #211d17;         /* raised dark surface */
  --line-dark: rgba(243, 239, 232, 0.14);
  --paper: #f3efe8;        /* warm off-white */
  --paper-dim: #d8d2c6;
  --concrete: #e7e2d8;     /* light section bg */
  --orange: #e05a1e;       /* safety orange */
  --orange-deep: #b8440f;
  --timber: #8a5a33;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- type ---------- */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 9vw, 5.5rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.6rem); }
h3 { font-size: 1.05rem; letter-spacing: 0.02em; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.section-title span {
  color: var(--orange);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}

.ph {
  background: rgba(224, 90, 30, 0.16);
  outline: 1px dashed var(--orange);
  outline-offset: 2px;
  padding: 0 0.3em;
  border-radius: 3px;
  color: inherit;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem max(1.2rem, env(safe-area-inset-left));
  padding-top: max(0.8rem, env(safe-area-inset-top));
  background: rgba(22, 19, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.brand {
  color: var(--paper);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .brand { font-size: 0.72rem; letter-spacing: 0.08em; }
}
.brand-dot { color: var(--orange); margin-left: 0.35em; font-weight: 600; letter-spacing: 0.1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8em 1.6em;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange); color: #fff; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--orange-deep); }
}
.btn-ghost { border: 1px solid var(--line-dark); color: var(--paper); }
@media (hover: hover) {
  .btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
}
.btn-call { background: var(--orange); color: #fff; padding: 0.55em 1.1em; font-size: 0.75rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 82dvh;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 6vw, 5rem) max(1.2rem, 6vw) clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
/* blueprint grid + timber gradient atmosphere */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(224, 90, 30, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 90, 30, 0.05) 1px, transparent 1px),
    linear-gradient(160deg, rgba(138, 90, 51, 0.28), transparent 45%),
    radial-gradient(120% 80% at 80% 0%, rgba(224, 90, 30, 0.16), transparent 60%);
  background-size: 44px 44px, 44px 44px, cover, cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
}
.hero-inner { position: relative; max-width: 820px; }
.hero-kicker {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub {
  margin: 1.4rem 0 2rem;
  color: var(--paper-dim);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  max-width: 34em;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: clamp(3.5rem, 9vw, 6.5rem) max(1.2rem, 6vw); }

/* ---------- services ---------- */
.services { background: var(--ink); }
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.service-card {
  background: var(--coal);
  padding: 1.6rem 1.4rem;
  transition: background 0.2s ease;
}
@media (hover: hover) {
  .service-card:hover { background: #2a251d; }
}
.service-card h3 { color: var(--orange); margin-bottom: 0.5rem; }
.service-card p { color: var(--paper-dim); font-size: 0.95rem; }
.service-card--ask {
  background: rgba(224, 90, 30, 0.06);
  border: 1px solid rgba(224, 90, 30, 0.28);
}
.service-card--ask h3 { color: var(--paper); }
@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--ask { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  /* 9 cards: 8 real services in a 4x2 block, "Something else?" spanning the full row below */
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card--ask { grid-column: 1 / -1; }
}

/* ---------- about ---------- */
.about { background: var(--concrete); color: var(--ink); }
.about .section-title span { color: var(--timber); }
.about-lead {
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 22em;
  margin-bottom: 1.2rem;
}
.about-body p { max-width: 44em; }
.about-body p + p { margin-top: 1rem; }
.about-note { margin-top: 1.6rem; }
.about-note .ph { background: rgba(138, 90, 51, 0.15); outline-color: var(--timber); }

/* ---------- gallery ---------- */
.gallery { background: var(--ink); }
.gallery-note { color: var(--paper-dim); margin-bottom: 1.4rem; font-size: 0.95rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-slot {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line-dark);
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(243,239,232,0.03) 10px 20px);
  overflow: hidden;
  margin: 0;
}
.gallery-slot span { color: rgba(243, 239, 232, 0.4); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.gallery-slot--filled { border-style: solid; background: none; }
.gallery-slot--filled img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-slot--filled figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(22, 19, 15, 0.85));
}
.gallery-slot--filled { position: relative; }

/* ---------- contact ---------- */
.contact { background: var(--coal); }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact-direct p { color: var(--paper-dim); max-width: 30em; }
.contact-phone {
  display: inline-block;
  margin: 1.2rem 0;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.contact-line { font-size: 0.95rem; }
.contact-line a { color: var(--paper); }

.contact-form { display: grid; gap: 1rem; }
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  min-height: 44px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.8rem; color: rgba(243, 239, 232, 0.45); }

/* ---------- footer ---------- */
.site-footer {
  padding: 2.5rem max(1.2rem, 6vw) max(2.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: var(--paper-dim);
}
.footer-fine { margin-top: 0.4rem; opacity: 0.6; }
