/* Cabo Transportation Concierge — luxury layer over the original layout.
   Palette: obsidian + champagne gold. Type: Playfair Display (headlines) + Outfit (body). */
:root {
  --ctc-ink: #0C0F14;
  --ctc-deep: #07090D;
  --ctc-gold: #C6A15B;
  --ctc-gold-dark: #9E7C3E;
  --ctc-gold-light: #E8D3A2;
  --ctc-pearl: #FAF8F4;
  --ctc-ease: cubic-bezier(.2, .75, .15, 1);
}

html { scroll-behavior: smooth; }
body, .font-sans { font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif !important; }
.text-display, .text-h2, h1, h2 { font-family: "Playfair Display", Georgia, serif !important; letter-spacing: -.01em !important; }
.text-display { font-weight: 600 !important; }
::selection { background: var(--ctc-gold); color: var(--ctc-ink); }

/* ---------- Scroll progress ---------- */
.ctc-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--ctc-gold-dark), var(--ctc-gold-light), var(--ctc-gold)); }

/* ---------- Header ---------- */
header.fixed { transition: background-color .5s var(--ctc-ease), box-shadow .5s var(--ctc-ease), backdrop-filter .5s; }
header.fixed.ctc-scrolled { background-color: rgba(7, 9, 13, .88) !important; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 rgba(198, 161, 91, .35), 0 20px 40px -24px rgba(0, 0, 0, .8); }
header img[src*="ctc-medallion"] { border-radius: 50%; filter: drop-shadow(0 2px 12px rgba(198, 161, 91, .35)); }
header nav a, header nav button { position: relative; }
header nav.lg\:flex > a::after, header nav.lg\:flex > div > button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--ctc-gold);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ctc-ease);
}
header nav.lg\:flex > a:hover::after, header nav.lg\:flex > div > button:hover::after, header nav.lg\:flex > div.is-open > button::after { transform: scaleX(1); transform-origin: left; }

/* Desktop dropdowns built from the mobile menu */
.ctc-dropdown { position: absolute; top: calc(100% + 18px); left: -24px; min-width: 300px; padding: 14px; z-index: 120;
  background: rgba(10, 13, 18, .97); border: 1px solid rgba(198, 161, 91, .3); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ctc-ease), transform .35s var(--ctc-ease), visibility .35s; }
.is-open > .ctc-dropdown { opacity: 1; visibility: visible; transform: none; }
.ctc-dropdown a { display: block; padding: 10px 14px; color: #E9E4DA; font-size: 16px; transition: color .25s, background-color .25s, padding-left .35s var(--ctc-ease); }
.ctc-dropdown a:hover { color: var(--ctc-gold-light); background: rgba(198, 161, 91, .08); padding-left: 20px; }
.ctc-dropdown small { display: block; font-size: 12px; color: #9A9387; }

/* Mobile menu panel */
.ctc-mobile-open { overflow: hidden; }
.ctc-mobile-panel { position: fixed; inset: 0; z-index: 150; background: var(--ctc-deep); overflow-y: auto; color: #fff;
  clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .7s var(--ctc-ease); }
.ctc-mobile-panel.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.ctc-mobile-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border: 1px solid rgba(198, 161, 91, .4); background: none; color: var(--ctc-gold-light); font-size: 28px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero-promo-video__frame { overflow: hidden; }
.hero-promo-video__poster { animation: ctc-kenburns 22s ease-in-out infinite alternate; transform-origin: 30% 60%; }
@keyframes ctc-kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.ctc-hero-video { z-index: 1; }
.hero-promo-video__frame::after { z-index: 2; }
.hero-promo-video__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 9, 13, .55) 0%, rgba(7, 9, 13, 0) 28%, rgba(7, 9, 13, 0) 55%, var(--ctc-deep) 100%); }
.ctc-hero-copy { position: relative; overflow: hidden; }
.ctc-hero-copy::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(198, 161, 91, .22), transparent 60%); animation: ctc-glow 7s ease-in-out infinite alternate; }
@keyframes ctc-glow { from { opacity: .55; transform: translateX(-50%) scale(.92); } to { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.ctc-hero-copy .kick { display: inline-block; padding: 6px 16px; border: 1px solid rgba(198, 161, 91, .5); color: var(--ctc-gold-light) !important;
  background: linear-gradient(110deg, transparent 30%, rgba(232, 211, 162, .25) 50%, transparent 70%) 200% 0 / 250% 100%; animation: ctc-sheen 4s linear infinite; }
@keyframes ctc-sheen { to { background-position: -50% 0; } }
.ctc-word { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); filter: blur(6px); animation: ctc-word 1s var(--ctc-ease) forwards; }
@keyframes ctc-word { to { opacity: 1; transform: none; filter: none; } }
.ctc-hero-copy h1 { background: linear-gradient(180deg, #FFFFFF 40%, var(--ctc-gold-light)); -webkit-background-clip: text; background-clip: text; }
.ctc-hero-copy h1 .ctc-word { color: transparent; background: inherit; -webkit-background-clip: text; background-clip: text; }
.ctc-fade-in { opacity: 0; animation: ctc-fadeup 1.1s var(--ctc-ease) forwards; }
@keyframes ctc-fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons: gold with light sweep ---------- */
a[class*="bg-[#007a96]"], button[class*="bg-[#007a96]"], a[class*="bg-[#FFC107]"], button[class*="bg-[#FFC107]"] {
  position: relative; overflow: hidden; isolation: isolate;
  background-image: linear-gradient(135deg, var(--ctc-gold-light) 0%, var(--ctc-gold) 45%, var(--ctc-gold-dark) 100%) !important;
  color: var(--ctc-ink) !important; letter-spacing: .02em; box-shadow: 0 10px 30px -12px rgba(198, 161, 91, .7);
  transition: transform .4s var(--ctc-ease), box-shadow .4s var(--ctc-ease) !important;
}
a[class*="bg-[#007a96]"]::after, button[class*="bg-[#007a96]"]::after, a[class*="bg-[#FFC107]"]::after, button[class*="bg-[#FFC107]"]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transition: transform .8s var(--ctc-ease);
}
a[class*="bg-[#007a96]"]:hover, button[class*="bg-[#007a96]"]:hover, a[class*="bg-[#FFC107]"]:hover, button[class*="bg-[#FFC107]"]:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(198, 161, 91, .9); }
a[class*="bg-[#007a96]"]:hover::after, button[class*="bg-[#007a96]"]:hover::after, a[class*="bg-[#FFC107]"]:hover::after, button[class*="bg-[#FFC107]"]:hover::after { transform: translateX(120%) skewX(-20deg); }

/* ---------- Scroll reveals ---------- */
.ctc-reveal { opacity: 0; transform: translateY(48px); transition: opacity 1.1s var(--ctc-ease), transform 1.1s var(--ctc-ease); transition-delay: var(--d, 0s); }
.ctc-reveal.is-in { opacity: 1; transform: none; }
.ctc-reveal-img { clip-path: inset(12% 12% 12% 12%); transition: clip-path 1.4s var(--ctc-ease); }
.ctc-reveal-img img { transform: scale(1.25); transition: transform 1.8s var(--ctc-ease); }
.ctc-reveal-img.is-in { clip-path: inset(0 0 0 0); }
.ctc-reveal-img.is-in img { transform: scale(1); }
.text-h2.ctc-line { position: relative; }
.text-h2.ctc-line::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 18px; background: linear-gradient(90deg, var(--ctc-gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ctc-ease) .3s; }
.text-center .text-h2.ctc-line::after, .mx-auto.text-h2.ctc-line::after { margin-left: auto; margin-right: auto; transform-origin: center; }
.is-in .text-h2.ctc-line::after, .text-h2.ctc-line.is-in::after { transform: scaleX(1); }

/* Cards and photos */
.ctc-card { transition: transform .6s var(--ctc-ease), box-shadow .6s var(--ctc-ease), border-color .6s; }
.ctc-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(12, 15, 20, .55); border-color: rgba(198, 161, 91, .55) !important; }
.ctc-card img { transition: transform 1.2s var(--ctc-ease); }
.ctc-card:hover img { transform: scale(1.07); }
.text-brand-gold svg, .text-brand-gold { color: var(--ctc-gold) !important; }
.ctc-stars svg { animation: ctc-twinkle 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
@keyframes ctc-twinkle { 0%, 100% { transform: scale(1); filter: none; } 50% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(232, 211, 162, .9)); } }

/* Dark sections get a slow gold aurora */
.ctc-aurora { position: relative; isolation: isolate; overflow: hidden; }
.ctc-aurora::before { content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 30% at 20% 30%, rgba(198, 161, 91, .14), transparent 70%), radial-gradient(35% 30% at 80% 70%, rgba(232, 211, 162, .09), transparent 70%);
  animation: ctc-drift 18s ease-in-out infinite alternate; }
@keyframes ctc-drift { to { transform: translate3d(6%, -4%, 0) rotate(8deg); } }

/* Solid color blocks (feature cards, info bands): obsidian with gold detail instead of flat bronze */
div[class*="bg-[#007a96]"]:not(.w-24):not([class*="h-1"]), section[class*="bg-[#007a96]"] {
  background: linear-gradient(160deg, #141820 0%, var(--ctc-ink) 60%) !important;
  border: 1px solid rgba(198, 161, 91, .35) !important; color: #fff;
  transition: transform .6s var(--ctc-ease), border-color .6s, box-shadow .6s;
}
div[class*="bg-[#007a96]"]:not(.w-24):not([class*="h-1"]):hover { transform: translateY(-6px); border-color: var(--ctc-gold) !important; box-shadow: 0 30px 50px -30px rgba(198, 161, 91, .45); }
div[class*="bg-[#007a96]"] svg { color: var(--ctc-gold) !important; }
div[class*="bg-[#007a96]"] h3, div[class*="bg-[#007a96]"] p:first-of-type { color: #fff; }

/* FAQ */
details summary { transition: color .3s; }
details summary:hover { color: var(--ctc-gold-dark); }
details[open] > div { animation: ctc-fadeup .6s var(--ctc-ease); }
details[open] { border-color: rgba(198, 161, 91, .5) !important; }

/* Footer to obsidian */
footer.bg-\[\#007a96\], footer[class*="bg-[#007a96]"] { background: var(--ctc-deep) !important; border-top: 1px solid rgba(198, 161, 91, .35); }
footer[class*="bg-[#007a96]"] a:hover { color: var(--ctc-gold-light) !important; }

/* ---------- Instagram concierge strip ---------- */
.ctc-ig { background: var(--ctc-deep); color: #fff; border-block: 1px solid rgba(198, 161, 91, .3); }
.ctc-ig-inner { max-width: 80rem; margin: 0 auto; padding: 72px 24px; display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 48px; align-items: center; }
.ctc-ig-eyebrow { color: var(--ctc-gold-light); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.ctc-ig h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; margin: 0 0 16px; color: #fff; }
.ctc-ig p { color: #BDB6AA; font-size: 18px; line-height: 1.6; margin: 0 0 28px; max-width: 46ch; }
.ctc-ig-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ctc-ig-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; font-weight: 600; text-decoration: none; transition: transform .4s var(--ctc-ease), background-color .4s, color .4s; }
.ctc-ig-btn:hover { transform: translateY(-3px); }
.ctc-ig-btn--gold { background: linear-gradient(135deg, var(--ctc-gold-light), var(--ctc-gold) 45%, var(--ctc-gold-dark)); color: var(--ctc-ink); }
.ctc-ig-btn--line { border: 1px solid rgba(198, 161, 91, .55); color: var(--ctc-gold-light); }
.ctc-ig-btn--line:hover { background: rgba(198, 161, 91, .12); }
.ctc-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(198, 161, 91, .25); border: 1px solid rgba(198, 161, 91, .25); }
.ctc-service { background: var(--ctc-deep); padding: 26px 22px; position: relative; overflow: hidden; }
.ctc-service::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(198, 161, 91, .18), transparent 60%); opacity: 0; transition: opacity .6s var(--ctc-ease); }
.ctc-service:hover::before { opacity: 1; }
.ctc-service svg { width: 30px; height: 30px; color: var(--ctc-gold); margin-bottom: 14px; transition: transform .6s var(--ctc-ease); }
.ctc-service:hover svg { transform: translateY(-4px) scale(1.1); }
.ctc-service strong { display: block; font-size: 17px; font-weight: 600; color: #fff; }
.ctc-service span { display: block; font-size: 14px; color: #9A9387; margin-top: 4px; }
@media (max-width: 960px) { .ctc-ig-inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ctc-services { grid-template-columns: 1fr 1fr; } }

/* Floating Instagram + WhatsApp */
.ctc-float { position: fixed; right: 22px; bottom: 22px; z-index: 110; display: flex; flex-direction: column; gap: 12px; }
.ctc-float a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); transition: transform .4s var(--ctc-ease); animation: ctc-pop .8s var(--ctc-ease) both; }
.ctc-float a:nth-child(2) { animation-delay: .15s; }
.ctc-float a:hover { transform: translateY(-4px) scale(1.06); }
.ctc-float { align-items: flex-end; }
/* WhatsApp: official green logo, bottom-left */
.ctc-wa { position: fixed; left: 22px; bottom: 22px; z-index: 110; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .7); transition: transform .4s var(--ctc-ease), box-shadow .4s; animation: ctc-pop .8s var(--ctc-ease) .15s both; }
.ctc-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: ctc-wa-ring 2.4s ease-out infinite; }
.ctc-wa:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 18px 36px -10px rgba(37, 211, 102, .85); }
@keyframes ctc-wa-ring { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 80%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
@media (max-width: 560px) { .ctc-wa { left: 16px; bottom: 16px; width: 56px; height: 56px; } }
.ctc-float .ai { width: auto; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(232, 211, 162, .6); cursor: pointer; font: 600 15px "Outfit", system-ui, sans-serif; color: var(--ctc-ink); background: linear-gradient(135deg, var(--ctc-gold-light), var(--ctc-gold) 50%, var(--ctc-gold-dark)); box-shadow: 0 14px 34px -12px rgba(198, 161, 91, .8); position: relative; transition: transform .4s var(--ctc-ease); animation: ctc-pop .8s var(--ctc-ease) both; }
.ctc-float .ai:hover { transform: translateY(-4px); }
.ctc-float .ai::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 1px solid rgba(198, 161, 91, .6); animation: ctc-ring 2.6s ease-out infinite; }
@keyframes ctc-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }
.ctc-float .ai-dot { position: absolute; top: 8px; left: 38px; width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 2px var(--ctc-gold-light); }
@media (max-width: 560px) { .ctc-float .ai-label { display: none; } .ctc-float .ai { width: 56px; padding: 0; justify-content: center; } .ctc-float .ai-dot { left: 36px; } }

/* AI concierge panel */
.ctc-chat { position: fixed; right: 22px; bottom: 22px; z-index: 160; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100vh - 44px)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--ctc-deep); color: #fff; border: 1px solid rgba(198, 161, 91, .45); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  transform-origin: 100% 100%; transform: scale(.6) translateY(40px); opacity: 0; visibility: hidden; transition: transform .55s var(--ctc-ease), opacity .4s, visibility .55s; }
.ctc-chat.is-open { transform: none; opacity: 1; visibility: visible; }
@media (max-width: 560px) { .ctc-chat { right: 16px; left: 16px; bottom: 16px; width: auto; height: calc(100vh - 32px); } }
.ctc-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(198, 161, 91, .3); background: linear-gradient(135deg, #151922, var(--ctc-deep)); }
.ctc-chat-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ctc-ink); background: linear-gradient(135deg, var(--ctc-gold-light), var(--ctc-gold-dark)); flex: none; }
.ctc-chat-head strong { display: block; font: 600 17px "Playfair Display", Georgia, serif; }
.ctc-chat-head span { display: block; font-size: 13px; color: #9A9387; }
.ctc-chat-close { margin-left: auto; background: none; border: 1px solid rgba(198, 161, 91, .35); color: var(--ctc-gold-light); width: 36px; height: 36px; font-size: 22px; line-height: 1; cursor: pointer; }
.ctc-chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ctc-msg { max-width: 86%; padding: 11px 14px; font-size: 15px; line-height: 1.5; animation: ctc-fadeup .45s var(--ctc-ease); }
.ctc-msg a { color: var(--ctc-gold-light); text-decoration: underline; }
.ctc-msg--bot { align-self: flex-start; background: #141820; border: 1px solid rgba(255, 255, 255, .08); }
.ctc-msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--ctc-gold), var(--ctc-gold-dark)); color: var(--ctc-ink); font-weight: 500; }
.ctc-quote { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(198, 161, 91, .4); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ctc-quote b { font: 600 24px "Playfair Display", Georgia, serif; color: var(--ctc-gold-light); }
.ctc-typing { display: inline-flex; gap: 4px; }
.ctc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ctc-gold); animation: ctc-bounce 1s infinite; }
.ctc-typing i:nth-child(2) { animation-delay: .15s; } .ctc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ctc-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
.ctc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.ctc-chips button { background: none; border: 1px solid rgba(198, 161, 91, .45); color: var(--ctc-gold-light); padding: 7px 12px; font-size: 13px; cursor: pointer; transition: background-color .3s; }
.ctc-chips button:hover { background: rgba(198, 161, 91, .15); }
.ctc-chat-form { display: flex; gap: 8px; padding: 12px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.ctc-chat-form input { flex: 1; min-width: 0; background: #141820; border: 1px solid rgba(255, 255, 255, .12); color: #fff; padding: 12px 14px; font: 15px "Outfit", system-ui, sans-serif; }
.ctc-chat-form input:focus { outline: none; border-color: var(--ctc-gold); }
.ctc-chat-form button { background: linear-gradient(135deg, var(--ctc-gold-light), var(--ctc-gold-dark)); color: var(--ctc-ink); border: 0; padding: 0 18px; font-weight: 600; cursor: pointer; }

/* Services mega menu */
.ctc-dropdown--mega { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 8px 18px; min-width: 860px; left: -220px; padding: 22px; }
.ctc-dropdown--mega h4 { margin: 0 0 8px; padding: 0 14px 8px; font: 600 12px "Outfit", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ctc-gold); border-bottom: 1px solid rgba(198, 161, 91, .25); }
.ctc-float .wa { background: linear-gradient(145deg, #25D366, #128C7E); }
@keyframes ctc-pop { from { opacity: 0; transform: scale(.5) translateY(20px); } to { opacity: 1; transform: none; } }
.me-wa-fab { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ctc-reveal, .ctc-word, .ctc-fade-in { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ctc-reveal-img { clip-path: none !important; }
  .ctc-reveal-img img { transform: none !important; }
}
