/* ============================================
   AZIZI Smart-Repair – Stylesheet
   ============================================ */

:root {
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-red: #e10600;
  --color-red-dark: #b80500;
  --color-red-light: #ff1a14;
  --color-gray-50: #f8f8f8;
  --color-gray-100: #f0f0f0;
  --color-gray-200: #e0e0e0;
  --color-gray-400: #9ca3af;
  --color-gray-600: #4b5563;
  --color-gray-800: #1f2937;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --radius: 8px;
  --radius-lg: 12px;
  --header-height: 72px;
  --container-max: 1200px;
  --content-max: 960px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
  overflow-x: hidden;
}

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

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

address {
  font-style: normal;
}

ul {
  list-style: none;
}

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

.content-width {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}

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

.btn--primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 6, 0, 0.35);
}

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

.btn--secondary:hover {
  background: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Section Titles */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-black);
  margin-bottom: 1rem;
}

.section-title--dark {
  color: var(--color-black);
}

.section-subtitle {
  text-align: center;
  color: var(--color-gray-600);
  max-width: var(--content-max);
  margin: 0 auto 3.5rem;
  font-size: 1.0625rem;
}

.section-prose {
  text-align: justify;
  hyphens: auto;
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.nav__logo-image {
  height: 48px;
  width: auto;
  max-width: min(220px, 50vw);
  display: block;
  object-fit: contain;
  transition: opacity var(--transition);
}

.nav__logo:hover .nav__logo-image {
  opacity: 0.9;
}

.nav__menu {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

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

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
  transform-origin: center;
}

.nav__toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Parallax
   ============================================ */
.parallax-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.parallax-media__image {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.7) 100%);
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.4) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.hero__deco {
  display: block;
  width: min(85%, 520px);
  height: auto;
  margin: 0 auto 1.25rem;
  opacity: 0.95;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: var(--content-max);
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.hero__scroll a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.hero__scroll a:hover {
  color: var(--color-red);
}

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

/* ============================================
   Services
   ============================================ */
.services {
  padding: 6rem 0;
  background: var(--color-white);
}

.services-intro {
  max-width: var(--content-max);
  margin: 0 auto 3rem;
  text-align: justify;
  hyphens: auto;
}

.services-intro p {
  color: var(--color-gray-600);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.services-intro p:last-child {
  margin-bottom: 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.services-closing {
  max-width: var(--content-max);
  margin: 4rem auto 0;
  text-align: justify;
  hyphens: auto;
  padding: 3rem 2rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-red);
}

.services-closing .btn {
  margin-top: 0.5rem;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.services-closing p {
  color: var(--color-gray-600);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.services-closing__cta {
  font-weight: 600;
  color: var(--color-black) !important;
  font-size: 1.125rem !important;
  text-align: center;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.service-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.08);
}

.service-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

.service-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.5rem;
}

.service-card__content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.service-card__content p {
  color: var(--color-gray-600);
  line-height: 1.65;
  font-size: 0.875rem;
  flex: 1;
  text-align: justify;
  hyphens: auto;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 0 0 6rem;
  background: var(--color-gray-50);
}

.contact__banner {
  position: relative;
  width: 100%;
  height: clamp(200px, 32vw, 360px);
  overflow: hidden;
  margin-bottom: 3rem;
}

.contact__banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.15) 0%,
    rgba(10, 10, 10, 0.35) 100%
  );
  pointer-events: none;
}

.contact .container .section-title {
  margin-top: 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.contact__form,
.contact__info {
  width: 100%;
}

.contact__form {
  position: relative;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

.form-group--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
}

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

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

.form-group input.error,
.form-group textarea.error {
  border-color: var(--color-red);
}

.form-group--consent {
  margin-bottom: 1.5rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}

.form-checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-red);
  cursor: pointer;
}

.form-checkbox span {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-gray-600);
}

.form-consent-link {
  color: var(--color-red);
  text-decoration: underline;
  font-weight: 600;
}

.form-consent-link:hover {
  color: var(--color-red-dark);
}

.form-group--consent.error .form-checkbox span {
  color: var(--color-red);
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.25rem;
}

.form-feedback--success {
  color: #16a34a;
}

.form-feedback--error {
  color: var(--color-red);
}

.contact__info h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 1.5rem;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  color: var(--color-gray-600);
}

.contact__list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-red);
}

.contact__list a:hover {
  color: var(--color-red);
}

.contact__hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-gray-400);
  font-style: italic;
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact__map iframe {
  display: block;
  width: 100%;
}

.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-gray-200);
}

.map-consent p {
  color: var(--color-gray-600);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

.map-consent .btn {
  padding: 0.75rem 1.5rem;
}

/* ============================================
   Benefits
   ============================================ */
.benefits {
  padding: 6rem 0;
  background: var(--color-white);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.benefits__column p {
  color: var(--color-gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
}

.benefits__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefits__list li {
  padding: 1rem 1.25rem;
  background: var(--color-gray-50);
  border-left: 4px solid var(--color-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-gray-600);
  line-height: 1.6;
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefits__list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.benefits__list strong {
  color: var(--color-black);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-black);
  color: var(--color-white);
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem;
}

.footer__logo {
  display: block;
  width: auto;
  height: 100px;
  max-width: 340px;
  margin-bottom: 1rem;
  object-fit: contain;
  object-position: left center;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer__contact h4 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact a:hover {
  color: var(--color-red);
}

.footer__contact li {
  color: rgba(255, 255, 255, 0.7);
}

.footer__hint {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.45) !important;
  margin-top: 0.25rem;
}

.footer__bar {
  background: var(--color-red);
  padding: 1rem 0;
}

.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__bar p {
  font-size: 0.8125rem;
  color: var(--color-white);
}

.footer__bar p a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition);
}

.footer__bar p a:hover {
  opacity: 0.8;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.8125rem;
  color: var(--color-white);
  opacity: 0.9;
  transition: opacity var(--transition);
}

.footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ============================================
   Modal
   ============================================ */
.modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 560px;
  width: calc(100% - 2rem);
  margin: auto;
  position: fixed;
  inset: 0;
  height: fit-content;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal--large {
  max-width: 760px;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  padding: 2.5rem;
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 2rem);
}

.modal__content p {
  color: var(--color-gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-gray-400);
  cursor: pointer;
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--color-red);
}

.modal__content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-black);
  text-align: center;
}

/* ============================================
   Animations (scroll reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .parallax-media__image {
    top: 0;
    height: 100%;
    transform: none !important;
    will-change: auto;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .contact__grid,
  .benefits__grid,
  .footer__main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__logo-image {
    height: 38px;
    max-width: min(180px, 55vw);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }

  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .services,
  .contact,
  .benefits {
    padding-bottom: 4rem;
  }

  .contact {
    padding-top: 0;
  }

  .contact__banner {
    height: clamp(160px, 40vw, 240px);
    margin-bottom: 2rem;
  }

  .contact__form {
    padding: 1.75rem;
  }

  .services-closing {
    padding: 2rem 1.25rem;
    margin-top: 3rem;
  }

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

  .footer__logo {
    height: 80px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    object-position: center;
  }
}

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero__subtitle,
  .services-intro,
  .services-closing,
  .benefits__column p,
  .service-card__content p,
  .modal__content p {
    text-align: left;
    hyphens: none;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero__deco {
    width: min(90%, 320px);
    margin-bottom: 1rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }
}
