/* assets/css/styles.css
 *
 * Custom styles for bookingticket:
 * - Brand colors and fonts
 * - Hero styling
 * - Card and link tweaks
 * - Sticky footer layout
 * - Testimonials layout
 */

/* ------------- Brand fonts and base styles ------------- */

body {
  font-family: 'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f5f7fb; /* soft light gray/blue background */
  color: #111827;           /* dark gray text */
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
}

/* ------------- Brand colors ------------- */

:root {
  --brand-primary: #4338CA;       /* Indigo */
  --brand-primary-dark: #3730A3;  /* Darker indigo */
  --brand-accent: #F97316;        /* Orange accent */
}

/* Bootstrap primary button with brand color */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

/* Outline primary button hover tweak */
.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

/* Links use brand color, no underline on hover */
a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  color: var(--brand-primary-dark);
  text-decoration: none; /* no underline on hover */
}

/* ------------- Navbar and hero colors ------------- */

/* Navbar background: gradient */
.navbar-dark.bg-dark {
  background: linear-gradient(135deg, #020617 0%, #111827 40%, #4338CA 100%);
}

/* Hero section gradient */
.hero {
  background: linear-gradient(135deg, #020617 0%, #111827 40%, #4338CA 100%);
  color: #ffffff;
  padding: 2rem 0; /* reduced from 3rem to shrink overall height */
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.5);
}

/* Make the hero background full width (edge to edge) even inside a .container */
.hero-fullwidth {
  width: 100vw;                    /* full viewport width */
  margin-left: 50%;                /* center hero relative to viewport */
  transform: translateX(-50%);     /* shift back by half width */
  border-radius: 0;
}

/* Hero inner content: centered, wide, and filling most of the hero background */
.hero-inner {
  width: 100%;
  max-width: 1440px;               /* wide content area */
  margin: 0 auto;                  /* center within full-width hero */
  padding: 0 1.5rem;               /* small side padding */
}

/* Hero image: responsive, with a maximum height to control hero height */
.hero-image {
  width: 100%;
  max-width: 100%;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  height: auto;                    /* natural aspect ratio */
  max-height: 260px;               /* limit height to keep hero from being too tall */
  object-fit: cover;               /* crop slightly if needed to fit max-height */
}

/* Responsive tweaks for hero on smaller screens */
@media (max-width: 767.98px) {
  .hero {
    padding: 1.5rem 0;            /* slightly reduced padding on mobile too */
  }
  .hero-inner {
    padding: 0 1rem;
  }
}

/* ------------- Cards and sections ------------- */

.card {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.card-title {
  font-weight: 600;
}

/* ------------- Sticky footer layout ------------- */

html, body {
  height: 100%; /* allow flexbox to use full height */
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto; /* main takes available height */
}

footer {
  flex-shrink: 0; /* footer stays at bottom */
}

/* ------------- Testimonials styling ------------- */

.testimonial-card {
  border-left: 4px solid var(--brand-primary);
}

.testimonial-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
}

.testimonials-section {
  margin-bottom: 3rem;
}

.testimonials-wrapper {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* ------------- Article images ------------- */

/* Article thumbnail on homepage cards (larger, card width) */
.article-thumb {
  max-height: 160px;
  object-fit: cover;
}

/* Small equal-size thumbnails in the articles list page */
.article-thumb-list {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

/* Hero image on single article page: cropped banner */
.article-hero {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ------------- Contact page tweaks ------------- */

.contact-card {
  max-width: 640px;
  margin: 0 auto;
}

/* ------------- Package page button hover ------------- */

.package-btn:hover,
.package-btn:focus {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* ------------- Homepage content width ------------- */
/* Only on the homepage (body class="index"), make the main container
   match the hero-inner width so everything feels aligned and centered. */
.index main > .container {
  max-width: 1440px;              /* match hero-inner for consistent width */
  margin: 0 auto;
}

/* ------------- Footer links (mobile alignment) ------------- */

.footer-link {
  /* default font size stays similar to body on desktop */
}

/* On small screens, make footer links smaller and center-aligned in straight rows */
@media (max-width: 575.98px) {
  .footer-links-left,
  .footer-links-right {
    text-align: center !important;
  }

  .footer-link {
    display: inline-block;
    font-size: 0.85rem;          /* smaller text on mobile */
    margin: 0 0.5rem 0.25rem;    /* small horizontal spacing */
  }
}