/* assets/css/style.css */
/* =========================================================
   ANDREI AUTO TRANS — Main Stylesheet (Optimized & Clean)
   ========================================================= */

/* ---------- Color Tokens ---------- */
:root {
  --page-bg: #fff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --blue: #1e3a8a;
  --blue-underline: #2370ff;
  --wa: #22c55e;
  --wa-2: #16a34a;
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; scroll-behavior: smooth; }
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

/* Utility spacing + wrappers */
.section { padding: clamp(1.6rem, 3vw, 3rem) 0; }
.section-tight { padding-top: 0; }
.section-narrow { max-width: 1000px; margin: 0 auto; padding: 3rem 1rem; }
.mt-2-5 { margin-top: 2.5rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.cta-center {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 3000;
  background: rgba(30,58,138,.95);
  color: #fff;
  font-size: .9rem;
  backdrop-filter: blur(4px) saturate(120%);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.topbar-inner {
  height: 34px;
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem;
}
.tb-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  opacity: 1;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.tb-item span { color: #fff; }
.tb-item:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 24px;
  z-index: 2500;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px) saturate(120%);
}
.header-inner {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-img {
  max-height: 80px;
  width: auto;
  height: auto;
}

.nav ul { list-style: none; display: flex; gap: 1rem; }
.nav a {
  padding: .6rem .9rem;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  line-height: 1.2;
}
.nav a:hover { color: var(--blue-underline); }
.nav a.active { font-weight: 600; }
.nav a.active::after {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: -10px;
  height: 3px; border-radius: 2px; background: var(--blue-underline);
}

/* --- Mobile Nav --- */
.nav-toggle {
  display: none;
  background: transparent; border: 0;
  width: 40px; height: 40px;
}
.nav-toggle span { display:block; height:2px; background:#111; margin:6px 0; width:100%; }

@media (max-width: 768px) {
  .logo-img { max-height: 58px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 6px 12px rgba(0,0,0,.1);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: all .3s ease;
    text-align: center;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav ul { flex-direction: column; padding: 1rem; gap: .75rem; }
  .nav a { display: block; font-size: 1rem; min-height: 40px; line-height: 40px; }
  .nav-toggle { display: block; z-index: 20; }
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero.hero--photo {
  position: relative;
  background: url("../img/hero-london.jpg") center/cover no-repeat;
  color: #fff;
}
.hero--photo .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35));
}
.hero--photo .hero-content {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: clamp(3rem, 5vw, 8rem) 1.5rem;
}
.hero--photo h1 {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.2;
}
.hero--photo h2 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
  margin-bottom: 1rem;
  line-height: 1.35;
  text-align: center;
}
.hero--photo .sub {
  font-size: clamp(14px, 2vw, 18px);
  color: #e5e7eb;
  margin-bottom: 2rem;
  max-width: 70ch;
  line-height: 1.6;
}

/* =========================================================
   Info Card
   ========================================================= */
.info-card {
  width: min(1080px, 96%);
  margin: -4rem auto 2rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,.15);
  position: relative; z-index: 10;
}
.info-card .bus {
  position: absolute; left: 28px; top: -45px; width: 180px;
}
.info-card .cols {
  display: grid; grid-template-columns: repeat(3,1fr);
  padding: 1.5rem 1rem 1.2rem 220px;
  border-bottom: 4px solid rgba(0,0,0,.1);
}
.info-card .col { text-align: center; }
.info-card .col:not(:last-child) { border-right: 1px solid rgba(0,0,0,.08); }
.info-card h3 { margin-bottom: .25rem; font-size: 1rem; font-weight:600; color:var(--ink); }
.info-card p { color: #374151; font-size: .9rem; }
.info-card .cta-row { display: flex; justify-content: center; padding: 1rem; }

@media (max-width: 900px) {
  .info-card { margin-top: -2rem; }
  .info-card .bus {
    position: static;
    margin: -30px auto 0;
    display:block;
  }
  .info-card .cols {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .info-card .col:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    margin-bottom: .75rem;
    padding-bottom: .75rem;
  }
  .info-card .col { text-align:center; }
  .info-card .cta-row .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================================================
   Maps & Sections (Leaflet)
   ========================================================= */

/* Main map container styles */
.map,
.map.wide,
#map-ro-real,
#map-uk-real,
#map-europe,
.leaflet-container {
  display: block !important;
  position: relative;
  width: 100%;
  min-height: 420px;
  height: clamp(380px, 50vw, 560px) !important;
  max-height: 700px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #e5e7eb;
  overflow: hidden;
  z-index: 5;
  margin: 1.5rem 0 2rem;
}

/* Leaflet internals */
.leaflet-container {
  flex: 1 1 auto;
  z-index: 10 !important;
  background: #e5e7eb;
}
.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-tile,
.leaflet-container img {
  max-width: none !important;
}

#map-ro-real,
#map-uk-real,
#map-europe {
  touch-action: none;
}

/* Responsive map sizing */
@media (max-width: 768px) {
  .map,
  .map.wide,
  #map-ro-real,
  #map-uk-real,
  #map-europe,
  .leaflet-container {
    min-height: 340px;
    height: 360px !important;
  }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.2;
  transition: all .2s ease;
  text-align: center;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--blue-underline);
  outline-offset: 2px;
}
.btn-large { font-size: .95rem; padding: .8rem 1.2rem; border-radius:8px; box-shadow:0 6px 16px rgba(0,0,0,.07); }
.btn-primary {
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--ink);
  font-weight:600;
  box-shadow:0 6px 16px rgba(0,0,0,.07);
}
.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background:#f8fafc; }
.btn-whatsapp {
  background: linear-gradient(135deg, var(--wa), var(--wa-2));
  border: none;
  color: #fff;
}
.btn-whatsapp:hover { filter:brightness(1.05); }
.btn-facebook {
  background: #1877f2;
  color: #fff;
  border-color: transparent;
}
.btn-facebook:hover { filter: brightness(1.05); }

/* CTA rows shared */
.cta-row {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:1rem;
}
@media (max-width: 600px) {
  .cta-row .btn {
    width:100%;
    max-width:320px;
  }
}

/* =========================================================
   Floating WhatsApp Button
   ========================================================= */
.floating-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3200;
}
.floating-wa a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wa), var(--wa-2));
  border: 1px solid rgba(255,255,255,.15);
}
.floating-wa svg { width: 28px; height: 28px; fill: #fff; }

/* =========================================================
   Gallery Slider
   ========================================================= */
.gallery-slider { text-align: center; background: #fff; }
.gallery-slider h2 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  font-weight:700;
  line-height:1.3;
}
.section-lead {
  max-width:70ch;
  margin:0 auto 1rem;
  line-height:1.6;
  color:var(--ink);
  font-size:1rem;
}
.slider {
  height: 220px; overflow: hidden; position: relative; width: 100%;
}
.slide-track {
  display: flex; width: calc(250px * 10);
  animation: scroll 35s linear infinite;
}
.slide {
  width: 250px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 10px;
}
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,.15);
  transition: transform .4s ease;
}
.slide img:hover { transform: scale(1.05); }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 5)); }
}

/* =========================================================
   City Lists / Route cards / Price Box
   ========================================================= */

.route-card {
  max-width:1180px;
  margin:0 auto 1rem;
}
.route-card.center h2 {
  font-size:1.5rem;
  line-height:1.3;
  font-weight:700;
  color:var(--ink);
  margin-bottom:1rem;
  text-align:center;
}
.route-card.center p {
  max-width:70ch;
  margin:0 auto 1rem;
  line-height:1.6;
  text-align:center;
  color:var(--ink);
  font-size:1rem;
}
.route-card .city-block h3 {
  font-size:1.05rem;
  font-weight:600;
  color:var(--ink);
  margin-bottom:.5rem;
}

/* grid of cities */
.city-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .35rem 1rem;
  grid-template-columns: repeat(4, minmax(0,1fr));
  text-align:left;
  margin:1rem auto 0;
}
.city-grid li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.5;
  margin-bottom: .4rem;
}
.city-grid li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* collapsed state */
.city-grid[data-collapsed="true"] {
  max-height:320px;
  overflow:hidden;
}
.city-actions {
  text-align:center;
  margin-top:.75rem;
}

/* Responsive columns */
@media (max-width: 1024px){
  .city-grid{
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 768px) {
  .city-grid {
    grid-template-columns: 1fr !important;
  }
  .city-grid li {
    display: list-item !important;
    line-height: 1.5;
    margin: 0 0 .4rem;
  }
}

.price-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  margin: 2rem auto;
  max-width: 760px;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
  text-align:left;
}
.price-box h3 {
  text-align: center;
  margin-bottom: 1.4rem;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 700;
  line-height:1.3;
}
.price-list {
  font-size:.95rem;
  line-height:1.55;
  color:var(--ink);
}
.price-item {
  margin-bottom:.5rem;
}

/* =========================================================
   Long text sections (detalii, about)
   ========================================================= */

.section-text-block h2 {
  font-size:1.5rem;
  line-height:1.3;
  font-weight:700;
  color:var(--ink);
  margin-bottom:1rem;
  text-align:left;
}
.section-text-block p {
  max-width:70ch;
  line-height:1.6;
  color:var(--ink);
  font-size:1rem;
  margin:0 0 1rem;
}

/* benefit / details lists */
.transport-details,
.benefits {
  list-style:none;
  padding-left:0;
  margin-top:1rem;
  font-size:1rem;
  line-height:1.5;
}
.transport-details li,
.benefits li {
  margin-bottom:.5rem;
  line-height:1.5;
}

/* =========================================================
   Contact Section
   ========================================================= */
.contact-inner {
  text-align:center;
  max-width:640px;
  margin:0 auto;
}
.contact-title {
  font-size:1.5rem;
  line-height:1.3;
  font-weight:700;
  color:var(--ink);
  margin-bottom:.5rem;
}
.contact-sub {
  font-size: .95rem;
  color: var(--ink);
  line-height:1.5;
  max-width:70ch;
  margin:0 auto 1rem;
}
.contact-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.75rem 1rem;
}
@media(max-width:600px){
  .contact-actions{
    flex-direction:column;
    align-items:center;
  }
  .contact-actions .btn{
    width:100%;
    max-width:340px;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.mini-footer {
  background: #050505;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: #fff;
  font-size: 0.9rem;
}
.mini-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.mini-footer__copy {
  color: #ccc;
  margin: 0;
}
.mini-footer__links {
  display: flex;
  gap: 1rem;
}
.mini-footer__links a {
  color: #3b82f6;
  font-weight: 500;
  text-decoration: none;
}
.mini-footer__links a:hover {
  text-decoration: underline;
}

/* Centered on mobile */
@media (max-width: 640px) {
  .mini-footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .mini-footer__links {
    justify-content: center;
  }
}

/* =========================================================
   Video Promo Section
   ========================================================= */
.video-promo .container {
  display: grid;
  justify-items: center;
  text-align:center;
}
.promo-video {
  display: block;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 16px auto 32px;
  background: #000;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  object-fit: cover;
}
@media (max-width: 768px) {
  .promo-video {
    max-width: 100%;
    border-radius: 12px;
    margin: 12px auto 20px;
  }
}

/* =========================================================
   Subpage-specific blocks (advantages / faq / testimonials)
   ========================================================= */
.adv-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));
  gap:1rem;
  margin-top:1rem;
}
.adv-grid div {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:1rem;
  box-shadow:0 4px 10px rgba(0,0,0,.03);
  font-size:.95rem;
  line-height:1.5;
}
.adv-grid strong {
  display:block;
  font-weight:600;
  color:var(--ink);
  margin-bottom:.5rem;
}

.faq h2,
.advantages h2,
.testimonials h2,
#rute h2,
.about h2,
.mt-3 h2 {
  font-size:1.5rem;
  line-height:1.3;
  font-weight:700;
  color:var(--ink);
  margin-bottom:1rem;
  text-align:left;
}

.faq p,
#rute p,
.advantages p,
.about p {
  max-width:70ch;
  line-height:1.6;
  color:var(--ink);
  font-size:1rem;
  margin:0 0 1rem;
}

.faq details {
  border:1px solid var(--line);
  border-radius:8px;
  padding:.75rem 1rem;
  box-shadow:0 2px 4px rgba(0,0,0,.03);
  background:#fff;
}
.faq details+details { margin-top:.75rem; }
.faq summary {
  cursor:pointer;
  font-weight:600;
  color:var(--ink);
  outline:none;
}
.faq p {
  margin-top:.5rem;
  font-size:.95rem;
  line-height:1.5;
}

.cta-block {
  text-align:center;
  padding-top:2rem;
  padding-bottom:2rem;
}
.cta-block h2 {
  font-size:1.4rem;
  line-height:1.3;
  font-weight:700;
  color:var(--ink);
  margin-bottom:.5rem;
  text-align:center;
}
.cta-block p {
  max-width:70ch;
  margin:0 auto 1rem;
  font-size:1rem;
  line-height:1.6;
  color:var(--ink);
}

.testimonial-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));
  gap:1rem;
  margin-top:1rem;
}
.testimonial-grid blockquote {
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:12px;
  padding:1rem;
  font-size:.95rem;
  line-height:1.5;
  box-shadow:0 4px 10px rgba(0,0,0,.03);
}
.testimonial-grid cite {
  display:block;
  margin-top:.5rem;
  font-size:.8rem;
  color:var(--muted);
  font-style:normal;
}

/* =========================================================
   Subpage header
   ========================================================= */
.subpage-header {
  background:#fff;
  border-bottom:1px solid var(--line);
}
.subpage-header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 0;
}
.back-home {
  color:var(--blue);
  font-weight:600;
  text-decoration:none;
  font-size:.95rem;
}
.back-home:hover { text-decoration:underline; }
.logo-link img {
  max-height:50px;
  width:auto;
  height:auto;
}

/* city-block wrapper on subpage */
.city-block {
  margin-top:1.5rem;
}

/* eof */
