/* ============================================================
   Backpackers Expo — Modern Design System
   Shared stylesheet for the whole static site.
   ============================================================ */

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

:root {
  --color-primary: #0e7490;        /* deep teal */
  --color-primary-dark: #155e75;
  --color-primary-darker: #164e63;
  --color-accent: #f59e0b;         /* warm amber */
  --color-accent-dark: #d97706;
  --color-ink: #1e293b;            /* body text */
  --color-muted: #64748b;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-success: #16a34a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.16);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --container: 1100px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

ul,
ol {
  padding-left: 1.4rem;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--color-primary-darker);
  font-weight: 700;
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--color-muted);
}

/* ---------- Header & Navigation ---------- */
.site-header {
  background: linear-gradient(135deg, var(--color-primary-darker), var(--color-primary));
  color: #fff;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.brand img {
  height: 52px;
  width: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.brand .brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  color: #fff;
}

.brand .brand-tag {
  font-size: 0.72rem;
  color: #cffafe;
  letter-spacing: 0.04em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: #e0f2fe;
  font-weight: 600;
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(15, 78, 99, 0.82), rgba(14, 116, 144, 0.88)),
    url("../graphics/GOOD_PHOTOS2.jpg") center/cover no-repeat;
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}

.hero h1 {
  color: #fff;
  max-width: 760px;
  margin: 0 auto 1rem;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 1.15rem;
  color: #e0f2fe;
}

.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-accent);
  color: #3b2f00;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover { background: #fff; color: var(--color-primary-darker); }

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover { background: var(--color-primary); color: #fff; }

/* ---------- Cards & Grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.card .card-link { font-weight: 700; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #e0f2fe;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
}

/* ---------- Feature list ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-list .tick {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

/* ---------- Call to action band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary-darker), var(--color-primary));
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #e0f2fe; max-width: 640px; margin: 0 auto 1.5rem; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #f1f5f9; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: #cbd5e1;
}

/* ---------- Prose (article content) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-darker);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  text-align: center;
  color: #94a3b8;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.lead { font-size: 1.15rem; color: var(--color-muted); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .main-nav ul { flex-wrap: wrap; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0; }
}
