/* ================================================
   1STEP DRIVING SCHOOL — SHARED STYLESHEET
   Applies to: index, drogheda, privacy-policy, terms
   ================================================ */

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

:root {
  --bg:       #080e1c;
  --surface:  #0f172a;
  --card:     #182032;
  --border:   #2a3a52;
  --teal:     #14b8a6;
  --teal-dim: #0d9488;
  --green:    #25d366;
  --green-dk: #128c4e;
  --text:     #f1f5f9;
  --muted:    #7f97b4;
  --star:     #fbbf24;
  --font:     'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --r:        12px;
  --max:      680px;
}

html  { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,14,28,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 20px;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.nav-logo span { color: var(--teal); }

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #054a29;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 99px;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--green-dk); color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-links a,
.nav-links a:link,
.nav-links a:visited,
.nav-links a:hover,
.nav-links a:active {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}

.nav-links a:hover { color: var(--teal); }

@media (max-width: 420px) {
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
}

/* ── Hero ── */
.hero {
  background:
    linear-gradient(155deg, rgba(13,32,64,.92) 0%, rgba(8,14,28,.94) 65%),
    url("Assets/hatem-car-1.jpeg");
  background-size: cover;
  background-position: center 70%;
  padding: 56px 20px 52px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20,184,166,.1);
  border: 1px solid rgba(20,184,166,.3);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
  letter-spacing: .03em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.hero h1 em { font-style: normal; color: var(--teal); }

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 32px;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--green);
  color: #054a29;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: var(--r);
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.btn-wa:hover { background: #1fbe59; transform: translateY(-1px); }

.btn-wa svg { width: 20px; height: 20px; fill: #054a29; flex-shrink: 0; }

.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--teal);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--r);
  border: 1.5px solid rgba(20,184,166,.5);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.btn-call:hover {
  background: rgba(20,184,166,.08);
  border-color: var(--teal);
}

/* ── Trust bar ── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px;
}

.trust-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 480px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item { text-align: center; }

.trust-num {
  display: block;
  font-size: 21px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.4px;
}

.trust-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 3px;
}

/* ── Sections ── */
section { padding: 52px 20px; }
section.surface { background: var(--surface); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(21px, 5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: var(--max);
  margin: 0 auto;
}

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

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.service-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: rgba(20,184,166,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 10px;
  margin-top: 1px;
}

/* ── Areas ── */
.areas-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto 20px;
}

.area-card {
  background: var(--card);
  border: 1.5px solid var(--teal);
  border-radius: var(--r);
  padding: 20px 16px;
  text-align: center;
}

.area-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 6px;
}

.area-card-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.area-card-note { font-size: 12px; color: var(--muted); }

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto;
}

.area-tag {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Pricing ── */
.pricing-table {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 16px;
  border-collapse: collapse;
}

.pricing-table tr { border-bottom: 1px solid var(--border); }
.pricing-table tr:last-child { border-bottom: none; }

.pricing-table td {
  padding: 14px 4px;
  font-size: 15px;
  vertical-align: middle;
}

.pricing-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
  padding-left: 12px;
}

.pricing-note {
  font-size: 13px;
  color: var(--muted);
  max-width: var(--max);
  margin: 0 auto;
}

/* ── Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto 28px;
}

@media (min-width: 540px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}

.review-stars { color: var(--star); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.review-text  { font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.review-author { font-size: 13px; font-weight: 600; color: var(--muted); }

.pass-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto 28px;
}

.pass-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.pass-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.pass-card figcaption {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* ── About ── */
.about-content { max-width: var(--max); margin: 0 auto; }

.about-photo {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 24px;
  border-radius: var(--r);
  border: 1px solid var(--border);
}

.about-bio { font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 24px; }
.about-bio p { margin-bottom: 14px; }
.about-bio p:last-child { margin-bottom: 0; }

.credential-img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 20px auto 0;
  border-radius: var(--r);
  border: 1px solid var(--border);
}

.adi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.adi-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
}

.adi-card-name { font-size: 17px; font-weight: 700; }

.adi-row {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
}

.adi-row span { color: var(--text); font-weight: 500; }

/* ── Contact section ── */
.contact-block { text-align: center; }
.contact-block .cta-group { margin-top: 28px; }

.qr-block {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-block img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
}

.qr-block p {
  font-size: 13px;
  color: var(--muted);
}

/* ── Footer ── */
footer {
  padding: 32px 20px;
  text-align: center;
}

.footer-inner { max-width: var(--max); margin: 0 auto; }

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
  margin: 0 auto 16px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 6px 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

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

.footer-copy { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── Policy pages ── */
.policy-hero {
  background: linear-gradient(155deg, #0d2040 0%, #080e1c 65%);
  padding: 48px 20px 40px;
}

.policy-hero h1 {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 8px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.policy-hero .updated {
  font-size: 13px;
  color: var(--muted);
  max-width: var(--max);
  margin: 0 auto;
}

.policy-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.policy-body h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--teal);
  margin: 32px 0 10px;
}

.policy-body h2:first-child { margin-top: 0; }

.policy-body p,
.policy-body li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

.policy-body ul,
.policy-body ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

.policy-body li { margin-bottom: 5px; }
.policy-body strong { color: var(--text); font-weight: 600; }
.policy-body a { color: var(--teal); }

/* ── WhatsApp floating widget ── */
.wa-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  font-family: var(--font);
}

.wa-widget-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .15s, background .2s;
}

.wa-widget-toggle:hover { background: #1fbe59; transform: scale(1.05); }
.wa-widget-toggle svg { width: 28px; height: 28px; fill: #054a29; }

.wa-widget-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 290px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  overflow: hidden;
  animation: wa-pop .18s ease-out;
}

@keyframes wa-pop {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dk);
  padding: 14px 14px;
  position: relative;
}

.wa-widget-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.wa-widget-header strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.wa-widget-header span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.8);
  margin-top: 2px;
}

.wa-widget-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}

.wa-widget-close:hover { opacity: 1; }

.wa-widget-body {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.wa-widget-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--green);
  color: #054a29;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  margin: 0 14px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}

.wa-widget-cta:hover { background: #1fbe59; }

@media (max-width: 380px) {
  .wa-widget-panel { width: calc(100vw - 36px); right: -8px; }
}

/* ── Google reviews summary card (static, links out to Google) ── */
.gr-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: var(--max);
  margin: 0 auto 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 20px;
  text-decoration: none;
  text-align: center;
  transition: border-color .2s, transform .15s;
}

.gr-summary-card:hover { border-color: var(--teal); transform: translateY(-1px); }

.gr-google-logo { width: 28px; height: 28px; margin-bottom: 4px; }

.gr-summary-rating { font-size: 22px; font-weight: 800; color: var(--text); }
.gr-summary-count { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.gr-summary-cta { font-size: 14px; font-weight: 600; color: var(--teal); }

/* ── Utility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
