/* Detailing Service Gernsheim — shared styles */

:root {
  --bg: #0c0c0d;
  --bg-elevated: #17181a;
  --bg-card: #1c1d20;
  --border: #2a2b2e;
  --text: #f2f1ee;
  --text-muted: #a8a8a8;
  --accent: #8fb4c9;
  --accent-hover: #b0cbdb;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.3px;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.logo svg {
  width: 30px;
  height: 26px;
}

nav.main-nav {
  display: flex;
  gap: 32px;
}

nav.main-nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 160px 24px 140px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 8, 10, 0.55) 0%, rgba(6, 8, 10, 0.72) 55%, var(--bg) 100%);
  pointer-events: none;
}

.hero .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

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

.hero .subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero p.lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.page-hero {
  position: relative;
  padding: 130px 24px 70px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 8, 10, 0.55) 0%, rgba(6, 8, 10, 0.75) 60%, var(--bg) 100%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #14140f;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

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

/* Sections */
section {
  padding: 80px 24px;
}

section.alt {
  background: var(--bg-elevated);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 50px;
}

/* Project gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-gallery figure {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.project-gallery figure:hover img {
  transform: scale(1.07);
}

.project-gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px 8px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.3px;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.service-card .service-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-card .service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .service-body {
  padding: 28px 32px 32px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--accent);
}

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

.category-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  color: var(--accent);
  margin: 60px 0 30px;
}

.category-label:first-of-type {
  margin-top: 0;
}

/* Testimonial */
.testimonial {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  text-align: left;
}

.testimonial .testimonial-photo {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.testimonial .testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.testimonial blockquote {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
}

.testimonial cite {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .testimonial {
    flex-direction: column;
    text-align: center;
  }
}

/* Gallery */
/* Featured slideshow */
.slideshow {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto 60px;
  aspect-ratio: 16 / 8;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slideshow .slide.active {
  opacity: 1;
}

.slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slideshow-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(242, 241, 238, 0.35);
  cursor: pointer;
  padding: 0;
}

.slideshow-dots button.active {
  background: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-grid button {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--bg-card);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-grid button:hover img {
  transform: scale(1.06);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 7, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox .lightbox-close,
.lightbox .lightbox-prev,
.lightbox .lightbox-next {
  position: absolute;
  background: rgba(28, 29, 32, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.lightbox .lightbox-close {
  top: 20px;
  right: 20px;
}

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

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

.lightbox .lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* About */
.about-content {
  max-width: 760px;
  margin: 0 auto;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.about-owner {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 28px;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p {
  color: var(--text-muted);
}

.contact-info a {
  color: var(--text);
}

.contact-info a:hover {
  color: var(--accent);
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

form.contact-form label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

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

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

form.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* CTA band */
.cta-band {
  position: relative;
  text-align: center;
  padding: 100px 24px;
  isolation: isolate;
  overflow: hidden;
}

.cta-band img.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 8, 10, 0.72);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 24px;
}

/* Legal */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
  font-family: inherit;
  color: var(--accent);
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner .copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 860px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }
  nav.main-nav.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    padding: 90px 20px 70px;
  }
  section {
    padding: 60px 20px;
  }
}
