/* ── Brand CSS variables ─────────────────────────────────── */
:root {
  --background:        #1c1c1c;
  --foreground:        #ffffff;
  --card:              #2a2a2a;
  --card-foreground:   #ffffff;
  --secondary:         #4a4a4a;
  --muted-foreground:  #c8c8c8;
  --border:            #3a3a3a;
  --input:             #252525;
  --primary:           #d4682a;
  --primary-foreground:#ffffff;
  --dark:              #111111;
  --darkest:           #0d0d0d;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utility classes used outside Tailwind ───────────────── */
.container {
  width: 100%;
  max-width: 80rem; /* 1280px — matches max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (min-width: 1024px) {
  .container { padding-left: 4rem; padding-right: 4rem; }
}

/* ── Scrollbar (webkit) ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Focus ring ─────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Horizontal tab scroll (services page) ──────────────── */
.tab-bar { scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }

/* ── Services tab active state (set by JS) ──────────────── */
.mm-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Top accent bar animation on service/review cards ───── */
.mm-card { position: relative; overflow: hidden; }
.mm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.mm-card:hover::before { transform: scaleX(1); }
.mm-card:hover { border-color: rgba(212,104,42,0.4) !important; }

/* ── Mobile menu open state ─────────────────────────────── */
#mm-mobile-menu { display: none; }
#mm-mobile-menu.open { display: block; }

/* ── CF7 / WPForms reset inside .cf7-wrapper ────────────── */
.cf7-wrapper .wpcf7-form,
.cf7-wrapper form { display: flex; flex-direction: column; gap: 1.25rem; }
/* grid children must not inherit flex gap — they create their own layout context */
.cf7-wrapper .mm-cf7-grid { flex-shrink: 0; }

.cf7-wrapper input[type="text"],
.cf7-wrapper input[type="email"],
.cf7-wrapper input[type="tel"],
.cf7-wrapper select,
.cf7-wrapper textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: border-color 0.2s;
  font-family: inherit;
}

.cf7-wrapper input:focus,
.cf7-wrapper select:focus,
.cf7-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.cf7-wrapper input[type="submit"],
.cf7-wrapper button[type="submit"] {
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.cf7-wrapper input[type="submit"]:hover,
.cf7-wrapper button[type="submit"]:hover { opacity: 0.9; }

.cf7-wrapper .wpcf7-not-valid-tip { color: #ef4444; font-size: 0.75rem; margin-top: 0.25rem; }
.cf7-wrapper .wpcf7-response-output { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; }
.cf7-wrapper .wpcf7-mail-sent-ok { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.cf7-wrapper .wpcf7-validation-errors { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* CF7 form layout helpers */
.cf7-wrapper .mm-cf7-field { display: flex !important; flex-direction: column !important; gap: 0.375rem !important; }
.cf7-wrapper .mm-cf7-grid  { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 1.25rem !important; }
@media (max-width: 640px) { .cf7-wrapper .mm-cf7-grid { grid-template-columns: 1fr !important; } }

.cf7-wrapper .mm-cf7-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c8c8c8;
  margin-bottom: 0;
}
.cf7-wrapper .mm-required { color: var(--primary); }

/* Remove CF7's default span wrapper margins */
.cf7-wrapper .wpcf7-form-control-wrap { display: block; width: 100%; }
.cf7-wrapper span.wpcf7-form-control-wrap input,
.cf7-wrapper span.wpcf7-form-control-wrap select,
.cf7-wrapper span.wpcf7-form-control-wrap textarea { margin: 0; }

/* ── Prose styles for WP editor content (Privacy, Terms etc) ── */
.prose-mm { color: #c8c8c8 !important; line-height: 1.8 !important; font-size: 0.9375rem !important; }

.prose-mm h2 {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 2.5rem !important;
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid #3a3a3a !important;
}
.prose-mm h3 {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem !important;
}
.prose-mm h4 {
  color: #e0e0e0 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.375rem !important;
}

.prose-mm p {
  margin-bottom: 1rem !important;
  color: #c8c8c8 !important;
}

.prose-mm ul {
  list-style: disc !important;
  padding-left: 1.5rem !important;
  margin: 0.5rem 0 1rem !important;
  display: block !important;
}
.prose-mm ol {
  list-style: decimal !important;
  padding-left: 1.5rem !important;
  margin: 0.5rem 0 1rem !important;
  display: block !important;
}
.prose-mm li {
  display: list-item !important;
  color: #c8c8c8 !important;
  margin-bottom: 0.375rem !important;
  padding-left: 0.25rem !important;
}

.prose-mm strong { color: #ffffff !important; font-weight: 600 !important; }
.prose-mm em { font-style: italic !important; }

.prose-mm a { color: #d4682a !important; text-decoration: underline !important; }
.prose-mm a:hover { opacity: 0.85 !important; }

.prose-mm hr {
  border: none !important;
  border-top: 1px solid #3a3a3a !important;
  margin: 2rem 0 !important;
}

.prose-mm blockquote {
  border-left: 3px solid #d4682a !important;
  padding-left: 1rem !important;
  color: #a0a0a0 !important;
  font-style: italic !important;
  margin: 1.5rem 0 !important;
}
