/* ============ Tokens ============ */
:root {
  /* Brand (pulled from the TM logo) */
  --espresso: #1a110d;
  --espresso-2: #241813;
  --cream: #f3ebdd;
  --paper: #faf6ee;
  --tint: #f1e9dc;

  /* Semantic */
  --color-bg: var(--paper);
  --color-fg: #231915;
  --color-muted: #65574e;
  --color-border: #e2d6c4;
  --color-primary: #2f6b3c;        /* field green, white text 6.4:1 */
  --color-primary-hover: #25562f;
  --color-on-primary: #ffffff;
  --color-eyebrow-dark: #8fcb9b;   /* on espresso */
  --color-eyebrow-light: #2f6b3c;  /* on paper */
  --color-error: #b42318;
  --color-focus: #e0a84a;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(26, 17, 13, .06), 0 8px 24px rgba(26, 17, 13, .08);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --z-header: 40;
  --z-mobilebar: 50;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cream); color: var(--espresso); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font: 600 .875rem/1 var(--font-body);
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 60px; padding: 1rem 2.25rem; font-size: .9375rem; }
.btn-sm { min-height: 44px; padding: .625rem 1.25rem; font-size: .8125rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-cream { background: var(--cream); color: var(--espresso); }
.btn-cream:hover { background: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; color: var(--color-primary); text-decoration: none;
  min-height: 44px;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link svg { transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--color-eyebrow-dark);
}
.eyebrow-dark { color: var(--color-eyebrow-light); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--espresso);
  border-bottom: 1px solid rgba(243, 235, 221, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--cream); }
.brand img { width: 40px; height: auto; border-radius: 4px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: .01em; }
.brand-llc { margin-left: .4rem; font: 600 .625rem/1 var(--font-body); letter-spacing: .25em; color: var(--color-eyebrow-dark); vertical-align: middle; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: transparent; color: var(--cream);
  border: 1px solid rgba(243, 235, 221, .25); border-radius: var(--radius); cursor: pointer;
}
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column; gap: .25rem;
  padding: 1rem 20px 1.5rem; background: var(--espresso);
  border-bottom: 1px solid rgba(243, 235, 221, .1);
}
.site-nav.open { display: flex; }
.site-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 48px;
  color: rgba(243, 235, 221, .82); text-decoration: none;
  font-size: .875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: color .2s var(--ease);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="true"] { color: #fff; }
.site-nav a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--color-eyebrow-dark); }
.site-nav .btn { margin-top: .5rem; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 2.25rem; padding: 0; background: none; border: 0; }
  .site-nav .btn { margin: 0 0 0 .5rem; }
}

/* ============ Hero ============ */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: 5rem 0 4.5rem;
  color: #fff; text-align: center;
  background: var(--espresso);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 13, 10, .72) 0%, rgba(20, 13, 10, .55) 45%, rgba(20, 13, 10, .82) 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { letter-spacing: .38em; }
.hero h1 {
  max-width: 15ch;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 5.25rem); line-height: 1.06; letter-spacing: -.01em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero .lead { max-width: 40rem; font-size: clamp(1.0625rem, 1.8vw, 1.3rem); line-height: 1.6; color: rgba(255, 255, 255, .86); margin-bottom: 2.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.25rem; width: 100%; }
.hero-ctas .btn { flex: 1 1 260px; max-width: 340px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; margin-top: 2.5rem; }
.hero-phone {
  display: inline-flex; align-items: center; gap: .625rem; min-height: 44px;
  font-size: 1.375rem; font-weight: 600; color: #fff; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.hero-phone svg { color: var(--color-eyebrow-dark); }
.hero-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-badges { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; color: rgba(255, 255, 255, .85); }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges svg { width: 18px; height: 18px; fill: none; stroke: var(--color-eyebrow-dark); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Sections ============ */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-dark { background: var(--espresso); color: var(--cream); }
.section-dark h2 { color: #fff; }
.section-tint { background: var(--tint); }
.section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.section-lead { font-size: 1.125rem; color: var(--color-muted); }
.center-cta { text-align: center; margin-top: 3rem; }

/* Services */
.services-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.service-card:hover { border-color: #cdbca4; box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card p { color: var(--color-muted); margin: 0; font-size: .9375rem; }
.icon-wrap {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.25rem;
  border-radius: 10px; background: #e7f0e8; color: var(--color-primary);
}
.icon-wrap svg, .values svg, .contact-list svg, .mobile-bar svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.service-card-cta { background: var(--espresso); border-color: var(--espresso); color: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.service-card-cta h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; }
.service-card-cta p { color: rgba(243, 235, 221, .78); margin-bottom: .75rem; }
.service-card-cta .text-link { color: var(--color-eyebrow-dark); }

/* Steps */
.steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step { padding: 2rem 1.75rem; border: 1px solid rgba(243, 235, 221, .14); border-radius: var(--radius-lg); background: var(--espresso-2); }
.step-num { display: block; font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--color-eyebrow-dark); margin-bottom: 1rem; }
.step h3 { color: #fff; font-size: 1.25rem; }
.step p { color: rgba(243, 235, 221, .78); margin: 0; }

/* Work */
.ba-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba-card, .gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--tint); }
.ba-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-card:last-child img { object-position: center 70%; }
figcaption {
  display: flex; align-items: center; gap: .625rem;
  padding: .875rem 1rem; font-size: .9375rem; color: var(--color-muted); background: #fff;
}
.tag {
  display: inline-block; padding: .3rem .6rem; border-radius: 3px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--espresso); color: var(--cream);
}
.tag-after { background: var(--color-primary); color: #fff; }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery img { aspect-ratio: 3 / 4; } }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.insta-line { margin-top: 2rem; text-align: center; color: var(--color-muted); }

/* About */
.about-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 6fr; gap: 4.5rem; } }
.about-media { position: relative; max-width: 460px; margin: 0 auto 2.5rem; width: 100%; }
.about-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-inset {
  position: absolute; right: -12px; bottom: -40px; width: 55%;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 25% 30%;
  border: 6px solid var(--tint); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
@media (min-width: 900px) { .about-inset { right: -40px; } }
.about-copy h2 { margin-bottom: .15em; }
.role { font-size: .8125rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 1.5rem; }
.about-copy > p { font-size: 1.0625rem; max-width: 62ch; }
.values { display: grid; gap: 1.25rem; margin-top: 2rem; }
.values li { display: flex; gap: 1rem; align-items: flex-start; }
.values svg { flex: none; color: var(--color-primary); margin-top: 2px; }
.values strong { display: block; }
.values span { color: var(--color-muted); }

/* Area */
.area-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .area-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.towns { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.5rem; }
.towns li { padding: .5rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; font-weight: 500; font-size: .9375rem; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 4 / 3; background: var(--tint); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Quote */
.quote-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .quote-grid { grid-template-columns: 5fr 7fr; gap: 4.5rem; align-items: start; } }
.lead-light { font-size: 1.125rem; color: rgba(243, 235, 221, .8); }
.contact-list { display: grid; gap: .75rem; margin-top: 2rem; }
.contact-list a {
  display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: .75rem 1rem;
  border: 1px solid rgba(243, 235, 221, .14); border-radius: var(--radius-lg);
  color: #fff; text-decoration: none; font-weight: 600; overflow-wrap: anywhere;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.contact-list a:hover { border-color: rgba(143, 203, 155, .6); background: var(--espresso-2); }
.contact-list svg { flex: none; color: var(--color-eyebrow-dark); }
.contact-list small { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 235, 221, .65); }

.quote-form { background: var(--paper); color: var(--color-fg); border-radius: var(--radius-lg); padding: 1.75rem 1.25rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
@media (min-width: 640px) { .quote-form { padding: 2.5rem; } }
.field-row { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .4rem; padding: 0; }
.req { color: var(--color-error); }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: .75rem .875rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--color-fg);
  background: #fff; border: 1px solid #cbbba5; border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(47, 107, 60, .25); }
[aria-invalid="true"] { border-color: var(--color-error) !important; }
.field-error { margin: .35rem 0 0; font-size: .875rem; color: var(--color-error); font-weight: 500; }
.field-error:empty { display: none; }
.helper { margin: .35rem 0 0; font-size: .875rem; color: var(--color-muted); }
.checks { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .checks { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex !important; align-items: center; gap: .625rem; min-height: 48px; margin: 0 !important;
  padding: .5rem .875rem; border: 1px solid var(--color-border); border-radius: var(--radius);
  background: #fff; font-weight: 500 !important; cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.check:hover { border-color: #b9a78e; }
.check input { width: 20px; height: 20px; accent-color: var(--color-primary); flex: none; cursor: pointer; }
.check:has(input:checked) { border-color: var(--color-primary); background: #eef5ef; }
.form-errors {
  margin-bottom: 1.25rem; padding: 1rem; border-radius: var(--radius);
  border: 1px solid #f1b8b2; background: #fdf0ee; color: #7a1a12;
}
.form-errors strong { display: block; margin-bottom: .25rem; }
.form-errors ul { margin: 0; padding-left: 1.25rem; }
.form-errors a { color: inherit; font-weight: 600; }
.form-note { margin: 1rem 0 0; font-size: .9375rem; color: var(--color-muted); text-align: center; }
.form-note:empty { display: none; }
.form-note.success { color: var(--color-primary); font-weight: 600; }

/* Footer */
.site-footer { background: #120b08; color: rgba(243, 235, 221, .7); padding: 3rem 0 6.5rem; font-size: .9375rem; }
@media (min-width: 960px) { .site-footer { padding-bottom: 3rem; } }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr; align-items: center; } .copyright, .credit { grid-column: 1 / -1; } }
.footer-brand { display: flex; align-items: center; gap: .875rem; }
.footer-brand img { border-radius: 4px; }
.footer-brand strong { display: block; color: var(--cream); font-family: var(--font-display); font-size: 1.125rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
@media (min-width: 900px) { .footer-nav { justify-content: flex-end; } }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: .8125rem; }
.footer-nav a:hover { color: #fff; }
.copyright { margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(243, 235, 221, .1); font-size: .8125rem; }

.credit { margin: -.75rem 0 0; font-size: .8125rem; color: rgba(243, 235, 221, .7); }
.credit a { color: var(--color-eyebrow-dark); text-underline-offset: 3px; overflow-wrap: anywhere; }
.credit a:hover { color: #fff; }

/* Mobile action bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilebar);
  display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(26, 17, 13, .96); border-top: 1px solid rgba(243, 235, 221, .12);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px;
  border: 1px solid rgba(243, 235, 221, .25); border-radius: var(--radius);
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.mobile-bar svg { width: 20px; height: 20px; }
.mobile-bar-primary { background: var(--color-primary); border-color: var(--color-primary) !important; color: #fff !important; text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem !important; }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
