/* ============================================
   FiCAR Automotive — Pages CSS
   Gallery, Vehicle Detail, Admin, Shared Components
   ============================================ */

/* --- Nav Solid (non-landing pages) --- */
.nav--solid {
  background: rgba(4, 11, 20, 0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.8rem 3rem;
}

.nav__link--active {
  color: var(--color-accent) !important;
}

.nav__link--active::after {
  width: 100% !important;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(4, 11, 20, 0.98);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s var(--ease);
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: 0.3s;
}

.mobile-menu__link:hover {
  color: var(--color-text-white);
}

.mobile-menu__link--cta {
  color: var(--color-accent);
  padding: 0.8rem 2rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
}

/* --- Page Hero --- */
.page-hero {
  position: relative;
  z-index: 10;
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-deep), transparent);
}

.page-hero__label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  padding: 0.35rem 1rem;
  background: rgba(16, 185, 129, 0.06);
  border-radius: 100px;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--color-text-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Filters --- */
.filters {
  position: relative;
  z-index: 10;
  padding: 0 2rem 2rem;
}

.filters__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filters__group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filters__select {
  appearance: none;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.65rem 2rem 0.65rem 1rem;
  cursor: pointer;
  transition: 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 6.5 3.5 4 3.5-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.filters__select:hover,
.filters__select:focus {
  border-color: var(--color-border-hover);
  outline: none;
}

.filters__info {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-dim);
  letter-spacing: 0.05em;
}

.filters__info span {
  color: var(--color-accent);
  font-weight: 800;
}

/* --- Gallery Grid --- */
.gallery {
  position: relative;
  z-index: 10;
  padding: 0 2rem 4rem;
}

.gallery__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery__empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gallery__empty p {
  font-size: 0.9rem;
}

.gallery__empty.hidden {
  display: none;
}

/* --- View Toggle --- */
.view-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.15rem;
}

.view-toggle__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  color: var(--color-text-dim);
}

.view-toggle__btn svg {
  width: 16px;
  height: 16px;
}

.view-toggle__btn--active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-accent);
}

.view-toggle__btn:hover:not(.view-toggle__btn--active) {
  color: var(--color-text-secondary);
}

.filters__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- List View --- */
.gallery__grid--list {
  grid-template-columns: 1fr !important;
}

.gallery__grid--list .vehicle-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.gallery__grid--list .vehicle-card__image {
  height: 100%;
  min-height: 180px;
}

.gallery__grid--list .vehicle-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery__grid--list .vehicle-card__desc-text {
  display: block;
}

/* Description text (hidden in grid, shown in list) */
.vehicle-card__desc-text {
  display: none;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* --- Loader / Spinner --- */
.gallery__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem;
  color: var(--color-text-dim);
  font-size: 0.75rem;
  font-weight: 600;
}

.gallery__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
}

/* Vehicle card image (real image) */
.vehicle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s var(--ease);
}

.vehicle-card:hover .vehicle-card__image img {
  transform: scale(1.03);
}

/* --- Vehicle Card --- */
.vehicle-card {
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.4s var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.vehicle-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(16, 185, 129, 0.05);
}

.vehicle-card__image {
  position: relative;
  height: 200px;
  background: var(--color-surface);
  overflow: hidden;
}

.vehicle-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-text-dim);
}

.vehicle-card__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.vehicle-card__placeholder span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

.vehicle-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.75rem;
  background: var(--color-accent);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
}

.vehicle-card__body {
  padding: 1.25rem;
}

.vehicle-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.vehicle-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-white);
}

.vehicle-card__year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.vehicle-card__specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.vehicle-card__spec {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.vehicle-card__spec svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.vehicle-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vehicle-card__price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-accent);
}

.vehicle-card__cta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: 0.3s;
}

.vehicle-card:hover .vehicle-card__cta {
  color: var(--color-accent);
}

/* --- Vehicle Detail --- */
.detail {
  position: relative;
  z-index: 10;
  padding: 6rem 2rem 3rem;
}

.detail__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.detail__gallery {
  position: sticky;
  top: 5rem;
  align-self: start;
}

.detail__main-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 0.75rem;
}

.detail__placeholder {
  height: 350px;
}

.detail__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.detail__thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: 0.3s;
}

.detail__thumb:hover {
  border-color: var(--color-border-hover);
}

.detail__thumb-placeholder {
  height: 80px;
}

.detail__thumb-placeholder svg {
  width: 24px;
  height: 24px;
}

.detail__back {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  transition: 0.3s;
}

.detail__back:hover {
  color: var(--color-accent);
}

.detail__header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-text-white);
}

.detail__year-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

.detail__price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.detail__price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-accent);
}

.detail__engine {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.detail__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.detail__spec {
  padding: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.detail__spec-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 0.25rem;
}

.detail__spec-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.detail__desc {
  margin-bottom: 2rem;
}

.detail__features {
  margin-bottom: 2rem;
}

.detail__desc h3,
.detail__features h3 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-white);
  margin-bottom: 0.75rem;
}

.detail__desc p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.detail__feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail__feature-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  color: var(--color-text-secondary);
}

.detail__actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.detail__trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* --- Shared Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--color-border-hover);
  color: var(--color-accent);
}

/* --- Related Section --- */
.related {
  position: relative;
  z-index: 10;
  padding: 3rem 2rem 4rem;
  border-top: 1px solid var(--color-border);
}

.related__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.related__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 2rem;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: 0.3s;
  animation: bounce-soft 3s ease-in-out infinite;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* --- Admin Styles --- */
.admin-wrap {
  position: relative;
  z-index: 10;
  padding: 6rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-white);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-border);
}

.admin-table td {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  transition: 0.3s;
}

.admin-btn--edit {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-btn--edit:hover {
  background: var(--color-accent);
  color: white;
}

.admin-btn--delete {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.admin-btn--delete:hover {
  background: #EF4444;
  color: white;
}

/* Admin form */
.admin-form {
  max-width: 700px;
}

.admin-form__group {
  margin-bottom: 1.25rem;
}

.admin-form__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 0.4rem;
}

.admin-form__input,
.admin-form__select,
.admin-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  transition: 0.3s;
}

.admin-form__input:focus,
.admin-form__select:focus,
.admin-form__textarea:focus {
  outline: none;
  border-color: var(--color-border-hover);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.05);
}

.admin-form__textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-form__row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* --- Responsive Pages --- */
@media (max-width: 768px) {
  .nav--solid {
    padding: 0.7rem 1.25rem;
  }

  .page-hero {
    padding: 6rem 1.25rem 2rem;
  }

  .filters__search-input {
    font-size: 0.85rem;
  }

  .filters__row {
    flex-direction: column;
  }

  .filters__right {
    justify-content: space-between;
    width: 100%;
  }

  .filters__group {
    flex-direction: column;
  }

  .filters__select {
    width: 100%;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid--list .vehicle-card {
    grid-template-columns: 1fr;
  }

  .gallery__grid--list .vehicle-card__image {
    min-height: 160px;
  }

  .detail {
    padding: 5rem 1.25rem 2rem;
  }

  .detail__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .detail__gallery {
    position: static;
  }

  .detail__specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail__actions {
    flex-direction: column;
  }

  .related__grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .admin-form__row,
  .admin-form__row--3 {
    grid-template-columns: 1fr;
  }

  /* Homepage responsive */
  .home-hero__inner {
    padding: 6rem 1.25rem 3rem;
  }

  .home-hero__title span {
    font-size: 1.5rem;
  }

  .home-hero__title em {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .home-hero__actions {
    flex-direction: column;
  }

  .home-hero__stats {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .home-hero__stat-divider {
    width: 40px;
    height: 1px;
  }

  .home-hero__inner--compact {
    flex-direction: column;
    padding: 6rem 1.25rem 1.5rem;
    align-items: flex-start;
  }

  .home-hero__inner--compact .home-hero__stats {
    width: 100%;
  }

  .home-featured__inner,
  .home-why__inner {
    padding: 3rem 1.25rem;
  }

  .home-featured__grid,
  .home-why__grid {
    grid-template-columns: 1fr;
  }

  .home-contact__inner {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }

  .home-contact__actions {
    flex-direction: column;
  }
}

/* ============================================
   SEARCH BAR
   ============================================ */
.filters__search {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 1rem;
}

.filters__search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-dim);
  pointer-events: none;
}

.filters__search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.3s;
}

.filters__search-input::placeholder {
  color: var(--color-text-dim);
}

.filters__search-input:focus {
  outline: none;
  border-color: var(--color-border-hover);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.06);
}

/* Filter row layout */
.filters__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filters__clear {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-family);
  transition: 0.3s;
}

.filters__clear:hover {
  background: var(--color-accent);
  color: white;
}

.filters__select--sort {
  min-width: 220px;
}

/* --- Button Sizes --- */
.btn-primary--lg,
.btn-outline--lg {
  padding: 1rem 2rem;
  font-size: 0.8rem;
  border-radius: 14px;
}

/* ============================================
   HOMEPAGE — Hero
   ============================================ */
.home-hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-bg-deep), var(--color-bg) 70%, transparent);
}

.home-hero__inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.home-hero__content {
  max-width: 680px;
}

.home-hero__title {
  margin-bottom: 1.5rem;
}

.home-hero__title span {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--color-text-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow: visible;
  padding-top: 0.1em;
}

.home-hero__title em {
  display: block;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 20%, rgba(148, 163, 184, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow: visible;
  padding-top: 0.1em;
}

.home-hero__desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
}

.home-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Stats bar */
.home-hero__stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 2.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  max-width: 580px;
}

.home-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.home-hero__stat-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
}

.home-hero__stat-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.home-hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Compact hero — for listing-first homepage */
.home-hero--compact {
  min-height: auto;
}

.home-hero__inner--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 7rem 2rem 2rem;
}

.home-hero__title--compact {
  margin-bottom: 0;
}

.home-hero__title--compact span {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.home-hero__title--compact em {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* ============================================
   HOMEPAGE — Featured
   ============================================ */
.home-featured {
  position: relative;
  z-index: 10;
}

.home-featured__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.home-featured__header {
  text-align: center;
  margin-bottom: 3rem;
}

.home-featured__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.home-featured__cta {
  text-align: center;
}

/* ============================================
   HOMEPAGE — Why FiCAR
   ============================================ */
.home-why {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--color-border);
}

.home-why__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.home-why__header {
  text-align: center;
  margin-bottom: 3rem;
}

.home-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================
   HOMEPAGE — Contact CTA
   ============================================ */
.home-contact {
  position: relative;
  z-index: 10;
  padding: 3rem 2rem 5rem;
}

.home-contact__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  padding: 3rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.home-contact__content {
  flex: 1;
}

.home-contact__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-text-white);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.home-contact__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.home-contact__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-contact__info {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.home-contact__info-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.home-contact__info-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.home-contact__info-item strong {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-white);
}

.home-contact__info-item span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================
   SOCIAL CTA (Hype page — replaces email form)
   ============================================ */
.social-cta {
  position: relative;
  z-index: 10;
  padding: 5rem 2rem;
}

.social-cta__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.social-cta__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--color-accent);
  animation: float-icon 3s ease-in-out infinite;
}

.social-cta__icon svg {
  width: 100%;
  height: 100%;
}

.social-cta__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.social-cta__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.social-cta__buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 14px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s var(--ease);
  text-decoration: none;
}

.social-cta__btn--instagram {
  background: linear-gradient(135deg, #833AB4, #E1306C, #F56040);
  color: white;
  border: none;
}

.social-cta__btn--instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(225, 48, 108, 0.3);
}

.social-cta__btn--facebook {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.social-cta__btn--facebook:hover {
  border-color: #1877F2;
  color: #1877F2;
  background: rgba(24, 119, 242, 0.05);
  transform: translateY(-3px);
}

/* ============================================
   INSTAGRAM FEED GRID (Hype page)
   ============================================ */
.insta-feed {
  position: relative;
  z-index: 10;
  padding: 3rem 2rem 5rem;
}

.insta-feed__inner {
  max-width: 800px;
  margin: 0 auto;
}

.insta-feed__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.insta-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Desktop grid visible, mobile image hidden by default */
.insta-feed__mobile {
  display: none !important;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.insta-feed__mobile img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.5s var(--ease);
}

.insta-feed__mobile:hover img {
  transform: scale(1.03);
}

.insta-feed__mobile .insta-feed__overlay {
  opacity: 0;
  transition: 0.3s var(--ease);
}

.insta-feed__mobile:hover .insta-feed__overlay {
  opacity: 1;
}

.insta-feed__mobile .insta-feed__overlay span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.insta-feed__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.insta-feed__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s var(--ease);
}

.insta-feed__item:hover img {
  transform: scale(1.08);
}

.insta-feed__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: white;
  opacity: 0;
  transition: 0.3s var(--ease);
}

.insta-feed__item:hover .insta-feed__overlay {
  opacity: 1;
}

.insta-feed__overlay span {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.4;
}

.insta-feed__follow {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   GOOGLE MAPS SECTION
   ============================================ */
.map-section {
  position: relative;
  z-index: 10;
  padding: 0 2rem 3rem;
}

.map-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* ============================================
   ADMIN FORM ROW FIX
   ============================================ */
.admin-form__row--3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* ============================================
   RESPONSIVE — New components
   ============================================ */
@media (max-width: 768px) {
  .social-cta {
    padding: 3rem 1.25rem;
  }

  .social-cta__title {
    font-size: 1.2rem;
  }

  .social-cta__buttons {
    flex-direction: column;
  }

  .social-cta__btn {
    justify-content: center;
  }

  .insta-feed {
    padding: 2rem 1.25rem 3rem;
  }

  .insta-feed__desktop {
    display: none !important;
  }

  .insta-feed__mobile {
    display: block !important;
  }

  .map-section {
    padding: 0 1.25rem 2rem;
  }
}

@media (max-width: 576px) {
  .insta-feed__mobile {
    border-radius: 12px;
  }
}