/* ============================================================
   FOCUS COMPUTER SERVICES — Shared Styles
   ============================================================ */

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --ink: #0f172a;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}
html[lang="zh"] body { font-family: 'Noto Sans SC', 'Inter', sans-serif; }

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--blue-900);
  color: var(--blue-100);
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-text {
  flex: 1;
  text-align: center;
  font-weight: 500;
}
.topbar-text .dot { margin: 0 8px; opacity: 0.5; }
.lang-toggle {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}
.lang-toggle:hover { background: white; color: var(--blue-900); }

/* ===== NAVIGATION ===== */
.nav {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--slate-200);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  min-height: 78px;
  position: relative;
}

/* LOGO — Blue extends to left screen edge via negative margin trick */
.logo-link {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  padding: 0 60px 0 32px;
  position: relative;
  margin-left: calc((100vw - 1200px) / -2);
  padding-left: calc((100vw - 1200px) / 2 + 32px);
}
@media (max-width: 1200px) {
  .logo-link {
    margin-left: 0;
    padding-left: 32px;
  }
}
.logo-link::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}
.logo .main {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo .divider {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  margin: 6px 0 4px;
}
.logo .divider .dash { width: 36px; height: 1.5px; background: white; opacity: 0.8; }
.logo .divider .diamond { width: 5px; height: 5px; background: white; opacity: 0.8; transform: rotate(45deg); }
.logo .sub {
  font-family: 'Fraunces', serif;
  font-size: 11px;
  color: white;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.95;
}

/* Right side of nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px 0 40px;
  flex: 1;
  justify-content: flex-end;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--slate-100); }
.nav-links a.active { color: var(--blue-700); background: var(--blue-50); font-weight: 600; }

.nav-cta {
  background: var(--blue-600);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-700); color: white; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 12px; border-top: 1px solid var(--slate-200); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 14px; }
  .menu-toggle { display: inline-block; }
  .nav-cta { display: none; }

  .nav-inner { min-height: 64px; }

  /* Smaller logo on mobile */
  .logo-link {
    padding: 0 32px 0 20px;
  }
  .logo-link::after { right: -16px; width: 16px; }
  .logo .main { font-size: 24px; }
  .logo .divider { margin: 4px 0 3px; }
  .logo .divider .dash { width: 22px; }
  .logo .sub { font-size: 9px; letter-spacing: 0.2em; }
  .nav-right { padding: 0 16px 0 24px; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--blue-600);
  color: white;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.15);
}
.btn-primary:hover {
  background: var(--blue-700);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25), 0 6px 16px rgba(37, 99, 235, 0.2);
}
.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--slate-200);
}
.btn-secondary:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
}

/* ===== PAGE HEADER (for non-home pages) ===== */
.page-hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--blue-100) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero .breadcrumb {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 14px;
  font-weight: 500;
}
.page-hero .breadcrumb a:hover { color: var(--blue-600); }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.page-hero h1 .accent { color: var(--blue-600); }
.page-hero .lead {
  font-size: 18px;
  color: var(--slate-600);
  max-width: 56ch;
  margin: 0 auto;
}

/* ===== HOME HERO (special) ===== */
.hero {
  padding: 80px 0 90px;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--blue-100) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}
.hero > * { position: relative; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.badge .pulse {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 18ch;
  margin: 0 auto 24px;
  color: var(--ink);
}
.hero h1 .accent { color: var(--blue-600); }
.hero .subhead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--slate-600);
  max-width: 56ch;
  margin: 0 auto 36px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 500;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-row .check { color: var(--green); font-weight: bold; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
section.alt { background: var(--slate-50); }
.section-eyebrow {
  display: inline-block;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
  max-width: 28ch;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--slate-600);
  max-width: 60ch;
  margin-bottom: 48px;
}
.center { text-align: center; }
.center .section-title, .center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== CARDS ===== */
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--blue-100);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transform: translateY(-3px);
}

/* ===== FORMS ===== */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: white;
  border: 1px solid var(--slate-200);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
html[lang="zh"] .contact-form input,
html[lang="zh"] .contact-form textarea { font-family: 'Noto Sans SC', sans-serif; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
}
.contact-form label span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  font-weight: 500;
}
.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }
.form-status.loading { color: var(--slate-500); }
.recaptcha-notice {
  margin-top: 14px;
  font-size: 11px;
  color: var(--slate-500);
  text-align: center;
  line-height: 1.5;
}
.recaptcha-notice a { color: var(--blue-600); }

/* ===== POLICY PAGES (Terms / Refund / Privacy) ===== */
.policy-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.policy-page .meta {
  color: var(--slate-500);
  font-size: 13px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
  font-family: 'Inter', sans-serif;
}
.policy-section {
  margin-bottom: 36px;
}
.policy-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.policy-section p {
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.policy-contact-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 16px;
}
.policy-contact-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.policy-contact-box .row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--slate-600);
}
.policy-contact-box .row strong {
  color: var(--ink);
  min-width: 80px;
  font-weight: 600;
}

/* ===== EMAIL CLICK-TO-COPY ===== */
.copy-email {
  cursor: pointer;
  color: var(--blue-600);
  font-weight: 500;
  border-bottom: 1px dashed var(--blue-300, #93c5fd);
  transition: all 0.15s;
  display: inline-block;
}
.copy-email:hover {
  color: var(--blue-700);
  border-bottom-color: var(--blue-600);
}
.copy-email.copied {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: var(--slate-300);
  padding: 60px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo-link {
  background: transparent;
  padding: 0;
  display: inline-block;
}
.footer-brand .logo-link::after { display: none; }
.footer-brand .logo {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  margin-bottom: 16px;
  padding: 14px 36px;
  border-radius: 10px;
  min-width: 260px;
  min-height: 70px;
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}
.footer-brand .logo .main { font-size: 28px; }
.footer-brand .logo .divider { margin: 4px 0 3px; justify-content: flex-start; }
.footer-brand .logo .divider .dash { width: 22px; }
.footer-brand .logo .sub { font-size: 9px; letter-spacing: 0.22em; }
.footer-brand p {
  color: var(--slate-300);
  font-size: 14px;
  line-height: 1.6;
  max-width: 30ch;
  margin-bottom: 18px;
}
.footer-company {
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate-500);
  max-width: 32ch;
}
.footer-company .ssm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--slate-500);
  margin-bottom: 6px;
  display: block;
}
.footer-company .addr {
  display: block;
  margin-bottom: 4px;
  color: var(--slate-400, #94a3b8);
}
.footer-company a {
  color: var(--blue-500);
  transition: color 0.15s;
}
.footer-company a:hover { color: white; }
footer h5 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a {
  color: var(--slate-300);
  font-size: 14px;
  transition: color 0.15s;
}
footer ul li a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--slate-500);
  font-size: 13px;
}
.footer-bottom a { color: var(--blue-500); }
.footer-bottom a:hover { color: white; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform 0.15s;
  cursor: pointer;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

.grecaptcha-badge { z-index: 50; }

@media (max-width: 600px) {
  section { padding: 60px 0; }
  .hero { padding: 60px 0 70px; }
  .page-hero { padding: 50px 0 50px; }
  .topbar-text { font-size: 11px; }
  .topbar-text .hide-mobile { display: none; }
}
