/* Horizon Travel Adventures - Theme CSS */
/* Framework: UIkit 3.23.13 | Palette: Sunset | Fonts: Poppins + Nunito */

:root {
  --primary: #E85D04;
  --accent: #FAA307;
  --background: #FFF8F0;
  --text: #2D3436;
  --success: #00B894;
  --error: #D63031;
  --light: #FFFFFF;
  --dark: #1A1A2E;
  --shadow-card: 0 4px 15px rgba(232, 93, 4, 0.1);
  --shadow-hover: 0 8px 30px rgba(232, 93, 4, 0.2);
  --radius: 12px;
  --section-spacing: 5rem;
  --card-spacing: 1.5rem;
  --element-spacing: 1rem;
}

/* Base Styles */
body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--dark);
}

a {
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Navbar */
.uk-navbar-container {
  background: var(--light) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.uk-navbar-nav > li > a {
  color: var(--text) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-transform: none;
  font-size: 1rem;
}

.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li.uk-active > a {
  color: var(--primary) !important;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary) !important;
}

.navbar-brand:hover {
  color: var(--accent) !important;
}

/* Hero Section - Parallax */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.85) 0%, rgba(250, 163, 7, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--light);
  padding: 2rem;
}

.hero-content h1 {
  color: var(--light);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--light);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--light);
  border: 2px solid var(--light);
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--light);
  color: var(--primary);
}

/* Sections */
.section {
  padding: var(--section-spacing) 0;
}

.section-alt {
  background: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-title p {
  color: #4a5568;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* Cards */
.destination-card {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  height: 100%;
}

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

.destination-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 12.5rem;
  object-fit: cover;
}

.destination-card .card-body {
  padding: var(--card-spacing);
}

.destination-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.destination-card p {
  color: #4a5568;
  font-size: 0.95rem;
}

/* Steps */
.step-item {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  width: 3.75rem;
  height: 3.75rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-item p {
  color: #4a5568;
  font-size: 0.95rem;
}

/* Stats */
.stats-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--light);
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Gallery */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 15rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* FAQ Accordion */
.uk-accordion-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text);
  padding: 1.25rem;
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.uk-accordion-title:hover {
  color: var(--primary);
}

.uk-open > .uk-accordion-title {
  color: var(--primary);
  background: #FFF5EB;
}

.uk-accordion-content {
  padding: 1.5rem;
  background: var(--light);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  background: var(--light);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.uk-input, .uk-textarea, .uk-select {
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.uk-input:focus, .uk-textarea:focus, .uk-select:focus {
  border-color: var(--primary);
  outline: none;
}

.uk-input::placeholder, .uk-textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

.uk-form-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: block;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: 4rem 0 2rem;
}

.footer h4 {
  color: var(--light);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer p, .footer a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--light);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.cookie-banner .btn-primary {
  padding: 0.75rem 2rem;
}

/* Hero Parallax - Disable on mobile for performance */
.hero-parallax {
  background-attachment: scroll !important;
}

@media (min-width: 961px) {
  .hero-parallax {
    background-attachment: fixed !important;
  }
}

/* Ensure proper container padding on all devices */
.uk-container {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 640px) {
  .uk-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
}

.uk-section {
  overflow-x: hidden;
}

/* Responsive */
@media (max-width: 1200px) {
  :root {
    --section-spacing: 4rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 960px) {
  :root {
    --section-spacing: 3.5rem;
    --card-spacing: 1.25rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.15rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .uk-navbar-item.uk-logo {
    font-size: 1.1rem;
  }

  .uk-navbar-item.uk-logo img {
    width: 40px !important;
    height: 40px !important;
  }

  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 3rem;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .cookie-banner {
    padding: 1.25rem;
  }

  .cookie-banner p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .uk-accordion-title {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .uk-accordion-content {
    padding: 1rem;
  }

  .uk-card-body {
    padding: 1.25rem !important;
  }

  .gallery-item img {
    height: 180px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-spacing: 2.5rem;
    --card-spacing: 1rem;
    --element-spacing: 0.75rem;
  }

  body {
    font-size: 0.95rem;
  }

  .hero-content {
    padding: 1.25rem 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .contact-form {
    padding: 1.5rem 1rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }

  .uk-button.uk-button-large {
    padding: 0.875rem 1.75rem !important;
    font-size: 0.95rem !important;
  }

  .uk-navbar-item.uk-logo {
    font-size: 1rem;
  }

  .uk-navbar-item.uk-logo img {
    width: 35px !important;
    height: 35px !important;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .step-number {
    width: 3.125rem;
    height: 3.125rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .step-item h3,
  .destination-card h3 {
    font-size: 1.1rem;
  }

  .step-item {
    padding: 1.25rem;
  }

  .uk-card-body {
    padding: 1rem !important;
  }

  .gallery-item img {
    height: 160px;
  }

  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer p,
  .footer a {
    font-size: 0.9rem;
  }

  .cookie-banner {
    padding: 1rem;
  }

  .cookie-banner .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
  }

  .uk-input,
  .uk-textarea,
  .uk-select {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .uk-form-label {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-spacing: 2rem;
  }

  .hero-content {
    padding: 1rem 0.5rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }

  .uk-navbar-item.uk-logo span {
    font-size: 0.85rem;
  }

  .uk-button.uk-button-large {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }

  .gallery-item img {
    height: 140px;
  }

  .contact-form {
    padding: 1.25rem 0.875rem;
  }

  .uk-accordion-title {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .uk-accordion-content {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .step-item {
    padding: 1rem 0.75rem;
  }

  .step-number {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.1rem;
  }

  .gallery-item img {
    min-height: 8.75rem;
  }

  .destination-card img {
    min-height: 8.75rem;
  }
}

/* Mobile-specific fixes for grid gaps and spacing */
@media (max-width: 640px) {
  .uk-grid {
    margin-left: -10px;
  }

  .uk-grid > * {
    padding-left: 10px;
  }

  .uk-grid-small {
    margin-left: -5px;
  }

  .uk-grid-small > * {
    padding-left: 5px;
  }

  /* Ensure text doesn't touch edges */
  .uk-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Hero section mobile adjustments */
  #hero .uk-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* Prevent button text from being cut off */
  .uk-button {
    white-space: normal;
    line-height: 1.4;
  }
}

/* UIKit Overrides - Improve contrast */
.uk-text-meta {
  color: #6b7280 !important;
}

.uk-button-default {
  background-color: var(--light);
  color: var(--text);
  border: 2px solid var(--text);
}

.uk-button-default:hover {
  background-color: var(--text);
  color: var(--light);
  border-color: var(--text);
}

.uk-section-secondary {
  background-color: var(--dark);
}

.uk-section-secondary h1,
.uk-section-secondary h2,
.uk-section-secondary h3,
.uk-section-secondary h4,
.uk-section-secondary h5,
.uk-section-secondary h6 {
  color: var(--light);
}

/* Ensure proper text contrast in muted sections */
.uk-section-muted {
  background-color: #f7fafc;
}

.uk-section-muted h1,
.uk-section-muted h2,
.uk-section-muted h3,
.uk-section-muted h4,
.uk-section-muted h5,
.uk-section-muted h6 {
  color: var(--dark);
}

.uk-section-muted p {
  color: var(--text);
}

/* Utility Classes */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-dark { background-color: var(--dark) !important; }
