/* GlossRey shared app styles */
/* Used by services.html, booking.html, gallery.html */

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

.nav-cta {
  background: var(--accent);
  color: #0a0a0f !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.88;
  color: #0a0a0f !important;
}

/* ---- Page header ---- */
.page-header {
  padding: 80px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.page-header .section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 20px;
}

.page-header .lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
  border: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ---- Services page ---- */
.services-section {
  padding: 0 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.pkg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

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

.pkg-card.popular {
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--bg-card), rgba(230,196,76,0.08));
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0a0a0f;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
}

.pkg-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.pkg-price span {
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 400;
}

.pkg-card h3 {
  font-size: 1.3rem;
  color: var(--fg);
}

.pkg-desc {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.pkg-features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}

.pkg-card .btn {
  margin-top: auto;
  align-self: flex-start;
  width: 100%;
  justify-content: center;
}

/* Comparison note */
.services-note {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.note-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.services-note h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.services-note p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- Booking form ---- */
.booking-section {
  padding: 0 24px 100px;
  max-width: 760px;
  margin: 0 auto;
}

.booking-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.form-group label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-control {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.form-control::placeholder {
  color: var(--fg-muted);
  opacity: 0.7;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control.error {
  border-color: #e05c5c;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239999aa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: -4px;
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.form-submit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-submit .btn {
  width: 100%;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.5;
}

/* Form states */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-success.visible {
  display: flex;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-glow);
  border: 1px solid rgba(230,196,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.form-success h2 {
  font-size: 1.8rem;
}

.form-success p {
  color: var(--fg-muted);
  max-width: 400px;
  line-height: 1.6;
}

.field-error {
  font-size: 0.78rem;
  color: #e05c5c;
  margin-top: -4px;
}

/* ---- Gallery ---- */
.gallery-section {
  padding: 0 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--fg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

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

.gallery-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.gallery-before-after::after {
  content: 'VS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #0a0a0f;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.gallery-placeholder.before-ph {
  background: linear-gradient(135deg, #1a1a2e 0%, #14141f 100%);
}

.gallery-placeholder.after-ph {
  background: linear-gradient(135deg, rgba(230,196,76,0.12) 0%, #1a1a2e 100%);
  color: var(--accent);
}

.gallery-meta {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-service-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(230,196,76,0.2);
  padding: 4px 12px;
  border-radius: 100px;
}

.gallery-vehicle {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* Gallery CTA */
.gallery-cta {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 48px;
}

.gallery-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.gallery-cta p {
  color: var(--fg-muted);
  margin-bottom: 32px;
  font-size: 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

  .booking-form {
    padding: 32px 20px;
  }

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

  .page-header {
    padding: 56px 20px 40px;
  }

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

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

  .services-note {
    flex-direction: column;
    padding: 24px;
  }

  .gallery-cta {
    padding: 40px 20px;
  }
}
