/* ============================================
   SAFETY 2010 - Compiled CSS Stylesheet
   ============================================ */

/* Variables as CSS Custom Properties */
:root {
  --primary: #0f172a;
  --primary-dark: #020617;
  --accent: #ea580c;
  --accent-light: #fb923c;
  --accent-dark: #c2410c;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  overflow-x: hidden;
}

/* Utility Classes */
.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.text-accent {
  color: var(--accent);
}

.bg-accent {
  background-color: var(--accent);
}

/* Buttons */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--gray-300);
  font-size: 0.875rem;
}

.top-bar .top-link {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.top-bar .top-link:hover {
  color: var(--accent);
}

.top-bar .top-text {
  color: var(--gray-400);
}

.top-bar .social-link {
  color: var(--gray-400);
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.top-bar .social-link:hover {
  color: var(--accent);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar .brand-icon,
.footer .brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.navbar .brand-text,
.footer .brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.navbar .brand-highlight,
.footer .brand-highlight {
  color: var(--accent);
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--gray-600);
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar .navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Mobilon ez a háttérkép jelenik meg a videó helyett */

  background-size: cover;
  background-position: center;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #0f172a;
  /* Alapból (mobilon) elrejtjük a videó tárolóját */
  display: none;
}

/* Csak 768px felett kapcsoljuk be a videót */
@media (min-width: 768px) {
  .hero-video-container {
    display: block;
  }
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

@media(max-width: 767px) {
  .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradiens sötétítés, hogy a fehér szöveg olvasható legyen a videón és a képen is */
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.8) 0%,
    rgba(15, 23, 42, 0.5) 100%
  );
  z-index: 1;
}
}


.hero-section .container {
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(234, 88, 12, 0.15);
  color: var(--accent-light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-300);
  max-width: 600px;
  line-height: 1.7;
}

.hero-stats .stat-item {
  text-align: center;
  padding-right: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-item:last-child {
  border-right: none;
}

.hero-stats .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stats .stat-plus {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.hero-stats .stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* Section Styles */
.section-badge {
  display: inline-block;
  background: rgba(234, 88, 12, 0.1);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.7;
}

/* Services Section */
.services-section {
  background: var(--white);
}

.service-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-body .service-icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base);
}

.service-body {
  padding: 2rem 1.5rem 1.5rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-text {
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.service-list li i {
  color: var(--accent);
  font-size: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 0.75rem;
  color: var(--accent-dark);
}

/* Exam Section */
.exam-section {
  background: var(--gray-50);
}

.exam-image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.exam-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.3) 0%, transparent 50%);
  z-index: 1;
}

.exam-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.exam-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.exam-badge i {
  font-size: 1.25rem;
}

.exam-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.exam-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.exam-feature .exam-feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(234, 88, 12, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
}

.exam-feature h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.exam-feature p {
  color: var(--gray-500);
  margin: 0;
  font-size: 0.95rem;
}

.exam-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exam-category {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* About Section */
.about-section {
  background: var(--white);
}

.about-quote {
  background: var(--gray-50);
  padding: 3rem;
  border-radius: 1.5rem;
  position: relative;
}

.about-quote .quote-icon {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 2rem;
}

.about-quote blockquote {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.about-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.about-author .author-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
}

.about-author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--primary);
}

.about-author span {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-card {
  padding: 2rem 1rem;
}

.stat-card .stat-card-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.stat-card .stat-card-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .stat-card-number::after {
  content: '+';
  font-size: 2rem;
  color: var(--accent);
}

.stat-card .stat-card-label {
  color: var(--gray-400);
  font-size: 1rem;
}

/* Contact Section */
.contact-section {
  background: var(--gray-50);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.contact-card .contact-card-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(234, 88, 12, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
}

.contact-card h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-card a,
.contact-card p {
  color: var(--gray-600);
  text-decoration: none;
  margin: 0;
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-form-wrapper {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.contact-form .form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid var(--gray-200);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0;
}

.contact-form .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.contact-form .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.25);
}

.contact-form .form-check-label {
  color: var(--gray-600);
}

.contact-form .form-check-label a {
  color: var(--accent);
}

.contact-form .form-check-label a:hover {
  text-decoration: underline;
}

/* Map Section */
.map-section iframe {
  display: block;
  filter: grayscale(20%);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--gray-400);
}

.footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.footer .footer-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.125rem;
}

.footer .footer-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer .footer-brand .brand-highlight {
  color: var(--accent);
}

.footer .footer-text {
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer .footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer .social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  text-decoration: none;
  transition: all var(--transition-base);
}

.footer .social-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer .footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links li {
  margin-bottom: 0.75rem;
}

.footer .footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer .footer-links a:hover {
  color: var(--accent);
}

.footer .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer .footer-contact li i {
  color: var(--accent);
  font-size: 1rem;
  width: 20px;
}

.footer .footer-contact li a,
.footer .footer-contact li span {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer .footer-contact li a:hover {
  color: var(--accent);
}

.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-bottom p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer .footer-bottom .footer-legal-link {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  margin-left: 1.5rem;
  transition: color var(--transition-fast);
}

.footer .footer-bottom .footer-legal-link:hover {
  color: var(--accent);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-collapse .nav-link::after {
    display: none;
  }
  
  .navbar-collapse .btn {
    width: 100%;
    margin-top: 1rem;
  }
  
  .hero-stats .stat-item {
    padding-right: 1.5rem;
  }
  
  .hero-stats .stat-number {
    font-size: 2rem;
  }
  
  .py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 767px) {
  .hero-stats .col-auto {
    flex: 1;
  }
  
  .hero-stats .stat-item {
    padding: 0 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .hero-stats .stat-item:last-child {
    border-right: none;
  }
  
  .hero-stats .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-stats .stat-label {
    font-size: 0.75rem;
  }
  
  .about-quote {
    padding: 2rem 1.5rem;
  }
  
  .about-quote blockquote {
    font-size: 1.1rem;
  }
  
  .about-quote .quote-icon {
    font-size: 2.5rem;
    top: 0.5rem;
    left: 1rem;
  }
  
  .stat-card .stat-card-number {
    font-size: 2rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .footer-brand {
    justify-content: center;
  }
  
  .footer .footer-social {
    justify-content: center;
  }
  
  .footer .footer-bottom {
    text-align: center;
  }
  
  .footer .footer-bottom .footer-legal-link {
    margin: 0.5rem;
    display: inline-block;
  }
}
