:root {
  --ink-900: #0e1830;
  --ink-700: #34466d;
  --gold-500: #b6812c;
  --gold-300: #e2bc70;
  --line: rgba(14, 24, 48, 0.16);
  --surface: #f7f2e7;
  --card: rgba(255, 255, 255, 0.84);
  --overlay: rgba(7, 12, 23, 0.74);
  --shadow: 0 16px 38px rgba(12, 20, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 10% 10%, #f6deb3 0%, transparent 32%),
    radial-gradient(circle at 90% 6%, #d7e3ff 0%, transparent 28%),
    linear-gradient(180deg, #fffcf4 0%, var(--surface) 62%, #eee3cf 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.28;
  pointer-events: none;
}

.glow-left {
  width: 380px;
  height: 380px;
  left: -120px;
  top: -120px;
  background: #f8d9a2;
}

.glow-right {
  width: 320px;
  height: 320px;
  right: -90px;
  top: 400px;
  background: #c7d8fe;
}

.topbar {
  width: min(1180px, 94%);
  margin: 1.1rem auto 0;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Cinzel", serif;
  font-size: 1.22rem;
  color: var(--ink-900);
  text-decoration: none;
  letter-spacing: 0.03em;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.95rem;
}

.layout {
  width: min(1180px, 94%);
  margin: 1.7rem auto 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1rem;
}

.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 420px;
}

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

.hero-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 17, 35, 0.82);
  color: #ffefcf;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-copy {
  border-radius: 24px;
  border: 1px solid rgba(182, 129, 44, 0.3);
  background: linear-gradient(145deg, rgba(255, 250, 240, 0.95), rgba(248, 236, 209, 0.9));
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.73rem;
  font-weight: 700;
  color: #6d4f20;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Cinzel", serif;
}

h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.hero-copy p {
  color: var(--ink-700);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #221300;
  background: linear-gradient(130deg, var(--gold-500), var(--gold-300));
  box-shadow: 0 10px 24px rgba(182, 129, 44, 0.32);
}

.btn-secondary {
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(14, 24, 48, 0.24);
}

.stats {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stats li {
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.65rem 0.8rem;
}

.stats strong {
  display: block;
}

.stats span {
  color: var(--ink-700);
  font-size: 0.85rem;
}

.section {
  margin-top: 2.8rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.45rem, 3.1vw, 2.2rem);
}

.section-note {
  color: var(--ink-700);
  margin: 0.65rem 0 0;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.vehicle-card {
  appearance: none;
  padding: 0;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.vehicle-copy {
  padding: 0.9rem 0.95rem 1rem;
}

.vehicle-copy h3 {
  font-size: 1.04rem;
}

.vehicle-copy p {
  margin: 0.5rem 0;
  color: var(--ink-700);
  line-height: 1.45;
}

.vehicle-copy span {
  font-weight: 700;
  font-size: 0.86rem;
  color: #765219;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.service-card p {
  color: var(--ink-700);
  line-height: 1.5;
  margin: 0.6rem 0 0;
}

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

.local-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.local-card p {
  margin: 0.6rem 0;
  color: var(--ink-700);
  line-height: 1.5;
}

.local-card a {
  color: #6b4b17;
  font-weight: 700;
  text-decoration: none;
}

.contact {
  text-align: center;
  border-radius: 18px;
  padding: 2rem 1rem;
  background: linear-gradient(122deg, #111b33, #203056);
  color: #fff4dd;
  box-shadow: var(--shadow);
}

.contact h2 {
  color: #fff8ea;
}

.contact p {
  color: #f7e8c8;
}

.contact-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact .btn-secondary {
  color: #fff7e8;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.footer {
  text-align: center;
  color: #47546e;
  margin: 0 0 2rem;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}

.gallery-modal[hidden] {
  display: none !important;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.gallery-panel {
  position: relative;
  width: min(940px, 92%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: #101a33;
  color: #f5ebd6;
  padding: 1rem;
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.4);
}

.gallery-counter {
  margin: 0.4rem 0 0.8rem;
  color: #d8c8a2;
}

.gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 260px;
  background: #060b17;
}

.gallery-main img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  display: block;
  background: #060b17;
}

.gallery-error {
  margin: 0.9rem 0 0;
  color: #ffcf9e;
  font-size: 0.92rem;
}

.icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  color: #fff3d8;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.close-btn {
  position: absolute;
  right: 0.85rem;
  top: 0.75rem;
  font-size: 1.2rem;
  line-height: 1;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#prevBtn {
  left: 0.7rem;
}

#nextBtn {
  right: 0.7rem;
}

.single-image-note {
  margin: 0.9rem 0 0;
  color: #d8c8a2;
  font-size: 0.9rem;
}

.gallery-thumbs {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 0.5rem;
}

.thumb-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 9px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.thumb-button img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.thumb-button.active {
  outline: 2px solid #f3d08a;
  outline-offset: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.chat-launcher {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 35;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #0f1b37, #1b2d59);
  color: #f5e8cc;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(7, 12, 23, 0.35);
}

.chat-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 4.8rem;
  z-index: 35;
  width: min(380px, calc(100vw - 1.4rem));
  height: min(560px, 74vh);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: #0f1932;
  color: #f8ebcf;
  box-shadow: 0 24px 50px rgba(6, 10, 20, 0.45);
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.chat-header p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #cfbf97;
}

.chat-close {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.32);
  color: #f8ebcf;
  cursor: pointer;
}

.chat-messages {
  padding: 0.8rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: linear-gradient(180deg, rgba(6, 10, 19, 0.55), rgba(13, 21, 40, 0.1));
}

.chat-msg {
  max-width: 90%;
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  line-height: 1.45;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(130deg, #b6812c, #e2bc70);
  color: #201300;
}

.chat-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.09);
  color: #f8ebcf;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.chat-form {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  padding: 0.75rem;
}

.chat-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  color: #f8ebcf;
  padding: 0.66rem 0.7rem;
  outline: none;
}

.chat-form input::placeholder {
  color: #c3b388;
}

.chat-form button {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(130deg, #b6812c, #e2bc70);
  color: #211300;
  font-weight: 700;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}

.chat-typing {
  font-style: italic;
  color: #cdbf9c;
}

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

  .hero-media {
    min-height: 360px;
  }

  .fleet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .local-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .fleet-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-panel {
    width: 94%;
    padding: 0.8rem;
  }

  .chat-panel {
    right: 0.7rem;
    bottom: 4.5rem;
    width: calc(100vw - 1.4rem);
    height: min(540px, 72vh);
  }

  .chat-launcher {
    right: 0.7rem;
    bottom: 0.8rem;
  }
}

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