/* ==========================================================
   TravelTrends — Public Site Styles
   ========================================================== */

:root {
  --ink: #17211c;
  --ink-soft: #4c5a52;
  --paper: #fbf9f4;
  --paper-alt: #f2efe6;
  --line: #e4ded0;
  --brand: #e8632c;
  --brand-dark: #c94f1e;
  --teal: #14625a;
  --teal-light: #e7f2ef;
  --sand: #f6ede0;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(23, 33, 28, 0.08);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2em; }

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: #d8d3c3;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.live-clock { font-weight: 500; letter-spacing: .2px; }
.topbar-tag { opacity: .75; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 24px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.logo-mark { color: var(--brand); }
.logo-dot { color: var(--brand); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  font-weight: 600;
  font-size: 15px;
}
.main-nav > a { padding: 8px 0; }
.main-nav > a:hover { color: var(--brand); }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  z-index: 50;
}
.nav-dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
}
.dropdown-menu a:hover { background: var(--sand); color: var(--brand-dark); }

.header-search {
  display: flex;
  align-items: center;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  width: 260px;
}
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-family: var(--font-sans);
  font-size: 14px;
}
.header-search button {
  border: none;
  background: var(--ink);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--sand);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-copy h1 { font-size: 42px; letter-spacing: -.5px; }
.hero-copy p { color: var(--ink-soft); font-size: 17px; margin-bottom: 22px; max-width: 52ch; }
.hero-meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 600;
}
.hero-image img {
  border-radius: 20px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}

/* ---------- Category strip ---------- */
.category-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-alt); }
.cat-strip-inner {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}
.cat-pill:hover, .cat-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-pill-all.active { background: var(--brand); border-color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 26px;
}
.section-head h2 { font-size: 28px; }
.see-all { font-weight: 700; color: var(--brand-dark); font-size: 14px; }

/* ---------- Trending scroll ---------- */
.trending-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.trend-card {
  flex: 0 0 260px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.trend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trend-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.trend-card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(23,33,28,.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.trend-card-body { padding: 16px; }

/* ---------- Tags / meta shared ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.meta { font-size: 13px; color: var(--ink-soft); }

/* ---------- Post grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-img { aspect-ratio: 16/10; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.post-card-body h3 { font-size: 19px; margin-bottom: 8px; }
.post-card-body p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 12px; flex: 1; }
.empty-state { grid-column: 1/-1; text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}
.pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Newsletter banner ---------- */
.newsletter-banner { background: var(--teal); color: #fff; padding: 50px 0; }
.newsletter-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.newsletter-banner h2 { color: #fff; margin-bottom: 6px; font-size: 26px; }
.newsletter-banner p { color: #d3ece7; margin: 0; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  min-width: 240px;
  font-family: var(--font-sans);
}
.newsletter-form button {
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.newsletter-form button:hover { background: var(--brand-dark); }

/* ---------- Page header (about/contact/category) ---------- */
.page-header { padding: 50px 0 20px; text-align: center; }
.page-header h1 { font-size: 36px; }
.page-header p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Post detail ---------- */
.post-detail-head { text-align: center; padding-top: 40px; max-width: 780px; margin: 0 auto; }
.post-detail-head h1 { font-size: 36px; margin: 12px 0 14px; }
.post-detail-meta { color: var(--ink-soft); font-size: 14px; display: flex; gap: 8px; justify-content: center; }
.post-detail-image { margin: 30px auto; max-width: 900px; }
.post-detail-image img { border-radius: 20px; width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); }
.post-detail-body { max-width: 740px; margin: 0 auto 40px; }
.post-content { font-size: 17.5px; line-height: 1.8; color: #26312b; }
.post-content p { margin: 0 0 20px; }
.post-content h2, .post-content h3 { margin-top: 32px; }
.post-content img { border-radius: 14px; margin: 20px 0; }
.post-share { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.post-share a { font-weight: 700; color: var(--teal); }

/* ---------- About / Contact ---------- */
.about-content { max-width: 760px; margin: 0 auto; font-size: 16.5px; }
.about-content h2 { margin-top: 30px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; max-width: 900px; margin: 0 auto; }
.contact-info h2 { font-size: 24px; }
.contact-info a { color: var(--brand-dark); font-weight: 700; }
.contact-form { display: flex; flex-direction: column; gap: 16px; background: #fff; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-form label { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 14.5px;
  resize: vertical;
}
.form-alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.form-alert-success { background: #e5f5ec; color: #1c7d4a; }
.form-alert-error { background: #fbe9e5; color: #b2361c; }
.search-page-form { max-width: 480px; margin: 0 auto 20px; width: 100%; }
.search-page-form button { width: auto; padding: 0 18px; border-radius: 999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd6cf; margin-top: 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding: 56px 24px 36px;
}
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; color: #b7c0b8; }
.footer-col a:hover { color: #fff; }
.footer-brand p { font-size: 14px; color: #9aa69b; margin: 12px 0 16px; max-width: 30ch; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-social a { padding: 0; font-weight: 600; color: #e3c8b8; }
.footer-newsletter p { font-size: 13.5px; color: #9aa69b; margin-bottom: 14px; }
.footer-newsletter .newsletter-form input { min-width: 0; flex: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 13px;
  color: #8b968c;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-search { display: none; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 90px 26px 26px;
    transition: right .25s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.1);
    z-index: 200;
  }
  .main-nav.open { right: 0; }
  .main-nav > a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-dropdown { width: 100%; }
  .dropdown-menu { position: static; box-shadow: none; border: none; display: flex; padding-left: 10px; }
  .nav-toggle { display: flex; }
  .hero-copy h1 { font-size: 30px; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 24px; }
  .newsletter-banner-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
  .topbar-tag { display: none; }
  .trend-card { flex: 0 0 220px; }
}
