/* Craal Auto - Split-Screen Modern Layout */
/* Mobile-first, Flexbox only */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2840;
  --accent: #e85a1e;
  --accent-hover: #d14a10;
  --light: #f8f9fa;
  --dark: #1c1c1c;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p { margin-bottom: 1rem; }

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

/* Header - Floating Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
}

.nav-menu.active {
  display: flex;
}

.nav-menu a {
  padding: 15px 20px;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-light);
  font-weight: 500;
}

.nav-menu a:hover {
  background: var(--light);
  color: var(--accent);
}

.header-cta {
  display: none;
}

/* Split Section */
.split-section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.split-section.reverse {
  flex-direction: column;
}

.split-content,
.split-image {
  flex: 1;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-content {
  background: var(--white);
}

.split-content.dark {
  background: var(--primary);
  color: var(--white);
}

.split-content.light {
  background: var(--light);
}

.split-content.accent-bg {
  background: var(--accent);
  color: var(--white);
}

.split-image {
  min-height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.3), transparent);
}

/* Hero Section */
.hero {
  padding-top: 70px;
}

.hero .split-content {
  padding: 80px 30px 60px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

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

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

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

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

.btn-white:hover {
  background: var(--light);
  color: var(--accent);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Features List */
.features-list {
  list-style: none;
  margin: 25px 0;
}

.features-list li {
  padding: 10px 0;
  padding-left: 35px;
  position: relative;
  font-size: 1.05rem;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.split-content.dark .features-list li::before,
.split-content.accent-bg .features-list li::before {
  color: var(--white);
}

/* Services Cards */
.services-section {
  padding: 80px 20px;
  background: var(--light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

.section-header p {
  color: var(--gray);
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.service-card-content {
  padding: 25px;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--gray-light);
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.price span {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 400;
}

/* Stats Section */
.stats-section {
  background: var(--primary);
  padding: 60px 20px;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.stat-item {
  text-align: center;
  color: var(--white);
  flex: 1;
  min-width: 140px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Testimonials */
.testimonials-section {
  padding: 80px 20px;
  background: var(--white);
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.testimonial-card {
  background: var(--light);
  padding: 30px;
  border-radius: 12px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--primary);
}

.testimonial-info span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Form Section */
.form-section {
  padding: 80px 20px;
  background: var(--light);
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

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

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

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

/* Contact Info */
.contact-section {
  padding: 80px 20px;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.contact-item h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--gray);
  margin: 0;
}

/* Map */
.map-section {
  height: 400px;
  background: var(--gray-light);
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 20px 30px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-col p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 20px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-content a {
  color: var(--accent);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-accept {
  background: var(--accent);
  color: var(--white);
}

.cookie-reject {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 900;
  display: none;
}

.sticky-cta.visible {
  display: block;
}

.sticky-cta .btn {
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Thanks Page */
.thanks-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.thanks-content {
  max-width: 600px;
}

.thanks-icon {
  width: 100px;
  height: 100px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 3rem;
}

.thanks-section h1 {
  margin-bottom: 20px;
}

.thanks-section p {
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Legal Pages */
.legal-page {
  padding: 120px 20px 80px;
}

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

.legal-content h1 {
  color: var(--primary);
  margin-bottom: 30px;
}

.legal-content h2 {
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: 20px;
  color: var(--dark);
}

.legal-content ul,
.legal-content ol {
  padding-left: 25px;
}

.legal-content li {
  margin-bottom: 10px;
}

/* About Page */
.about-hero {
  padding-top: 70px;
}

.team-section {
  padding: 80px 20px;
  background: var(--white);
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.team-card {
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}

.team-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-initials {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
}

.team-card-content {
  padding: 25px;
}

.team-card h3 {
  color: var(--primary);
  margin-bottom: 5px;
}

.team-card span {
  color: var(--accent);
  font-weight: 500;
}

.team-card p {
  margin-top: 15px;
  color: var(--gray);
  font-size: 0.95rem;
}

/* Gallery */
.gallery-section {
  padding: 80px 20px;
  background: var(--light);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.gallery-item {
  flex: 1 1 100%;
  height: 200px;
  background: var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  padding: 60px 20px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  margin-bottom: 15px;
}

.cta-banner p {
  opacity: 0.95;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Inline CTA */
.inline-cta {
  background: var(--primary);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  color: var(--white);
  margin: 40px 0;
}

.inline-cta h3 {
  margin-bottom: 15px;
}

.inline-cta p {
  opacity: 0.9;
  margin-bottom: 20px;
}

/* Process Section */
.process-section {
  padding: 80px 20px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.step-content p {
  color: var(--gray);
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: 80px 20px;
  background: var(--light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: var(--white);
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--light);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--gray);
  margin: 0;
}

/* Desktop Styles */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.6rem; }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    box-shadow: none;
    background: transparent;
  }

  .nav-menu a {
    padding: 10px 18px;
    border: none;
  }

  .header-cta {
    display: block;
  }

  .split-section {
    flex-direction: row;
    min-height: auto;
  }

  .split-section.reverse {
    flex-direction: row-reverse;
  }

  .split-content,
  .split-image {
    flex: 1;
    padding: 100px 60px;
    min-height: 600px;
  }

  .hero .split-content {
    padding: 120px 60px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .btn-group {
    flex-direction: row;
  }

  .services-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-card {
    flex: 1 1 calc(50% - 15px);
  }

  .testimonials-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .testimonial-card {
    flex: 1 1 calc(50% - 15px);
  }

  .form-wrapper {
    padding: 50px;
  }

  .contact-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-item {
    flex: 1 1 calc(50% - 15px);
  }

  .footer-grid {
    flex-direction: row;
  }

  .footer-col {
    flex: 1;
  }

  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .team-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .team-card {
    flex: 1 1 calc(33.333% - 20px);
  }

  .gallery-item {
    flex: 1 1 calc(33.333% - 15px);
    height: 250px;
  }

  .process-steps {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .process-step {
    flex: 1 1 calc(50% - 15px);
  }
}

@media (min-width: 1024px) {
  .service-card {
    flex: 1 1 calc(33.333% - 20px);
  }

  .testimonial-card {
    flex: 1 1 calc(33.333% - 20px);
  }

  .contact-item {
    flex: 1 1 calc(25% - 25px);
  }
}
