/* Mobil-Technician.com — Modern responsive styles */

:root {
  --primary: #1a4480;
  --primary-dark: #0d2a52;
  --primary-light: #2e6bbf;
  --accent: #f0a830;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Header / Nav ===== */
.site-header {
  background: var(--primary-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: white; }
.brand img { height: 50px; width: auto; background: white; padding: 4px; border-radius: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.1rem; }
.brand-text span { font-size: 0.75rem; color: #b8c5d9; }

.nav-toggle {
  background: none; border: none; color: white;
  font-size: 1.5rem; cursor: pointer; display: none;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: white; text-decoration: none; font-weight: 500;
  padding: 0.5rem 0; border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--accent); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--primary-dark); flex-direction: column; gap: 0;
    padding: 1rem; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; }
.hero .tagline { font-size: clamp(1rem, 2.5vw, 1.5rem); color: var(--accent); font-style: italic; margin-bottom: 2rem; }
.hero .lead { font-size: 1.15rem; max-width: 700px; margin: 0 auto 2rem; }
.hero .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1rem; font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: #d8941f; transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; border-color: white; }
.btn-outline:hover { background: white; color: var(--primary-dark); }
.btn-secondary { background: var(--primary); color: white; }
.btn-secondary:hover { background: var(--primary-dark); }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }

/* ===== Sections ===== */
section { padding: 4rem 0; }
section.alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 0.5rem; color: var(--primary-dark); }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* ===== Service / Feature Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.card h3 { color: var(--primary); margin-bottom: 0.75rem; font-size: 1.25rem; }
.card p { color: var(--text-muted); margin-bottom: 1rem; }
.card a.card-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.card a.card-link:hover { text-decoration: underline; }

/* ===== Page intro ===== */
.page-header {
  background: var(--primary);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-header p { color: #cbd5e1; max-width: 700px; margin: 0.75rem auto 0; }

/* ===== Content prose ===== */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { color: var(--primary-dark); margin: 2rem 0 1rem; font-size: 1.6rem; }
.prose h3 { color: var(--primary); margin: 1.5rem 0 0.5rem; font-size: 1.25rem; }
.prose p, .prose li { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; }

/* ===== Highlight box (rate, callouts) ===== */
.highlight {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.highlight h3 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.rate-display {
  font-size: 2rem; font-weight: 700; color: var(--primary);
}
.rate-display small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

/* ===== CTA block ===== */
.cta-block {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 3rem 0;
}
.cta-block h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.cta-block p { color: #cbd5e1; margin-bottom: 1.5rem; }

/* ===== Pricing cards ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(240, 168, 48, 0.25);
}
.pricing-card .badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-card h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.pricing-card .tier-tag {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin: 1rem 0 0.25rem;
}
.pricing-card .price small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}
.pricing-card .storage {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.pricing-card ul.features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 1rem 0 1.5rem;
  flex-grow: 1;
}
.pricing-card ul.features li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  color: var(--text);
}
.pricing-card ul.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}
.pricing-card .btn { width: 100%; }

/* ===== Customer portal box ===== */
.portal-box {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 500px;
}
.portal-box h3 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.portal-box input[type=email] {
  width: 100%; padding: 0.75rem; font-size: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin: 1rem 0;
}
.portal-box .msg { font-size: 0.9rem; margin-top: 0.75rem; min-height: 1.2em; }
.portal-box .msg.error { color: #dc2626; }
.portal-box .msg.success { color: #059669; }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.25rem; font-size: 1.05rem; font-weight: 600; color: var(--primary-dark);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--primary); }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 1.25rem 1.25rem; color: var(--text-muted); }
.faq-item.open .faq-a { display: block; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-grid h4 { color: white; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-grid a { color: #cbd5e1; text-decoration: none; display: block; padding: 0.25rem 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem; text-align: center; font-size: 0.85rem;
  max-width: var(--container); margin: 0 auto;
}

/* ===== Admin panel ===== */
.admin-wrap { max-width: 1600px; width: 95%; margin: 2rem auto; padding: 0 1.5rem; }
.admin-section {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.admin-section h2 { color: var(--primary-dark); margin-bottom: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.form-row label { font-weight: 600; color: var(--text); }
.form-row input, .form-row textarea, .form-row select {
  padding: 0.6rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row-inline { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.admin-list .item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; margin-bottom: 0.75rem; background: var(--bg-alt);
}
.admin-list .item-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.admin-list .item-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th, table.data-table td {
  text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--border);
}
table.data-table th { background: var(--bg-alt); color: var(--primary-dark); font-weight: 600; }
.badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.active { background: #d1fae5; color: #065f46; }
.badge.suspended { background: #fee2e2; color: #991b1b; }

#login-screen { max-width: 400px; margin: 5rem auto; padding: 2rem; background: white;
  border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
#admin-app { display: none; }
