/* ============================================================
   PassIT Landing Page - Stylesheet
   Bold split-hero design with dark conversion bar
   ============================================================ */

/* ---- Google Font Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800;900&family=Hanken+Grotesk:wght@400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Brand Colors (from design reference) */
  --primary: #0035c5;
  --primary-container: #0047ff;
  --on-primary: #ffffff;
  --on-primary-container: #d4d9ff;

  /* Surfaces */
  --surface: #f9f9ff;
  --background: #f9f9ff;
  --on-surface: #1a1c20;
  --on-surface-variant: #434657;
  --on-background: #1a1c20;
  --surface-container: #ededf3;
  --surface-container-low: #f3f3f9;
  --surface-container-lowest: #ffffff;

  /* Outline */
  --outline: #747688;
  --outline-variant: #c4c5da;

  /* Tertiary / Accent */
  --tertiary: #005338;
  --on-tertiary: #ffffff;

  /* Error */
  --error: #ba1a1a;
  --cta-red: #E53935;
  --cta-red-hover: #c62828;

  /* WhatsApp */
  --whatsapp: #25D366;

  /* Dark section */
  --dark-bg: #1e1e1e;
  --dark-text: #ffffff;
  --dark-border: #555;
  --dark-placeholder: #999;

  /* Typography */
  --font: 'Rubik', 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-soft: 0px 4px 20px rgba(15, 17, 21, 0.05);
  --shadow-deep: 0px 12px 32px rgba(15, 17, 21, 0.12);
  --shadow-badge: 0px 8px 40px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition: 200ms ease;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-background);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

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

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 48px;
  background: rgba(249, 249, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid rgba(196, 197, 218, 0.3);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.header-brand-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.header-brand-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  border-right: 1px solid var(--outline-variant);
  padding-right: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.header-btn-call {
  background: #1a1a1a;
  color: #ffffff;
}

.header-btn-call:hover {
  background: #000000;
}

.header-btn-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: var(--whatsapp);
}

.header-btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
}

.header-btn .icon {
  font-size: 20px;
}


/* ============================================================
   HERO SPLIT SECTION
   ============================================================ */
.hero-split {
  position: relative;
  width: 100%;
  display: flex;
  direction: ltr; /* Keep visual layout: image-left, text-right (text is first in RTL reading) */
  min-height: 50vh;
  margin-top: 64px; /* header offset */
  overflow: hidden;
}

/* Left: Car image */
.hero-image-side {
  width: 50%;
  position: relative;
}

.hero-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Right: Blue block with typography */
.hero-text-side {
  width: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 56px;
  position: relative;
}

/* Slanted overlay for the blue section to create angular overlap */
.hero-text-side::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -64px;
  width: 128px;
  background: var(--primary);
  transform: skewX(8deg);
  transform-origin: bottom left;
}

.hero-text-inner {
  position: relative;
  z-index: 2;
  direction: rtl;
  text-align: center;
  max-width: 100%;
  width: 100%;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.hero-subheadline {
  font-size: clamp(1.5rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
}


/* ---- VIP Badge (overlapping image) ---- */
.price-badge {
  position: absolute;
  z-index: 30;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0px 6px 20px rgba(0, 0, 0, 0.3));
}

.badge-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ============================================================
   DARK CONVERSION SECTION
   ============================================================ */
.conversion-section {
  width: 100%;
  background: var(--dark-bg);
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal accent on desktop */
.conversion-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  background: rgba(0, 53, 197, 0.08);
  transform: skewX(12deg) translateX(50%);
  pointer-events: none;
}

.conversion-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* How it works column */
.how-column {
  order: 3;
}

.how-column-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 32px;
  color: #ffffff;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.how-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-step-text {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Service bullets column */
.bullets-column {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.bullet-text {
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Lead form column */
.form-column {
  order: 1;
}

.form-column-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  color: #ffffff;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-input::placeholder {
  color: var(--dark-placeholder);
}

/* Keep tel placeholder on the right in RTL */
.form-input[type="tel"] {
  direction: rtl;
}

.form-input:focus {
  border-color: var(--primary-container);
  box-shadow: 0 0 0 1px var(--primary-container);
}

.form-input.error {
  border-color: var(--cta-red);
  box-shadow: 0 0 0 1px var(--cta-red);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--cta-red);
  margin-top: -8px;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.form-select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  color: #ffffff;
  font-size: 1rem;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--primary-container);
  box-shadow: 0 0 0 1px var(--primary-container);
}

.form-select option {
  background: var(--dark-bg);
  color: #ffffff;
}

.form-select.error {
  border-color: var(--cta-red);
}

/* Privacy checkbox */
.form-checkbox-group {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--dark-placeholder);
  line-height: 1.5;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--primary-container);
  cursor: pointer;
  border-radius: 3px;
}

.checkbox-text {
  flex: 1;
}

.checkbox-link {
  color: var(--primary-container);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-link:hover {
  color: #6b8fff;
}

.btn-submit {
  width: 100%;
  height: 56px;
  background: var(--cta-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 4px;
  transition: background var(--transition);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.btn-submit:hover {
  background: var(--cta-red-hover);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form reassurance */
.form-reassurance {
  font-size: 0.75rem;
  color: var(--dark-placeholder);
  text-align: center;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-reassurance .icon {
  font-size: 14px;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 16px;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success-icon .icon {
  font-size: 32px;
  color: var(--whatsapp);
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.9375rem;
  color: var(--dark-placeholder);
  line-height: 1.5;
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  width: 100%;
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant);
  text-align: center;
}

/* Prevent gray gap below footer */
html {
  background: var(--surface-container-lowest);
}

.footer-disclaimer {
  max-width: 720px;
}

.footer-disclaimer p {
  font-size: 0.75rem;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--on-surface-variant);
  transition: color var(--transition);
}

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


/* ============================================================
   MOBILE STICKY BAR
   ============================================================ */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
}

.sticky-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sticky-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  transition: all 150ms ease;
  background: none;
  cursor: pointer;
}

.sticky-btn .icon {
  font-size: 22px;
}

.sticky-btn-call {
  color: #ffffff;
}

.sticky-btn-call:active {
  background: rgba(255, 255, 255, 0.1);
}

.sticky-btn-whatsapp {
  color: var(--whatsapp);
}

.sticky-btn-whatsapp:active {
  background: rgba(37, 211, 102, 0.15);
}

.sticky-btn-form {
  color: var(--primary-container);
}

.sticky-btn-form:active {
  background: rgba(0, 71, 255, 0.15);
}


/* ============================================================
   RESPONSIVE - DESKTOP COMPACT
   Reduces hero height so the conversion section is visible
   without scrolling on typical desktop screens.
   ============================================================ */
@media (min-width: 1025px) {
  .hero-split {
    min-height: 0;
    height: 60vh;
    max-height: 640px;
  }

  .hero-text-side {
    padding: 40px 56px;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    margin-bottom: 14px;
  }

  .hero-subheadline {
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  }

  .price-badge {
    width: 180px;
    height: 180px;
  }
}


/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .site-header {
    padding: 0 24px;
  }

  .hero-text-side {
    padding: 48px;
  }

  .conversion-inner {
    padding: 48px 32px;
    gap: 32px;
  }

  .price-badge {
    width: 140px;
    height: 140px;
  }
}


/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 0 16px;
    height: 56px;
  }

  .header-brand-label {
    display: none;
  }

  .header-btn span:not(.icon) {
    /* keep phone number visible */
  }

  .header-btn-whatsapp {
    display: none;
  }

  /* Hero: Stack vertically */
  .hero-split {
    flex-direction: column;
    min-height: auto;
    margin-top: 56px;
  }

  .hero-image-side {
    width: 100%;
    height: 40vh;
  }

  .hero-text-side {
    width: 100%;
    padding: 40px 24px;
    text-align: center;
  }

  .hero-text-side::before {
    display: none;
  }

  .hero-text-inner {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-subheadline {
    font-size: 1.5rem;
  }

  /* Badge - top-right of image on mobile */
  .price-badge {
    width: 100px;
    height: 100px;
    top: 76px;
    left: auto;
    right: 12px;
    bottom: auto;
    transform: none;
  }

  /* Conversion: Stack to single column */
  .conversion-section::before {
    display: none;
  }

  .conversion-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 40px;
  }

  /* Reorder for mobile: How it works → Bullets → Form */
  .how-column { order: 1; }
  .bullets-column { order: 2; }
  .form-column { order: 3; }

  .how-column-title {
    font-size: 1.75rem;
  }

  /* Footer */
  .site-footer {
    padding: 24px 16px 100px; /* extra bottom for sticky bar */
  }

  /* Mobile sticky bar */
  .mobile-sticky-bar {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
  }

  .hero-subheadline {
    font-size: 1.25rem;
  }

  .price-badge {
    width: 80px;
    height: 80px;
    top: 68px;
    right: 8px;
  }
}


/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Material Symbols icon settings */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
