/* ===== Base ===== */
:root{
  --bg: #070A0F;
  --panel: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.86);
  --muted: rgba(255,255,255,0.66);
  --heading: rgba(255,255,255,0.95);
  --accent: #22D3EE;
  --accent2: #0EA5E9;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Don’t hide overflow globally (it “cuts off” effects on some layouts).
   We’ll prevent overflow properly on the few elements that cause it. */
html, body { width: 100%; }

/* Media safety */
img, svg, video, iframe{
  max-width: 100%;
  height: auto;
}

/* Container */
.container{
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
}

/* Prevent sticky header from hiding anchored sections */
.section{ scroll-margin-top: 86px; }

/* Focus styles */
a:focus-visible,
button:focus-visible{
  outline: 2px solid rgba(34,211,238,0.40);
  outline-offset: 4px;
  border-radius: 12px;
}

/* ========== Header ========== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7,10,15,0.65);
  border-bottom: 1px solid var(--border);
}

/* Header layout wrapper (safe widths, no overflow) */
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
  flex-wrap: wrap; /* allows nav + CTA to drop to next line cleanly on mobile */
}


/* Logo */
.logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0; /* prevents flex overflow */
}

.logo-mark{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(34,211,238,0.35);
  flex: 0 0 auto;
}

/* Desktop nav */
.nav{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nav a{
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 10px;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.nav a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--heading);
}

.header-cta{
  text-decoration: none;
  color: #001018 !important;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
}

/* Mobile menu button (hidden on desktop) */
.nav-toggle{
  display: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--heading);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

/* ========== Buttons (reusable) ========== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  max-width: 100%;
}

.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  color: #001018;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.btn-secondary{
  color: var(--heading);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}

/* ========== Hero ========== */
.hero{
  padding: 80px 0 56px 0;
  position: relative;
  overflow: clip; /* prevents glow from creating horizontal scroll */
}

/* Background glow */
.hero::before{
  content:"";
  position:absolute;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  width: min(1200px, 140vw);
  height: 520px;
  background:
    radial-gradient(closest-side at 20% 30%, rgba(34,211,238,0.30), rgba(34,211,238,0) 70%),
    radial-gradient(closest-side at 60% 10%, rgba(14,165,233,0.22), rgba(14,165,233,0) 72%),
    radial-gradient(closest-side at 90% 40%, rgba(34,211,238,0.14), rgba(34,211,238,0) 75%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.hero-copy h1{
  margin: 10px 0 12px 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.hero-eyebrow{
  margin: 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  flex-wrap: wrap;
}

.hero-sub{
  margin: 0 0 18px 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-badges{
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges li{
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  padding: 8px 10px;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Right-side card */
.hero-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
  min-width: 0;
}

.hero-card h2{
  margin: 0 0 10px 0;
  color: var(--heading);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.hero-card-row{
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-card-row:first-of-type{ border-top: 0; }

.hero-card .label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  font-weight: 900;
}

.hero-card .value{
  color: var(--heading);
  text-decoration: none;
  font-weight: 750;
  overflow-wrap: anywhere; /* prevents email/phone overflow */
}

.hero-card-note{
  margin: 12px 0 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  line-height: 1.6;
}

/* ========== Sections ========== */
.section{ padding: 56px 0; }

.section-header{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.section-header h2{
  margin: 0;
  color: var(--heading);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section-header p{
  margin: 0;
  color: var(--muted);
  justify-self: end;
  text-align: right;
  max-width: 48ch;
}

/* ========== Services ========== */
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 18px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  min-width: 0;
}

.service-card:hover{
  transform: translateY(-2px);
  border-color: rgba(34,211,238,0.35);
  background: rgba(255,255,255,0.07);
}

.service-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,0.35), rgba(14,165,233,0.10));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 22px rgba(34,211,238,0.08);
  margin-bottom: 10px;
  font-size: 18px;
}

.service-card h3{
  margin: 0 0 6px 0;
  color: var(--heading);
  font-size: 16px;
}

.service-card p{
  margin: 0 0 12px 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.7;
}

.service-points{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.service-points li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  min-width: 0;
}

.service-points li::before{
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(34,211,238,0.9);
  box-shadow: 0 0 10px rgba(34,211,238,0.35);
  flex: 0 0 auto;
}

/* ========== Steps / Process ========== */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.step::before{
  content:"";
  position:absolute;
  inset: -40px -40px auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,0.22), rgba(34,211,238,0) 65%);
  filter: blur(6px);
  pointer-events: none;
}

/* ========== Reviews ========== */
.reviews-grid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  align-items: stretch;
}

.review{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.review::before{
  content:"";
  position:absolute;
  inset: -60px -60px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,0.20), rgba(14,165,233,0) 65%);
  filter: blur(8px);
  pointer-events: none;
}

.review-featured{
  grid-row: span 2;
  padding: 22px;
}

.review p{ overflow-wrap: anywhere; }

/* ========== Areas ========== */
.area-card{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
}

.area-visual{
  position: relative;
  min-height: 260px;
  overflow: hidden; /* stops pseudo layers causing sideways scroll */
  background:
    radial-gradient(circle at 30% 20%, rgba(34,211,238,0.22), rgba(34,211,238,0) 60%),
    radial-gradient(circle at 70% 60%, rgba(14,165,233,0.18), rgba(14,165,233,0) 62%),
    linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.area-copy{ padding: 18px; min-width: 0; }

.area-list{
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-list li{
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  padding: 8px 10px;
  border-radius: 999px;
  max-width: 100%;
}

/* ========== FAQ ========== */
.faq{ display: grid; gap: 12px; }
.faq-item{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 14px 16px;
  overflow: hidden;
}
.faq-item summary{
  cursor: pointer;
  list-style: none;
  font-weight: 900;
  color: var(--heading);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item p{ overflow-wrap: anywhere; }

/* ========== Contact ========== */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.contact-form,
.contact-card{
  min-width: 0;
}

.contact-form{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 18px;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: var(--heading);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
}

.form-success{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.35);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 750;
}

/* ========== Responsive (the important part) ========== */

/* Tablet and down */
@media (max-width: 980px){
  .section-header{ grid-template-columns: 1fr; }
  .section-header p{
    justify-self: start;
    text-align: left;
    max-width: 60ch;
  }

  .service-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: 1fr; }
  .reviews-grid{ grid-template-columns: 1fr; }
  .review-featured{ grid-row: auto; }

  .area-card{ grid-template-columns: 1fr; }
  .area-visual{ min-height: 220px; }

  .contact-grid{ grid-template-columns: 1fr; }

  .hero{ padding: 56px 0 44px 0; }
  .hero-grid{ grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 768px){

  /* Mobile header: logo + toggle on one row */
  .site-header .container{
    padding: 12px 0;
  }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* Hide nav by default on mobile */
  .nav{
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    padding: 12px;
    background: rgba(7,10,15,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 8px;
  }

  /* When header has .nav-open, show the menu */
  .site-header.nav-open .nav{
    display: flex;
  }

  .nav a{
    padding: 12px 12px;
    border-radius: 12px;
    width: 100%;
  }

  .header-cta{
    width: 100%;
    text-align: center;
    padding: 12px 14px;
  }

  /* Prevent chips/long text from forcing overflow */
  .hero-badges li,
  .area-list li{
    white-space: normal;
  }
}

/* Small phones */
@media (max-width: 480px){
  .container{ width: min(1100px, 100% - 28px); }
  .hero-copy h1{ font-size: clamp(30px, 9vw, 44px); }
}

@media (max-width: 768px){

  /* keep logo on its own row */
  .site-header .container{
    padding: 12px 0;
  }

  .logo{
    width: 100%;
  }

  /* nav becomes one-row scroll (no wrapping into 2 lines) */
  .nav{
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 6px 2px;
    scrollbar-width: none; /* Firefox */
  }
  .nav::-webkit-scrollbar{ display: none; } /* Chrome/Safari */

  .nav a{
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* CTA drops under nav, full width */
  .header-cta{
    width: 100%;
    text-align: center;
    margin-top: 6px;
  }
}
