/* Polemi MOT & Service — Master Stylesheet (Stage 1) */

:root {
  --bg-dark: #03131a;
  --bg-darker: #0b1a1f;
  --bg-slate: #10222a;
  --bg-light: #ffffff;
  --bg-card: #f3f7f5;
  --bg-soft-green: #e3f5e8;

  --text-main: #10222a;
  --text-light: #ffffff;
  --text-muted-light: #d5e6dc;
  --text-nav: #e6f2ea;

  --accent: #4ade80;
  --accent-mid: #22c55e;
  --accent-dark: #15803d;
  --accent-dark-hover: #166534;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --border-input: #b7c4bd;
  --danger: #b91c1c;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}

h2 {
  font-size: 30px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-mid);
}

h2.no-accent-border {
  border-left: 0;
  padding-left: 0;
  margin-bottom: 6px;
  font-size: 28px;
}

h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

section[id],
div[id] {
  scroll-margin-top: 84px;
}

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

.container-narrow {
  max-width: 900px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #06210f;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #36d371;
  border-color: #36d371;
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: rgba(74, 222, 128, 0.14);
}

.btn-dark-green {
  background: var(--accent-dark);
  color: var(--text-light);
  border-color: var(--accent-dark);
}

.btn-dark-green:hover {
  background: var(--accent-dark-hover);
  border-color: var(--accent-dark-hover);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #052e16;
  border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  border-color: #20bd5a;
}

.btn-whatsapp-light {
  background: #e6f9ed;
  color: #0f5132;
  border-color: #25d366;
}

.btn-whatsapp-light:hover {
  background: #d1f5df;
}

.btn-lg {
  font-size: 20px;
  padding: 0 26px;
}

.btn-full {
  width: 100%;
  margin-top: 14px;
}

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

/* Header & Navigation */
.site-header {
  background: var(--bg-dark);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand-logo img {
  height: 54px;
  width: auto;
  display: block;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 1;
  margin-left: 16px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 15px;
  color: var(--text-nav);
  transition: color 0.15s ease;
}

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

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-nav);
}

.lang-switch a {
  padding: 4px 5px;
  border-radius: 4px;
}

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

.lang-switch a.active {
  font-weight: 800;
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 62%;
  object-fit: cover;
  object-position: left center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #03131a 0%, #03131a 38%, rgba(3, 19, 26, 0.6) 58%, rgba(3, 19, 26, 0.08) 85%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

.hero-lead {
  font-size: 19px;
  color: var(--text-muted-light);
  margin: 20px 0 28px;
}

.hero-hours {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--text-muted-light);
}

/* Highlights bar */
.highlights-section {
  padding: 28px 0 8px;
}

.highlights-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-weight: 600;
}

/* Sections & Grids */
.section {
  padding: 52px 0;
}

.section-compact-top {
  padding-top: 20px;
}

.section-muted {
  background: var(--bg-card);
}

.section-dark {
  background: var(--bg-darker);
  color: var(--text-light);
}

.section-dark h2 {
  color: var(--text-light);
}

.section-intro {
  margin: 0 0 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 40px;
}

.align-center {
  align-items: center;
}

.mot-checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.bca-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 36px;
  align-items: start;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px;
}

.card p {
  margin: 0;
}

.card-soft-green {
  background: var(--bg-soft-green);
}

.note-card {
  margin-top: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  color: var(--accent-dark);
}

.price-link:hover {
  text-decoration: underline;
}

.mot-price-line {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
}

.text-accent {
  color: var(--accent-dark);
}

.footnote {
  font-size: 13px;
  margin: 14px 0 0;
  color: #3c4f57;
}

/* Lists & Prose */
.steps-list {
  padding-left: 20px;
  margin: 0 0 24px;
  line-height: 1.9;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 6px 0 6px 32px;
  position: relative;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
  line-height: 22px;
}

.small-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
}

.prose {
  line-height: 1.75;
  margin: 0 0 14px;
}

.prose:last-child {
  margin-bottom: 0;
}

.dark-prose {
  margin: 0 0 20px;
  color: var(--text-muted-light);
  line-height: 1.7;
}

.mt-sm {
  margin-top: 8px;
}

.mt-md {
  margin-top: 18px;
}

/* Emergency Banner */
.emergency-banner {
  background: var(--bg-slate);
  color: var(--text-light);
  padding: 30px 0;
  border-top: 3px solid var(--accent-mid);
}

.emergency-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.emergency-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted-light);
}

/* FAQ */
details {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

summary {
  font-weight: 600;
  cursor: pointer;
}

details p {
  margin: 10px 0 0;
  color: #2b3f47;
}

/* Contact & Form */
.contact-details {
  font-style: normal;
  line-height: 1.8;
  margin: 0 0 16px;
}

.contact-details a {
  font-weight: 600;
  color: var(--accent-dark);
}

.map-link {
  display: block;
  margin-bottom: 14px;
}

.map-link img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.booking-card {
  padding: 24px;
}

.booking-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 14px;
  color: #3c4f57;
  margin: 0 0 14px;
}

.form-field {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  background: var(--bg-light);
  color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-mid);
  outline-offset: 1px;
  border-color: var(--accent-dark);
}

.input-error {
  border-color: var(--danger);
}

.form-status {
  margin: 8px 0 0;
  font-size: 14px;
  min-height: 20px;
}

.form-status.error {
  color: var(--danger);
  font-weight: 500;
}

.form-status.success {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-muted-light);
  padding: 32px 0;
  font-size: 14px;
}

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

.footer-brand {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; letter-spacing: -0.02em;
  font-size: 24px;
  color: var(--accent);
}

.footer-link {
  text-decoration: underline;
}

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

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  display: none;
}

/* Privacy page */
.privacy-page {
  padding: 56px 0 72px;
}

.privacy-page h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.privacy-page h2 {
  font-size: 22px;
  margin-top: 28px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .header-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--accent-mid);
    padding: 20px 24px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .header-menu.is-open {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .main-nav a {
    font-size: 17px;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 52px 0;
    min-height: 460px;
  }

  .hero-bg {
    width: 100%;
    opacity: 0.32;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(3, 19, 26, 0.72) 0%, rgba(3, 19, 26, 0.92) 100%);
  }

  .site-footer {
    padding-bottom: 92px;
  }

  .mobile-sticky-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 10px 14px;
    background: rgba(3, 19, 26, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
  }

  .sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
  }

  .sticky-call {
    background: var(--accent);
    color: #06210f;
  }

  .sticky-wa {
    background: var(--whatsapp);
    color: #052e16;
  }
}

/* RTL Support (Hebrew /he/) */
[dir="rtl"] h2 {
  padding-left: 0;
  padding-right: 12px;
  border-left: 0;
  border-right: 4px solid var(--accent-mid);
}

[dir="rtl"] h2.no-accent-border {
  border-right: 0;
  padding-right: 0;
}

[dir="rtl"] .header-menu {
  margin-left: 0;
  margin-right: 16px;
}

[dir="rtl"] .hero-bg {
  right: auto;
  left: 0;
  object-position: right center;
}

[dir="rtl"] .hero-overlay {
  background: linear-gradient(270deg, #03131a 0%, #03131a 38%, rgba(3, 19, 26, 0.6) 58%, rgba(3, 19, 26, 0.08) 85%);
}

[dir="rtl"] .check-list li {
  padding: 6px 32px 6px 0;
}

[dir="rtl"] .check-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .steps-list {
  padding-left: 0;
  padding-right: 20px;
}

@media (max-width: 1024px) {
  [dir="rtl"] .header-menu {
    margin-right: 0;
  }
}

/* Visual Upgrade (Stage 4 / v5) */
.highlights-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ui-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent-dark);
}

.mot-checks-grid .card {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 14px 16px;
}

.mot-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-dark);
}

.steps-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step-counter;
}

.steps-list li {
  position: relative;
  padding: 6px 0 14px 44px;
  counter-increment: step-counter;
  line-height: 1.55;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: var(--text-light);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; letter-spacing: -0.02em;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service Cards with Photos */
.service-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2ebe6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(3, 19, 26, 0.08);
}

.service-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #dce8e1;
  overflow: hidden;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.service-card:hover .service-thumb img {
  transform: scale(1.04);
}

.service-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* About Us Photo */
.about-photo {
  margin: 0 0 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* 24/7 Emergency Banner with Photo & Badge */
.emergency-banner {
  position: relative;
  overflow: hidden;
}

.emergency-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  pointer-events: none;
}

.emergency-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #10222a 0%, #10222a 55%, rgba(16, 34, 42, 0.45) 100%);
  pointer-events: none;
}

.emergency-inner {
  position: relative;
  z-index: 1;
}

.emergency-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-247 {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

/* RTL adjustments for v5 */
[dir="rtl"] .steps-list {
  padding-right: 0;
}

[dir="rtl"] .steps-list li {
  padding: 6px 44px 14px 0;
}

[dir="rtl"] .steps-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .emergency-bg {
  right: auto;
  left: 0;
}

[dir="rtl"] .emergency-overlay {
  background: linear-gradient(270deg, #10222a 0%, #10222a 55%, rgba(16, 34, 42, 0.45) 100%);
}

@media (max-width: 768px) {
  .emergency-bg {
    width: 100%;
    opacity: 0.22;
  }
  .emergency-overlay {
    background: rgba(16, 34, 42, 0.78);
  }
}

.license-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 600;
}

/* GDPR Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: #111827;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.cookie-banner a {
  color: #93c5fd;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.cookie-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.cookie-btn-accept {
  background: #2563eb;
  color: #ffffff;
}
.cookie-btn-accept:hover {
  background: #1d4ed8;
}
.cookie-btn-decline {
  background: transparent;
  color: #d1d5db;
  border-color: rgba(255, 255, 255, 0.25);
}
.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 72px; /* Above mobile sticky Call/WhatsApp bar */
  }
}
