/* ========================================
   SurfaceZap — Main Stylesheet
   ======================================== */

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

:root {
  --bg:         #0a0c10;
  --bg-card:    #111520;
  --bg-dark:    #060810;
  --accent:     #f97316;        /* laser orange */
  --accent-dim: #7c3512;
  --text:       #e8eaf0;
  --text-muted: #8892a4;
  --border:     #1e2535;
  --radius:     10px;
  --radius-lg:  18px;
  --max-w:      1100px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   ROTATING BACKGROUND
   ======================================== */
.bg-rotator {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  transform: scale(1.04);
  animation: bg-drift 24s ease-in-out infinite alternate;
}

.bg-slide--active {
  opacity: 1;
}

/* Slow Ken Burns drift */
@keyframes bg-drift {
  from { transform: scale(1.04) translateX(0); }
  to   { transform: scale(1.08) translateX(-1.5%); }
}

/* Dark overlay: heavier in center (content area), lighter at edges */
.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    /* hard mask over the content column */
    linear-gradient(
      to right,
      rgba(10,12,16,0.15) 0%,
      rgba(10,12,16,0.82) calc(50% - 640px),
      rgba(10,12,16,0.96) calc(50% - 480px),
      rgba(10,12,16,0.96) calc(50% + 480px),
      rgba(10,12,16,0.82) calc(50% + 640px),
      rgba(10,12,16,0.15) 100%
    ),
    /* top-to-bottom fade so hero text stays readable */
    linear-gradient(
      to bottom,
      rgba(10,12,16,0.55) 0%,
      rgba(10,12,16,0.80) 40%,
      rgba(10,12,16,0.97) 75%
    );
}

/* On narrow screens where there are no margins, darken fully */
@media (max-width: 1200px) {
  .bg-overlay {
    background: rgba(10,12,16,0.90);
  }
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 80px 0; }
.section-dark { background: var(--bg-dark); }

/* --- Typography helpers --- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-sub {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  border: none;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; text-align: center; }

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo { text-decoration: none; }
.logo-zap {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-zap em {
  font-style: normal;
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--text); }
.main-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.main-nav .nav-cta:hover { opacity: 0.88; }

.nav-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-phone:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.hero-trust li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.check { color: var(--accent); font-weight: 700; }

/* ========================================
   SERVICES
   ======================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 0;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  margin-bottom: 1.25rem;
}
.service-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.service-link:hover { text-decoration: underline; }

/* ========================================
   WHY
   ======================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.why-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========================================
   SERVICE AREA
   ======================================== */
.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
.area-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.area-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.area-note a { font-weight: 600; }

/* ========================================
   CONTACT
   ======================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text h2 { margin-bottom: 1rem; }
.contact-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-trust li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--accent); }

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-muted); }
.form-row select option { background: var(--bg); }
.form-row textarea { resize: vertical; min-height: 100px; }

.contact-direct {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.contact-direct span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.contact-phone {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.contact-phone:hover { color: var(--accent); }
.contact-phone strong { color: var(--accent); }

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-contact a,
.footer-contact span {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
.footer-bottom span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========================================
   SUCCESS STATE (form)
   ======================================== */
.form-success {
  text-align: center;
  padding: 2rem;
}
.form-success h3 { color: var(--accent); margin-bottom: 0.5rem; }
.form-success p { color: var(--text-muted); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 70px 0 60px; }

  h1 { font-size: 2rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
    align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1rem; }
  .main-nav .nav-cta { width: 100%; text-align: center; }

  .menu-toggle { display: flex; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
