/* ================================================================
   TJ HANDYMAN, LLC — SITE STYLES
   ================================================================
   COLOR TOKENS (edit here to change the whole site's palette)
================================================================ */
:root {
  --bg:            #0B0C10;   /* main background */
  --bg-elevated:   #14161C;   /* cards, header, footer */
  --bg-elevated-2: #1C1F27;   /* hover states, inputs */
  --border:        #262A34;

  --blue:          #2436E8;   /* primary brand blue (from logo) */
  --blue-light:    #5B70FF;   /* hover / glow */
  --blue-dim:      #16209E;   /* pressed state */

  --text:          #F2F3F7;
  --text-muted:    #9298A6;
  --text-faint:    #5B606E;

  --white: #ffffff;

  --radius: 10px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}

p { color: var(--text-muted); margin: 0; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin: 0 0 12px;
  font-weight: 600;
}

/* Signature motif: diagonal "cut" borrowed from the logo's T slash.
   Used sparingly as a standalone accent below headlines and card corners. */
.cut-accent {
  display: block;
  width: 64px;
  height: 6px;
  margin: 18px auto 0;
  background: var(--blue);
  clip-path: polygon(0 100%, 100% 100%, 78% 0, 0% 0);
}

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover { background: var(--blue-light); }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-light); }

/* ================================================================
   HEADER
================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-img { height: 52px; width: auto; display: block; }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--blue-light); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.phone-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 100px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.phone-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #35D07F;
  box-shadow: 0 0 0 3px rgba(53,208,127,0.15);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0;
}

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36,54,232,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,54,232,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}
.hero-logo {
  height: 100px;
  width: auto;
  margin: 0 auto 28px;
  display: block;
}
.hero-greeting {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.25;
  margin: 0 auto 16px;
}
.hero-sub {
  font-size: 15.5px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.ask-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 8px 8px 20px;
  max-width: 640px;
  margin: 0 auto;
  transition: border-color 0.15s ease;
}
.ask-box:focus-within { border-color: var(--blue-light); }
.ask-icon { color: var(--text-faint); flex-shrink: 0; }
#ask-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15.5px;
  font-family: 'Inter', sans-serif;
  padding: 12px 0;
}
#ask-input::placeholder { color: var(--text-faint); }
.ask-submit {
  background: var(--blue);
  color: white;
  border: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.ask-submit:hover { background: var(--blue-light); }

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.pill {
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.pill:hover {
  border-color: var(--blue-light);
  color: var(--text);
  background: rgba(36,54,232,0.08);
}

/* ================================================================
   TRUST BAR
================================================================ */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 24px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--blue-light);
}
.trust-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ================================================================
   SERVICES PREVIEW
================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--blue-light); transform: translateY(-2px); }
.service-card.featured { border-color: var(--blue); background: linear-gradient(160deg, rgba(36,54,232,0.14), var(--bg-elevated) 60%); }
.cut-corner {
  position: absolute;
  top: 0; right: 0;
  width: 36px; height: 36px;
  background: var(--blue);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.85;
}
.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  text-transform: none;
}
.service-card p { font-size: 14.5px; margin-bottom: 20px; }
.card-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--blue-light);
  font-weight: 500;
}

/* ================================================================
   FLOATING TESTIMONIAL
================================================================ */
.floating-testimonial {
  position: fixed;
  bottom: 28px;
  left: 28px;
  max-width: 320px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 40;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.floating-testimonial.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.testimonial-quote { font-size: 13.5px; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.testimonial-author { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-muted); }
.testimonial-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: var(--text-faint);
  font-size: 18px; cursor: pointer; line-height: 1;
}

/* ================================================================
   ABOUT TEASER
================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.about-text { margin-bottom: 28px; font-size: 15px; }
.about-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.badge-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.badge-card span { font-size: 20px; }

/* ================================================================
   PROJECTS TEASER
================================================================ */
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 340px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.video-placeholder:hover { border-color: var(--blue-light); }
.play-button {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.video-placeholder p { color: var(--text-muted); font-size: 14px; }

/* ================================================================
   BOTTOM CTA
================================================================ */
.bottom-cta {
  text-align: center;
  padding: 90px 24px;
  background: linear-gradient(180deg, var(--bg), var(--bg-elevated));
  border-top: 1px solid var(--border);
}
.bottom-cta h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.bottom-cta p { max-width: 480px; margin: 0 auto 32px; }

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 44px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; max-width: 280px; }
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badges { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-testimonial { left: 16px; right: 16px; max-width: none; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
