/* =========================================================
   GOODWARE DEVELOPMENT — STYLES
   Colours and fonts are defined once at the top as CSS
   variables, then reused everywhere below. To re-brand,
   change the values in :root.
   ========================================================= */

:root {
  --ink: #14181f;
  --ink-soft: #5b6472;
  --line: #e6e8ec;
  --paper: #fbfbfc;
  --white: #ffffff;
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-tint: #eef0fd;

  /* Brand gradient trio, taken from the car livery reference */
  --brand-blue: #1d2f8f;
  --brand-violet: #7c3aed;
  --brand-magenta: #b23ad4;
  --brand-cyan: #22d3ee;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, Arial, sans-serif;

  --radius: 10px;
  --max-width: 1080px;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }

/* Hollow/outline heading accent, inspired by the reference screenshots */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
}
.section-dark .text-outline {
  -webkit-text-stroke-color: #ffffff;
}

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

section { padding: 88px 0; }

.section-lead {
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--indigo);
  color: var(--white);
}
.btn-primary:hover { background: var(--indigo-dark); box-shadow: 0 0 22px rgba(124, 58, 237, 0.45); }
.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--paper); }
.btn-full { width: 100%; text-align: center; border: none; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}
.logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.logo-icon {
  width: 30px;
  height: 30px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.nav a:hover {
  color: var(--brand-violet);
  text-shadow: 0 0 12px rgba(124, 58, 237, 0.45);
}
.nav-cta {
  background: var(--indigo);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  background: var(--indigo-dark);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
  text-shadow: none;
}
.logo-text { transition: text-shadow 0.2s ease; }
.logo:hover .logo-text { text-shadow: 0 0 16px rgba(124, 58, 237, 0.35); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--indigo-tint) 0%, var(--white) 65%);
  padding: 100px 0 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  filter: blur(70px);
  opacity: 0.22;
  animation: hero-blob-float 18s ease-in-out infinite;
}
.hero-blob-1 {
  width: 360px;
  height: 340px;
  top: -110px;
  left: -100px;
  background: var(--brand-cyan);
  clip-path: polygon(22% 3%, 78% 0%, 100% 35%, 92% 78%, 58% 100%, 15% 88%, 0% 55%, 8% 18%);
  animation-delay: 0s;
}
.hero-blob-3 {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: 36%;
  background: var(--brand-blue);
  clip-path: polygon(20% 0%, 80% 5%, 100% 40%, 90% 80%, 60% 100%, 20% 92%, 0% 60%, 10% 22%);
  animation-delay: -10s;
}
@keyframes hero-blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -26px) scale(1.06); }
  66% { transform: translate(-18px, 20px) scale(0.96); }
}

/* Night-sky star field: small twinkling dots that drift gently opposite
   the cursor for a subtle parallax feel (uses the same --mx/--my custom
   properties the dot spotlight below reads, set by js/script.js) */
.hero-stars {
  position: absolute;
  inset: 0;
  transform: translate(calc((var(--mx, 50%) - 50%) * -0.04), calc((var(--my, 15%) - 50%) * -0.04));
  transition: transform 0.2s ease-out;
}
.star {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  opacity: 0.15;
  animation: hero-star-twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.star:nth-of-type(3n + 1) { background: var(--brand-cyan); }
.star:nth-of-type(3n + 2) { background: var(--brand-violet); }
.star:nth-of-type(3n + 3) { background: var(--brand-blue); }
@keyframes hero-star-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.95; transform: scale(1.4); }
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(29, 47, 143, 0.18) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 85%);
}
/* Brighter dot layer, revealed only in a circle that follows the cursor
   (position set by --mx/--my custom properties in js/script.js) */
.hero-dots-spot {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(124, 58, 237, 0.9) 2.2px, transparent 2.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle 230px at var(--mx, 50%) var(--my, 15%), black 0%, transparent 100%);
  mask-image: radial-gradient(circle 230px at var(--mx, 50%) var(--my, 15%), black 0%, transparent 100%);
}
/* Soft glow that follows the cursor underneath the dots, for a gentle
   "lit up" feel where your mouse moves */
.hero-glow-cursor {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 15%), rgba(139, 63, 209, 0.16), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob, .star { animation: none; }
  .hero-stars { transform: none; }
}
@media (max-width: 760px) {
  .hero-dots-spot { display: none; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--indigo);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 18px;
}
.hero-lead {
  max-width: 560px;
  color: var(--ink-soft);
  margin-bottom: 30px;
  font-size: 1.05rem;
}
.hero-buttons { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.3rem; color: var(--indigo); }
.hero-stats span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about h2 { font-size: 1.8rem; margin-bottom: 18px; }
.about p { margin-bottom: 14px; color: var(--ink-soft); }
.about-points {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.about-points li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
  font-weight: 500;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--indigo);
  border-radius: 50%;
}
.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(29, 47, 143, 0.12);
  border-color: rgba(124, 58, 237, 0.35);
}
.about-card h3 { font-size: 1rem; margin-bottom: 8px; }
.about-card p { color: var(--ink-soft); font-size: 0.92rem; }
.about-card hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.services h2 { font-size: 1.8rem; margin-bottom: 8px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.25);
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.35);
}
.service-card-body { padding: 26px; }
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--ink);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.service-card:hover h3 {
  color: var(--brand-violet);
  text-shadow: 0 0 14px rgba(124, 58, 237, 0.3);
}
.service-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Reviews ---------- */
.reviews { background: var(--white); }
.reviews h2 { font-size: 1.8rem; margin-bottom: 8px; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.15), 0 0 0 1px rgba(34, 211, 238, 0.3);
  border-color: rgba(34, 211, 238, 0.4);
}
.review-stars {
  color: #f5a623;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-text {
  color: var(--ink);
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.review-author {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---------- Quote & Contact shared form styles ---------- */
.card-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}
label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--indigo);
  outline-offset: 1px;
}

.quote { background: var(--paper); }
.quote h2 { font-size: 1.8rem; margin-bottom: 8px; }
.quote-result {
  margin-top: 20px;
  background: var(--indigo-tint);
  border: 1px solid #d7d9fb;
  border-radius: var(--radius);
  padding: 24px;
  max-width: 520px;
}
.quote-result h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.quote-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact h2 { font-size: 1.8rem; margin-bottom: 8px; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(29, 47, 143, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
}
.contact-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.contact-detail { color: var(--ink-soft); margin-bottom: 8px; }
.contact-detail a:hover { color: var(--indigo); }

/* ---------- Dark sections ---------- */
.section-dark {
  background: #0d0f14;
  color: #c7cbd3;
}
.section-dark h2, .section-dark h3 { color: #ffffff; }
.section-dark .section-lead { color: #9aa0ab; }
.section-dark .eyebrow { color: var(--brand-cyan); }
.section-dark .about p { color: #a7abb5; }
.section-dark .about-points li { color: #e7e9ee; }
.section-dark .about-points li::before { background: var(--brand-cyan); }
.section-dark .about-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.section-dark .about-card:hover { border-color: rgba(34, 211, 238, 0.4); }
.section-dark .about-card p { color: #a7abb5; }
.section-dark .about-card hr { border-top-color: rgba(255, 255, 255, 0.1); }
.section-dark .review-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.section-dark .review-text { color: #e7e9ee; }
.section-dark .review-author { color: #9aa0ab; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c7c9d1;
  padding: 56px 0 20px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-inner .logo-mark { margin-right: 8px; }
.footer-inner .logo-text { color: var(--white); }
.footer-inner p { margin-top: 10px; font-size: 0.88rem; color: #9a9ea9; }
.footer-inner h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; color: #d8dae0; }
.footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: #6c707c;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .nav { gap: 16px; }
  section { padding: 56px 0; }
}
