/*
Theme Name: Corporate Travel Software
Theme URI: https://corporatetravelsoftware.com
Description: Review and comparison site for corporate travel software — modelled on HotelTechReport.
Version: 1.0.0
Author: Corporate Travel Software
Text Domain: cts
*/

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

:root {
  --primary:    #5B4FCF;
  --primary-dk: #4438B5;
  --green:      #00C48C;
  --green-dk:   #00A876;
  --lavender:   #EEEEF8;
  --white:      #FFFFFF;
  --bg:         #F7F7FB;
  --card:       #FFFFFF;
  --border:     #E5E7EB;
  --text:       #1A1A2E;
  --muted:      #6B7280;
  --star:       #5B4FCF;
  --radius:     12px;
  --shadow:     0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-lg:  0 4px 24px rgba(0,0,0,0.10);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}
.btn--primary:hover { background: var(--primary-dk); color: var(--white); text-decoration: none; }

.btn--green {
  background: var(--green);
  color: var(--white);
}
.btn--green:hover { background: var(--green-dk); color: var(--white); text-decoration: none; }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.btn--lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

/* ── Header ───────────────────────────────────────────────────────────── */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; color: var(--text); }

.site-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.header-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
.header-search input:focus { border-color: var(--primary); }

.header-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a:hover { background: var(--bg); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

/* Category nav bar */
.header-cats {
  border-top: 1px solid var(--border);
}

.header-cats ul {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-cats li a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.header-cats li a:hover,
.header-cats li.current a {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: var(--lavender);
  padding: 80px 24px 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text);
  letter-spacing: -1.5px;
  max-width: 780px;
  margin: 0 auto 36px;
}

.hero h1 .inline-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  margin: 0 4px;
}

.hero h1 .inline-logo img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.hero-search {
  position: relative;
  max-width: 580px;
  margin: 0 auto 28px;
}

.hero-search input {
  width: 100%;
  padding: 18px 24px 18px 52px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  box-shadow: 0 2px 20px rgba(91,79,207,0.12);
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.hero-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 28px rgba(91,79,207,0.18);
}

.hero-search svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.hero-stat {
  font-size: 15px;
  color: var(--muted);
}
.hero-stat strong { color: var(--text); }

/* ── Stats bar ────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.stat-item span {
  font-size: 13px;
  color: var(--muted);
}

/* ── Section headings ────────────────────────────────────────────────── */
.section { padding: 60px 0; }
.section--gray { background: var(--bg); }
.section--white { background: var(--white); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.section-header a {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* ── Category grid ────────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.18s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}

.cat-card-icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  background: var(--lavender);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card h3 {
  font-size: 15px;
  font-weight: 700;
}

.cat-card span {
  font-size: 13px;
  color: var(--muted);
}

/* ── Software card ────────────────────────────────────────────────────── */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.software-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.18s;
  position: relative;
}
.software-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #D0CBFF;
  transform: translateY(-2px);
}

.software-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.software-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bg);
}

.software-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  font-weight: 800;
  color: var(--primary);
}

.software-card-meta h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.software-card-meta h3 a {
  color: var(--text);
}
.software-card-meta h3 a:hover { color: var(--primary); text-decoration: none; }

.stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars-icons { color: var(--star); font-size: 14px; letter-spacing: 1px; }
.stars-score { font-size: 14px; font-weight: 700; color: var(--text); }
.stars-count { font-size: 13px; color: var(--muted); }

.rank-badge {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.rank-badge strong { color: var(--text); }

.software-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.software-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.recommend-stat {
  font-size: 13px;
  color: var(--muted);
}
.recommend-stat strong { color: var(--green); }

.software-card .btn { font-size: 13px; padding: 8px 16px; }

/* ── Product page ─────────────────────────────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  padding: 40px 0 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--border); }

.expert-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.expert-avatars {
  display: flex;
}
.expert-avatars img,
.expert-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px;
  object-fit: cover;
}
.expert-avatars img:first-child,
.expert-avatar-placeholder:first-child { margin-left: 0; }

.expert-avatar-placeholder {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-bar-text { color: var(--muted); }
.expert-bar-text a { color: var(--primary); font-weight: 600; }

.product-hero-banner {
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 24px;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.product-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.product-title-row h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.product-rank {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.product-social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.product-social-proof .green { color: var(--green); }

/* Product tabs */
.product-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin: 32px 0 28px;
  gap: 0;
}

.product-tab {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.product-tab.active,
.product-tab:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Sidebar */
.product-sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.sidebar-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sidebar-meta-item label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
.sidebar-meta-item strong {
  font-size: 14px;
  font-weight: 700;
}

.sidebar-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Review cards ─────────────────────────────────────────────────────── */
.review-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.reviewer-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.reviewer-info span { font-size: 13px; color: var(--muted); }

.review-body { font-size: 15px; color: var(--text); line-height: 1.65; }

/* ── Blog / article cards ─────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.18s;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.post-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--lavender);
}

.post-card-body { padding: 20px; }

.post-cat-badge {
  display: inline-block;
  background: var(--lavender);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.post-card-body h3 a { color: var(--text); }
.post-card-body h3 a:hover { color: var(--primary); text-decoration: none; }
.post-card-body p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }

.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
#site-footer {
  background: #1A1A2E;
  color: #A0A0C0;
  padding: 60px 24px 32px;
  margin-top: 80px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo { color: white; margin-bottom: 16px; }
.footer-brand .site-logo-icon { background: var(--primary); }
.footer-brand p { font-size: 14px; line-height: 1.65; max-width: 280px; }

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #A0A0C0; font-size: 14px; }
.footer-col ul li a:hover { color: white; text-decoration: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #2A2A4A;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

/* ── Utilities ────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--lavender);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF8E7;
  border: 1px solid #FFD700;
  color: #B8860B;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

/* ── Hamburger button (hidden on desktop) ─────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 20px 24px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
}
.mobile-nav a:hover { background: var(--bg); }
.mobile-nav .mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.mobile-nav .btn {
  margin-top: 8px;
  text-align: center;
  width: 100%;
  justify-content: center;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .software-grid { grid-template-columns: 1fr; }
  .header-search { max-width: 220px; }
}

@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav elements */
  .nav-toggle { display: flex; }
  .header-nav { display: none; }
  .header-actions { display: none; }
  .header-search { display: none; }

  /* Tighten header */
  .header-top {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: nowrap;
  }

  /* Category bar: single scrollable row */
  .header-cats ul {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding: 0 16px;
    gap: 0;
  }
  .header-cats ul::-webkit-scrollbar { display: none; }
  .header-cats li a {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .stats-bar-inner { gap: 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
