/* Good Measure LLC — site styles
   Self-contained, no external requests. Fonts are self-hosted (see fonts.css).
   Palette ported from the original design; two values darkened for WCAG AA contrast:
     body secondary  #6B6149 -> #564E3A
     gold label/lt   #9A6A14 -> #8A5E10
*/

:root {
  --ink: #2B2620;
  --ink-on-gold: #231B0C;
  --ink-darker: #221E18;
  --cream: #F4ECDA;
  --cream-2: #EFE8D6;
  --paper: #faf9f5;
  --paper-tan: #DDD0B4;
  --tile: #D4C5A4;
  --tile-2: #CBBB97;
  --tile-border: #B7A77F;
  --gold: #C2892C;
  --gold-deep: #6E4A0C;      /* labels on light — AA on paper (7.5:1) and tan (5.2:1) */
  --gold-light: #EEC676;     /* labels on dark — AA on ink (9.3:1) and green (4.7:1) */
  --muted: #564E3A;          /* body secondary on light (contrast-fixed) */
  --muted-hero: #534B37;     /* hero paragraph on paper */
  --green: #4E5740;
  --line-dark: #4A443B;
  --dim-on-dark: #B6AC92;    /* small print on dark (raised from #9A8E70 for AA) */
  --val-on-dark: #D8D1C0;
  --maxw: 1200px;
  --pad: 48px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

a { color: inherit; }

/* ---- accessibility helpers ---- */
.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: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px; text-decoration: none; font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  /* Dual-tone ring: gold clears 3:1 on the dark sections, the 1px ink ring clears it
     on the light sections — so the focus indicator is always perceivable (WCAG 1.4.11). */
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink);
}

/* ---- layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-weight: 700; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 11px;
}
.eyebrow .tick { width: 11px; height: 11px; background: var(--green); display: inline-block; flex: none; }
.eyebrow.on-dark { color: var(--gold-light); }
.eyebrow.on-dark .tick { background: var(--gold); }

h1, h2, h3 { font-family: 'Bitter', Georgia, serif; color: var(--ink); }

.section { padding: 74px 0; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand .name { font-family: 'Bitter', serif; font-weight: 800; font-size: 21px; letter-spacing: .03em; line-height: 1; color: var(--ink); }
.brand .tagline { font-weight: 600; font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); margin-top: 5px; }
.mainnav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.mainnav a { text-decoration: none; padding: 6px 2px; display: inline-flex; align-items: center; min-height: 44px; }
.mainnav a.btn-estimate {
  background: var(--ink); color: var(--cream);
  padding: 11px 18px; white-space: nowrap;
}
.mainnav a.btn-estimate:hover { background: #3a342b; }

/* ---- buttons ---- */
.btn {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  padding: 16px 28px; border: none; cursor: pointer;
  min-height: 44px;
}
.btn-gold { background: var(--gold); color: var(--ink-on-gold); }
.btn-gold:hover { background: #b07d24; }

/* ---- meta bar ---- */
.metabar {
  border: 1px solid var(--ink); display: flex; flex-wrap: wrap;
  font-weight: 600; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 46px;
}
.metabar div { flex: 1; min-width: 120px; padding: 11px 16px; border-right: 1px solid var(--ink); color: var(--muted); }
.metabar div:last-child { border-right: none; color: var(--gold-deep); }

/* ---- hero ---- */
.hero { padding: 30px 0 64px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 50px; align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 66px); line-height: 1.02; letter-spacing: -0.015em; margin-top: 22px; }
.hero p.lede { font-size: 18px; line-height: 1.6; color: var(--muted-hero); max-width: 30em; margin: 26px 0 0; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero-cta .callout { font-size: 15px; color: var(--muted); }
.hero-cta .callout a { color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.figure { }
.figure img { width: 100%; height: 430px; object-fit: cover; object-position: center 55%; border: 1px solid var(--ink); }
.figure figcaption {
  border: 1px solid var(--ink); border-top: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 16px; font-weight: 600; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.figure figcaption .loc { color: var(--gold-deep); }

/* ---- section header (shared) ---- */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 42px; }
.sec-head h2 { font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.04; margin-top: 13px; }
.sec-head p { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 24em; }

/* ---- services ---- */
.services { background: var(--paper-tan); border-top: 2px solid var(--ink); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 36px; row-gap: 38px; }
.svc { border-top: 2px solid var(--ink); padding-top: 18px; }
.svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.svc-num { width: 34px; height: 34px; background: var(--gold); color: var(--ink-on-gold); font-family: 'Bitter', serif; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.svc h3 { font-weight: 700; font-size: 21px; }
.svc p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---- work / showcase ---- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tile img { width: 100%; height: 240px; object-fit: cover; border: 1px solid var(--tile-border); }
.tile .ph {
  height: 240px; border: 1px solid var(--tile-border);
  background-color: var(--tile);
  background-image: repeating-linear-gradient(135deg, var(--tile) 0, var(--tile) 11px, var(--tile-2) 11px, var(--tile-2) 22px);
  display: flex; align-items: center; justify-content: center;
}
.tile .ph span { font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #524A33; }
.tile .cap {
  border: 1px solid var(--tile-border); border-top: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 13px; font-weight: 600; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.tile .cap .loc { color: var(--gold-deep); }

/* ---- reviews ---- */
.reviews { background: var(--green); color: var(--cream-2); }
.reviews h2 { color: var(--cream); font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; margin: 13px 0 40px; max-width: 17em; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.rev { border: 1px solid #687260; padding: 28px 26px; display: flex; flex-direction: column; }
.rev .stars { color: var(--gold-light); font-size: 14px; letter-spacing: .26em; margin-bottom: 16px; }
.rev blockquote { font-family: 'Bitter', serif; font-style: italic; font-weight: 500; font-size: 17px; line-height: 1.5; color: var(--cream-2); flex: 1; }
.rev .who { font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #C8CEBB; margin-top: 18px; }
.rev-empty { border: 1px dashed #687260; padding: 34px 30px; color: #C8CEBB; font-size: 15px; line-height: 1.6; }

/* ---- contact ---- */
.contact { background: var(--ink); color: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; }
.contact h2 { color: var(--cream); font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.04; margin: 16px 0 28px; }
.cinfo-row { border-top: 1px solid var(--line-dark); padding: 16px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cinfo-row:last-of-type { border-bottom: 1px solid var(--line-dark); }
.cinfo-row .k { font-weight: 700; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); flex: none; }
.cinfo-row .v { text-align: right; }
.cinfo-row a.v, .cinfo-row .v a { color: var(--cream); text-decoration: none; }
.cinfo-row a.v:hover { border-bottom: 1px solid var(--gold); }
.phone-v { font-family: 'Bitter', serif; font-weight: 700; font-size: 29px; }
.email-v { font-family: 'Bitter', serif; font-weight: 600; font-size: 20px; word-break: break-all; }
.area-v, .hours-v { font-size: 16px; color: var(--val-on-dark); }
.cred-line { font-weight: 700; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim-on-dark); margin-top: 18px; }

/* ---- form ---- */
.form-card { border: 1px solid var(--line-dark); padding: 34px; }
.form-card h3 { font-family: 'Bitter', serif; font-weight: 700; font-size: 23px; color: var(--cream); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label, .form-card legend, .field-label {
  display: block; font-weight: 700; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim-on-dark); margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%; border: none; border-bottom: 1px solid #5a5447; background: transparent;
  padding: 10px 0; font-family: 'Hanken Grotesk', sans-serif; font-size: 16px;
  color: var(--cream); min-height: 44px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: #9b927f; }
.field input:focus-visible, .field textarea:focus-visible { border-bottom-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card button { margin-top: 8px; }
.form-note { font-size: 12px; color: var(--dim-on-dark); margin-top: 14px; line-height: 1.5; }

/* ---- footer ---- */
.site-footer { background: var(--ink-darker); padding: 30px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 34px; height: auto; }
.foot-brand .name { font-family: 'Bitter', serif; font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--cream); line-height: 1; }
.foot-brand .motto { font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-top: 5px; }
.foot-meta { text-align: right; font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim-on-dark); line-height: 1.7; }

/* ---- thanks page ---- */
.thanks-main { min-height: 70vh; display: flex; align-items: center; }
.thanks-main h1 { font-family: 'Bitter', serif; color: var(--cream); font-weight: 800; font-size: clamp(30px, 5vw, 44px); margin: 14px 0 18px; }
.thanks-main p { color: var(--val-on-dark); font-size: 18px; max-width: 34em; line-height: 1.6; }
.thanks-main .back { margin-top: 30px; }


/* ---- "see all" link (homepage work + gallery) ---- */
.work-more { margin-top: 28px; }
.work-more a {
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-deep); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.work-more a:hover { color: var(--ink); }

/* ---- gallery page ---- */
.gallery-h { font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.04; margin-top: 13px; }
.gallery-cat {
  font-family: 'Bitter', serif; font-weight: 700; font-size: 22px; color: var(--ink);
  margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-tile {
  display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--tile-border); background: var(--tile);
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-tile:hover img, .gallery-tile:focus-visible img { transform: scale(1.04); }

/* ---- admin upload page ---- */
.admin-wrap { max-width: 640px; }
.admin-warn { border: 1px solid var(--gold); background: #f3e7cf; color: var(--ink); padding: 16px 18px; margin: 18px 0 26px; font-size: 14px; line-height: 1.55; }
.admin-wrap .field { margin-bottom: 20px; }
.admin-wrap .field label { display: block; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
/* scoped under .admin-wrap so it beats the dark contact-form `.field input` rule (cream text) */
.admin-wrap .admin-input { width: 100%; max-width: 440px; padding: 11px 12px; font-family: inherit; font-size: 16px; border: 1px solid var(--ink); background: #fff; color: #000; min-height: 44px; }
.admin-wrap .admin-input::placeholder { color: #6b6257; }
.admin-wrap input, .admin-wrap textarea, .admin-wrap select { color: #000; background: #fff; }
#files { font-size: 15px; }
.admin-status { margin-top: 16px; font-weight: 600; color: var(--ink); min-height: 1.4em; }
.admin-manage { margin-top: 44px; border-top: 1px solid var(--ink); padding-top: 26px; }
.admin-manage-h { font-family: 'Bitter', serif; font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.admin-manage-hint { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.manage-list { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.manage-item { display: flex; align-items: center; gap: 14px; border: 1px solid var(--tile-border); padding: 8px; }
.manage-item img { width: 60px; height: 60px; object-fit: cover; flex: none; border: 1px solid var(--tile-border); }
.manage-meta { flex: 1; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-remove { font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #9a2b2b; border: none; padding: 10px 14px; cursor: pointer; min-height: 40px; }
.manage-remove:hover { background: #822323; }
.manage-remove:disabled { opacity: .6; cursor: default; }

/* ---- responsive ---- */
@media (max-width: 760px) {
  :root { --pad: 22px; }
  .section { padding: 52px 0; }
  .site-header .container { flex-wrap: wrap; }
  .mainnav { gap: 16px; font-size: 11px; }
  .brand .name { font-size: 19px; }
  .figure img { height: 300px; }
  .contact-grid { gap: 36px; }
  .field-row { grid-template-columns: 1fr; gap: 18px; }
  .foot-meta { text-align: left; }
}

@media (max-width: 420px) {
  .mainnav a.btn-estimate { padding: 9px 12px; }
  .phone-v { font-size: 24px; }
}
