/* =========================================================
   ntravel_stories - Main Stylesheet
   Minimal static portfolio
   ========================================================= */

/* =========================================================
   1. Design tokens
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c30;
  --text: #e5edf8;
  --muted: #94a3b8;
  --border: #26364d;
  --accent: #14b8a6;
  --accent-soft: rgba(20, 184, 166, 0.16);

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);

  --radius-lg: 28px;
  --radius-md: 18px;

  --container: 1320px;
}


/* =========================================================
   2. Reset and base elements
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 8vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}


/* =========================================================
   3. Layout helpers
   ========================================================= */

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(58px, 8vw, 92px);
}

.border-bottom {
  border-bottom: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.center-note {
  margin: 28px 0 0;
  color: #7f8da1;
  font-size: 0.84rem;
  text-align: center;
}


/* =========================================================
   4. Accessibility helpers
   ========================================================= */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--accent);
  color: #042f2e;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   5. Header and navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.94);
  border-bottom: 1px solid rgba(38, 54, 77, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px;
  background: var(--accent);
  color: #021515;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-name {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.065em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  color: #d8e0ec;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}


/* =========================================================
   6. Hero section
   ========================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image: url("../images/reine.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 10%, rgba(20, 184, 166, 0.12), transparent 35%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.32)),
    linear-gradient(rgba(2, 6, 23, 0.44), rgba(2, 6, 23, 0.82));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-block: clamp(80px, 14vh, 140px);
  text-align: center;
}

.hero-content .eyebrow,
.hero-content .hero-actions {
  justify-content: center;
}

.hero-content h1,
.hero-content .hero-text,
.hero-content .hero-note,
.hero-content .hero-quote {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.14);
}

.hero-text {
  max-width: 520px;
  margin-bottom: 32px;
  color: #d1d9e6;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-note {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.hero-quote {
  max-width: 36rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 3px solid var(--accent);
  color: rgba(226, 232, 240, 0.82);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  text-align: center;
}

.hero-quote cite {
  display: block;
  margin-top: 0.45rem;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.85rem;
  font-style: normal;
}

.scroll-note {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 1;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* =========================================================
   7. Buttons
   ========================================================= */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 26px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  background: #f8fafc;
  color: #07111f;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}


/* =========================================================
   8. Section typography
   ========================================================= */

.section-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-copy .section-kicker,
.gear-card .section-kicker {
  color: var(--accent);
}

.section-copy p {
  max-width: 780px;
  color: #c8d3e2;
  font-size: 1.03rem;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-intro > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 1.02rem;
}


/* =========================================================
   9. About and gear section
   ========================================================= */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tag-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #07111f;
  padding: 9px 14px;
  color: #e4eaf3;
  font-size: 0.92rem;
}

.gear-card,
.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.gear-card {
  padding: clamp(24px, 4vw, 34px);
}

.gear-list {
  margin: 0;
}

.gear-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.gear-list dt {
  color: #e6edf8;
  font-weight: 800;
}

.gear-list dd {
  margin: 0;
  color: #8391a6;
  text-align: right;
}

.small-note {
  margin: 22px 0 0;
  color: #9aa8ba;
  font-size: 0.92rem;
}


/* =========================================================
   10. Journey cards
   ========================================================= */

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.journey-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.journey-card:hover {
  transform: translateY(-7px);
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: var(--shadow);
}

.journey-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.journey-image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 320ms ease;
}

.journey-card:hover img {
  transform: scale(1.035);
}

.country-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.7);
  padding: 5px 12px;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
}

.journey-body {
  display: block;
  padding: 24px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.card-title-row strong {
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.card-title-row small {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 5px 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-title-row .planned {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.story-text {
  display: -webkit-box;
  overflow: hidden;
  color: #a9b6c7;
  font-size: 0.96rem;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 900;
}


/* =========================================================
   11. Connect and social links
   ========================================================= */

.connect-section {
  background: var(--panel);
  border-block: 1px solid var(--border);
}

.connect-intro {
  max-width: 700px;
  margin: 0 auto 34px;
  text-align: center;
}

.connect-intro p:not(.section-kicker) {
  color: var(--muted);
}

.social-grid {
  display: grid;
  max-width: 900px;
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 88px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #050b1a;
  padding: 18px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.5);
  background: #0b1426;
}

.social-card img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.social-card span {
  display: grid;
  min-width: 0;
  line-height: 1.22;
}

.social-card strong,
.social-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-card small {
  max-width: 100%;
}


/* =========================================================
   12. Legal sections
   ========================================================= */

/* Full legal page styles retained in case you reuse them later */
.legal-page {
  max-width: 880px;
  padding-block: 70px 90px;
}

.legal-page h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.legal-card {
  padding: clamp(22px, 4vw, 34px);
  margin-top: 22px;
}

.legal-card h2,
.legal-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.legal-card p {
  color: #c7d2e2;
}

/* Compact legal information shown on the homepage */
.home-legal {
  max-width: 1080px;
  padding-block: 42px 52px;
}

.home-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-legal-card {
  border: 1px solid rgba(38, 54, 77, 0.75);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  padding: 22px;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.55;
}

.home-legal-card h2 {
  margin-bottom: 14px;
  color: #c7d2e2;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.home-legal-card p {
  margin-bottom: 14px;
}

.home-legal-card p:last-child {
  margin-bottom: 0;
}

.home-legal-card strong {
  color: #cbd5e1;
}


/* =========================================================
   13. Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  color: #7f8da1;
  font-size: 0.86rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-content p {
  margin: 0;
}

.footer-content a:hover {
  color: var(--accent);
}


/* =========================================================
   14. Modal
   ========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(100%, 780px);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.modal-image {
  width: 100%;
  height: min(44vh, 360px);
  object-fit: cover;
}

.modal-body {
  padding: clamp(24px, 4vw, 36px);
}

.modal-body h2 {
  margin-bottom: 12px;
}

.modal-body p {
  color: #c6d0df;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}


/* =========================================================
   15. Responsive styles
   ========================================================= */

@media (max-width: 980px) {
  .split,
  .journey-grid,
  .social-grid,
  .home-legal-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    max-width: 520px;
  }

  .section-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav {
    min-height: 66px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links:not(.nav-links-static) {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.98);
    padding: 10px 24px 18px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .nav-links-static {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 66px);
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 4.5rem);
  }

  .hero-actions {
    justify-content: center;
  }

  .scroll-note {
    display: none;
  }

  .footer-content {
    flex-direction: column;
  }

  .card-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   16. Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}