/* ============================================
   Call a Geek — site styles
   Brand: black / dark grey, red accents, white
   ============================================ */

:root {
  --red: #c8102e;
  --red-dark: #a30d25;
  --black: #0d0d0d;
  --dark: #1a1a1a;
  --grey: #4a4a4a;
  --grey-light: #f4f4f5;
  --white: #ffffff;
  --text: #2b2b2b;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--black);
  color: #ccc;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #eee; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .contact-links { display: flex; gap: 20px; align-items: center; }

.topbar .email-link {
  font-size: 1.05rem;
  font-weight: 600;
}

.topbar .phone-cta {
  background: var(--red);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.topbar .phone-cta:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: scale(1.04);
  text-decoration: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo img { height: 44px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  border-radius: 8px;
  color: var(--white);
  font-size: 1.3rem;
  padding: 4px 12px;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.main-nav a.active { background: rgba(255, 255, 255, 0.18); }
.main-nav a.btn-nav {
  background: var(--red);
  margin-left: 6px;
}
.main-nav a.btn-nav:hover { background: var(--red-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--red-dark); text-decoration: none; transform: translateY(-2px); }
.btn-google {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
  animation: pulse-glow 2.4s ease-in-out infinite;
}
.btn-google:hover { background: #ffd54d; color: var(--black); }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 213, 77, 0.55); }
  50% { box-shadow: 0 0 0 12px rgba(255, 213, 77, 0); }
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(200, 16, 46, 0.15), transparent 55%),
    linear-gradient(160deg, #141414 0%, #1f1f1f 55%, #101010 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle circuit-line texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--red); }
.hero .tagline {
  font-size: 1.15rem;
  color: #d8d8d8;
  margin-bottom: 30px;
  max-width: 34em;
}
.hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img img {
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  animation: drive-in 1.6s cubic-bezier(0.22, 0.9, 0.3, 1) 0.2s both;
}
@keyframes drive-in {
  0% { transform: translateX(-110vw); }
  80% { transform: translateX(14px); }
  90% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img img { animation: none; }
}

.hero-badges {
  display: flex;
  gap: 26px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-badges div {
  font-size: 0.9rem;
  color: #bbb;
}
.hero-badges strong {
  display: block;
  font-size: 1.35rem;
  color: var(--white);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--black);
}
.section-sub {
  text-align: center;
  color: var(--grey);
  max-width: 46em;
  margin: 0 auto 48px;
}
.kicker {
  display: block;
  text-align: center;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}
.feature-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card .icon svg { width: 28px; height: 28px; stroke: var(--red); }
.feature-card h3 { margin-bottom: 10px; font-size: 1.15rem; color: var(--black); }
.feature-card p { font-size: 0.95rem; color: var(--grey); }

/* ---------- Split rows (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split + .split { margin-top: 72px; }
.split.reverse .split-img { order: 2; }
.split-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.split h2 { font-size: 1.7rem; margin-bottom: 16px; color: var(--black); }
.split h3 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--red); }
.split p { color: var(--grey); }
.split .btn { margin-top: 26px; }

.alt-bg { background: var(--grey-light); }

/* ---------- Services list ---------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.chip {
  background: var(--white);
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.92rem;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(200, 16, 46, 0.25), transparent 60%),
    var(--black);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-band p { color: #ccc; margin-bottom: 28px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.info-cards { display: grid; gap: 18px; }
.info-card {
  background: var(--white);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-card .icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(200, 16, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card .icon svg { width: 22px; height: 22px; stroke: var(--red); }
.info-card h3 { font-size: 1.05rem; color: var(--black); margin-bottom: 4px; }
.info-card p { font-size: 0.93rem; color: var(--grey); }

.contact-form {
  background: var(--white);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form h2 { margin-bottom: 20px; color: var(--black); }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font: inherit;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 48px;
}
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(200, 16, 46, 0.18), transparent 55%),
    linear-gradient(160deg, #141414, #1d1d1d);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: #ccc; margin-top: 10px; max-width: 42em; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #bbb;
  padding: 56px 0 24px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer a { color: #ddd; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .hero-cta, .hero-badges { justify-content: center; }
  .hero-img { order: -1; max-width: 420px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
}

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 12px 24px 20px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; }
  .topbar .container { justify-content: center; }
}
