/* A1 Mobile Repair - Shared Styles */
:root {
  --primary-dark: #0b1f3a; /* dark blue */
  --primary: #0d264f;
  --accent: #ff5f00; /* bright orange */
  --light: #ffffff;
  --bg: #f7f9fc;
  --text: #1f2937;
  --muted: #4b5563;
  --border: #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

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

/* Header/Nav */
header {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--light);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--light);
  box-shadow: 0 8px 18px rgba(255, 95, 0, 0.35);
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.nav-cta {
  background: var(--accent);
  color: var(--light) !important;
  box-shadow: 0 10px 20px rgba(255, 95, 0, 0.28);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--light);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top right, rgba(255, 95, 0, 0.18), transparent),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--light);
  padding: clamp(40px, 8vw, 90px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 6vw, 48px);
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.hero-content .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  opacity: 0.95;
  margin-bottom: 12px;
}

.hero-content p {
  opacity: 0.92;
  margin-bottom: 22px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--light);
  box-shadow: 0 16px 30px rgba(255, 95, 0, 0.32);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 95, 0, 0.38);
  outline: none;
}

.btn-ghost {
  background: transparent;
  color: var(--light);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.hero-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(11, 31, 58, 0.45);
}

.hero-image img {
  width: 100%;
  height: min(420px, 60vw);
  object-fit: cover;
}

.section {
  padding: clamp(36px, 8vw, 72px) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(22px, 5vw, 42px);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4.6vw, 2.6rem);
  margin-bottom: 8px;
}

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

.grid {
  display: grid;
  gap: clamp(16px, 3vw, 22px);
}

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

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

.card {
  background: var(--light);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.card-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body h3 {
  font-size: 1.12rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
}

.price {
  font-weight: 800;
  color: var(--accent);
}

.btn-sm {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--primary);
  color: var(--light);
}

.btn-sm.wa {
  background: #128c7e;
}

.btn-block {
  width: 100%;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  background: var(--light);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  padding: 18px;
  text-align: center;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial {
  background: var(--light);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  padding: 18px;
}

.testimonial p {
  color: var(--muted);
  font-style: italic;
}

.testimonial .author {
  margin-top: 10px;
  font-weight: 700;
}

.contact-strip {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--light);
  border-radius: 16px;
  padding: clamp(22px, 6vw, 38px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 26px 50px rgba(11, 31, 58, 0.4);
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.42);
  z-index: 120;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--light);
  margin-top: clamp(40px, 9vw, 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(28px, 7vw, 54px) 0;
}

.footer-col h4 {
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.82);
}

/* Forms */
.form {
  background: var(--light);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  padding: clamp(18px, 5vw, 32px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.notice {
  background: #fff4ec;
  border: 1px solid rgba(255, 95, 0, 0.4);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

/* Responsive */
@media (max-width: 1080px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .nav-links.active {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .testimonials {
    grid-template-columns: 1fr;
  }
}
