/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Dark mode variables and styles */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --header-bg: #ffffff;
  --card-bg: #ffffff;
  --border-color: #e9ecef;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --footer-bg: #003366;
  --footer-text: #ffffff;
  --input-bg: #ffffff;
  --input-border: #ddd;
  --hero-overlay: rgba(0, 86, 179, 0.8);
  --section-bg-alt: #f9f9f9;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --header-bg: #2d2d2d;
  --card-bg: #2d2d2d;
  --border-color: #404040;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --footer-bg: #1a1a1a;
  --footer-text: #e0e0e0;
  --input-bg: #2d2d2d;
  --input-border: #404040;
  --hero-overlay: rgba(0, 86, 179, 0.9);
  --section-bg-alt: #262626;
}

/* Dark mode toggle button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-toggle i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover i {
  transform: rotate(180deg);
}

/* Mobile positioning for theme toggle */
@media (max-width: 768px) {
  .theme-toggle {
    top: 15px;
    right: 70px; /* Move left to avoid overlapping with mobile menu button */
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .theme-toggle span {
    display: none; /* Hide text on mobile to save space */
  }

  .theme-toggle i {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .theme-toggle {
    top: 12px;
    right: 65px;
    padding: 5px 10px;
  }

  .theme-toggle i {
    font-size: 0.8rem;
  }
}

/* Apply dark mode variables to existing elements */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #0056b3;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #0056b3;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
}

section {
  padding: 80px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #0056b3;
  color: white;
}

.btn-primary:hover {
  background-color: #003d82;
}

.btn-secondary {
  background-color: white;
  color: #0056b3;
  border: 2px solid #0056b3;
}

.btn-secondary:hover {
  background-color: #f0f8ff;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: #0056b3;
}

/* Header */
header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.logo span {
  color: #0056b3;
}

nav ul {
  display: flex;
  transition: background-color 0.3s ease;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #0056b3;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
#hero {
  background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)),
    url("/placeholder.svg?height=800&width=1200") no-repeat center center / cover;
  color: white;
  padding: 150px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white !important; /* Force white color in both light and dark modes */
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: white !important; /* Force white color in both light and dark modes */
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: #0056b3;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #0056b3;
}

/* About Section */
#rolunk {
  background-color: var(--section-bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-color);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.feature {
  display: flex;
  align-items: center;
}

.feature i {
  color: #0056b3;
  font-size: 1.2rem;
  margin-right: 10px;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Why Us Section */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.why-us-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.why-us-icon {
  font-size: 2.5rem;
  color: #0056b3;
  margin-bottom: 20px;
}

.why-us-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #0056b3;
}

/* Brands Section (Amivel foglalkozunk) */
#amivel-foglalkozunk {
  background-color: var(--section-bg-alt);
}

.brands-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.brand-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--border-color);
}

/* Brand card links */
.brand-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.brand-card-link:hover {
  transform: translateY(-10px);
}

.brand-card-link .brand-card {
  transition: none;
}

.brand-card-link .brand-card:hover {
  transform: none;
}

.brand-card:hover {
  transform: translateY(-10px);
}

.brand-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-logo img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.brand-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #0056b3;
}

.brands-info {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.brands-info p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

.brands-cta {
  margin-top: 30px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  color: #0056b3;
  margin-right: 20px;
  min-width: 30px;
  text-align: center;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #0056b3;
}

.contact-item a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--input-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
  border-color: #0056b3;
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
  transition: background-color 0.3s ease;
}

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

.footer-about p {
  margin-top: 15px;
}

footer h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: #fff !important;
}

footer h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #0056b3;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a:hover {
  color: #66a3ff;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-contact i {
  margin-right: 10px;
  min-width: 20px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

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

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 5px 10px var(--shadow-color);
    padding: 20px;
    border: 1px solid var(--border-color);
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
  }

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

  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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

  section {
    padding: 60px 0;
  }
}

/* Legal Pages Styles */
#legal-content {
  padding: 100px 0 80px;
  background-color: #f9f9f9;
}

.legal-header {
  text-align: center;
  margin-bottom: 50px;
}

.legal-header h1 {
  font-size: 2.5rem;
  color: #0056b3;
  margin-bottom: 10px;
}

.legal-header p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
  font-style: italic;
}

.legal-text {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.legal-text h2 {
  color: #0056b3;
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #0056b3;
  padding-bottom: 10px;
}

.legal-text h2:first-child {
  margin-top: 0;
}

.legal-text h3 {
  color: var(--text-color);
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.legal-text p {
  margin-bottom: 15px;
  text-align: justify;
}

.legal-text ul {
  margin-bottom: 15px;
  padding-left: 25px;
}

.legal-text li {
  margin-bottom: 8px;
}

.legal-text strong {
  color: #0056b3;
  font-weight: 600;
}

.legal-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Footer legal links */
.footer-bottom a {
  color: #66a3ff;
  text-decoration: none;
  margin: 0 5px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive design for legal pages */
@media (max-width: 768px) {
  .legal-text {
    padding: 25px 20px;
    margin: 0 10px;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-text h2 {
    font-size: 1.5rem;
  }

  .legal-text h3 {
    font-size: 1.2rem;
  }
}

/* SEO and Accessibility Improvements */

/* Skip to main content for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #0056b3;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1001;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* Improve heading hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-color);
}

/* Override for specific blue headings that should stay blue */
.section-header h2,
.service-card h3,
.why-us-card h3,
.brand-card h3,
.contact-item h3,
.legal-header h1,
.legal-text h2,
.product-specs-section h4,
.product-pricing-section h4,
.brand-header h2,
.product-basic-info h3 {
  color: #0056b3;
}

/* Better focus indicators for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

/* Structured data friendly elements */
.business-info {
  display: none; /* Hidden but available for structured data */
}

/* Performance optimizations */
img {
  loading: lazy;
}

/* Print styles */
@media print {
  header,
  footer,
  nav,
  .mobile-menu-btn {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    background-color: #000;
    border-color: #000;
  }

  .btn-secondary {
    background-color: #fff;
    color: #000;
    border-color: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.brands-info p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

.products-intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.service-card p,
.why-us-card p {
  color: var(--text-color);
  opacity: 0.8;
}

.service-highlight h4 {
  color: #fff !important;
}
