/* Spark Auto Keys - static site styles */

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

:root {
  --primary: #03c4eb;
  --primary-dark: #0294b3;
  --dark: #1a1a1a;
  --light: #ffffff;
  --grey: #f4f4f4;
  --text: #333;
  --muted: #666;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--light);
}

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

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 5rem 0; text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 68px;
  max-height: 68px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-rotator {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  display: block;
  width: 100%;
  height: 1.2em;
  position: relative;
  text-align: center;
}

.hero-rotator-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero-rotator {
    height: auto;
    min-height: 2.4em;
  }
  .hero-rotator-text {
    white-space: normal;
    width: 100%;
  }
}

.hero-rotator-text.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-rotator-text.leaving {
  opacity: 0;
  transform: translate(-50%, -20px);
}

.hero p {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(3,196,235,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3,196,235,0.5);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--dark);
}

/* Section headings */
.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
  color: var(--dark);
  text-align: center;
}

/* Services */
.services { background: var(--grey); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.gallery.section {
  padding: 3rem 0;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: block;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  user-select: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
  z-index: 1001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  opacity: 0.9;
  background: rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* CTA strip */
.cta-strip {
  background: var(--dark);
  color: #fff;
  padding: 2.5rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: left;
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 0;
  text-align: left;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
  min-width: 0;
}

/* Contact */
.contact { background: var(--grey); }

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

/* Reviews slider */
.review-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.review-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.review-slide {
  flex: 0 0 33.3333%;
  padding: 0 0.6rem;
  box-sizing: border-box;
  display: flex;
}

.review-slide > .review-card {
  width: 100%;
  margin: 0;
}

.review-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.review-stars {
  color: #f5b800;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
}

.review-author {
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
}

.review-source {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.slider-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.slider-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social a {
  margin-left: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.social a:hover { color: #fff; }

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(3,196,235,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 60vh; padding: 3rem 0; }
  .review-slide { flex: 0 0 100%; }
  .review-text { font-size: 0.95rem; }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }
  .gallery-grid img {
    height: 110px;
    aspect-ratio: 1 / 1;
  }
  .container { padding: 0 0.75rem; }
  .hero-rotator {
    font-size: 6vw;
    letter-spacing: 1px;
  }
  .hero p { font-size: 0.95rem; }
}
