:root {
  --primary-color: hsl(197, 85%, 45%);
  /* Brighter, more vibrant blue */
  --primary-color-dark: hsl(197, 85%, 35%);
  --secondary-color: hsl(20, 100%, 70%);
  /* Harmonious orange-ish */
  --text-color: hsl(0, 0%, 14%);
  --text-color-light: hsl(0, 0%, 46%);
  --bg-color: hsl(0, 0%, 100%);
  --bg-color-alt: hsl(0, 0%, 98%);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --dark-bg: hsl(0, 0%, 10%);
  /* Deep charcoal for premium feel */

  --font-main: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container-width: 1200px;
  --nav-height: 80px;
  --border-radius: 8px;
  /* Slightly rounder for modern look */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 1.1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

.delay-600 {
  transition-delay: 0.6s;
}

.delay-700 {
  transition-delay: 0.7s;
}

.delay-800 {
  transition-delay: 0.8s;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

/* Typography */
.content-list {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.content-list li {
  margin-bottom: 0.5rem;
}

.numbered-list {
  list-style: decimal;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.numbered-list li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

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

.font-weight-bold {
  font-weight: 700;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

section {
  padding: 4rem 0;
}

.bg-dark {
  background-color: #232323;
  color: var(--white);
}

.bg-light {
  background-color: var(--bg-color-alt);
  color: var(--text-color);
}

.bg-presentation {
  background-image: url('../img/bg-presentation.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color: var(--white);
}

.bg-presentation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.bg-presentation .container {
  position: relative;
  z-index: 1;
}

.bg-presentation h2,
.bg-presentation h4,
.bg-dark h2,
.bg-dark h4 {
  color: var(--white);
}

/* Navbar */
.navbar {
  background: #232323;
  height: var(--nav-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--white);
}

.brand img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* About Us dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-trigger .fa-chevron-down {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger .fa-chevron-down {
  transform: rotate(180deg);
}

@media (min-width: 769px) {
  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0.5rem);
    min-width: 180px;
    background: #2a2a2a;
    border-radius: 6px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
  }
}

/* About Us dropdown - Desktop Only */
@media (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0.25rem);
  }
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-color);
}

.nav-dropdown-link.active {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--black);
  overflow: hidden;
  margin-top: 0;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 2rem;
  background-attachment: fixed;
}

/* Fallback if inline style fails or validation needed */
.hero-bg-default {
  background-image: url('../img/hero-bg.webp');
}


.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  opacity: 0.5;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1;
}

.no-blur {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  /* Responsive typography */
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border: 1px solid transparent;
  /* Thinner border for elegance */
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(20, 157, 204, 0.39);
}

.btn-primary:hover {
  background: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 157, 204, 0.23);
  color: var(--white);
}

.btn-outline-white {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

/* Cards / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Softer, larger shadow */
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Subtle border */
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-title {
  margin-bottom: 1rem;
}

.feature-footer {
  margin-top: auto;
  padding-top: 1rem;
}

/* Icon Cards */
.icon-card {
  background: var(--bg-color);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(20, 157, 204, 0.1);
  /* Primary color low opacity */
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.icon-card:hover .icon-wrapper {
  transform: scale(1.1);
  background: var(--primary-color);
  color: var(--white);
}

.icon-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--text-color);
}

.icon-card p {
  font-size: 1rem;
  color: var(--text-color-light);
  margin-bottom: 0;
}

/* Icon Cards in Dark Sections */
.bg-dark .icon-card,
.bg-presentation .icon-card,
#aboutus .icon-card,
.bg-wood-parallax .icon-card {
  background: rgba(255, 255, 255, 0.08);
  /* Semi-transparent */
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.bg-dark .icon-card h4,
.bg-dark .icon-card p {
  color: var(--white);
}


/* Wood Parallax Utility */
.bg-wood-parallax {
  background-image: url('../img/bg-wood.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color: var(--white);
  padding: 4rem 0;
}

.bg-wood-parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.bg-wood-parallax .container {
  position: relative;
  z-index: 1;
}

.bg-wood-parallax h2,
.bg-wood-parallax h4,
.bg-wood-parallax .feature-title {
  color: var(--white);
}

.bg-wood-parallax .feature-card {
  background: rgba(255, 255, 255, 0.08);
  /* Glass effect */
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}


/* Contact Section */
/* Contact Section */
#contact {
  background-color: #232323;
  position: relative;
  color: var(--white);
  padding: 4rem 0;
}

#contact .container {
  position: relative;
  z-index: 1;
}

#contact h2 {
  color: var(--white);
}

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: var(--bg-color-alt);
  font-family: inherit;
  font-size: 1rem;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: #2e2e2e;
  /* Fallback */
  background-image: url('../img/bg-wood.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  color: var(--white);
  padding: 4rem 0 1rem;
  margin-top: 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 46, 46, 0.4);
  /* Overlay to make text readable */
  z-index: 0;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 0.8fr 1.2fr 2fr;
  }
}

.footer-column h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: block;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--white);
  font-size: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

.classes-table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.classes-table th {
  text-align: left;
  border-bottom: 2px solid var(--primary-color);
  padding: 0.75rem;
  font-size: 1.1rem;
  color: var(--white);
  /* background: rgba(0, 0, 0, 0.2); */
  background: #232323;
}

.classes-table th a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.classes-table th a:hover {
  color: var(--primary-color);
}

.classes-table td {
  padding: 0.75rem;
  color: #ddd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Banded Rows */
.classes-table tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.1);
}

.classes-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {

  .hero {
    min-height: 500px;
  }

  .hero,
  .bg-presentation {
    background-position: center center !important;
  }

  h1 {
    font-size: 2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #232323;
    /* Dark background */
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-link {
    color: var(--white);
    font-size: 1.2rem;
  }

  /* Mobile: About Us dropdown as expandable block */
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-trigger {
    justify-content: flex-start;
    padding-bottom: 0.5rem;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    /* Remove the blocky background */
    border-radius: 0;
    margin-top: 0;
    margin-left: 0.5rem;
    /* Slight shift for nesting */
    padding: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle vertical line for hierarchy */
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 400px;
    padding-bottom: 0.5rem;
  }

  .nav-dropdown.open .nav-dropdown-trigger .fa-chevron-down {
    transform: rotate(180deg);
    color: var(--primary-color);
  }

  .nav-dropdown-link {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: none;
    /* Cleaner look */
    position: relative;
    transition: color 0.3s ease;
  }

  .nav-dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.5;
  }

  .nav-dropdown-link:hover,
  .nav-dropdown-link.active {
    color: var(--primary-color) !important;
  }

  .nav-dropdown-link.active::before {
    opacity: 1;
    width: 8px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-color-dark);
  transform: translateY(-5px);
}

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

.cookie-consent-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-text {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 0.95rem;
}

.cookie-consent-text a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: var(--white);
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent .btn-outline-primary {
  border-color: var(--white);
  color: var(--white);
}

.cookie-consent .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

/* Map placeholder (when cookies not accepted) */
.map-placeholder {
  width: 100%;
  height: 250px;
  background: var(--bg-color-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
}

.map-placeholder-content {
  text-align: center;
  padding: 1.5rem;
}

.map-placeholder-content p {
  margin-bottom: 1rem;
  color: var(--text-color-light);
}

.map-placeholder-content .cookie-accept-link {
  text-decoration: underline;
}

.map-placeholder-content .cookie-accept-link:hover {
  color: var(--primary-color-dark);
}