/* ============================================================
   SteadyWebCo - styles.css

   GOAL:
   - Clean section-based backgrounds (each section controls its own color)
   - No gradient overlays leaking into sections
   - Simple, modern, "agency" UI look
   - Easy to edit later

   TIP:
   - If you ever see multiple background shades inside ONE section,
     check for:
       1) body background gradient
       2) section pseudo-elements (like ::before overlays)
       3) wrappers that extend beyond the section
   This file avoids those issues by design.
   ============================================================ */

/* ---------------------------
   CSS RESET / BASE
   --------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;

  /* Base font */
  font-family: Arial, sans-serif;

  /* Base text color */
  color: #eaf1ff;

  /* IMPORTANT:
     Keep the body background neutral & simple.
     We do NOT use gradients on body because that can "bleed"
     into sections and cause the exact issue you showed. */
  background: #060a12;

  /* Smooth text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------------------------
   DESIGN TOKENS / VARIABLES
   --------------------------- */
:root {
  /* Layout */
  --container: 1100px;
  --radius-lg: 18px;
  --radius-md: 14px;

  /* Spacing */
  --section-pad-y: 86px;

  /* Colors (blue/gray palette) */
  --bg-hero: #070c17;       /* hero section */
  --bg-services: #070f1f;   /* services section */
  --bg-how: #060f22;        /* how-it-works section (consistent shade) */
  --bg-pricing: #070c17;    /* pricing section */
  --bg-contact: #070f1f;    /* contact section */

  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.10);

  --muted: rgba(234, 241, 255, 0.75);
  --muted-2: rgba(234, 241, 255, 0.55);

  --accent: #8fb7ff; /* light blue accent */
  --accent-2: #b8cffc;
}

/* ---------------------------
   UTILITIES
   --------------------------- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: var(--section-pad-y) 0;
}

.muted {
  color: var(--muted-2);
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.2px;
}

.section-head p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 14px;
  background: #111a33;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus {
  left: 10px;
}

/* ---------------------------
   HEADER / NAV
   --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  /* Solid background to avoid transparency artifacts */
  background: rgba(6, 10, 18, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(143, 183, 255, 0.16);
  border: 1px solid rgba(143, 183, 255, 0.28);
  color: var(--accent-2);
  font-size: 14px;
}

.brand-text {
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: #ffffff;
}

.nav-cta {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(143, 183, 255, 0.16);
  border: 1px solid rgba(143, 183, 255, 0.28);
  color: #ffffff;
}

/* ---------------------------
   BUTTONS
   --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-primary {
  background: rgba(143, 183, 255, 0.22);
  border-color: rgba(143, 183, 255, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   SECTION BACKGROUNDS (THIS IS THE KEY FIX)
   - Each section defines its own background color
   - NO gradients on body
   - NO pseudo-element overlays on wrappers
   ============================================================ */
.section-hero { background: var(--bg-hero); }
.section-services { background: var(--bg-services); }

/* ✅ How it works is one clean shade */
.section-how { background: var(--bg-how); }

.section-pricing { background: var(--bg-pricing); }
.section-contact { background: var(--bg-contact); }

/* ---------------------------
   HERO
   --------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
}

.hero-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.trust-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.trust-number {
  font-weight: 900;
  display: block;
  font-size: 16px;
}

.trust-label {
  color: var(--muted-2);
  font-size: 13px;
}

/* Hero preview card */
.hero-preview {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.preview-card {
  width: min(380px, 100%);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.preview-top {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.preview-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.preview-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-90 { width: 90%; }

.preview-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-block {
  height: 70px;
  border-radius: 14px;
  background: rgba(143, 183, 255, 0.12);
  border: 1px solid rgba(143, 183, 255, 0.18);
}

.preview-cta {
  height: 44px;
  border-radius: 14px;
  background: rgba(143, 183, 255, 0.20);
  border: 1px solid rgba(143, 183, 255, 0.30);
}

.preview-caption {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  text-align: right;
}

/* ---------------------------
   SERVICES CARDS
   --------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* ---------------------------
   HOW IT WORKS (Steps)
   ✅ Cards have their own subtle background,
   but the SECTION background remains ONE shade.
   --------------------------- */
.steps {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.step-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;

  /* Card styling */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;

  background: rgba(143, 183, 255, 0.16);
  border: 1px solid rgba(143, 183, 255, 0.25);
  color: #ffffff;
}

.step-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* ---------------------------
   PRICING
   --------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.price-card.featured {
  border-color: rgba(143, 183, 255, 0.40);
  background: rgba(143, 183, 255, 0.09);
}

.pill {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(143, 183, 255, 0.22);
  border: 1px solid rgba(143, 183, 255, 0.32);
}

.price-card h3 {
  margin: 0;
}

.price {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
}

.price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  margin-left: 6px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.list li {
  padding-left: 18px;
  position: relative;
}
.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------------------------
   CONTACT
   --------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
}

.contact-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-details p {
  margin: 0 0 8px;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.20);
  color: #ffffff;

  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(143, 183, 255, 0.40);
}

.form-note {
  margin: 0;
  font-size: 12px;
}

/* ---------------------------
   FOOTER
   --------------------------- */
.site-footer {
  background: #060a12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------
   RESPONSIVE
   --------------------------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-preview {
    justify-items: start;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }
}
