/* ====================================================================
   MOTOEVAKUATOR DESIGN SYSTEM 2026
   Dark premium aesthetic - Keep all existing content, visual redesign only
   ==================================================================== */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main {
  padding-top: 0;
}

/* ===== CSS CUSTOM PROPERTIES (DESIGN TOKENS) ===== */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --card: #1a1a1a;
  --border: #2a2a2a;
  --accent: #ff4500;
  --accent-hover: #e03d00;
  --text: #f0f0f0;
  --text-muted: #888888;
  --text-dim: #555555;
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

/* ===== BASE STYLES ===== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY SCALE ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

h1 {
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

strong {
  font-weight: 500;
  color: var(--text);
}

small {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--surface);
}

/* Hero: keep photo visible; don't paint solid surface over background-image */
.hero-section.section-dark {
  background-color: transparent;
}

.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 40px;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section--fibis {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('../images/Fibis.png');
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  .hero-section {
    padding-top: 72px;
    min-height: 60vh;
  }
}

/* ===== SERVICES (home page) ===== */
.service-detail-card {
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.service-detail-card .card-body {
  padding: 24px;
}

.service-detail-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--card);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.service-features li {
  padding: 0.35rem 0;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.price-note {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ===== ABOUT (home page) ===== */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-story {
    grid-template-columns: 1fr 1fr;
  }
}

.about-story img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

/* ===== FAQ (details fallback for SEO pages) ===== */
.faq-list details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-list details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq-list details.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-list details.faq-item[open] summary {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.faq-list details.faq-item p {
  color: var(--text-muted);
  margin: 0;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: 0.75rem;
}

/* ===== CONTACTS (home page) ===== */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .contact-methods {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  height: 100%;
}

.contact-chip-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-chip h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-chip a {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form-box {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}

.clickable-map {
  display: block;
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  background-color: var(--surface);
}

.clickable-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .clickable-map {
    height: 260px;
  }
}

/* ===== SEO: PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(255, 69, 0, 0.15);
}

.price-amount {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin: 0.75rem 0;
}

.price-unit {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== SEO: DISTRICTS / TAGS ===== */
.district-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.district-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.seo-content {
  max-width: 800px;
  margin: 0 auto;
}

.seo-content h2,
.seo-content h3 {
  margin-top: 2rem;
}

.seo-content p:last-child {
  margin-bottom: 0;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ===== STICKY CALL BUTTON ===== */
.sticky-call {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background-color: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 8px 32px rgba(255, 69, 0, 0.45);
  transition: transform var(--transition), background-color var(--transition);
}

.sticky-call:hover {
  color: #fff;
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.sticky-call-icon {
  font-size: 1.125rem;
  line-height: 1;
}

@media (min-width: 769px) {
  .sticky-call-text {
    display: inline;
  }
}

@media (max-width: 768px) {
  .sticky-call {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }
}

/* ===== BUTTON COMPONENTS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}

.btn-ghost {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background-color: rgba(255, 69, 0, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  min-height: 56px;
  padding: 16px 48px;
  font-size: 1.125rem;
}

/* ===== TAG COMPONENT ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(255, 69, 0, 0.15);
  color: var(--accent);
}

/* ===== GRID HELPERS ===== */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

/* ===== CARD COMPONENT ===== */
.card {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-accent { color: var(--accent); }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }

/* Margin utilities */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-5 { margin-left: 20px; }
.ml-6 { margin-left: 24px; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.mr-4 { margin-right: 16px; }
.mr-5 { margin-right: 20px; }
.mr-6 { margin-right: 24px; }

/* Padding utilities */
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 12px; }
.pt-4 { padding-top: 16px; }
.pt-5 { padding-top: 20px; }
.pt-6 { padding-top: 24px; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 12px; }
.pb-4 { padding-bottom: 16px; }
.pb-5 { padding-bottom: 20px; }
.pb-6 { padding-bottom: 24px; }
.pl-1 { padding-left: 4px; }
.pl-2 { padding-left: 8px; }
.pl-3 { padding-left: 12px; }
.pl-4 { padding-left: 16px; }
.pl-5 { padding-left: 20px; }
.pl-6 { padding-left: 24px; }
.pr-1 { padding-right: 4px; }
.pr-2 { padding-right: 8px; }
.pr-3 { padding-right: 12px; }
.pr-4 { padding-right: 16px; }
.pr-5 { padding-right: 20px; }
.pr-6 { padding-right: 24px; }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* ===== MEDIA QUERIES (MOBILE-FIRST) ===== */
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet and small desktop */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 70px 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  h1 {
    font-size: clamp(2.25rem, 5.5vw, 3rem);
  }
  
  h2 {
    font-size: clamp(1.625rem, 4.5vw, 2.25rem);
  }
  
  h3 {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  }
  
  .card {
    padding: 20px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    gap: 16px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  .container {
    padding: 0 12px;
  }
  
  /* Improve touch targets */
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  
  .btn-lg {
    min-height: 52px;
    padding: 14px 24px;
  }
  
  /* Adjust spacing utilities for mobile */
  .mt-6 { margin-top: 20px; }
  .mb-6 { margin-bottom: 20px; }
  .gap-6 { gap: 16px; }
  .gap-5 { gap: 12px; }
  .gap-4 { gap: 12px; }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .section {
    padding: 50px 0;
  }
  
  h1 {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.375rem, 4vw, 2rem);
  }
  
  h3 {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    max-width: 100%;
  }
  
  .card {
    padding: 16px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  /* Adjust spacing for small screens */
  .mt-6 { margin-top: 16px; }
  .mb-6 { margin-bottom: 16px; }
  .gap-6 { gap: 12px; }
}
