/* ============================================================
   COMPONENTS — Goose Creek Auto & Radiator
   ============================================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--transition-mid);
  border-radius: 0;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
  transition: transform var(--transition-btn);
  z-index: 0;
}
.btn > span { position: relative; z-index: 1; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}
.btn-primary::before { background: var(--color-accent-light); }
.btn-primary:hover { color: #fff; }
.btn-primary:hover::before { transform: translateX(0); }

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-accent);
}
.btn-outline::before { background: var(--color-accent); }
.btn-outline:hover { color: #fff; }
.btn-outline:hover::before { transform: translateX(0); }

.btn-nav-cta {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(10, 10, 18, 0.92);
  box-shadow: 0 2px 24px rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-body);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-mid);
}
.nav-link:hover {
  color: var(--color-text-primary);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  align-self: center;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 40, 0.92) 0%,
    rgba(10, 20, 40, 0.65) 50%,
    rgba(10, 20, 40, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-xblack);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 9vw, 9rem);
}

.hero-title-line1 {
  display: block;
  font-size: clamp(3.5rem, 9vw, 9rem);
  color: var(--color-text-primary);
}

.hero-title-line2 {
  display: block;
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-body {
  font-size: 1.15rem;
  color: var(--color-text-body);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── About / Stats ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--color-border);
  position: relative;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: var(--fw-xblack);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-mid), transform var(--transition-mid);
  position: relative;
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.service-card i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-body);
}

/* ── Gallery / Carousel ── */
.gallery-wrap {
  overflow: hidden;
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card {
  min-width: calc(33.333% - 1rem);
  flex-shrink: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: nowrap;
}

.gallery-prev,
.gallery-next {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  flex-shrink: 0;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 1.2rem;
  min-width: 48px;
  min-height: unset;
}

.gallery-prev:hover,
.gallery-next:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
  min-width: 8px;
  min-height: 8px;
}

.gallery-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--color-text-body);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── Footer ── */
footer {
  padding: 3rem 0;
  background: var(--color-bg-footer);
  border-top: 1px solid var(--color-border);
}

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

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  text-align: center;
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .btn-nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 18, 0.97);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 2rem;
  }

  .nav-overlay.open {
    transform: translateX(0);
  }

  .nav-overlay .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-overlay .nav-link {
    font-size: 1.5rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    gap: 1rem;
  }

  .gallery-card {
    min-width: calc(85% - 0.75rem);
    width: calc(85% - 0.75rem);
    max-height: 260px;
  }

  .gallery-card img {
    max-height: 260px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .stat-item {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}