/* ───────────────────────────────────────────────────────────────
   GTMDot multi-page base styles.
   Shared by index.html, services.html, about.html, contact.html,
   and every per-service page.
   ─────────────────────────────────────────────────────────────── */

:root {
  /* tokens — overridable per-site per DESIGN-HEURISTICS.md vertical palette */
  --accent: #1A5490;
  --accent-soft: color-mix(in srgb, var(--accent) 15%, white);
  --ink: #1a1a1a;
  --ink-soft: #555;
  --paper: #ffffff;
  --paper-soft: #f7f7f5;
  --rule: #e5e5e0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───── Header / nav ───── */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover { color: var(--accent); }

.site-nav .cta-btn {
  background: var(--accent);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* hamburger — aligned right per Jesse's spec */
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 16px;
    gap: 12px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
  }
}

/* ───── Hero ───── */

.hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 100%);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 640px;
}

.cta-btn, a.cta-btn, button.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ───── Services ───── */

section {
  padding: 56px 0;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.service-card .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ───── Reviews bar ───── */

.reviews-bar {
  background: var(--paper-soft);
  padding: 48px 0;
}

.reviews-bar .reviews-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0;
  scroll-snap-type: x mandatory;
}

.review-mini {
  flex: 0 0 320px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 20px;
  scroll-snap-align: start;
}

.review-mini-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.review-name { font-weight: 600; color: var(--ink); }
.review-source { color: var(--ink-soft); }

/* Empty-state card when captured < 3 — the anti-fabrication pattern */
.reviews-empty-state {
  text-align: center;
  padding: 32px 20px;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-md);
}

.reviews-empty-state p { margin: 0 0 12px; }

.reviews-empty-state .gbp-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

/* ───── Footer ───── */

.site-footer {
  background: var(--ink);
  color: white;
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 14px;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* ───── Contact form ───── */

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

/* Upload module — drag/drop for photos + video */
.contact-form .upload-area {
  border: 2px dashed var(--rule);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.contact-form .upload-area:hover,
.contact-form .upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ───── Ambiguous photo slot (imported from photo-slot.css) ───── */

.gtmdot-photo-slot {
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gtmdot-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gtmdot-photo-slot[data-resolved="false"]::before {
  content: "📷 " attr(data-slot-id) " — " attr(data-context);
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-family: ui-monospace, Menlo, Monaco, "Courier New", monospace;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
}

.gtmdot-photo-slot[data-resolved="true"]::before { display: none; }

.gtmdot-photo-slot figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: white;
  padding: 16px 12px 10px;
  font-size: 13px;
  line-height: 1.3;
}

.gtmdot-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
