/* ====================================================
   joshdlange.com — Shared Stylesheet
   ==================================================== */

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

:root {
  --black: #080809;
  --surface: #0f0f11;
  --surface2: #17171a;
  --border: rgba(255,255,255,0.07);
  --text: #f0f0f2;
  --muted: #7a7a85;
  --accent: #ff5c2b;
  --accent2: #ff8c5a;
  --green: #22c55e;
  --blue: #3b82f6;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(8,8,9,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-phone { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 0.35rem; transition: color 0.2s; }
.nav-phone:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: #fff; padding: 0.55rem 1.25rem; border-radius: 6px; font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: background 0.2s; display: flex; align-items: center; gap: 0.4rem; cursor: pointer; border: none; font-family: inherit; }
.nav-cta:hover { background: var(--accent2); }
@media (max-width: 768px) { .nav-links { display: none; } .nav-phone { display: none; } }

/* ── CONTACT MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 2.5rem; max-width: 560px; width: 100%; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: none; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0.25rem;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-close svg { width: 20px; height: 20px; }
.modal-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.modal-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ── HERO BASE ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 1.5rem 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,92,43,0.13) 0%, transparent 70%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.018'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,92,43,0.1); border: 1px solid rgba(255,92,43,0.28);
  color: var(--accent2); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 2rem;
}
.hero-badge svg { width: 12px; height: 12px; }
h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900;
  line-height: 1.07; letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 600px; margin: 0 auto 2rem; line-height: 1.75; }
.hero-pills { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
  padding: 0.35rem 0.85rem; border-radius: 100px;
}
.hero-pill svg { width: 13px; height: 13px; color: var(--accent); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: #fff; padding: 0.9rem 2rem;
  border-radius: 8px; font-size: 1rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,92,43,0.3); }
.btn-ghost {
  background: transparent; color: var(--text); padding: 0.9rem 2rem;
  border-radius: 8px; font-size: 1rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border);
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: var(--surface); }
.btn-xl { padding: 1.05rem 2.4rem; font-size: 1.05rem; border-radius: 10px; }
.btn-blue { background: var(--blue) !important; }
.btn-blue:hover { background: #60a5fa !important; box-shadow: 0 8px 24px rgba(59,130,246,0.3) !important; }

/* ── STATS BAR ── */
.stats-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.stats-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.03em; color: var(--accent); display: block; }
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.4; }

/* ── SHARED SECTION ── */
section { padding: 5.5rem 1.5rem; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.85rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1rem; }
.section-desc { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 3rem; line-height: 1.75; }
.section-bg { background: var(--surface); }

/* ── SERVICE CARDS ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.service-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem; transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: rgba(255,92,43,0.3); transform: translateY(-2px); }
.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,92,43,0.1); border: 1px solid rgba(255,92,43,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--accent);
}
.service-icon svg { width: 20px; height: 20px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-size: 0.72rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: 100px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--muted); }
/* Sales service card accent */
.service-card--sales .service-icon { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); color: var(--blue); }
.service-card--sales:hover { border-color: rgba(59,130,246,0.3); }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--black); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; position: relative; }
.quote-mark { position: absolute; top: 1.5rem; right: 1.75rem; color: rgba(255,92,43,0.2); }
.quote-mark svg { width: 28px; height: 28px; }
.testimonial-text { font-size: 0.95rem; color: var(--text); line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; color: #fff; flex-shrink: 0; }
.author-name { font-size: 0.9rem; font-weight: 700; }
.author-title { font-size: 0.78rem; color: var(--muted); }
.stars { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.05em; margin-bottom: 0.75rem; display: flex; gap: 0.2rem; }
.stars svg { width: 14px; height: 14px; fill: var(--accent); }

/* ── CTA SECTION ── */
.cta-section { background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(255,92,43,0.14) 0%, transparent 70%); text-align: center; padding: 6rem 1.5rem; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.5rem; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT FORM (modal) ── */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.form-group input,
.form-group textarea {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.75rem 1rem; color: var(--text); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,92,43,0.12); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-submit-btn { align-self: flex-start; cursor: pointer; border: none; font-family: inherit; }
.form-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success { color: var(--text); font-size: 0.95rem; padding: 0.75rem 0; }
.form-error { color: #f87171; font-size: 0.95rem; padding: 0.75rem 0; }
.form-error a { color: #f87171; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; text-align: center; color: var(--muted); font-size: 0.82rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
