@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100;300;400;500;600;700;800;900&display=swap');

/* =====================================================
   DESIGN SYSTEM - MALITECH AUTÓSZERVIZ
   ===================================================== */

:root {
  /* Original colors preserved */
  --primary-color: #F4C45E;
  --primary-dark: #dcb054;
  --primary-light: #fdd77a;
  --second-color: #f8f9fa;
  --text-color: #201e1f;
  --text-light: #6c757d;
  --white: #ffffff;
  --dark-bg: #201e1f;
  --dark-lighter: #2d2a2b;
  
  /* Enhanced shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 40px rgba(244, 196, 94, 0.3);
  
  /* Border radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Spacing */
  --section-padding: 100px;
  --container-padding: 24px;
}

/* =====================================================
   BASE STYLES
   ===================================================== */

* {
  font-family: 'Heebo', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--second-color);
  color: var(--text-color);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

.big-text {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--text-color);
  line-height: 1;
  letter-spacing: -0.02em;
}

.subtext {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-top: 8px;
  color: var(--text-color);
  opacity: 0.9;
}

.section-text {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: var(--section-padding);
  margin-bottom: 60px;
  color: var(--primary-color);
  letter-spacing: 0.02em;
  position: relative;
}

.section-text::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-full);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  min-width: 180px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--text-color);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--primary-color);
  color: var(--text-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  min-width: 180px;
  border: 2px solid var(--text-color);
  background: transparent;
  border-radius: var(--radius-full);
  color: var(--text-color);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--text-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* =====================================================
   NAVBAR - GLASS MORPHISM
   ===================================================== */

.navbar {
  background: rgba(244, 196, 94, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(244, 196, 94, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-weight: 900;
  transition: var(--transition-base);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  width: 50px;
  height: auto;
}

.navbar-collapse {
  font-weight: 600;
}

.navbar-nav .nav-link {
  color: var(--text-color);
  padding: 10px 20px;
  margin: 0 4px;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  font-weight: 600;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--text-color);
  transition: var(--transition-base);
  border-radius: var(--radius-full);
}

.navbar-nav .nav-link:hover::after {
  width: calc(100% - 40px);
}

.rightphone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  background: var(--white);
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.rightphone:hover {
  background: var(--text-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rightphone a {
  color: inherit;
  font-weight: 700;
}

.rightphone i {
  font-size: 1.1rem;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

#hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-color) 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 140px;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero_1 {
  position: relative;
  z-index: 2;
}

.hero_1 .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  opacity: 0.85;
  margin: 24px 0 40px;
  letter-spacing: 0.5px;
}

.hero_1 .btn-primary,
.hero_1 .btn-secondary {
  margin: 8px;
}

/* Hero Video */
#hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

/* Wave Divider */
.custom-shape-divider-bottom-1673 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom-1673 svg {
  position: relative;
  display: block;
  width: calc(150% + 1.3px);
  height: 80px;
}

.custom-shape-divider-bottom-1673 .shape-fill {
  fill: var(--dark-bg);
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */

#section-2 {
  background: var(--dark-bg);
  padding: 40px 0 var(--section-padding);
  position: relative;
}

/* Service Cards */
.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background: var(--white);
  min-height: 340px;
  padding: 48px 32px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(244, 196, 94, 0.1), rgba(244, 196, 94, 0.05));
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
  background: var(--primary-color);
  color: var(--text-color);
}

.card h2 {
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--text-color);
  line-height: 1.3;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Card Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 
    opacity 0.8s var(--transition-smooth),
    transform 0.8s var(--transition-smooth);
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.3s; }
.delay-300 { transition-delay: 0.45s; }
.delay-400 { transition-delay: 0.6s; }
.delay-500 { transition-delay: 0.75s; }

/* =====================================================
   WHY US SECTION (NEW)
   ===================================================== */

#why-us {
  background: var(--second-color);
  padding: var(--section-padding) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

#contact-form {
  padding: 0;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  width: 100%;
  margin: var(--section-padding) 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.contact-cards {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-cards:first-child {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.contact-cards h1 {
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-cards h4 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-cards h5,
.contact-cards h6 {
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.9;
}

.contact-cards p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}

.contact-cards .bx {
  font-size: 40px;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.contact-cards .bx:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Google Map */
.googlemap {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mapouter {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 100%;
  min-height: 400px;
}

.gmap_canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gmap_canvas iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* =====================================================
   FOOTER
   ===================================================== */

footer.bg-dark {
  background: var(--dark-bg) !important;
  padding-top: 60px;
}

footer h1 {
  font-weight: 900;
  letter-spacing: -0.02em;
}

footer h4 {
  opacity: 0.9;
}

footer h5 {
  font-weight: 700;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
}

.footer-logo {
  filter: brightness(0) invert(1);
  transition: var(--transition-base);
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-icon {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.footer-contact-list li {
  font-size: 1rem;
  transition: var(--transition-base);
}

.footer-contact-list li:hover {
  transform: translateX(4px);
}

#opening-status {
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  border-left: 3px solid var(--primary-color);
}

.status-open {
  color: #4cd137;
}

.status-closed {
  color: #e84118;
}

.status-time {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  font-weight: normal;
}

footer .table {
  margin-top: 16px;
}

footer .table td {
  padding: 8px 12px;
  border: none;
  font-size: 0.95rem;
}

footer .table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer .table tr:last-child {
  border-bottom: none;
}

/* Copyright */
footer > div:last-child {
  background: rgba(0, 0, 0, 0.3) !important;
  font-size: 0.9rem;
}

/* =====================================================
   FLOATING CTA
   ===================================================== */

.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-color);
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.floating-btn.phone {
  background: var(--text-color);
  color: var(--white);
}

.floating-btn.phone:hover {
  background: var(--primary-color);
  color: var(--text-color);
}

/* =====================================================
   SERVICE PAGES
   ===================================================== */

.spacetop {
  height: 80px;
}

/* Table Styles */
.table-responsive {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 80px;
}

.malitech-table {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 0;
}

.malitech-table thead {
  background: var(--text-color);
  color: var(--white);
}

.malitech-table thead th {
  padding: 20px 24px;
  font-weight: 700;
  text-align: left;
  border-bottom: 4px solid var(--primary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.malitech-table tbody tr {
  transition: var(--transition-base);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.malitech-table tbody tr:last-child {
  border-bottom: none;
}

.malitech-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(244, 196, 94, 0.08), transparent);
  transform: scale(1.01);
}

.malitech-table tbody td {
  padding: 20px 24px;
  color: var(--text-color);
  vertical-align: middle;
  font-size: 1rem;
}

.malitech-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.malitech-table tbody tr:nth-child(even):hover {
  background: linear-gradient(90deg, rgba(244, 196, 94, 0.08), rgba(0, 0, 0, 0.02));
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1200px) {
  .contact-form {
    grid-template-columns: 1fr 1fr;
  }
  
  .googlemap {
    grid-column: span 2;
    padding: 32px;
  }
}

@media (max-width: 992px) {
  body {
    overflow-x: hidden;
  }
  
  .navbar {
    padding: 8px 0;
  }
  
  .navbar-brand img {
    width: 45px;
  }
  
  #hero {
    min-height: 70vh;
    padding: 100px 0 120px;
  }
  
  .big-text {
    font-size: 3.5rem;
  }
  
  .subtext {
    font-size: 1.5rem;
  }
  
  .hero_1 .lead {
    font-size: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 14px 28px;
    min-width: 160px;
    font-size: 0.875rem;
  }
  
  .section-text {
    margin-top: 80px;
    margin-bottom: 48px;
  }
  
  .card {
    min-height: 300px;
    padding: 36px 24px;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
    margin: 60px 0;
  }
  
  .contact-cards {
    padding: 36px 32px;
  }
  
  .googlemap {
    display: none;
  }
  
  #section-2 {
    padding-bottom: 80px;
  }
  
  .floating-cta {
    bottom: 20px;
    right: 20px;
  }
  
  .floating-btn {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  #hero {
    min-height: 60vh;
    padding: 80px 0 100px;
  }
  
  .custom-shape-divider-bottom-1673 svg {
    height: 50px;
  }
  
  .card {
    min-height: 280px;
  }
  
  .card-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  
  .contact-cards h1 {
    font-size: 1.75rem;
  }
  
  footer .row > div {
    text-align: center;
  }
  
  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  footer .footer-contact-list li {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  #hero {
    min-height: 55vh;
    padding: 70px 0 90px;
  }
  
  .big-text {
    font-size: 2.75rem;
  }
  
  .subtext {
    font-size: 1.25rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    margin: 6px auto;
  }
  
  .section-text {
    font-size: 1.5rem;
  }
  
  .card {
    min-height: auto;
    padding: 32px 20px;
  }
  
  .contact-cards {
    padding: 28px 24px;
  }
  
  .malitech-table thead th,
  .malitech-table tbody td {
    padding: 14px 16px;
    font-size: 0.875rem;
  }
  
  .floating-cta {
    bottom: 16px;
    right: 16px;
  }
  
  .floating-btn {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--second-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Selection color */
::selection {
  background: var(--primary-color);
  color: var(--text-color);
}