/* ============================================
   Younas Recovery Transport — Design tokens
   Color:  Asphalt #14171C, Steel #232833, Off-white #EEEFF1,
           Amber #F2A93B (hazard), Alert Red #D6392E
   Type:   Oswald (display / highway signage), Inter (body),
           JetBrains Mono (numbers, plates, dispatch data)
   Motif:  Diagonal hazard-chevron stripe, torn "dispatch ticket" card
   ============================================ */

:root {
  --asphalt: #14171c;
  --steel: #1f242e;
  --steel-light: #2b303d;
  --off-white: #eef0f2;
  --paper: #f7f7f5;
  --amber: #f2a93b;
  --red: #d6392e;
  --muted: #8b93a1;
  --line: rgba(238, 240, 242, 0.12);

  --font-display: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 4px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--asphalt);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.4em;
}
.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Signature hazard motif ---------- */
.hazard-strip {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 18px,
    var(--asphalt) 18px 36px
  );
}
.hazard-strip.thin { height: 6px; }
.hazard-divider {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 16px,
    var(--asphalt) 16px 32px
  );
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 28, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--off-white);
  margin-right: auto;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--amber);
  color: var(--asphalt);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius);
}
.brand-mark.small { width: 30px; height: 30px; font-size: 0.85rem; margin-right: 8px; vertical-align: middle;}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
  text-transform: uppercase;
}
.brand-name small { color: var(--muted); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500;}

.main-nav { display: flex; gap: 22px; }
.main-nav a {
  color: var(--off-white);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.main-nav a:hover { opacity: 1; color: var(--amber); }
.admin-link { color: var(--muted) !important; font-family: var(--font-mono); font-size: 0.78rem !important; }

.call-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--asphalt);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.call-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(214,57,46,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(214,57,46,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(214,57,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(214,57,46,0); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--off-white); }

/* ---------- Hero ---------- */
.hero {
  background: var(--asphalt);
  color: var(--off-white);
  padding: 64px 0 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--off-white);
}
.hero h1 .accent { color: var(--amber); }
.hero-sub {
  color: #c7ccd4;
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 18px 0 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); font-family: var(--font-mono); }

.hero-media { position: relative; }
.hero-frame {
  border: 3px solid var(--amber);
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.plate-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--red);
  color: var(--off-white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  transform: rotate(-1.2deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.plate-label { display: block; font-size: 0.62rem; letter-spacing: 0.12em; opacity: 0.85; }
.plate-num { display: block; font-weight: 700; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--asphalt); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(242,169,59,0.35); }
.btn-whatsapp { background: #25d366; color: #06331c; }
.btn-ghost { background: transparent; color: var(--off-white); border: 1px solid var(--line); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-dark { background: var(--steel); color: var(--off-white); }
.section-dark .eyebrow { color: var(--amber); }
.section-dark h2 { color: var(--off-white); }
.section-lead { max-width: 60ch; color: var(--muted); margin-bottom: 36px; }
.section-dark .section-lead { color: #aeb4c0; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.service-card {
  background: var(--off-white);
  border: 1px solid #e2e4e8;
  border-radius: var(--radius);
  padding: 26px 22px;
}
.service-icon { font-size: 1.6rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.service-card p { color: #555b66; font-size: 0.92rem; margin: 0; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  color: var(--amber);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: #aeb4c0; font-size: 0.9rem; margin: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ddd;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 0.78rem;
  padding: 18px 10px 8px;
}
.empty-note { color: var(--muted); font-family: var(--font-mono); font-size: 0.9rem; }

/* Reviews */
.reviews-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-top: 30px;
  align-items: start;
}
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-ticket {
  background: var(--paper);
  color: var(--asphalt);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  border-left: 4px solid var(--amber);
}
.review-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.review-name { font-weight: 700; font-family: var(--font-display); text-transform: uppercase; font-size: 0.92rem; }
.review-date { font-family: var(--font-mono); font-size: 0.72rem; color: #8b8f97; }
.review-stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 8px; }
.review-comment { font-size: 0.92rem; color: #3d4148; margin: 0; }

.review-form-card {
  background: var(--asphalt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.review-form-card h3 { color: var(--off-white); font-size: 1rem; margin-bottom: 16px; }
form label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.section-dark form label,
.review-form-card label { color: #aeb4c0; }
input, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: var(--radius);
  border: 1px solid #d7d9dd;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: #fff;
  color: var(--asphalt);
}
.review-form-card input,
.review-form-card textarea,
.admin-box input {
  background: var(--steel-light);
  border: 1px solid var(--line);
  color: var(--off-white);
}
textarea { resize: vertical; }

.star-input { display: flex; gap: 4px; margin-top: 6px; }
.star-input button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #565c68;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.star-input button.active { color: var(--amber); }

.form-msg { font-size: 0.82rem; margin-top: 10px; min-height: 1em; }
.form-msg.ok { color: #6fcf97; }
.form-msg.err { color: #ff8a80; }
.form-hint { font-size: 0.78rem; color: #8b93a1; margin-top: 8px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.contact-card {
  background: var(--off-white);
  border: 1px solid #e2e4e8;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  transition: border-color 0.15s;
}
.contact-card:not(.static):hover { border-color: var(--amber); }
.contact-card strong { font-family: var(--font-display); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.03em; }

.contact-form {
  background: var(--off-white);
  border: 1px solid #e2e4e8;
  border-radius: var(--radius);
  padding: 28px;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Admin */
.admin-section { border-top: 4px solid var(--red); }
.admin-box {
  background: var(--steel-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 440px;
  margin-top: 20px;
}
.admin-status { color: #6fcf97; font-family: var(--font-mono); font-size: 0.85rem; margin: 0 0 14px; }
.admin-actions { display: flex; gap: 10px; margin-top: 6px; }

/* Footer */
.site-footer { background: var(--asphalt); color: var(--off-white); padding-top: 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner p { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.footer-contact a { color: var(--amber); font-weight: 700; }
.copyright { text-align: center; color: var(--muted); font-size: 0.78rem; padding: 16px 0; margin: 0; }

/* ---------- Floating buttons ---------- */
.float-btn {
  position: fixed;
  right: 20px;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  z-index: 60;
}
.float-whatsapp { bottom: 88px; background: #25d366; color: #06331c; }
.float-call { bottom: 20px; background: var(--amber); color: var(--asphalt); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .call-pill span.dot { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .service-grid, .steps { grid-template-columns: 1fr; }
  .call-pill { font-size: 0; padding: 10px; }
  .call-pill::after { content: "Call"; font-size: 0.8rem; margin-left: 2px; }
}
