/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: box-shadow 300ms var(--ease-smooth), background 300ms var(--ease-smooth);
}

.navbar--scrolled {
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
  background: rgba(10, 14, 26, 0.95);
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem; /* 24px */
  color: var(--text-primary);
  text-decoration: none;
}

.navbar__logo svg {
  color: var(--accent);
  stroke-width: 1.5px;
}

.navbar__links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}

.navbar__links a {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-body-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-block: var(--space-1);
  transition: color 200ms ease;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 200ms ease;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--text-accent);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

/* Navbar Buttons */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: var(--space-1);
}

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  z-index: 150;
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  transition: right 400ms var(--ease-out-expo);
}

.nav-drawer.is-active {
  right: 0;
}

.nav-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-drawer__close {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
}

.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.nav-drawer__links a {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-body-lg);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  padding-block: var(--space-2);
}

.nav-drawer__links a:hover,
.nav-drawer__links a.active {
  color: var(--text-accent);
}

/* Nav Drawer Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(4px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.drawer-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Buttons */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.8125rem; /* 13px */
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  text-decoration: none;
}

.btn svg {
  transition: transform 150ms ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.75rem;
}

/* Primary - Gold Fill */
.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
  border: 1px solid var(--accent);
  padding: 14px 32px;
}

.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 24px var(--accent-glow);
  color: var(--bg-primary);
}

/* Outline - Gold Border */
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-mid);
  padding: 14px 32px;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

/* Ghost - Text only with arrow */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 14px 0;
  width: max-content;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: transparent;
}

.btn--ghost svg {
  color: var(--accent);
}

/* Eyebrow Component */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.eyebrow__rule {
  display: block;
  width: 0; /* starts at 0 for animation, draws to 24px */
  height: 1px;
  background: var(--accent);
  transition: width 500ms var(--ease-out-expo) 200ms;
}

.eyebrow__text {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-accent);
}

/* Section transitions eyebrow draw */
.is-visible .eyebrow__rule {
  width: 24px;
}

/* Dividers */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  border: none;
}

.divider--gold {
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  height: 1px;
  border: none;
}

/* Service Cards */
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 250ms var(--ease-smooth),
              border-color 250ms ease,
              background-color 250ms ease,
              box-shadow 250ms ease;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-1);
  transition: color 250ms ease, border-color 250ms ease;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5px;
}

.service-card__title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.125rem; /* 18px */
  color: var(--text-primary);
  margin-top: var(--space-2);
}

.service-card__description {
  font-size: var(--text-body-md);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  margin-bottom: var(--space-2);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3),
              0 0 0 1px var(--border-subtle);
}

.service-card:hover .service-card__icon {
  color: var(--accent-light);
  border-color: var(--border-mid);
}

/* Fleet Showcase Carousel */
.fleet-carousel-container {
  position: relative;
  width: 100%;
}

.fleet-carousel {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--space-4);
}

.fleet-carousel::-webkit-scrollbar {
  display: none;
}

.fleet-card {
  flex: 0 0 calc(33.333% - 22px);
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 300ms var(--ease-smooth), border-color 300ms ease, box-shadow 300ms ease;
}

.fleet-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.fleet-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.7);
  mix-blend-mode: luminosity;
  transition: transform 500ms var(--ease-smooth), filter 300ms ease;
}

.fleet-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg-surface) 100%);
  pointer-events: none;
}

.fleet-card__content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-grow: 1;
}

.fleet-card__class {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-micro);
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: var(--tracking-mono);
}

.fleet-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-heading-lg);
  font-weight: 400;
  color: var(--text-primary);
}

.fleet-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-2);
  border-top: 1px solid rgba(200, 169, 110, 0.08);
  padding-top: var(--space-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-data-sm);
  color: var(--text-secondary);
}

.fleet-card__detail-item span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-micro);
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-bottom: 2px;
  letter-spacing: var(--tracking-label);
}

.fleet-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
}

.fleet-card:hover .fleet-card__image {
  transform: scale(1.05);
  filter: brightness(0.9) saturate(0.85);
}

/* Carousel controls */
.fleet-controls {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.fleet-btn {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
}

.fleet-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

/* Image frame offset border style for About section */
.image-frame {
  position: relative;
  width: 100%;
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--border-mid);
  z-index: -1;
  pointer-events: none;
  transition: inset 300ms var(--ease-smooth);
}

.image-frame:hover::after {
  inset: 16px -16px -16px 16px;
  border-color: var(--accent);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.85) saturate(0.75);
  mix-blend-mode: luminosity;
  border-radius: 2px;
}

/* Inputs & Form styling */
.contact-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-mid);
  padding: var(--space-2) 0;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-body-md);
  color: var(--text-primary);
  outline: none;
  transition: border-color 200ms ease;
}

.input::placeholder {
  color: var(--text-secondary);
  opacity: 0.4;
}

.input:focus {
  border-bottom-color: var(--accent);
}

/* Dropdown styling standard override */
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C8A96E'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 16px;
  padding-right: var(--space-3);
  cursor: pointer;
}

select.input option {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  padding: var(--space-2);
}

.input.is-invalid {
  border-bottom-color: var(--color-error);
}

.form-error {
  color: var(--color-error);
  font-size: var(--text-micro);
  margin-top: 4px;
  display: none;
}

.input.is-invalid + .form-error {
  display: block;
}

/* Office information */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.info-block__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-heading-lg);
  color: var(--text-primary);
}

.info-block__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.info-block__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body-md);
  color: var(--text-secondary);
}

.info-block__item svg {
  color: var(--accent);
  flex-shrink: 0;
  stroke-width: 1.5px;
}

/* Responsive elements */
@media (max-width: 900px) {
  .navbar__links, 
  .navbar__actions .btn {
    display: none;
  }
  
  .navbar__toggle {
    display: block;
  }
  
  .fleet-card {
    flex: 0 0 calc(50% - 12px);
  }
  
  .contact-split {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 600px) {
  .fleet-card {
    flex: 0 0 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Corridor list horizontal layout */
.corridor-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  list-style: none;
  justify-content: center;
  padding: 0;
  margin-top: var(--space-3);
}

.corridor-list__item {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 200ms var(--ease-smooth);
}

.corridor-list__item:hover {
  color: var(--accent-light);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* Map Label Styles */
.map-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--text-primary);
  text-anchor: middle;
  transition: fill 200ms ease, font-size 200ms ease;
  pointer-events: none;
}

.map-coords {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  fill: var(--text-secondary);
  opacity: 0.55;
  text-anchor: middle;
  pointer-events: none;
  transition: fill 200ms ease, opacity 200ms ease;
}

/* ─── Honeypot Anti-Bot Field ───────────────────────────────────────────────── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ─── Toast Notification System ─────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  width: clamp(300px, 420px, calc(100vw - 64px));
}

.toast {
  pointer-events: all;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 48px 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  animation: toast-slide-in 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.toast.toast--leaving {
  animation: toast-slide-out 0.3s cubic-bezier(0.4,0,1,1) forwards;
}

.toast--success { border-left: 3px solid var(--accent); }
.toast--error   { border-left: 3px solid #e05a4b; }
.toast--warning { border-left: 3px solid #d4943a; }

.toast__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast--success .toast__icon { background: rgba(200,169,110,0.1); color: var(--accent); }
.toast--error   .toast__icon { background: rgba(224, 90, 75,0.1); color: #e05a4b; }
.toast--warning .toast__icon { background: rgba(212,148, 58,0.1); color: #d4943a; }

.toast__body { flex: 1; min-width: 0; }

.toast__title {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 5px;
  line-height: 1.3;
}

.toast__message {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  font-size: 20px;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast__close:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.04);
}

.toast__progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
}

.toast--success .toast__progress-bar { background: var(--accent); }
.toast--error   .toast__progress-bar { background: #e05a4b; }
.toast--warning .toast__progress-bar { background: #d4943a; }

@keyframes toast-slide-in {
  from { transform: translateX(calc(100% + 40px)); opacity: 0; }
  to   { transform: translateX(0);                 opacity: 1; }
}

@keyframes toast-slide-out {
  from { transform: translateX(0);                 opacity: 1; }
  to   { transform: translateX(calc(100% + 40px)); opacity: 0; }
}

@media (max-width: 600px) {
  #toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* ==========================================================================
   Responsive Overrides for Inline Styles (Footer & Forms)
   ========================================================================== */

@media (max-width: 900px) {
  /* Override inline split-section grids (e.g. invest form layout) */
  .split-section[style] {
    grid-template-columns: 1fr !important;
  }
  
  /* Override inline 4-column footer grid to 2 columns on tablet */
  footer .container > div[style*="grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  /* Override inline footer grid to 1 column on mobile */
  footer .container > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  /* Make footer top/bottom flex areas stack on mobile */
  footer .container > div[style*="flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: var(--space-3) !important;
  }
}
