/* Tropical Detailing - shared styles */

html { scroll-behavior: smooth; }
body {
  background: #0a0a0a;
  color: #f5f1e8;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(at 10% 0%, rgba(184,134,11,0.06) 0px, transparent 50%),
    radial-gradient(at 90% 100%, rgba(31,77,46,0.05) 0px, transparent 50%);
}

/* Side color accents */
body::before, body::after {
  content: '';
  position: fixed;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(184,134,11,0.0) 5%,
    rgba(184,134,11,0.45) 25%,
    rgba(31,77,46,0.4) 50%,
    rgba(184,134,11,0.45) 75%,
    rgba(184,134,11,0.0) 95%,
    transparent 100%);
  z-index: 30;
  pointer-events: none;
}
body::before { left: 18px; }
body::after  { right: 18px; }
@media (max-width: 768px) {
  body::before { left: 8px; }
  body::after  { right: 8px; }
}

/* Decorative palm fronds on hero edges */
.frond-left, .frond-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}
.frond-left  { left: -40px; }
.frond-right { right: -40px; transform: translateY(-50%) scaleX(-1); }
@media (max-width: 768px) { .frond-left, .frond-right { display: none; } }

/* Hero backgrounds */
.hero-bg {
  background-image:
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.85) 100%),
    url('https://static.wixstatic.com/media/nsplsh_65737657482d6f77577567~mv2_d_3840_2880_s_4_2.jpg/v1/fill/w_2400,h_1600,al_c,q_85,enc_avif,quality_auto/nsplsh_65737657482d6f77577567~mv2_d_3840_2880_s_4_2.jpg');
  background-size: cover;
  background-position: center;
}
.page-hero {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.95) 100%),
    url('https://static.wixstatic.com/media/nsplsh_65737657482d6f77577567~mv2_d_3840_2880_s_4_2.jpg/v1/fill/w_2400,h_1600,al_c,q_85,enc_avif,quality_auto/nsplsh_65737657482d6f77577567~mv2_d_3840_2880_s_4_2.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.4), transparent);
}

.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.45), rgba(31,77,46,0.3), rgba(184,134,11,0.45), transparent);
}

.card-hover { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-3px); border-color: #b8860b; box-shadow: 0 4px 30px -10px rgba(184,134,11,0.3); }

/* Fade-in for content (subtle, non-blocking) */
.fade-in { animation: gentleFadeIn 0.6s ease forwards; }
@keyframes gentleFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nav */
.nav-link { position: relative; cursor: pointer; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: #b8860b;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active::after { transform: scaleX(1); background: #c9971a; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 10px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 60;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background .15s ease;
}
.dropdown-menu a:hover { background: rgba(184,134,11,0.1); }
.dropdown-menu a .item-title { color: #f5f1e8; font-size: 14px; font-weight: 500; }
.dropdown-menu a .item-price { color: #b8860b; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,134,11,0.2);
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
  z-index: 49;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 14px;
  color: #f5f1e8;
  border-radius: 6px;
  font-size: 15px;
}
.mobile-menu a:hover { background: rgba(184,134,11,0.1); }
.mobile-menu .sub { padding-left: 30px; font-size: 14px; opacity: 0.7; }

/* Gallery */
.gallery-item { aspect-ratio: 1 / 1; background: #1a1a1a; border: 1px solid rgba(184,134,11,0.15); position: relative; overflow: hidden; transition: border-color .25s ease; }
.gallery-item:hover { border-color: rgba(184,134,11,0.45); }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(184,134,11,0.06) 0%, rgba(31,77,46,0.06) 100%);
  color: rgba(245,241,232,0.5);
  padding: 1rem;
}
.gallery-placeholder svg { width: 36px; height: 36px; opacity: 0.35; margin-bottom: 8px; }
.gallery-placeholder .car-label { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: rgba(245,241,232,0.85); margin-bottom: 4px; }
.gallery-placeholder .label-sub { font-size: 9px; letter-spacing: 0.3em; color: #b8860b; text-transform: uppercase; }

/* Featured (full detail) card */
.featured-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(184,134,11,0.08) 0%, rgba(31,77,46,0.04) 100%),
    radial-gradient(at 100% 0%, rgba(184,134,11,0.1) 0px, transparent 50%);
}
.featured-card::before {
  content: 'Most Popular';
  position: absolute;
  top: -10px; right: 18px;
  background: #b8860b;
  color: #0a0a0a;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

/* Service bubbles */
.service-bubble {
  position: relative;
  background: linear-gradient(160deg, rgba(184,134,11,0.08) 0%, rgba(31,77,46,0.08) 60%, rgba(10,10,10,0.4) 100%);
  border: 1px solid rgba(184,134,11,0.2);
  border-radius: 999px;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: all .3s ease;
  text-decoration: none;
  color: inherit;
}
.service-bubble:hover {
  border-color: #b8860b;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -10px rgba(184,134,11,0.4);
}
.service-bubble.featured {
  border-color: rgba(184,134,11,0.5);
  background: linear-gradient(160deg, rgba(184,134,11,0.15) 0%, rgba(31,77,46,0.1) 60%, rgba(10,10,10,0.4) 100%);
}
.service-bubble .bubble-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.service-bubble .bubble-price {
  color: #b8860b;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
}
.service-bubble .bubble-arrow {
  color: rgba(245,241,232,0.4);
  transition: color .25s ease, transform .25s ease;
}
.service-bubble:hover .bubble-arrow {
  color: #b8860b;
  transform: translateX(4px);
}
@media (max-width: 640px) {
  .service-bubble { padding: 16px 22px; gap: 14px; }
  .service-bubble .bubble-name { font-size: 17px; }
  .service-bubble .bubble-price { font-size: 14px; }
}

/* Service feature icon (on Services page) */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.feature-row:last-child { border-bottom: none; }
.feature-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(184,134,11,0.15);
  border: 1px solid rgba(184,134,11,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #b8860b;
}
.feature-icon svg { width: 14px; height: 14px; }

/* Stat blocks (about page) */
.stat-block {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(184,134,11,0.04), rgba(31,77,46,0.04));
  transition: border-color .25s ease, transform .25s ease;
}
.stat-block:hover { border-color: rgba(184,134,11,0.4); transform: translateY(-2px); }
.stat-block .stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  color: #b8860b;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-block .stat-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.6);
}

/* Timeline (about page) */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid rgba(184,134,11,0.3);
}
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 2px solid #b8860b;
}
.timeline-item .timeline-year {
  font-family: 'Cormorant Garamond', serif;
  color: #b8860b;
  font-size: 20px;
  margin-bottom: 4px;
}
.timeline-item .timeline-event {
  color: rgba(245,241,232,0.85);
  font-size: 15px;
  line-height: 1.5;
}

/* Tag pills */
.tag-pill {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  font-size: 13px;
  color: rgba(245,241,232,0.8);
  transition: all .25s ease;
}
.tag-pill:hover {
  border-color: #b8860b;
  background: rgba(184,134,11,0.08);
  color: #f5f1e8;
}

/* Section padding */
.section-pad { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .section-pad { padding-top: 5rem; padding-bottom: 5rem; } }

/* Logo handling */
.logo-img-real { display: none; }
.logo-img-real[data-loaded="true"] { display: block; }
.logo-img-real[data-loaded="true"] + .logo-svg-fallback { display: none; }

/* Reusable buttons — subtle glass + darker gold */
.btn-gold {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  color: #14100a;
  background:
    linear-gradient(180deg, rgba(255,245,210,0.18) 0%, rgba(255,245,210,0.02) 55%, rgba(40,20,5,0.12) 100%),
    linear-gradient(135deg, #c89422 0%, #a87809 50%, #6e4a05 100%);
  border: 1px solid rgba(255,235,180,0.18);
  box-shadow:
    0 4px 14px rgba(110,80,15,0.30),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(20,12,4,0.28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  overflow: hidden;
}
.btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 7px 20px rgba(140,100,25,0.40),
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -1px 0 rgba(20,12,4,0.28);
}
.btn-outline {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 500;
  color: #f5f1e8;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 55%, rgba(0,0,0,0.04) 100%),
    rgba(255,255,255,0.03);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
          backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 3px 10px rgba(0,0,0,0.22);
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-outline:hover {
  background:
    linear-gradient(180deg, rgba(245,225,180,0.08) 0%, rgba(245,225,180,0.02) 55%, rgba(168,120,9,0.05) 100%),
    rgba(168,120,9,0.04);
  border-color: rgba(168,120,9,0.40);
  color: #e8d8b0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 4px 14px rgba(110,80,15,0.20);
}
