/* ============================================
   NOMĀBUSU.LV - WordPress Theme CSS
   Colors: Dark navy header, yellow accent (#f5c518), white body
============================================ */

:root {
  --yellow: #f5c518;
  --yellow-dark: #d4a800;
  --yellow-hover: #ffd740;
  --dark: #1a1e2e;
  --dark-mid: #232738;
  --dark-nav: #1c2030;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --grey: #6c757d;
  --grey-light: #e9ecef;
  --text: #2d2d2d;
  --text-muted: #6b7280;
  --border: #e0e0e0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; color: var(--text); background: #fff; font-size: 15px; line-height: 1.6; }
a { color: var(--yellow-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--yellow); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title { font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 40px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; }
.btn-yellow { background: var(--yellow); color: #1a1a1a; }
.btn-yellow:hover { background: var(--yellow-hover); color: #1a1a1a; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(245,197,24,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-mid); color: var(--white); }

/* ============================================
   HEADER / NAV
============================================ */
#site-header {
  background: var(--dark-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--yellow); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--white); border-bottom-color: var(--yellow); }
.header-phone { color: var(--yellow); font-weight: 700; font-size: 0.95rem; }
.header-phone:hover { color: var(--yellow-hover); }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* ============================================
   HERO SECTION
============================================ */
#hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(245,197,24,0.05)"/><circle cx="10" cy="80" r="30" fill="rgba(245,197,24,0.03)"/></svg>');
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-content h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero-content h1 span { color: var(--yellow); }
.hero-content p { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.hero-badge svg { color: var(--yellow); flex-shrink: 0; }
.hero-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: 320px; object-fit: cover; }
.hero-image-placeholder { width: 100%; height: 320px; background: linear-gradient(135deg, #2a3050, #1a1e2e); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 5rem; }

/* ============================================
   WHY CHOOSE US
============================================ */
#why-us { background: var(--light-bg); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: white; border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon { font-size: 2.2rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.why-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   FLEET / BUSES
============================================ */
#fleet { background: white; }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.bus-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); background: white; }
.bus-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.bus-card-image { position: relative; height: 220px; background: var(--light-bg); overflow: hidden; }
.bus-card-image img { width: 100%; height: 100%; object-fit: cover; }
.bus-card-image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e8ecf0, #d0d8e0); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.bus-badge { position: absolute; top: 12px; left: 12px; background: var(--yellow); color: #1a1a1a; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.bus-seats-badge { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.7); color: white; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.bus-card-body { padding: 20px; }
.bus-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.bus-price { font-size: 1.5rem; font-weight: 800; color: var(--yellow-dark); margin-bottom: 4px; }
.bus-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.bus-price-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.bus-features { margin-bottom: 16px; }
.bus-features li { font-size: 0.85rem; color: var(--text-muted); padding: 3px 0; display: flex; align-items: center; gap: 6px; }
.bus-features li::before { content: '✓'; color: var(--yellow-dark); font-weight: 700; }
.bus-card-footer { padding: 0 20px 20px; }
.bus-card-footer .btn { width: 100%; justify-content: center; }

/* ============================================
   POPULAR ROUTES
============================================ */
#routes { background: var(--light-bg); }
.routes-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.route-tag { display: flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--border); border-radius: 50px; padding: 10px 20px; font-size: 0.875rem; font-weight: 500; color: var(--text); cursor: pointer; transition: var(--transition); }
.route-tag:hover, .route-tag.active { background: var(--yellow); border-color: var(--yellow); color: #1a1a1a; }
.route-tag svg { width: 16px; height: 16px; }

/* ============================================
   PRICE CALCULATOR
============================================ */
#calculator { background: white; }
.calc-wrapper { max-width: 640px; margin: 0 auto; background: var(--light-bg); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.calc-field select, .calc-field input { padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; background: white; color: var(--text); width: 100%; transition: var(--transition); }
.calc-field select:focus, .calc-field input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,197,24,0.15); }
.calc-result { background: var(--dark); color: white; border-radius: var(--radius); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; margin: 20px 0; }
.calc-result-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.calc-result-price { font-size: 1.8rem; font-weight: 800; color: var(--yellow); }
.calc-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 15px; }

/* ============================================
   HOW IT WORKS
============================================ */
#how-it-works { background: var(--dark); color: white; }
#how-it-works .section-title { color: white; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 30px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--yellow), var(--yellow-dark)); opacity: 0.4; }
.step { text-align: center; position: relative; }
.step-number { width: 60px; height: 60px; background: var(--yellow); color: #1a1a1a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; margin: 0 auto 20px; position: relative; z-index: 1; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: white; }
.step p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ============================================
   BOOKING FORM
============================================ */
#booking { background: var(--light-bg); }
.booking-wrapper { max-width: 760px; margin: 0 auto; background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; background: white; color: var(--text); width: 100%; transition: var(--transition);
  font-family: inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}
.form-field textarea { height: 100px; resize: vertical; }
.form-extras { display: flex; gap: 20px; flex-wrap: wrap; margin: 8px 0; }
.form-extra-check { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; cursor: pointer; }
.form-extra-check input[type=checkbox] { accent-color: var(--yellow); width: 16px; height: 16px; }
.form-submit { margin-top: 10px; }
.form-submit .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 15px; }
.form-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }
.gdpr-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.gdpr-note a { color: var(--yellow-dark); }

/* ============================================
   FAQ
============================================ */
#faq { background: white; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 0; font-size: 1rem; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; transition: var(--transition);
}
.faq-question:hover { color: var(--yellow-dark); }
.faq-question .faq-icon { font-size: 1.3rem; color: var(--yellow-dark); flex-shrink: 0; transition: var(--transition); }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 0 20px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   BLOG / TIPS
============================================ */
#blog { background: var(--light-bg); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card-image { height: 180px; background: linear-gradient(135deg, var(--dark-mid), var(--dark)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 20px; }
.blog-tag { display: inline-block; background: var(--yellow); color: #1a1a1a; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; text-transform: uppercase; }
.blog-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   REVIEWS
============================================ */
#reviews { background: white; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: var(--light-bg); border-radius: var(--radius); padding: 24px; border-left: 4px solid var(--yellow); }
.review-stars { color: var(--yellow); font-size: 1.1rem; margin-bottom: 10px; }
.review-text { font-size: 0.875rem; color: var(--text); line-height: 1.6; margin-bottom: 14px; font-style: italic; }
.review-author { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.review-date { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   STATS BAR
============================================ */
#stats { background: var(--dark); color: white; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--yellow); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ============================================
   FOOTER
============================================ */
#site-footer { background: var(--dark-nav); color: rgba(255,255,255,0.75); padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-logo span { color: var(--yellow); }
.footer-desc { font-size: 0.875rem; line-height: 1.7; margin-bottom: 16px; }
.footer-contact { font-size: 0.875rem; }
.footer-contact a { color: var(--yellow); font-weight: 600; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 10px; }

/* ============================================
   AVAILABILITY CALENDAR
============================================ */
#availability { background: var(--light-bg); }
.calendar-wrapper { background: white; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-nav { background: var(--dark); color: white; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.calendar-nav:hover { background: var(--yellow); color: #1a1a1a; }
.calendar-month-label { font-weight: 700; font-size: 1.1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-name { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); padding: 8px 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); font-size: 0.875rem; cursor: pointer; transition: var(--transition); }
.cal-day:hover { background: var(--yellow); color: #1a1a1a; font-weight: 700; }
.cal-day.today { background: var(--dark); color: white; font-weight: 700; }
.cal-day.booked { background: #fee2e2; color: #dc2626; cursor: not-allowed; text-decoration: line-through; }
.cal-day.available { background: #dcfce7; color: #16a34a; }
.cal-day.empty { cursor: default; }
.calendar-legend { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.legend-dot.available { background: #dcfce7; border: 1px solid #16a34a; }
.legend-dot.booked { background: #fee2e2; border: 1px solid #dc2626; }
.legend-dot.today { background: var(--dark); }

/* ============================================
   ADMIN PANEL
============================================ */
.admin-bar-link { display: none; }

/* ============================================
   COOKIE BANNER
============================================ */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: white; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 9999; flex-wrap: wrap; transform: translateY(100%); transition: transform 0.4s ease; }
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { font-size: 0.85rem; color: rgba(255,255,255,0.8); }
#cookie-banner a { color: var(--yellow); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content h1 { font-size: 2.1rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--dark-nav); padding: 20px; gap: 16px; z-index: 999; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-content h1 { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
