@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/Inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-italic.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e5e5;
  --surface-dark: #1a1a1a;
  --on-dark: #ffffff;
  --on-dark-muted: #b3b3b3;
  --accent: #e82127;
  --accent-dark: #c81a20;
  --font-accent: "Playfair Display", Georgia, serif;
  --font:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  --max-width: 1100px;
}

:root[data-theme="dark"] {
  --bg: #121212;
  --bg-alt: #1c1c1c;
  --text: #f2f2f2;
  --text-muted: #a3a3a3;
  --border: #333333;
  --surface-dark: #262626;
  --on-dark: #ffffff;
  --on-dark-muted: #b3b3b3;
  --accent: #ff4d4d;
  --accent-dark: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  transition: background 0.15s, color 0.15s;
}

a {
  color: inherit;
}

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

/* Nav */
.site-nav {
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  text-decoration: none;
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.nav-links a.nav-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
}

.nav-links a.nav-cta:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

/* Utility bar */
.utility-bar {
  background: #000000;
  padding: 9px 0;
}

.util-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.util-icon {
  background: none;
  border: none;
  color: #aaaaaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  line-height: 1;
  transition: color 0.15s;
}

.util-icon:hover {
  color: #ffffff;
}

.util-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.util-lang-option {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #777777;
  transition: color 0.15s;
}

.util-lang-option:hover {
  color: #cccccc;
}

.util-lang-option.active {
  color: var(--accent);
}

.util-sep {
  color: #444444;
  font-size: 13px;
}

.util-dot {
  color: var(--accent);
  font-size: 10px;
}

.util-phone {
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.util-phone:hover {
  color: var(--accent);
}

@media (max-width: 520px) {
  .util-inner {
    gap: 10px;
  }

  .util-phone {
    font-size: 13px;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    gap: 18px;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a.nav-cta {
    display: inline-block;
    width: fit-content;
  }
}

/* Hero */
.hero {
  background: var(--bg-alt);
  color: var(--text);
  padding: 100px 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-media .ba-slider {
  max-width: 100%;
}

@media (max-width: 860px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
}

.hero .eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  max-width: 720px;
  color: var(--text);
}

.accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    opacity 0.15s,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(232, 33, 39, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

.btn-dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}

.btn-dark:hover {
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 88px 0;
}

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

.section-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
  color: var(--text);
}

.section-intro {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 620px;
  margin-bottom: 36px;
}

/* Callout box (Tesla link on homepage) */
.callout {
  background: var(--surface-dark);
  color: var(--on-dark);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.callout h2,
.callout h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--on-dark);
}

.callout p {
  margin: 0;
  color: var(--on-dark-muted);
  max-width: 480px;
}

/* Cards / grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  background: var(--bg);
  transition:
    border-color 0.15s,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.card .num {
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.pricing-table .price {
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}

.note-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 0 4px 4px 0;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
  display: inline-block;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

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

.form-group input[type="file"] {
  padding: 8px 0;
  border: none;
}

.contact-side {
  background: var(--surface-dark);
  color: var(--on-dark);
  border-radius: 12px;
  padding: 32px;
}

.contact-side h2 {
  margin-top: 0;
  font-size: 18px;
  color: var(--on-dark);
}

.contact-side .big-link,
.glance-card .big-link {
  display: block;
  color: var(--on-dark);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  margin: 6px 0 14px;
}

.contact-side .big-link:hover,
.glance-card .big-link:hover {
  color: var(--accent);
}

.contact-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 14px;
}

.contact-side li {
  margin-bottom: 8px;
}

/* Before/after slider (component, unused until real photos exist) */
.ba-slider {
  position: relative;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  user-select: none;
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
}

.ba-before-wrap {
  position: absolute;
  inset: 0;
}

.ba-slider .ba-after {
  clip-path: inset(0 0 0 50%);
  z-index: 1;
}

.ba-placeholder .ba-before-wrap img {
  filter: saturate(0.65) contrast(0.95);
}

.ba-scuff-overlay {
  position: absolute;
  right: 10%;
  bottom: 14%;
  width: 36%;
  height: 28%;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.4) 0px,
      rgba(255, 255, 255, 0.4) 2px,
      transparent 2px,
      transparent 7px
    ),
    radial-gradient(ellipse at center, rgba(170, 160, 140, 0.6), rgba(170, 160, 140, 0) 70%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.ba-sample-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 3;
  white-space: nowrap;
}

.photo-credit {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.photo-credit a {
  color: var(--text-muted);
  text-decoration: underline;
}

.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--accent);
  cursor: ew-resize;
  transform: translateX(-1.5px);
  z-index: 2;
  box-shadow: 0 0 12px 1px var(--accent), 0 0 24px 4px rgba(232, 33, 39, 0.4);
}

.ba-slider .ba-handle::after {
  content: "\21c6";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  animation: gripPulse 1.6s ease-in-out 2, gripGlow 2.4s ease-in-out infinite;
}

.ba-label {
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 3px;
}

.ba-label.before {
  left: 10px;
}

.ba-label.after {
  right: 10px;
}

/* Footer */
.site-footer {
  background: var(--surface-dark);
  color: var(--on-dark-muted);
  padding: 48px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

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

.site-footer h4 {
  color: var(--on-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}

.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 12px;
  color: #888888;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gripPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes gripGlow {
  0%,
  100% {
    box-shadow: 0 0 8px 1px var(--accent), 0 0 16px 2px rgba(232, 33, 39, 0.35);
  }
  50% {
    box-shadow: 0 0 16px 3px var(--accent), 0 0 32px 8px rgba(232, 33, 39, 0.55);
  }
}

.hero-layout > div:first-child {
  animation: fadeInUp 0.7s ease both;
}

.hero-media {
  animation: fadeInUp 0.7s ease 0.15s both;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.grid-3 .card.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.grid-3 .card.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.site-nav.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Service area pillars + rings */
.pillar-tag {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.ring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.ring-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s ease, box-shadow 0.15s ease;
}

.ring-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.ring-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ring-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
}

.ring-count {
  text-align: right;
}

.ring-count-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.ring-count-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.ring-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--text);
}

.ring-time {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  font-size: 14px;
}

.ring-fee {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 14px;
}

.ring-cities {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* Work page gallery placeholders */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Work page gallery */
.work-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .work-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.work-gallery-item .ba-slider {
  max-width: 100%;
}

.work-car-label {
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.process-grid img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Services hero "at a glance" card */
.glance-card {
  background: var(--surface-dark);
  color: var(--on-dark);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

.glance-title {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.glance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.glance-row:last-of-type {
  border-bottom: none;
}

.glance-price {
  font-weight: 800;
  font-size: 16px;
}

.glance-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--on-dark-muted);
}

/* Work page hero photo mosaic */
.photo-mosaic {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 220px;
}

.photo-mosaic img {
  width: 150px;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  border: 3px solid var(--bg);
}

.photo-mosaic img:nth-child(1) {
  transform: rotate(-6deg) translateX(14px);
  z-index: 1;
}

.photo-mosaic img:nth-child(2) {
  transform: scale(1.08);
  z-index: 2;
}

.photo-mosaic img:nth-child(3) {
  transform: rotate(6deg) translateX(-14px);
  z-index: 1;
}

@media (max-width: 860px) {
  .photo-mosaic {
    min-height: 160px;
  }

  .photo-mosaic img {
    width: 110px;
    height: 140px;
  }
}
