/* ==========================================================================
   Cozumel Private Tours - Custom StyleSheet
   Fonts: Josefin Sans (Headings), Nunito (Body)
   ========================================================================== */

:root {
  /* Brand Colors (Updated Identity) */
  --cpt-primary: #EE761C;
  /* Orange (Predominant) */
  --cpt-primary-dark: #d66412;
  /* Darker Orange for hover */
  --cpt-secondary: #082C3F;
  /* Darkest Blue */
  --cpt-secondary-light: #03486F;
  /* Medium Dark Blue */
  --cpt-accent: #01B5D5;
  /* Cyan */
  --cpt-accent-hover: #0199b5;
  /* Darker Cyan */

  /* Neutrals */
  --cpt-light: #FEF6E4;
  /* Light Cream/Beige */
  --cpt-dark: #082C3F;
  /* Using Darkest Blue */
  --cpt-text-main: #333333;
  --cpt-text-muted: #6c757d;

  /* Utilities */
  --transition-speed: 0.3s;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 30px rgba(8, 44, 63, 0.15);
}

/* ==========================================================================
   Base Typography & General Setup
   ========================================================================== */
body {
  font-family: 'Nunito', sans-serif;
  color: var(--cpt-text-main);
  background-color: var(--cpt-light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.font-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  color: var(--cpt-secondary);
}

a {
  color: var(--cpt-primary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--cpt-accent);
}

/* ==========================================================================
   Buttons (Overriding Bootstrap)
   ========================================================================== */
.btn {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
}

/* Utility Classes */
.bg-primary {
  background-color: var(--cpt-primary) !important;
}

.text-primary {
  color: var(--cpt-primary) !important;
}

.bg-secondary {
  background-color: var(--cpt-secondary) !important;
}

.hover-lift {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover) !important;
}

.btn-primary {
  background-color: var(--cpt-primary);
  border-color: var(--cpt-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--cpt-primary-dark);
  border-color: var(--cpt-primary-dark);
  box-shadow: 0 5px 15px rgba(238, 118, 28, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--cpt-secondary);
  border-color: var(--cpt-secondary);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--cpt-secondary-light);
  border-color: var(--cpt-secondary-light);
  box-shadow: 0 5px 15px rgba(8, 44, 63, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.btn-accent {
  background-color: var(--cpt-accent);
  border-color: var(--cpt-accent);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--cpt-accent-hover);
  border-color: var(--cpt-accent-hover);
  box-shadow: 0 5px 15px rgba(1, 181, 213, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

/* Dual Buttons / Ghost */
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-speed) ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.cpt-navbar {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
  transition: all var(--transition-speed) ease;
}

.cpt-navbar .nav-link {
  color: var(--cpt-secondary);
  font-weight: 700;
  font-family: 'Josefin Sans', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin: 0 10px;
  position: relative;
}

.cpt-navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: var(--cpt-primary);
  transition: width var(--transition-speed) ease;
  -webkit-transition: width var(--transition-speed) ease;
}

.cpt-navbar .nav-link:hover::after,
.cpt-navbar .nav-link.active::after {
  width: 100%;
  left: 0;
}

/* ==========================================================================
   Hero Section (Unified & Fixed Height Logic)
   ========================================================================== */
.hero-section {
  position: relative;
  height: 85vh;
  min-height: 500px;
  background-color: var(--cpt-primary);
  /* Fallback */
  padding-top: 0;
}

.hero-carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

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

/* Dark Gradient Overlay for readability */
.carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(8, 44, 63, 0.7), rgba(8, 44, 63, 0.4));
  z-index: 1;
}

/* Ensure flexbox in HTML centers this properly */
.carousel-caption {
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  color: #fff;
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.cta-button {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
}

/* ==========================================================================
   Cards (Tours - Inspired by Explora)
   ========================================================================== */
.tour-card {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
  background: var(--cpt-dark);
  color: #fff;
  height: 100%;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-img-container {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  height: 250px;
}

.tour-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tour-card:hover .card-img-top {
  transform: scale(1.08);
  /* Zoom effect */
}

.tour-card .card-body {
  padding: 2rem 1.5rem;
}

.card-subtitle-tag {
  color: var(--cpt-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.tour-card .card-title {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.tour-card .card-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.price-tag {
  color: var(--cpt-primary);
  font-weight: 700;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem;
}

/* ==========================================================================
   Features Section (Why Choose Us)
   ========================================================================== */
.feature-box {
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  height: 100%;
}

.feature-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--cpt-accent);
  margin-bottom: 1rem;
}

.feature-box h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.cpt-footer {
  background-color: var(--cpt-secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.cpt-footer h5 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.cpt-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.cpt-footer a:hover {
  color: var(--cpt-primary);
  text-decoration: none;
}

.cpt-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-right: 10px;
  transition: all var(--transition-speed);
}

.cpt-footer .social-links a:hover {
  background: var(--cpt-primary);
  transform: translateY(-3px);
}

.cpt-footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.cpt-footer .copyright {
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}