/* East Texas Home Pros — shared stylesheet
   Tokens: bg #F2F2F3 · panels #E9E9EA · text #1D1F20 ·
           buttons/links #5980A6 · secondary blue #728FAB */

:root {
  --bg: #F2F2F3;
  --panel: #E9E9EA;
  --text: #1D1F20;
  --link: #5980A6;
  --blue-2: #728FAB;
  --steel: #5980A6;
  --radius: 6px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  position: relative;
}

/* Watermark: fixed pencil-sketch logo behind all content at ~12% opacity */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('images/watermark.png') center center / min(90vmin, 720px) no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

header.site-header,
main,
footer.site-footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid #d8d8da;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; }
.brand img { height: 48px; width: auto; }
.brand-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.brand-tag { font-size: 0.85rem; color: #55585a; }
.main-nav { display: flex; gap: 1.1rem; align-items: center; }
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a:hover { color: var(--link); }
.call-link {
  font-weight: 600;
  color: #fff;
  background: var(--link);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.call-link:hover { text-decoration: none; background: var(--blue-2); }

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
section { margin-bottom: 3.5rem; }
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--blue-2);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.divider { border: 0; border-top: 1px solid #d8d8da; margin: 3rem 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--link);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn:hover { background: var(--blue-2); text-decoration: none; }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- home hero ---------- */
.hero {
  background: var(--steel);
  color: #fff;
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  margin-bottom: 3rem;
}
.hero h1 { color: #fff; font-size: 3rem; max-width: 16em; }
.hero p { font-size: 1.15rem; max-width: 44em; color: #f0f3f6; }
.hero .btn { background: #fff; color: var(--steel); }
.hero .btn:hover { background: var(--panel); }
.hero .btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.hero .btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* ---------- quick facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fact {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
}
.fact-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 2rem; color: var(--steel); }
.fact-label { font-size: 1rem; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---------- guarantee ---------- */
.guarantee-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }

/* ---------- photos: always full-frame, never cropped ---------- */
.photo-frame {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.photo-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
}
.photo-frame figcaption { padding: 0.9rem 0.4rem 0.3rem; }
.caption-title { font-weight: 700; font-size: 1.1rem; display: block; }
.caption-sub { display: block; font-style: italic; margin-top: 0.25rem; }
.caption-desc { display: block; margin-top: 0.5rem; font-size: 0.98rem; }

/* recent work */
.recent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

/* work page */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
a.work-card:hover { text-decoration: none; }
a.work-card:hover .work-card-title { color: var(--link); }
.work-card-visual { padding: 0.75rem 0.75rem 0; }
.work-card-visual img { width: 100%; height: auto; object-fit: contain; border-radius: 3px; }
.work-card-copy { padding: 1rem 1.25rem 1.4rem; }
.work-card-category {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--blue-2);
  font-weight: 600;
}
.work-card-title { font-size: 1.45rem; margin: 0.25rem 0 0.5rem; }
.work-card-copy p { margin-bottom: 0; font-size: 0.98rem; }

/* photo placeholder (photos not yet provided) */
.photo-placeholder {
  border: 2px dashed #b9bcc0;
  border-radius: var(--radius);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777b7f;
  font-size: 0.95rem;
  text-align: center;
  padding: 1.5rem;
  background: transparent;
}

/* project pages */
.project-meta { margin-bottom: 0.4rem; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; }
.cta-block { margin-top: 3rem; text-align: center; }
.cta-block .call-line { margin-top: 0.8rem; }

/* services */
.service-block { margin-bottom: 2.75rem; }
.service-details { margin: 1rem 0 0 1.2rem; padding: 0; }
.service-details li { margin-bottom: 0.6rem; }
.flooring-photo { margin: 1.25rem 0; max-width: 640px; }

/* about */
.record-list { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.5rem; max-width: 520px; }
.record-list dt { font-weight: 700; }
.record-list dd { margin: 0; }
.about-photo { max-width: 560px; margin: 2rem 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #c6c9cd;
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid #d8d8da; margin-top: 2rem; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  font-size: 0.98rem;
}
.footer-legal { font-weight: 700; font-size: 1.1rem; }
.footer-contact { margin: 0.6rem 0; }
.footer-service { margin: 0.6rem 0; color: #4a4d4f; }
.footer-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  font-size: 0.9rem;
  color: #6a6d70;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .facts, .card-grid, .work-grid { grid-template-columns: 1fr 1fr; }
  .recent-grid, .guarantee-points, .before-after, .gallery-grid, .contact-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 2.25rem 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .main-nav { display: none; }
}
@media (max-width: 520px) {
  .facts, .card-grid, .work-grid { grid-template-columns: 1fr; }
}
