/* =========================================================
   RIGHT POINT SERVICE CENTRE — STYLESHEET
   Design system: "Precision Point" — a crosshair/target motif
   representing finding the exact right point of every repair.
   ========================================================= */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
  /* Brand blue scale */
  --blue-700: #164FC4;
  --blue-600: #1C64F2;
  --blue-500: #3D7EFF;
  --blue-100: #DCE9FF;
  --blue-50:  #EEF4FF;

  /* Light theme surfaces */
  --bg: #FFFFFF;
  --bg-alt: #F4F6FA;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --border: #E4E9F1;

  /* Text */
  --text-900: #101B33;
  --text-600: #4A5670;
  --text-400: #7C8AA3;
  --on-accent: #FFFFFF;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16, 27, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 27, 51, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 27, 51, 0.12);
  --ring-shadow: 0 10px 30px rgba(28, 100, 242, 0.22);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Type */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0B1220;
  --bg-alt: #0F1A2E;
  --surface: #121D33;
  --surface-glass: rgba(18, 29, 51, 0.68);
  --border: #223050;

  --text-900: #EEF2FA;
  --text-600: #AAB6CC;
  --text-400: #7C8AA9;

  --blue-50: #14213D;
  --blue-100: #17284A;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.45);
  --ring-shadow: 0 10px 34px rgba(61, 126, 255, 0.28);
}

/* ---------- 3. BASE ---------- */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-600);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-weight: 700; color: var(--text-900); line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { color: var(--text-600); }

.section { padding: 92px 0; }
.section-tinted { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 52px; }
.section-lead { font-size: 1.02rem; margin-top: 12px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.text-accent { color: var(--blue-600); }

/* Eyebrow / signature label device */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow-mark {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--blue-600);
  position: relative;
  flex-shrink: 0;
}
.eyebrow-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--blue-600);
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--ring-shadow);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text-900);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 0.98rem; }
.btn-nav-call { padding: 10px 18px; font-size: 0.87rem; }

/* ---------- 5. HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.navbar {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark-ring-outer { fill: none; stroke: var(--blue-600); stroke-width: 2.4; opacity: 0.35; }
.mark-ring-inner { fill: none; stroke: var(--blue-600); stroke-width: 2.6; }
.mark-dot { fill: var(--blue-600); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1rem; color: var(--text-900); }
.brand-sub { font-size: 0.72rem; color: var(--text-400); letter-spacing: 0.05em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-600);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--blue-600); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue-600);
  transition: width 0.2s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-600);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  position: relative;
}
.theme-toggle:hover { border-color: var(--blue-600); color: var(--blue-600); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero {
  padding: 76px 0 90px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(680px 420px at 84% -8%, var(--blue-50) 0%, transparent 68%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero .eyebrow { justify-content: center; }
.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.1rem);
  margin: 8px 0 14px;
}
.hero-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-900);
  margin-bottom: 14px;
}
.hero-desc {
  max-width: 560px;
  margin: 0 auto 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.trust-item { align-items: center; }
.trust-item {
  display: flex;
  flex-direction: column;
}
.trust-item strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-600);
}
.trust-item span {
  font-size: 0.8rem;
  color: var(--text-400);
}

/* ---------- 7. ABOUT ---------- */
.about-grid { display: grid; }
.about-copy { max-width: 760px; margin: 0 auto; }
.feature-list {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 30px;
}
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.feature-list strong { display: block; color: var(--text-900); font-size: 0.98rem; margin-bottom: 2px; }
.feature-list span { font-size: 0.88rem; color: var(--text-600); }

/* ---------- 8. GRID / CARDS ---------- */
.grid { display: grid; gap: 24px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.why-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon-lg { width: 56px; height: 56px; border-radius: 50%; }

.service-card h3 { margin-bottom: 8px; font-size: 1.06rem; }
.service-card p { font-size: 0.9rem; }
.service-card-wide { background: linear-gradient(155deg, var(--blue-600), var(--blue-700)); border: none; }
.service-card-wide .card-icon { background: rgba(255,255,255,0.16); color: #fff; }
.service-card-wide h3, .service-card-wide p { color: #fff; }
.service-card-wide p { opacity: 0.92; }

.why-card { text-align: center; }
.why-card .card-icon-lg { margin: 0 auto 18px; }
.why-card p { font-size: 0.88rem; }

/* ---------- 9. STATS ---------- */
.stats-section { padding: 70px 0; }
.stats-grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 14px;
  border-radius: var(--r-lg);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.stat-number {
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
  font-weight: 800;
  color: var(--blue-600);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.86rem; color: var(--text-600); font-weight: 500; }

/* ---------- 10. FAQ ACCORDION ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: left;
  color: var(--text-900);
}
.chevron { flex-shrink: 0; color: var(--blue-600); transition: transform 0.25s var(--ease); }
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s var(--ease), padding 0.28s var(--ease);
  padding: 0 22px;
}
.accordion-panel p { padding-bottom: 20px; font-size: 0.92rem; }
.accordion-item.is-open .accordion-panel { max-height: 200px; }

/* ---------- 11. CONTACT ---------- */
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-row { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-label { display: block; font-size: 0.78rem; color: var(--text-400); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-value { display: block; font-size: 1.02rem; font-weight: 600; color: var(--text-900); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- 12. FOOTER ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; gap: 12px; }
.footer-brand-name { font-weight: 700; font-size: 0.95rem; color: var(--text-900); }
.footer-tagline { font-size: 0.85rem; color: var(--text-400); margin-top: 6px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-900); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--text-600); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--blue-600); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-400); }

/* ---------- 13. FLOATING ACTIONS ---------- */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}
.fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.18s var(--ease);
  color: #fff;
}
.fab:hover { transform: translateY(-2px) scale(1.04); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--blue-600); }
.fab-top {
  background: var(--surface);
  color: var(--text-900);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.fab-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 14. SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: span 2; }
}

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

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 18px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-links a::after { display: none; }
  .btn-nav-call span { display: none; }
  .btn-nav-call { padding: 10px 13px; }
  .menu-toggle { display: flex; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-col:last-child { grid-column: span 1; }
  .section { padding: 68px 0; }
  .contact-card { padding: 28px 22px; }
}

@media (max-width: 420px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .contact-actions .btn { flex: 1 1 100%; }
}
