/* ============================================
   Attention to Detail — Auto Repair Website
   Plum + Amber | Warm & Friendly
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-plum-deep: #5B2C5A;
  --color-plum: #7B3F7A;
  --color-plum-light: #A0549C;
  --color-plum-pale: #F3E8F5;
  --color-plum-bg: #FBF5FD;
  --color-amber: #F5A623;
  --color-amber-light: #FFD080;
  --color-amber-pale: #FFF8EE;
  --color-cream: #FDF8F4;
  --color-warm-white: #FEFCFA;
  --color-text: #3A2038;
  --color-text-light: #6B5068;
  --color-text-muted: #9A8098;
  --color-border: #E8D5E6;
  --color-white: #FFFFFF;
  --font-heading: 'Quicksand', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --shadow-sm: 0 2px 8px rgba(91, 44, 90, 0.08);
  --shadow-md: 0 4px 20px rgba(91, 44, 90, 0.12);
  --shadow-lg: 0 8px 40px rgba(91, 44, 90, 0.16);
  --shadow-card: 0 4px 24px rgba(91, 44, 90, 0.10);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-plum-light);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-amber);
  color: var(--color-text);
  border-color: var(--color-amber);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
}

.btn-primary:hover {
  background: #E8951A;
  border-color: #E8951A;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 166, 35, 0.45);
  color: var(--color-text);
}

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

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-plum-deep);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-plum-deep);
  border-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  background: var(--color-plum-pale);
  transform: translateY(-2px);
  color: var(--color-plum-deep);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
}

/* --- Section Helpers --- */
.section {
  padding: 96px 0;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-plum-light);
  background: var(--color-plum-pale);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--color-plum-deep);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--color-plum-deep);
  text-decoration: none;
}

.logo-icon {
  color: var(--color-plum);
}

.logo-text {
  line-height: 1.2;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
}

.nav a:hover {
  color: var(--color-plum);
  background: var(--color-plum-pale);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-plum-deep);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #5B2C5A 0%, #7B3F7A 35%, #A0549C 65%, #C47ABF 100%);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 166, 35, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(160, 84, 156, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255, 208, 128, 0.15) 0%, transparent 60%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-amber-light);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

.trust-item svg {
  color: var(--color-amber-light);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

/* --- Services --- */
.services {
  background: var(--color-cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-plum) 0%, var(--color-amber) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-plum-pale);
  border-radius: var(--radius-md);
  color: var(--color-plum);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-plum);
  color: var(--color-white);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-plum-deep);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- About --- */
.about {
  background: var(--color-plum-bg);
}

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

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  bottom: -32px;
  right: -24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-white);
}

.about-img-float img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.about-stat {
  position: absolute;
  top: -20px;
  left: -16px;
  background: var(--color-amber);
  color: var(--color-text);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-stat .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.about-stat .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.8;
}

.about-content .section-tag {
  margin-bottom: 12px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-content > p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  font-size: 16px;
}

.about-features {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.5;
}

.about-features svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Why Us --- */
.why-us {
  background: var(--color-cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.why-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-plum-pale);
  line-height: 1;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.why-card:hover .why-number {
  color: var(--color-plum-light);
  opacity: 0.3;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-plum-deep);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-plum-deep) 0%, var(--color-plum) 50%, var(--color-plum-light) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(245, 166, 35, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(255, 208, 128, 0.15) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
  background: var(--color-plum-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  border-color: transparent;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-plum-pale);
  border-radius: var(--radius-sm);
  color: var(--color-plum);
  flex-shrink: 0;
}

.contact-card h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-plum-deep);
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 6px;
}

.contact-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-plum-light);
}

.contact-card a:hover {
  color: var(--color-plum);
}

.link-text {
  font-size: 13px !important;
  color: var(--color-text-muted) !important;
  font-weight: 500 !important;
}

.link-arrow {
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* --- Contact Form --- */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-plum-deep);
  margin-bottom: 6px;
}

.form-hint {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

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

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-cream);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-plum-light);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(160, 84, 156, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: #E8F5E9;
  border-radius: var(--radius-sm);
  color: #2E7D32;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  flex-shrink: 0;
  color: #4CAF50;
}

/* --- Footer --- */
.footer {
  background: var(--color-plum-deep);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--color-amber-light);
  padding-left: 4px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
  color: var(--color-amber-light);
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}

/* --- Mobile Menu --- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav ul {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(253, 248, 244, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 999;
  }

  .nav.open ul {
    transform: translateY(0);
    opacity: 1;
  }

  .nav a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav .btn-primary {
    text-align: center;
    margin-top: 8px;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-images {
    max-width: 480px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 88vh;
    padding: 100px 20px 60px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-img-float {
    right: -8px;
    bottom: -20px;
  }

  .about-stat {
    left: -8px;
    top: -12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
