/* Albania 4x4 Car Rental — earth tones / mountain-outdoor */

:root {
  --c-primary:    #2d4a3a;
  --c-primary-2:  #1f3328;
  --c-sand:       #c9a875;
  --c-sand-2:     #a8895c;
  --c-accent:     #d97706;
  --c-accent-2:   #b45309;
  --c-bg:         #faf6f0;
  --c-bg-2:       #f0e9dc;
  --c-card:       #ffffff;
  --c-text:       #1a1a1a;
  --c-text-muted: #5b5b5b;
  --c-border:     #d6cbb6;
  --c-success:    #166534;
  --r:            14px;
  --r-sm:         8px;
  --shadow:       0 6px 24px rgba(45, 74, 58, 0.10);
  --shadow-sm:    0 2px 8px rgba(45, 74, 58, 0.08);
  --max:          1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;     /* fallback for iOS Safari < 16 */
  overflow-x: clip;       /* strict no-scroll for iOS 16+ / modern browsers */
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
  touch-action: pan-y;
}

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

a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--c-primary); margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.5px; }
h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 1.6em; }
h3 { font-size: clamp(18px, 2vw, 22px); margin-top: 1.4em; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

.wrapper { max-width: var(--max); margin: 0 auto; padding: 32px 24px 64px; }

/* HEADER */
.site-header {
  background: #fff;
  color: var(--c-text);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--c-border);
}
.h-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.h-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-primary);
  font-weight: 800;
  font-size: 17px;
}
.h-logo:hover { color: var(--c-accent); }
.h-logo-mark {
  background: var(--c-accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: .5px;
}
.h-nav { display: flex; gap: 24px; }
.h-nav a { color: var(--c-text); font-weight: 500; font-size: 15px; padding: 6px 0; }
.h-nav a:hover { color: var(--c-accent); }
.h-burger {
  display: none;
  width: 40px; height: 36px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.h-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--c-text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* FOOTER */
.site-footer {
  background: #fff;
  color: var(--c-text-muted);
  margin-top: 48px;
  border-top: 1px solid var(--c-border);
}
.f-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 32px;
}
.f-brand { font-weight: 800; font-size: 18px; color: var(--c-primary); margin-bottom: 8px; }
.f-tag { font-size: 14px; color: var(--c-text-muted); margin: 0; line-height: 1.55; }
.f-h { font-weight: 700; color: var(--c-primary); margin-bottom: 10px; font-size: 15px; }
.f-col a { display: block; color: var(--c-text); font-size: 14px; padding: 4px 0; }
.f-col a:hover { color: var(--c-accent); }
.f-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--c-text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* HERO (two-column - used on /tirana/ and other pages) */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 32px 0 16px;
  align-items: center;
}
.hero-text h1 { margin-top: 0; }
.hero-lead { font-size: 18px; color: var(--c-text-muted); margin-bottom: 24px; }
.hero-img img {
  width: 100%;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* HERO-LR (Localrent-style hero - lives OUTSIDE .wrapper, full document width) */
.hero-lr {
  position: relative;
  width: 100%;
  padding: 44px 24px 76px;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-primary);
}
.hero-lr-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-lr-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 51, 40, 0.40) 0%, rgba(31, 51, 40, 0.72) 55%, rgba(31, 51, 40, 0.92) 100%);
  z-index: -1;
}
.hero-lr-content {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.hero-lr h1 {
  color: #fff;
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -0.5px;
  margin: 0 auto 16px;
  max-width: 820px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}
.hero-lr-lead {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.55;
  color: #f0e9dc;
  margin: 0 auto 22px;
  max-width: 660px;
}
.hero-lr-trust {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  flex-wrap: wrap;
}
.hero-lr-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.30);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
}

/* Booking widget shell - centred with horizontal padding so widget never touches viewport edges */
.booking-widget-float-shell {
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}
.booking-widget-float {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: -56px auto 0;
  background: #fff;
  border-radius: var(--r);
  padding: 22px 22px 14px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--c-border);
  box-sizing: border-box;
}
.booking-widget-float h2 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--c-primary);
}
.booking-widget-float > p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--c-text-muted);
}

@media (max-width: 760px) {
  .hero-lr { padding: 32px 16px 64px; }
  .hero-lr h1 { font-size: clamp(24px, 7vw, 32px); }
  .hero-lr-lead { font-size: 15px; margin-bottom: 18px; }
  .hero-lr-pill { font-size: 12px; padding: 6px 12px; }
  .booking-widget-float-shell { padding: 0 8px; }
  .booking-widget-float {
    margin: -44px auto 0;
    padding: 14px 14px 8px;
    overflow-x: hidden;
  }
  .booking-widget-float h2 { font-size: 17px; }
}

/* CTA */
.btn {
  display: inline-block;
  background: var(--c-accent);
  color: #fff !important;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--c-accent-2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--c-primary) !important;
  border: 2px solid var(--c-primary);
}
.btn-ghost:hover { background: var(--c-primary); color: #fff !important; }

/* SECTIONS */
.section { margin: 48px 0; }
.section-bg {
  background: var(--c-bg-2);
  border-radius: var(--r);
  padding: 32px;
  margin: 48px 0;
}
.lead { font-size: 18px; color: var(--c-text-muted); }

/* BOOKING WIDGET HOST */
.booking-widget {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin: 24px 0 40px;
}

/* GRID / CARDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }

/* QUICK FACTS */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.fact {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 16px;
  text-align: center;
}
.fact-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
}
.fact-l { font-size: 13px; color: var(--c-text-muted); margin-top: 4px; }

/* PRICING TABLE */
.pricing {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  background: var(--c-card);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pricing th, .pricing td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.pricing th { background: var(--c-primary); color: #fff; font-weight: 600; }
.pricing tr:last-child td { border-bottom: none; }
.pricing tr:nth-child(even) td { background: var(--c-bg); }

/* CAR TYPES */
.cars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.car-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-sm);
  padding: 20px;
}
.car-card h3 { margin: 0 0 8px; font-size: 18px; }
.car-spec { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--c-text-muted); }

/* FAQ */
.faq-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--c-accent);
  transition: transform .15s;
}
.faq-open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s, padding .25s;
}
.faq-open .faq-a {
  max-height: 800px;
  padding: 0 20px 18px;
}

/* TESTIMONIALS */
.testimonial {
  background: var(--c-card);
  border-left: 4px solid var(--c-sand);
  padding: 20px 24px;
  border-radius: var(--r-sm);
  margin: 16px 0;
}
.testimonial-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--c-text-muted);
  margin-top: 8px;
}

/* BREADCRUMBS */
.breadcrumbs {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--c-primary); }
.breadcrumbs span { margin: 0 8px; color: var(--c-border); }

/* LLM-HELP page */
.llm-page { font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.llm-page pre {
  background: #1a1a1a;
  color: #d6cbb6;
  padding: 20px;
  border-radius: var(--r-sm);
  overflow-x: auto;
  line-height: 1.5;
}
.llm-page h2 { font-family: 'Manrope', sans-serif; }

/* MOBILE */
@media (max-width: 1100px) {
  .cars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cars { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .f-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* tables: prevent overflow; force columns to share width and wrap */
  .pricing {
    table-layout: fixed;
    width: 100%;
    font-size: 13px;
  }
  .pricing th, .pricing td {
    padding: 8px 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  /* generic safety against any wide block */
  img, table, pre, code { max-width: 100%; }

  .h-burger { display: flex; }
  .h-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--c-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s;
  }
  .h-nav-open { max-height: 400px; }
  .h-nav a { padding: 12px 24px; border-bottom: 1px solid var(--c-border); }
  .h-nav a:last-child { border-bottom: none; }
  .pricing { font-size: 14px; }
  .pricing th, .pricing td { padding: 10px 12px; }
  .f-inner { grid-template-columns: 1fr; padding: 32px 24px 16px; }
  .section-bg { padding: 24px 20px; }
}
