/* ============================================================
   Bearing Digital — style.css
   ============================================================ */

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

:root {
  --navy:    #0B1F3A;
  --blue:    #1A3D6E;
  --accent:  #2D9CDB;
  --bright:  #56CCF2;
  --light:   #F0F6FF;
  --white:   #FFFFFF;
  --gray:    #6B7A99;
  --border:  #DDE4F0;
  --text:    #1C2B45;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --shadow: 0 4px 24px rgba(11,31,58,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Typography ────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

/* ── Nav ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,31,58,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__logo span { color: var(--bright); }

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--white); text-decoration: none; }

.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav__cta:hover { background: var(--bright) !important; }

/* ── Hero ───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,156,219,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__tag {
  display: inline-block;
  background: rgba(45,156,219,0.18);
  border: 1px solid rgba(45,156,219,0.35);
  color: var(--bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 span { color: var(--bright); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 480px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--bright);
  color: var(--navy);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  margin-left: 12px;
}

.btn--ghost:hover {
  border-color: var(--white);
  text-decoration: none;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__card-stack {
  position: relative;
  width: 320px;
  height: 280px;
}

.hero__card {
  position: absolute;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
  backdrop-filter: blur(8px);
}

.hero__card--main {
  width: 280px;
  top: 20px; left: 0;
  z-index: 2;
}

.hero__card--back {
  width: 240px;
  top: 0; left: 40px;
  z-index: 1;
  opacity: 0.5;
}

.hero__card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.hero__card-title { font-family: var(--font-head); font-size: 0.85rem; color: var(--white); font-weight: 600; }
.hero__card-sub { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 4px; }

.hero__card-dots { display: flex; gap: 6px; margin-top: 14px; }
.hero__card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.hero__card-dot:nth-child(2) { opacity: 0.4; }
.hero__card-dot:nth-child(3) { opacity: 0.2; }

/* ── Services ───────────────────────────────────── */
.services { background: var(--light); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── How It Works ───────────────────────────────── */
.how { background: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--bright));
  opacity: 0.3;
}

.step { text-align: center; }

.step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--bright));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--gray); }

/* ── About ──────────────────────────────────────── */
.about { background: var(--light); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.about__content p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat__num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ── CTA ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  text-align: center;
  padding: 96px 0;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
}

footer a { color: rgba(255,255,255,0.6); }
footer a:hover { color: var(--white); }

/* ── Contact Form ───────────────────────────────── */
.contact { background: var(--white); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact__info p {
  color: var(--gray);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--gray);
}

.contact__detail span:first-child { font-size: 1.2rem; }

.form__group { margin-bottom: 20px; }

.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  border-color: var(--accent);
}

.form__group textarea { resize: vertical; min-height: 120px; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero__inner,
  .about__inner,
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }

  .hero__visual { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .about__stats { grid-template-columns: 1fr 1fr; }

  .nav__links { display: none; }
  section { padding: 64px 0; }
}
