/* ============================================================
   D3 Inspection — site styles
   Clean, light, Carrd-inspired. Self-contained.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:        #3a3a3a;
  --ink-strong: #2a2a2a;
  --muted:      #777170;
  --accent:     #ab2a20;   /* brand red  */
  --accent-2:   #e2552f;   /* brand orange */
  --line:       #e7e3df;
  --line-soft:  #efece8;
  --card:       #ffffff;
  --bg:         #e8eaed;

  --radius:     22px;
  --radius-sm:  14px;
  --shadow:     0 1px 2px rgba(40, 30, 28, 0.04),
                0 18px 50px -28px rgba(40, 30, 28, 0.30);
  --maxw:       58rem;

  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 50% -12%, rgba(171, 42, 32, 0.05), transparent 60%),
    radial-gradient(1000px 680px at 100% 112%, rgba(54, 70, 92, 0.06), transparent 60%),
    radial-gradient(rgba(43, 52, 69, 0.14) 1.5px, transparent 1.6px);
  background-size: 100% 100%, 100% 100%, 20px 20px;
  background-position: center, center, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }

/* ---------- Page / Card ---------- */
.page {
  display: flex;
  justify-content: center;
  padding: clamp(0.75rem, 4vw, 3rem) clamp(0.75rem, 4vw, 2rem);
}

.card {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
  overflow: hidden;
  isolation: isolate;
}

.card__accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 55%, #f0a06f 100%);
  z-index: 2;
}

/* ---------- Header / Nav ---------- */
.site-header { text-align: center; }

.logo {
  display: inline-block;
  width: clamp(150px, 38vw, 210px);
  margin: 0.25rem auto 1.4rem;
  transition: transform 0.3s var(--ease);
}
.logo img { width: 100%; }
.logo:hover { transform: translateY(-2px); }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nav__link {
  --pad: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.2rem;
  height: 2.3rem;
  padding: 0 var(--pad);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease),
              border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.nav__link:hover { color: var(--accent); border-color: var(--accent); }
.nav__link.is-current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px -8px rgba(171, 42, 32, 0.55);
}

/* ---------- Rules / dividers ---------- */
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: clamp(1.3rem, 3vw, 1.9rem) 0;
}
.tick {
  border: 0;
  height: 2px;
  width: 2.4rem;
  margin: 1rem auto 1.25rem;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Panels (sections) ---------- */
.panel { text-align: center; }
.panel[hidden] { display: none; }
.panel.is-active { animation: rise 0.5s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Typography ---------- */
.brand {
  font-size: clamp(1.7rem, 5.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-strong);
  padding-left: 0.22em; /* optical centering for tracking */
}

.tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(0.82rem, 2.4vw, 0.98rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}

.eyebrow {
  font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-strong);
  margin-bottom: 1.6rem;
  position: relative;
  padding-bottom: 0.9rem;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.lead {
  max-width: 40rem;
  margin: 0 auto;
  font-weight: 300;
  font-size: clamp(1rem, 2.6vw, 1.08rem);
  color: var(--ink);
}

.body {
  max-width: 42rem;
  margin: 0 auto 1.05rem;
  font-weight: 300;
  color: var(--ink);
}
.body:last-of-type { margin-bottom: 0; }

/* ---------- Home extras ---------- */
.pillset {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.7rem auto 0;
  max-width: 38rem;
  list-style: none;
}
.pillset li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--line-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.85rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.btn--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 24px -12px rgba(171, 42, 32, 0.6);
}
.btn--primary:hover { background: #98231a; transform: translateY(-2px); }
.btn--ghost {
  color: var(--ink-strong);
  border-color: var(--line);
  background: #fff;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Services list ---------- */
.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  max-width: 40rem;
  margin: 2rem auto 0;
  text-align: left;
}
.services li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #fcfaf8);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.services li:hover {
  border-color: #e2cfca;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -18px rgba(171, 42, 32, 0.4);
}
.services__mark {
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(171, 42, 32, 0.12);
}
.services__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-strong);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  background: #ece8e3;
  aspect-ratio: 4 / 3;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.9rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 14, 12, 0.78), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.shot:hover img,
.shot:focus-visible img { transform: scale(1.06); }
.shot:hover figcaption,
.shot:focus-visible figcaption { opacity: 1; transform: none; }
.shot:focus-visible { box-shadow: 0 0 0 3px rgba(171, 42, 32, 0.45); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  text-align: left;
  margin-top: 1.8rem;
}
.contact__list { list-style: none; display: grid; gap: 1rem; align-content: start; }
.contact__item { display: flex; align-items: center; gap: 0.85rem; }
.contact__icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(171, 42, 32, 0.08);
  border: 1px solid rgba(171, 42, 32, 0.15);
}
.contact__icon svg { width: 1.25rem; height: 1.25rem; }
.contact__text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.contact__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__text a, .contact__text span:last-child {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-strong);
  word-break: break-word;
}
.contact__text a:hover { color: var(--accent); }

/* ---------- Form ---------- */
.contact__form { display: grid; gap: 0.85rem; }
.field { display: grid; gap: 0.35rem; }
.field__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font: inherit;
  color: var(--ink-strong);
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfbf9;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(171, 42, 32, 0.12);
  background: #fff;
}
.field__note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.1rem;
}

/* ---------- Footer ---------- */
.site-footer { text-align: center; }
.site-footer p {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  background: rgba(14, 10, 9, 0.86);
  backdrop-filter: blur(3px);
  padding: clamp(1rem, 5vw, 3rem);
}
.lightbox.is-open { display: grid; animation: fade 0.25s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  animation: pop 0.3s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.lightbox__btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__close { top: 1.1rem; right: 1.1rem; font-size: 1.5rem; }
.lightbox__prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .contact  { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav__link { min-width: 0; flex: 1 1 auto; letter-spacing: 0.14em; padding: 0 0.5rem; }
  .gallery   { gap: 0.6rem; }
  .cta-row   { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .lightbox__prev { left: 0.4rem; }
  .lightbox__next { right: 0.4rem; }
}

@media (max-width: 380px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
