/* ============================================================
   MOBILSTAR AUTÓTECHNIKAI KFT. — DIAGNOSTIC AUTHORITY DESIGN
   ============================================================ */

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

:root {
  --white:       #ffffff;
  --off-white:   #f5f5f3;
  --light-grey:  #e8e8e4;
  --mid-grey:    #b0b0a8;
  --steel:       #6b7280;
  --graphite:    #374151;
  --dark:        #1a1f2e;
  --navy:        #0f1729;
  --amber:       #d97706;
  --amber-light: #fbbf24;
  --amber-bg:    #fffbeb;
  --blue-accent: #1e3a5f;
  --danger:      #b91c1c;

  --font-sans: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 2px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--grey { background: var(--off-white); }
.section--amber { background: var(--amber-bg); border-top: 3px solid var(--amber); border-bottom: 3px solid var(--amber); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn--primary:hover { background: #b45309; border-color: #b45309; }

.btn--secondary {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn--secondary:hover { background: var(--dark); color: var(--white); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover { background: var(--white); color: var(--dark); }

.btn--sm { padding: 9px 20px; font-size: 0.82rem; }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo span { color: var(--amber); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.header-cta { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin-top: 16px; width: 100%; }

/* --- Hero --- */
.hero {
  background: var(--navy);
  padding: 80px 0 72px;
  overflow: hidden;
}

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

.hero-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(217,119,6,0.12);
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 2px solid var(--amber);
}

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-trust {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  line-height: 1.6;
}

/* Checklist panel */
.checklist-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
}

.checklist-panel .panel-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.checklist-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.checklist-step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  background: rgba(217,119,6,0.15);
  border-radius: var(--radius);
  padding: 3px 7px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.img-placeholder {
  margin-top: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* --- Proof Strip --- */
.proof-strip { background: var(--off-white); padding: 48px 0; }

.proof-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  overflow: hidden;
}

.proof-item {
  flex: 1 1 200px;
  padding: 24px 20px;
  border-right: 1px solid var(--light-grey);
  background: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.proof-item:last-child { border-right: none; }

.proof-icon {
  width: 36px;
  height: 36px;
  background: var(--amber-bg);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
  font-size: 1rem;
}

.proof-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

/* --- Section Headers --- */
.section-header { margin-bottom: 48px; }
.section-header .mono { margin-bottom: 8px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--steel); max-width: 560px; font-size: 0.95rem; }

/* --- Service Cards --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--light-grey);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition);
}
.service-card:hover { background: var(--off-white); }

.service-card .card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.service-card h3 { font-size: 1rem; color: var(--dark); }
.service-card p { font-size: 0.85rem; color: var(--steel); flex: 1; }
.service-card .btn { align-self: flex-start; }

/* --- Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-step {
  padding: 28px 24px;
  border-right: 1px solid var(--light-grey);
  position: relative;
}
.process-step:last-child { border-right: none; }

.process-step::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--amber);
  margin-bottom: 16px;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--mid-grey);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.process-step h3 { font-size: 0.95rem; margin-bottom: 8px; }
.process-step p { font-size: 0.83rem; color: var(--steel); }

/* --- Trust / Info Blocks --- */
.trust-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.trust-block .trust-text h2 { margin-bottom: 16px; }
.trust-block .trust-text p { color: var(--steel); font-size: 0.95rem; }

.trust-badge {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-left: 3px solid var(--amber);
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--graphite);
  line-height: 1.6;
}

/* --- Pricing Table --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-table th {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-grey);
  color: var(--graphite);
}

.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:nth-child(even) td { background: var(--off-white); }
.pricing-table .price-col { font-weight: 700; color: var(--dark); white-space: nowrap; }
.pricing-table .highlight-row td { background: var(--amber-bg); font-weight: 600; }

.price-note {
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: 12px;
  font-style: italic;
}

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

.contact-info h3 { margin-bottom: 20px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  background: var(--amber-bg);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
  font-size: 0.9rem;
}

.contact-label { font-size: 0.75rem; color: var(--steel); margin-bottom: 2px; }
.contact-value { font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.contact-value a { color: var(--dark); }
.contact-value a:hover { color: var(--amber); }

/* Form */
.quote-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--graphite); letter-spacing: 0.02em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--amber); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--navy);
  padding: 56px 0 48px;
  border-bottom: 3px solid var(--amber);
}
.page-hero .mono { margin-bottom: 10px; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 600px; }

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { color: var(--amber); }

/* --- Reason List --- */
.reason-list { display: flex; flex-direction: column; gap: 0; }

.reason-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--light-grey);
}
.reason-item:last-child { border-bottom: none; }

.reason-marker {
  width: 36px;
  height: 36px;
  background: var(--amber);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.reason-content h4 { margin-bottom: 6px; font-size: 0.95rem; }
.reason-content p { font-size: 0.88rem; color: var(--steel); }

/* --- Staff cards --- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--light-grey);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  overflow: hidden;
}

.staff-card {
  background: var(--white);
  padding: 24px;
}

.staff-name { font-weight: 700; font-size: 0.95rem; color: var(--dark); margin-bottom: 4px; }
.staff-role { font-size: 0.78rem; color: var(--steel); margin-bottom: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.staff-phone { font-size: 0.88rem; color: var(--graphite); }
.staff-phone a { color: var(--amber); font-weight: 600; }

/* --- Info box --- */
.info-box {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-left: 3px solid var(--blue-accent);
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--graphite);
  line-height: 1.65;
}

.warning-box {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-left: 3px solid var(--amber);
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.65;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo { font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.83rem; line-height: 1.6; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--amber); }

.footer-contact-item { font-size: 0.83rem; margin-bottom: 8px; }
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Utility --- */
.text-amber { color: var(--amber); }
.text-steel { color: var(--steel); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--amber);
  padding: 48px 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); font-size: 1.5rem; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.cta-banner .btn--outline-white { border-color: rgba(255,255,255,0.8); }

/* --- Accordion (FAQ) --- */
.accordion { border: 1px solid var(--light-grey); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--light-grey); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
  font-family: var(--font-sans);
}
.accordion-trigger:hover { background: var(--off-white); }
.accordion-trigger .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--amber);
  transition: transform var(--transition);
}
.accordion-trigger.open .icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: var(--steel);
  line-height: 1.65;
}
.accordion-body.open { display: block; }

/* --- Map placeholder --- */
.map-placeholder {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--steel);
  font-size: 0.85rem;
  text-align: center;
}

/* --- Opening hours table --- */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--light-grey); }
.hours-table td:first-child { color: var(--graphite); font-weight: 500; }
.hours-table td:last-child { color: var(--dark); font-weight: 600; text-align: right; }
.hours-table tr:last-child td { border-bottom: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--light-grey); }
  .process-step:nth-child(2n) { border-right: none; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .trust-block { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .proof-strip-inner { flex-direction: column; }
  .proof-item { border-right: none; border-bottom: 1px solid var(--light-grey); }
  .proof-item:last-child { border-bottom: none; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}
