/* ==========================================================================
   ŞAŞMAZLAR OTOMOTİV - REFINED PREMIUM CORPORATE STYLESHEET
   Typography: Manrope (Headings: 700-800, Body: 400-500)
   Color System: Deep Obsidian / Charcoal / Off-white / Restrained Crimson
   ========================================================================== */

:root {
  /* Color Architecture */
  --bg-deep: #08090b;
  --bg-surface: #0b0d10;
  --bg-elevated: #0f1217;
  --bg-card: #14171e;
  --bg-header: rgba(8, 9, 11, 0.82);

  /* Hairlines & Boundaries */
  --border-line: rgba(255, 255, 255, 0.08);
  --border-line-hover: rgba(255, 255, 255, 0.2);

  /* Restrained Red Accent */
  --accent-red: #d9232a;
  --accent-red-hover: #b81b21;
  --accent-red-soft: rgba(217, 35, 42, 0.12);

  /* Typography Palette */
  --text-pure: #ffffff;
  --text-lead: #e6e8ec;
  --text-body: #9ea5b1;
  --text-dim: #626875;

  /* Font Family */
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing & Dimensions */
  --max-width: 1160px;
  --section-pad: clamp(84px, 10vw, 140px);
  --header-h: 74px;

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.3s;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--bg-deep);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}

.section-heading {
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  max-width: 740px;
}

.section-prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* Minimal Refined Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background-color: var(--accent-red);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn-primary:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background-color: transparent;
  color: var(--text-lead);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid var(--border-line);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn-secondary:hover {
  border-color: var(--border-line-hover);
  background-color: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
}

.w-full {
  width: 100%;
}

/* ==================== 1. HEADER ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 900;
  background-color: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-line);
  transition: height var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-header.scrolled {
  height: 62px;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-pure);
  line-height: 1.2;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.brand-logo:hover .brand-name {
  color: #ffffff;
}

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

.nav-item {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--dur) var(--ease);
  position: relative;
  padding: 4px 0;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-pure);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease);
}

.header-phone-link svg {
  width: 14px;
  height: 14px;
}

.header-phone-link:hover {
  color: var(--text-pure);
}

.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--accent-red);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color var(--dur) var(--ease);
}

.btn-whatsapp-header svg {
  width: 14px;
  height: 14px;
}

.btn-whatsapp-header:hover {
  background-color: var(--accent-red-hover);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.mobile-toggle span {
  width: 20px;
  height: 1.5px;
  background-color: var(--text-pure);
  border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-line);
  z-index: 1000;
  transition: right var(--dur) var(--ease);
  visibility: hidden;
}

.mobile-drawer.open {
  right: 0;
  visibility: visible;
}

.mobile-drawer-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-line);
}

.mobile-drawer-close {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-body);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: auto;
}

.mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
}

.mobile-link:hover {
  color: var(--text-pure);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-line);
}

.mobile-location-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-line);
  background: rgba(255, 255, 255, 0.02);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.mobile-location-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.mobile-location-link:hover {
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==================== 2. HERO SECTION ==================== */
/* Left-aligned, grounded in lower-left area with architectural negative space */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  padding-bottom: clamp(60px, 8vh, 100px);
  overflow: hidden;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(1.02) contrast(1.02);
  will-change: transform;
}

/* Lighter Cinematic Overlay:
   Preserves full clarity of the building facade, illuminated signage, entrance, and architecture.
   Gentle localized shading only behind lower-left text and smooth bottom blend into next section.
   No heavy shadows or muddy blacks. */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    /* Gentle bottom blend only at the bottom edge */
    linear-gradient(180deg, rgba(8, 9, 11, 0.15) 0%, transparent 28%, transparent 68%, rgba(8, 9, 11, 0.7) 90%, #08090b 100%),
    /* Subtle directional shading localized to the text column on the lower left */
    linear-gradient(90deg, rgba(8, 9, 11, 0.72) 0%, rgba(8, 9, 11, 0.38) 32%, rgba(8, 9, 11, 0.08) 55%, transparent 75%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
}

.hero-text-wrap {
  max-width: 640px;
  text-align: left;
}

.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.16;
  color: var(--text-pure);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}

.hero-subtext {
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-lead);
  max-width: 530px;
  margin-bottom: 32px;
  opacity: 0.95;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==================== 3. HAKKIMIZDA ==================== */
.about-section {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-line);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 68px;
  align-items: center;
}

.about-text-col .section-heading {
  margin-bottom: 24px;
}

.editorial-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-line);
  background-color: var(--bg-surface);
}

.editorial-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.editorial-frame:hover .editorial-img {
  transform: scale(1.02);
}

/* ==================== 4. TESİS & STOK ALTYAPISI ==================== */
.facility-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-line);
}

.facility-intro {
  margin-bottom: 40px;
}

.facility-intro .section-heading {
  margin-bottom: 14px;
}

.facility-desc {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 620px;
  line-height: 1.7;
}

.facility-showcase {
  margin-bottom: 40px;
}

.showcase-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-line);
  background-color: var(--bg-deep);
}

.showcase-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.editorial-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border-line);
}

.spec-row {
  display: flex;
  align-items: flex-start;
}

.spec-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.spec-content p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ==================== 5. EDİTORYAL GALERİ ==================== */
.gallery-section {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-line);
}

.gallery-header {
  margin-bottom: 40px;
}

/* Art-directed Balanced Bento Composition */
.gallery-composition {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 240px 240px 380px;
  gap: 16px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-line);
  cursor: pointer;
  background-color: var(--bg-surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.3s var(--ease);
}

.gallery-card:hover {
  border-color: var(--border-line-hover);
  transform: translateY(-2px);
}

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

/* Grid Cell Coordinates */
.card-tall {
  grid-column: span 5;
  grid-row: span 2;
}

.card-side-top {
  grid-column: span 7;
  grid-row: span 1;
}

.card-side-bottom {
  grid-column: span 7;
  grid-row: span 1;
}

.card-full-bottom {
  grid-column: span 12;
  grid-row: span 1;
}

/* Object Position Fine-Tuning: Prevent bad crop of building logo / signage */
.img-pos-center {
  object-position: center;
}

.img-pos-facade {
  object-position: center 25%;
}

/* ==================== 6. HİZMET ANLAYIŞI ==================== */
.principles-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-line);
}

.principles-header {
  margin-bottom: 40px;
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.principle-item {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 1px solid var(--border-line);
}

.principle-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 8px;
  line-height: 1.35;
}

.principle-body p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ==================== 7. İLETİŞİM & LOKASYON ==================== */
.contact-section {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-line);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.contact-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-line);
  height: 520px;
}

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

.contact-media-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 14px;
  background: rgba(8, 9, 11, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-line);
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-pure);
}

.contact-content .contact-tag {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 14px;
}

.contact-content .section-heading {
  margin-bottom: 14px;
}

.contact-intro {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-line);
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  color: var(--text-lead);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.detail-row:hover .detail-icon {
  border-color: rgba(217, 35, 42, 0.4);
  color: var(--accent-red);
}

.detail-icon svg {
  width: 18px;
  height: 18px;
}

.detail-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.35;
  transition: color var(--dur) var(--ease);
}

.detail-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phone-option {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 10px 32px 10px 12px;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.phone-option-label {
  color: var(--text-dim);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease);
}

.phone-option-number {
  color: var(--text-lead);
  font-size: clamp(0.78rem, 1.05vw, 0.94rem);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.phone-option-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  transform: translateY(-50%);
  transition: color var(--dur) var(--ease);
}

.phone-option:hover,
.phone-option:focus-visible {
  border-color: rgba(217, 35, 42, 0.58);
  background-color: var(--accent-red-soft);
}

.phone-option:hover .phone-option-label,
.phone-option:focus-visible .phone-option-label {
  color: var(--text-lead);
}

.phone-option:hover .phone-option-number,
.phone-option:focus-visible .phone-option-number,
.phone-option:hover .phone-option-icon,
.phone-option:focus-visible .phone-option-icon {
  color: var(--accent-red);
}

.email-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-lead);
}

.email-link:hover {
  color: var(--accent-red);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  transition: color var(--dur) var(--ease);
}

.instagram-link:hover {
  color: var(--accent-red);
}

.external-icon {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.instagram-link:hover .external-icon {
  color: var(--accent-red);
  transform: translate(1px, -1px);
}

.detail-address {
  font-style: normal;
  font-size: 0.94rem;
  color: var(--text-lead);
  line-height: 1.6;
  transition: color var(--dur) var(--ease);
}

.detail-link-row {
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 6px;
  margin: -4px -6px;
  transition: background-color var(--dur) var(--ease);
}

.detail-link-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.detail-link-row:hover .detail-address {
  color: var(--text-pure);
}

.detail-link-row:hover .detail-label {
  color: var(--text-lead);
}

.text-pure {
  color: var(--text-pure);
}

.detail-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 3px;
}

.detail-text {
  font-size: 0.9rem;
  color: var(--text-lead);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==================== 8. FOOTER ==================== */
.site-footer {
  border-top: 1px solid var(--border-line);
  padding-top: 32px;
  padding-bottom: 32px;
  background-color: var(--bg-deep);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-pure);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-legal {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-lead);
}

.footer-address-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  margin: 2px 0;
}

.footer-address-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.footer-address-link:hover {
  color: var(--accent-red);
}

.footer-copy {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-line);
  background: rgba(255, 255, 255, 0.02);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.footer-social-link svg {
  width: 14px;
  height: 14px;
}

.footer-social-link:hover {
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.footer-link {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease);
}

.footer-link:hover {
  color: var(--text-pure);
}

.footer-sub-container {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-credit {
  font-size: 0.73rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  text-align: center;
}

.credit-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.credit-link:hover {
  color: var(--text-lead);
  text-decoration: underline;
}

/* ==================== 9. IMMERSIVE LIGHTBOX (NO-BLOCK BUG FIX) ==================== */
/* When not active: visibility is strictly hidden and all children have pointer-events: none! */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-modal:not(.active) * {
  pointer-events: none !important;
  visibility: hidden !important;
}

.lightbox-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 9, 11, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.lightbox-shell {
  position: relative;
  z-index: 2501;
  width: 90vw;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lightbox-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--text-dim);
  line-height: 1;
  pointer-events: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-line);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.lightbox-close-btn:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.14);
}

.lightbox-large-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border-line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  pointer-events: auto;
  transform: scale(0.97);
  transition: transform 0.25s var(--ease);
}

.lightbox-modal.active .lightbox-large-img {
  transform: scale(1);
}

/* ==================== 10. MOTION & ACCESSIBILITY ==================== */
.reveal-block,
.reveal-media {
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== 11. RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .editorial-img {
    height: 360px;
  }

  .editorial-specs {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .principles-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-media {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .site-nav,
  .d-none-mobile {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-section {
    padding-bottom: 50px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;
  }

  .gallery-composition {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .card-tall,
  .card-side-top,
  .card-side-bottom,
  .card-full-bottom {
    grid-column: span 1;
    grid-row: span 1;
    height: 260px;
  }

  .principles-list {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions a {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-line);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .section-heading {
    font-size: 1.48rem;
    line-height: 1.28;
  }

  .detail-phones {
    flex-direction: column;
    gap: 4px;
  }

  .detail-sep {
    display: none;
  }
}

/* ==================== VEHICLE SERVICE CATALOG ==================== */
.vehicles-section {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-line);
}

.vehicles-header {
  margin-bottom: 36px;
}

.vehicles-header .section-heading {
  margin-bottom: 12px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vehicle-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border-line);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), var(--bg-card) 42%, var(--bg-elevated));
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.vehicle-card:hover {
  border-color: rgba(217, 35, 42, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.vehicle-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-line);
}

.vehicle-card h3 {
  min-width: 0;
  color: var(--text-pure);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vehicle-models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vehicle-models li {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  background-color: rgba(8, 9, 11, 0.28);
  color: var(--text-lead);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.vehicle-models li::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background-color: var(--accent-red);
  content: "";
  opacity: 0.78;
}

/* ==================== FLOATING WHATSAPP CONTACT ==================== */
.whatsapp-widget {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: calc(22px + env(safe-area-inset-bottom, 0px) + var(--whatsapp-widget-lift, 0px));
  z-index: 880;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-prompt {
  position: relative;
  width: min(272px, calc(100vw - 92px));
  border: 1px solid var(--border-line-hover);
  border-radius: 6px;
  background-color: var(--bg-card);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px) scale(0.985);
  transform-origin: right center;
  transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.22, 1.15, 0.36, 1), visibility 0.28s ease;
}

.whatsapp-prompt::after {
  position: absolute;
  right: -6px;
  bottom: 18px;
  width: 11px;
  height: 11px;
  border-top: 1px solid var(--border-line-hover);
  border-right: 1px solid var(--border-line-hover);
  background-color: var(--bg-card);
  content: "";
  transform: rotate(45deg);
}

.whatsapp-widget.is-open .whatsapp-prompt {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.whatsapp-prompt-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 38px 15px 16px;
  border-radius: inherit;
  transition: background-color var(--dur) var(--ease);
}

.whatsapp-prompt-link:hover {
  background-color: rgba(255, 255, 255, 0.035);
}

.whatsapp-prompt-title {
  color: var(--text-pure);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.whatsapp-prompt-cta {
  color: #63dc8c;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.whatsapp-prompt-close {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 7px;
  display: flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.whatsapp-widget.is-open .whatsapp-prompt-close {
  opacity: 1;
  visibility: visible;
}

.whatsapp-prompt-close:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-pure);
}

.whatsapp-fab {
  display: flex;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  color: #fff;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.whatsapp-fab:hover {
  background-color: #20bd5a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

.whatsapp-fab:active {
  transform: scale(0.97);
}

.whatsapp-fab svg {
  width: 25px;
  height: 25px;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .nav-links {
    gap: 19px;
  }
}

@media (max-width: 768px) {
  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vehicle-card {
    padding: 23px;
  }

  .phone-option-number {
    font-size: 0.92rem;
  }

  .whatsapp-widget {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--whatsapp-widget-lift, 0px));
    gap: 10px;
  }

  .whatsapp-prompt {
    width: min(252px, calc(100vw - 88px));
  }
}

@media (max-width: 360px) {
  .vehicle-models {
    grid-template-columns: 1fr;
  }

  .whatsapp-widget {
    right: 12px;
    gap: 8px;
  }

  .whatsapp-fab {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .whatsapp-prompt {
    width: calc(100vw - 84px);
  }

  .whatsapp-prompt-link {
    padding: 12px 34px 12px 13px;
  }
}

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