/* ==========================================================================
   The Personal Tech Guy — shared stylesheet
   ========================================================================== */

:root {
  --navy: #0b1c33;
  --navy-light: #132a4a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --teal: #0ea5a3;
  --amber: #f59e0b;
  --ink: #101828;
  --gray-700: #344054;
  --gray-500: #667085;
  --gray-200: #e4e7ec;
  --gray-100: #f2f4f7;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------------- Top bar ---------------- */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cbd5e1; text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.topbar .topbar-phone { font-weight: 600; color: var(--white); }

/* ---------------- Header / nav ---------------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-text .name { font-weight: 700; font-size: 1.15rem; }
.brand-text .tag { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
nav.primary-nav a:hover,
nav.primary-nav a.active {
  background: var(--gray-100);
  color: var(--blue);
}

.nav-cta {
  display: inline-block;
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-cta:hover { background: var(--blue-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

.nav-right { display: flex; align-items: center; gap: 18px; }

@media (max-width: 860px) {
  .nav-right { display: none; width: 100%; }
  .nav-right.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 0 18px;
  }
  nav.primary-nav ul { flex-direction: column; gap: 2px; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: inline-block; }
}

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(37,99,235,0.25), transparent),
              linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 72px 0 84px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 18px; }
.hero p.lead { font-size: 1.15rem; color: #cbd5e1; margin: 0 0 28px; max-width: 46ch; }
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--amber); color: #1a1200; }
.btn-primary:hover { background: #e0940b; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-100); border-color: var(--gray-500); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-row .btn { flex: 1 1 150px; text-align: center; }

.hero-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { margin-top: 0; font-size: 1.05rem; }
.hero-card ul { margin: 0; padding-left: 20px; }
.hero-card li { margin-bottom: 8px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* ---------------- Sections ---------------- */
section { padding: 64px 0; }
.section-alt { background: var(--gray-100); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-head h2 { font-size: 2rem; margin: 0 0 12px; }
.section-head p { color: var(--gray-500); margin: 0; }

/* ---------------- Cards / grid ---------------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(37,99,235,0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0 0 12px; color: var(--gray-500); font-size: 0.95rem; }
.price-tag {
  display: inline-block;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.95rem;
}

/* ---------------- Product cards (store) ---------------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h4 { margin: 0; font-size: 1rem; }
.product-body .cat { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; }
.product-body .price { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-top: auto; }
.product-body .btn { margin-top: 6px; }

.category-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.category-chip:hover { background: var(--gray-200); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

.disclosure {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 32px;
}

/* ---------------- Comparison / list rows ---------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare .panel {
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--gray-200);
}
.compare .panel.warn { background: #fef2f2; border-color: #fecaca; }
.compare .panel.good { background: #f0fdfa; border-color: #99f6e4; }
.compare h3 { margin-top: 0; }
.compare ul { padding-left: 20px; margin: 0; }
.compare li { margin-bottom: 8px; }

/* ---------------- Steps ---------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  background: var(--white);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* ---------------- FAQ ---------------- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--gray-500); margin: 10px 0 0; }

/* ---------------- Forms ---------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------------- Contact info blocks ---------------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.info-list .ic {
  width: 40px; height: 40px; border-radius: 9px;
  background: rgba(14,165,163,0.12); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.info-list strong { display: block; }
.info-list span { color: var(--gray-500); font-size: 0.92rem; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: 1.8rem; }
.cta-band p { margin: 0 0 24px; color: rgba(255,255,255,0.9); }

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 52px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); margin: 0 0 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a { text-decoration: none; color: #cbd5e1; }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.note-box {
  background: var(--gray-100);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--gray-700);
}
