/* style.css — speed-rent-a-car.gr | Greek Islands Theme */

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

:root {
  --primary:   #1A6B8A;   /* Aegean blue */
  --accent:    #E8A838;   /* Mediterranean gold */
  --dark:      #1C2B3A;
  --light:     #EFF7FB;
  --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;
  --tr:        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(--tr); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.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 10px 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: 19px; 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: 13px; font-weight: 500; padding: 6px 9px; border-radius: 4px; white-space: nowrap; transition: all var(--tr); }
.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 16px !important; margin-left: 4px; }
.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; }

/* ── HERO ── */
.hero { position: relative; background-size: cover; background-position: center; min-height: 540px; padding: 24px 0 260px; display: block; overflow: hidden; }
.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: 0; max-width: 720px; }
.hero-content h1 { font-size: clamp(26px, 4vw, 50px); color: var(--white); margin-bottom: 16px; }
.hero-content .hero-sub { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 26px; font-family: 'Open Sans', sans-serif; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 0; }
.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); }

/* ── WIDGET (DiscoverCars Whitelabel, overlay on hero) ── */
.booking-widget-frame { margin-top: -240px; min-height: 268px; position: relative; z-index: 5; background: transparent; }
.booking-widget-frame .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
#booking-widget { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.25); }

/* ── SECTIONS ── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }
.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: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 15px; cursor: pointer; border: 2px solid transparent; transition: all var(--tr); text-align: center; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.btn-primary:hover { background: #d4952e; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,168,56,0.35); color: var(--dark); }
.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: #155a74; color: var(--white); }

/* ── CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 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(--tr), box-shadow var(--tr); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 160px; object-fit: cover; background: #c5dce8; }
.card-body { padding: 18px 20px; }
.card-body h3 { font-size: 17px; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.card-link { font-size: 14px; font-weight: 600; color: var(--primary); }

/* ── USP ── */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp-item { text-align: center; padding: 28px 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.usp-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.usp-item h3 { font-size: 16px; 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%, #0f4d66 100%); color: var(--white); border-radius: var(--radius); padding: 38px 42px; margin: 36px 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; }

/* ── BREADCRUMBS ── */
.breadcrumbs { background: #e8f3f8; padding: 10px 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 #dce8ef; }
.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; }
.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: 12px 16px; text-align: left; font-weight: 600; font-family: 'Open Sans', sans-serif; }
.info-table td { padding: 11px 16px; border-bottom: 1px solid #dce8ef; }
.info-table tr:nth-child(even) td { background: #f2f9fc; }

/* ── REVIEWS ── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border-top: 3px solid var(--accent); }
.review-stars { color: var(--accent); font-size: 18px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-size: 15px; color: var(--muted); margin-bottom: 14px; 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: 50px; height: 50px; 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 14px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ── TAG LINKS ── */
.tag-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag-links a { background: var(--light); color: var(--primary); padding: 7px 15px; border-radius: 20px; font-size: 14px; font-weight: 500; border: 1px solid #c5dde8; transition: all var(--tr); }
.tag-links a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── INFO BOX ── */
.info-box { background: #e8f4fb; border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; font-size: 15px; }
.info-box.warning { background: #fff8e6; border-color: var(--accent); }

/* ── 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 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 20px; 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: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color var(--tr); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { padding: 22px 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: 700px; margin: 0 auto 14px; line-height: 1.65; }
.footer-disclaimer a { color: rgba(255,255,255,0.55); }
.footer-legal { display: flex; justify-content: center; gap: 20px; 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) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--wide { grid-column: 1 / -1; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { 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: 380px; padding: 16px 0 220px; }
  .hero-content { padding: 0; }
  .hero-badges { flex-wrap: nowrap; gap: 4px; margin-bottom: 0; }
  .hero-badges .badge { white-space: nowrap; flex-shrink: 1; font-size: 10px; padding: 3px 7px; line-height: 1.3; }
  .booking-widget-frame { margin-top: -200px; min-height: 0; }
  .booking-widget-frame .container { padding: 0 12px; }
  #booking-widget { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
  html, body { overflow-x: hidden; }
  .steps-grid, .cards-grid-3 { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .no-deposit-box { padding: 24px 20px; }
  .section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── LANGUAGE SWITCH ── */
.lang-switch { display: flex; align-items: center; margin-left: 8px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.2); }
.lang-switch a { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85); padding: 5px 10px; border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; letter-spacing: 0.5px; }
.lang-switch a:hover { color: var(--dark); background: var(--accent); border-color: var(--accent); }
.lang-switch a .flag { width: 19px; height: 13px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,0.35); }
.lang-switch a:hover .flag { box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
@media (max-width: 980px) { .lang-switch { margin-left: 0; padding-left: 0; border-left: none; justify-content: center; padding-top: 8px; } }

/* footer payment icons */
.footer-pay { margin: 6px 0 14px; text-align: center; }
.footer-pay__label { display: block; font-size: 13px; opacity: .75; margin-bottom: 8px; }
.pay-icons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pay-icon { width: 50px; height: 32px; background: #fff; border-radius: 5px; display: flex; align-items: center; justify-content: center; padding: 3px; transition: transform .2s; }
.pay-icon:hover { transform: translateY(-2px); }
.pay-icon svg { max-width: 100%; max-height: 100%; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.table-wrap .info-table { min-width: 520px; }

/* team, reviews form, careers */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; max-width: 1000px; margin: 0 auto; }
.team-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 30px 22px; text-align: center; }
.team-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; box-shadow: 0 4px 14px rgba(26,107,138,.18); }
.team-card h3 { font-size: 20px; margin-bottom: 4px; }
.team-role { color: var(--primary); font-weight: 600; margin-bottom: 5px; }
.team-loc { color: #6B7C8D; font-size: 14px; margin-bottom: 9px; }
.team-track { color: #6B7C8D; font-size: 13px; font-style: italic; margin-bottom: 12px; }
.team-mail { font-size: 13px; margin-bottom: 10px; word-break: break-all; }
.team-mail a { color: var(--primary); }
.team-bio { font-size: 14.5px; line-height: 1.65; text-align: left; }
.job-card { background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid var(--accent); border-radius: 10px; padding: 26px 24px; margin: 0 auto 20px; max-width: 860px; }
.job-card h3 { font-size: 20px; margin-bottom: 4px; }
.job-meta { color: var(--primary); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.job-card ul { margin: 10px 0 14px 18px; font-size: 14.5px; line-height: 1.7; }
.job-apply { font-size: 14.5px; color: #6B7C8D; }
.review-form-wrap { max-width: 640px; margin: 0 auto; }
.review-form label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
.review-form input[type=text], .review-form input[type=email], .review-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; font-size: 15px; }
.review-form textarea { min-height: 130px; resize: vertical; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-pick input { display: none; }
.star-pick label { font-size: 30px; color: #cbd5e1; cursor: pointer; margin: 0; transition: color .15s; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #E8A838; }
.review-form .btn { margin-top: 20px; }
.form-note { font-size: 12.5px; color: #6B7C8D; margin-top: 10px; }
.form-success { background: #e8f7ee; border: 1px solid #b5e3c6; color: #1e7d3e; border-radius: 6px; padding: 14px 18px; margin-bottom: 22px; font-size: 15px; }
.hp-field { position: absolute; left: -9999px; }
.reviews-cta { text-align: center; margin-top: 26px; }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }

/* footer contacts + contact page map */
.footer-contact { text-align: center; margin: 4px 0 12px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer-contact__item { opacity: .85; }
.footer-contact__item a { color: inherit; text-decoration: none; }
.footer-contact__item a:hover { text-decoration: underline; }
.map-embed { border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; line-height: 0; margin-bottom: 30px; }
.map-embed iframe { display: block; }

/* static/doc pages: restore spacing for bare headings and text (theme resets margins globally) */
.section .container.doc > h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 36px 0 12px; }
.section .container.doc > h3 { font-size: 19px; margin: 26px 0 10px; }
.section .container.doc > p { margin-bottom: 15px; line-height: 1.75; }
.section .container.doc > ul, .section .container.doc > ol { margin: 0 0 18px 22px; line-height: 1.8; }
.section .container.doc > ul li, .section .container.doc > ol li { margin-bottom: 7px; }
.section .container.doc > .table-wrap, .section .container.doc > .info-table { margin: 20px 0 26px; }
.section .container.doc > .pay-icons { margin: 6px 0 20px; justify-content: flex-start; }
.section .container.doc > .section-header + p { margin-top: 4px; }
.section .container.doc > h2:first-child, .section .container.doc > h3:first-child { margin-top: 0; }

/* Trustpilot badge + CTA */
.tp-badge { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; text-decoration: none; }
.tp-badge__stars { display: inline-flex; gap: 2px; line-height: 0; }
.tp-badge__brand { font-weight: 700; font-size: 14px; color: #fff; }
.tp-badge__text { font-size: 13px; opacity: .8; }
.tp-badge:hover .tp-badge__text { opacity: 1; text-decoration: underline; }
.tp-cta { max-width: 720px; margin: 26px auto 0; padding: 20px 22px; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #00b67a; border-radius: 10px; text-align: center; }
.tp-cta p { font-size: 15px; margin-bottom: 14px; }

/* Trustpilot chip in the hero badge row */
.badge-tp { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,182,122,0.20); border-color: rgba(0,182,122,0.60); color: var(--white); text-decoration: none; }
.badge-tp:hover { background: rgba(0,182,122,0.34); border-color: rgba(0,182,122,0.85); }
.badge-tp svg { display: block; flex: none; }
