/* ============================================
   Mirror UI v0 — Rental Mobil Flores Nusa (vanilla)
   Token & radius dari app/globals.tsx + komponen v0
   ============================================ */

:root {
  --background: oklch(0.995 0 0);
  --foreground: oklch(0.2 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0 0);
  --muted: oklch(0.96 0 0);
  --muted-foreground: oklch(0.5 0 0);
  --primary: oklch(0.55 0.22 25);
  --primary-foreground: oklch(1 0 0);
  --border: oklch(0.92 0 0);
  --radius: 0.75rem;
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --header-h: 4rem;
  --shell: min(1200px, calc(100% - 2rem));
}

@media (min-width: 768px) {
  :root {
    --header-h: 5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Geist Sans", Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ----- Header (navbar.tsx) ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: color-mix(in oklch, var(--background) 95%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

body.nav-open .site-header {
  background: var(--background);
  box-shadow: var(--shadow-sm);
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-decoration: none;
}

.brand:hover {
  opacity: 0.92;
}

.brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(255 255 255 / 0.45);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
  .brand__logo {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.site-header.is-scrolled .brand__logo,
body.nav-open .brand__logo {
  border-color: color-mix(in oklch, var(--border) 90%, var(--foreground));
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.08);
}

.brand__text {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  color: #fff;
  transition: color 0.3s;
  min-width: 0;
}

@media (min-width: 768px) {
  .brand__text {
    font-size: 1.25rem;
  }
}

.site-header.is-scrolled .brand__text,
body.nav-open .brand__text {
  color: var(--foreground);
}

.nav-desktop {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.site-header.is-scrolled .nav-desktop a {
  color: var(--foreground);
}

.site-header.is-scrolled .nav-desktop a:hover {
  color: var(--primary);
}

.btn-nav-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  color: var(--primary-foreground);
  transition: background 0.2s, transform 0.2s;
}

.btn-nav-desktop:hover {
  background: color-mix(in oklch, var(--primary) 90%, transparent);
}

@media (min-width: 1024px) {
  .btn-nav-desktop {
    display: inline-flex;
  }
}

.nav-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: calc(var(--radius) - 2px);
  transition: color 0.3s;
}

.nav-burger__close {
  display: none;
}

.nav-burger.is-open .nav-burger__menu {
  display: none;
}

.nav-burger.is-open .nav-burger__close {
  display: block;
}

.site-header.is-scrolled .nav-burger,
body.nav-open .nav-burger {
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .nav-burger {
    display: none;
  }
}

.nav-drawer {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.nav-drawer[hidden] {
  display: none !important;
}

.nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.nav-drawer__list a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--foreground);
  transition: background 0.2s, color 0.2s;
}

.nav-drawer__list a:hover {
  background: var(--muted);
  color: var(--primary);
}

.nav-drawer__cta {
  padding: 0 1rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  border-radius: calc(var(--radius) - 2px);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover {
  background: color-mix(in oklch, var(--primary) 90%, transparent);
}

.btn--block {
  width: 100%;
  padding: 0.625rem 1rem;
}

.btn--hero {
  padding: 1.125rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}

.btn--hero:hover {
  background: color-mix(in oklch, var(--primary) 90%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn--lg {
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  min-height: 2.5rem;
}

/* ----- Hero (hero-section.tsx) ----- */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #450a0a;
}

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

.hero__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.6), rgb(0 0 0 / 0.4), rgb(0 0 0 / 0.7));
}

.hero__inner {
  position: relative;
  z-index: 10;
  width: var(--shell);
  margin-inline: auto;
  padding-inline: 1rem;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}

.hero__lead {
  margin: 0 auto 2rem;
  max-width: 42rem;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgb(255 255 255 / 0.9);
  text-wrap: pretty;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 0.5rem);
  }
}

.hero__scroll-track {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgb(255 255 255 / 0.5);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}

.hero__scroll-dot {
  width: 0.375rem;
  height: 0.75rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ----- Sections umum ----- */
.section {
  padding: 5rem 0;
}

.section--muted {
  background: var(--muted);
}

.section__head {
  text-align: center;
  margin-bottom: 3rem;
}

.section__kicker {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.section__title {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

.section__lead {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ----- Fleet (fleet-section.tsx) ----- */
.fleet-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fleet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fleet-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.3s;
}

.fleet-card:hover {
  box-shadow: var(--shadow-xl);
}

.fleet-card__media {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

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

.fleet-card:hover .fleet-card__media img {
  transform: scale(1.05);
}

.fleet-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fleet-card__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.fleet-card__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.fleet-card__row + .fleet-card__row {
  margin-top: 0.5rem;
}

.fleet-card__row svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--primary);
}

.fleet-card__foot {
  padding: 0 1.5rem 1.5rem;
}

.fleet-card__foot .btn {
  width: 100%;
  min-height: 2.25rem;
  font-size: 0.875rem;
}

/* ----- Services (services-section.tsx) ----- */
.svc-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.svc-card {
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.3s, transform 0.3s;
}

.svc-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.svc-card__inner {
  padding: 1.5rem;
  text-align: center;
}

.svc-card__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  transition: background 0.3s, color 0.3s;
}

.svc-card:hover .svc-card__icon {
  background: var(--primary);
  color: var(--primary-foreground);
}

.svc-card__icon svg {
  width: 2rem;
  height: 2rem;
}

.svc-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.svc-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ----- About (about-section.tsx) ----- */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-copy .section__kicker {
  text-align: left;
  margin-bottom: 0.5rem;
}

.about-copy .section__title {
  text-align: left;
  margin-top: 0.5rem;
}

.about-copy p:not(.section__kicker) {
  margin: 0 0 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.about-copy p:not(.section__kicker):last-of-type {
  margin-bottom: 2rem;
}

.hl-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .hl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hl-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hl-row svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.1rem;
}

.hl-row span {
  font-size: 0.875rem;
  color: var(--foreground);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-box {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.stat-box--solid {
  background: var(--primary);
  color: var(--primary-foreground);
}

.stat-box--solid .stat-num {
  color: var(--primary-foreground);
}

.stat-box--solid .stat-sub {
  font-size: 0.875rem;
  opacity: 0.9;
}

.stat-box--line {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.stat-box--line .stat-num {
  color: var(--primary);
}

.stat-box--line .stat-sub {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stat-num {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.stat-sub {
  margin: 0;
}

/* ----- Gallery (gallery-section.tsx) ----- */
.gal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gal-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  cursor: pointer;
  background: var(--foreground);
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gal-item:hover img {
  transform: scale(1.1);
}

.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.7), transparent, transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gal-item:hover::after {
  opacity: 1;
}

.gal-item__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  z-index: 1;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gal-item:hover .gal-item__cap {
  transform: translateY(0);
}

.gal-item__cap p {
  margin: 0;
  font-weight: 600;
  color: #fff;
}

/* ----- Testimonials (testimonials-section.tsx) ----- */
.t-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .t-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.t-card {
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.3s;
}

.t-card:hover {
  box-shadow: var(--shadow-xl);
}

.t-card__inner {
  padding: 1.5rem;
}

.t-card__quote {
  width: 2rem;
  height: 2rem;
  color: color-mix(in oklch, var(--primary) 20%, transparent);
  margin-bottom: 1rem;
}

.t-card__text {
  margin: 0 0 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.t-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.t-stars svg {
  width: 1rem;
  height: 1rem;
  fill: #facc15;
  color: #facc15;
}

.t-name {
  margin: 0;
  font-weight: 700;
}

.t-loc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ----- Contact (contact-section.tsx) ----- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow-lg);
}

.contact-card__inner {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-card__icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
}

.contact-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.contact-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.contact-map {
  min-height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
  .contact-map {
    min-height: 0;
    height: 100%;
  }
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* ----- Footer (footer.tsx) ----- */
.footer {
  background: var(--foreground);
  color: var(--background);
}

.footer .shell {
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in oklch, var(--background) 25%, transparent);
}

.footer-brand span {
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: color-mix(in oklch, var(--background) 70%, transparent);
}

.footer h4 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a,
.footer li span {
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--background) 70%, transparent);
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--primary);
}

.footer-contact li.map {
  align-items: flex-start;
}

.footer-contact li.map svg {
  margin-top: 0.125rem;
}

.footer-bar {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in oklch, var(--background) 20%, transparent);
  text-align: center;
}

.footer-bar p {
  margin: 0;
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--background) 60%, transparent);
}
