/* ================================================
   style.css — Malta Car Rental Site
   All site styles in one file
   ================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:  #1A7ABF;   /* Mediterranean blue */
  --accent:   #E8A838;   /* Warm gold */
  --dark:     #1C2B3A;
  --light:    #F0F6FB;
  --cream:    #FAFAF7;
  --text:     #2C3E50;
  --muted:    #6B7C8D;
  --white:    #FFFFFF;
  --radius:   8px;
  --shadow:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:0 8px 32px rgba(0,0,0,0.12);
  --max-w:    1200px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  color: var(--dark);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* ── HEADER ── */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--white); }

.site-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
}

.site-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all var(--transition);
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  margin-left: 6px;
}

.nav-cta:hover { background: #d4952e !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 58, 0.62);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 70px 0;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  color: var(--white);
  margin-bottom: 16px;
}

.hero-content .hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  font-family: 'Open Sans', sans-serif;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.badge-accent {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

/* ── BOOKING WIDGET ── */
.booking-widget {
  background: var(--light);
  padding: 28px 0;
  border-bottom: 3px solid var(--accent);
}

/* ── SECTIONS ── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }
.section-cream { background: var(--cream); }

.section-header { margin-bottom: 40px; }
.section-header.center { text-align: center; }

.section-title { font-size: clamp(22px, 3vw, 34px); margin-bottom: 10px; }
.section-sub   { color: var(--muted); font-size: 17px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.btn-primary:hover { background: #d4952e; color: var(--dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,168,56,0.35); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }

.btn-blue { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-blue:hover { background: #1568a8; color: var(--white); }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #dde4ea;
}

.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body p  { font-size: 14px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.card-meta    { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ── USP BLOCK ── */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.usp-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.usp-icon { font-size: 44px; margin-bottom: 14px; display: block; }
.usp-item h3 { font-size: 17px; margin-bottom: 8px; }
.usp-item p  { font-size: 14px; color: var(--muted); }

/* ── NO DEPOSIT BOX ── */
.no-deposit-box {
  background: linear-gradient(135deg, var(--primary) 0%, #0f5a8a 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 44px;
  margin: 40px 0;
}

.no-deposit-box h2 { color: var(--white); margin-bottom: 12px; }
.no-deposit-box p  { color: rgba(255,255,255,0.88); font-size: 16px; margin-bottom: 10px; }
.no-deposit-box .accent-text { color: var(--accent); font-weight: 700; }
.no-deposit-box .btn { margin-top: 20px; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  background: #eef3f7;
  padding: 11px 0;
  font-size: 13px;
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); margin-right: 6px; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs li:last-child span { color: var(--muted); }

/* ── FAQ ── */
.faq-list { max-width: 820px; }

.faq-item {
  border-bottom: 1px solid #e0e8ef;
  padding: 0;
}

.faq-question {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: var(--dark);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after { content: "−"; }

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.faq-item.open .faq-answer { display: block; }

/* ── TABLES ── */
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info-table th { background: var(--primary); color: var(--white); padding: 13px 16px; text-align: left; font-weight: 600; font-family: 'Open Sans', sans-serif; }
.info-table td { padding: 12px 16px; border-bottom: 1px solid #e0e8ef; }
.info-table tr:nth-child(even) td { background: #f5f9fc; }

/* ── REVIEWS ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  border-top: 3px solid var(--accent);
}

.review-stars  { color: var(--accent); font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.review-text   { font-size: 15px; color: var(--muted); margin-bottom: 16px; font-style: italic; line-height: 1.7; }
.review-author { font-weight: 700; font-size: 14px; color: var(--dark); }
.review-meta   { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p   { font-size: 15px; color: var(--muted); }

/* ── INTERNAL LINKS ── */
.tag-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.tag-links a {
  background: var(--light);
  color: var(--primary);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #d0e4f0;
  transition: all var(--transition);
}

.tag-links a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── ALERT / INFO BOX ── */
.info-box {
  background: #e8f4fb;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 15px;
}

.info-box.warning { background: #fff8e6; border-color: var(--accent); }
.info-box strong  { color: var(--dark); }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.72);
  padding: 60px 0 0;
  margin-top: 80px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-logo span { color: var(--accent); }
.footer-about { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.55); }

.footer-col h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }

.footer-bottom { padding: 24px 0; text-align: center; }
.footer-copy   { font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 10px; }

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.65;
}

.footer-disclaimer a { color: rgba(255,255,255,0.55); }

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-legal a { color: rgba(255,255,255,0.45); font-size: 12px; }
.footer-legal a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .usp-grid     { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--dark);
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 999;
  }
  .site-nav.open   { display: block; }
  .site-nav ul     { flex-direction: column; gap: 4px; }
  .site-nav a      { display: block; padding: 11px 14px; }
  .mobile-toggle   { display: flex; }
  .hero            { min-height: 340px; }
  .hero-content    { padding: 48px 0; }
  .steps-grid      { grid-template-columns: 1fr; }
  .cards-grid-3    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col--wide{ grid-column: 1 / -1; }
  .no-deposit-box  { padding: 28px 22px; }
  .section         { padding: 44px 0; }
  .usp-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .cards-grid      { grid-template-columns: 1fr; }
  .reviews-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .usp-grid        { grid-template-columns: repeat(2, 1fr); }
  .steps-grid      { grid-template-columns: 1fr; }
}
