/* ===================================================================
   Nomad Travel System — static rebuild
   Palette: orange accent #ff7e00, dark slate #2b2f38, body grey #777
   Font: Roboto
   =================================================================== */

:root {
  --accent: #ff7e00;
  --accent-dark: #e06e00;
  --dark: #2b2f38;
  --darker: #21252c;
  --text: #555;
  --muted: #777;
  --light-bg: #f5f6f8;
  --border: #e4e6ea;
  --white: #fff;
  --max: 1140px;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: Roboto, sans-serif;
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 .5em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--light { background: var(--light-bg); }
.section--dark { background: var(--dark); color: #cfd3da; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

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

.lead { font-size: 1.15rem; color: var(--muted); }

.section-title { text-align: center; margin-bottom: 12px; }
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 18px auto 0;
  border-radius: 2px;
}
.section-intro { text-align: center; max-width: 760px; margin: 0 auto 48px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: .95rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--outline { background: transparent; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--accent); border-color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav__logo img { height: 56px; width: auto; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  color: var(--dark);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: .98rem;
}
.nav__menu a:hover, .nav__menu a.active { color: var(--accent); }
.nav__menu .nav__cta a {
  background: var(--accent);
  color: #fff;
}
.nav__menu .nav__cta a:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 150px 20px;
  background: linear-gradient(rgba(20, 24, 30, .58), rgba(20, 24, 30, .58)),
              var(--hero-img, url("../img/hero.jpg")) center/cover no-repeat;
}
.hero h1 { color: #fff; font-size: 2.9rem; max-width: 900px; margin: 0 auto .4em; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero p { font-size: 1.25rem; max-width: 720px; margin: 0 auto 1.8em; color: #eee; }

.page-hero {
  background: linear-gradient(rgba(20,24,30,.72), rgba(20,24,30,.72)),
              var(--hero-img, url("../img/city-bg.jpg")) center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 90px 20px;
}
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero p { color: #eee; margin: 0; }

/* ---------- Feature grid (3 cards) ---------- */
.grid { display: grid; gap: 30px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.card__icon svg { width: 30px; height: 30px; }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Key features list ---------- */
.keylist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}
.keylist li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
  color: var(--dark);
}
.keylist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  background: var(--accent);
  border-radius: 50%;
}
.keylist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Testimonial ---------- */
.testimonial { text-align: center; max-width: 780px; margin: 0 auto; }
.testimonial blockquote {
  font-size: 1.5rem;
  font-style: italic;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.5;
}
.testimonial cite { color: var(--accent); font-weight: 700; font-style: normal; }

/* ---------- Feature detail rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row:nth-child(even) .feature-row__media { order: 2; }
.feature-row img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.feature-row ul { padding-left: 20px; margin: 0; }
.feature-row li { margin-bottom: 8px; }
.feature-row h3 { color: var(--accent); font-size: 1.5rem; }

/* ---------- Forms ---------- */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; color: var(--dark); margin-bottom: 6px; }
.form-group label .req { color: var(--accent); }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fdfdfd;
  transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--accent); }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 16px; font-weight: 500; display: none; }
.form-status.ok { color: #1a8a4a; display: block; }
.form-status.err { color: #c0392b; display: block; }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item .info-icon {
  flex: 0 0 46px; height: 46px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.info-item .info-icon svg { width: 22px; height: 22px; }
.info-item h4 { margin: 0 0 2px; color: var(--dark); }
.info-item p { margin: 0; color: var(--muted); }

/* ---------- Principles (about) ---------- */
.principles { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.principles li {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.principles strong { color: var(--dark); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; text-align: center; padding: 56px 20px; }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--accent); border-color: #fff; }
.cta-band .btn:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: #a7adb8; padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: #a7adb8; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-logo img { height: 60px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .9; }
.footer-bottom {
  border-top: 1px solid #333842;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: .88rem;
  color: #7b828f;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
  .split, .feature-row, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .keylist { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero { padding: 100px 20px; }

  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav__menu.open { max-height: 420px; }
  .nav__menu li { border-bottom: 1px solid var(--border); }
  .nav__menu a { display: block; padding: 14px 20px; border-radius: 0; }
  .nav__menu .nav__cta a { background: var(--accent); color: #fff; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .hero h1 { font-size: 1.7rem; }
  .form-wrap { padding: 24px 18px; }
  h2 { font-size: 1.6rem; }
}
