/* ============================================
   SkyRanger US — clean Squarespace-style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0e1a2b;
  --navy-2:      #16233a;
  --accent:      #2f6bd3;
  --accent-dark: #22509f;
  --text:        #1c2734;
  --muted:       #5b6775;
  --line:        #e4e8ee;
  --bg:          #ffffff;
  --bg-alt:      #f6f7f9;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Source Sans 3', 'Source Sans Pro', sans-serif;
  --max-w:       1180px;
  --radius:      4px;
  --shadow:      0 6px 24px rgba(14,26,43,0.10);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* Sensible caps so images can't overflow the viewport on any device */
.section img,
.container img { max-width: 100%; height: auto; }
.section img:not(.raw):not(.gallery img) { max-height: 70vh; object-fit: contain; margin-left: auto; margin-right: auto; }

/* Content-flow images centered */
.content-img {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  margin: 1.5rem auto;
  object-fit: contain;
}

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: 0;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.logo:hover { color: #fff; opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  list-style: none;
}
.nav-links li { position: relative; }
.nav-links > li > a,
.nav-links > li > span {
  display: block;
  color: #fff;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > span:hover { color: #9dc4ff; }
.nav-links > li > a.active { color: #9dc4ff; }

.dropdown > .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--navy-2);
  padding: 0.5rem 0;
  border-top: 2px solid var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: var(--shadow);
  z-index: 10;
}
.dropdown:hover > .submenu,
.dropdown:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
}
.submenu li a:hover { background: rgba(255,255,255,0.06); color: #9dc4ff; }

.cart { display: none; } /* No store — hide cart placeholder */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: 0.2s; }

/* ---- Hero ---- */
/* ---- Hero uses <img> for proper aspect scaling ---- */
.hero {
  position: relative;
  width: 100%;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  background: var(--navy);
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(rgba(10,20,35,0.20), rgba(10,20,35,0.55));
}

/* Variant: pin caption to bottom of hero image */
.hero.hero-bottom .hero-content {
  justify-content: flex-end;
  padding-bottom: 1.75rem;
  background: linear-gradient(rgba(10,20,35,0.00) 40%, rgba(10,20,35,0.70) 100%);
}
@media (max-width: 620px) {
  .hero-img { max-height: 45vh; }
  .hero-content { padding: 1.5rem 1rem; }
  .hero .subhead { font-size: 1rem; }
}
.hero-content .inner { max-width: 900px; }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.35); margin-bottom: 0.9rem; }
.hero .subhead { font-size: 1.15rem; font-weight: 400; opacity: 0.95; }

/* ---- Sections ---- */
section.section { padding: 4rem 0; }
section.section.alt { background: var(--bg-alt); }
.section-narrow { max-width: 780px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 2rem; }

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #33404e;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem 1.5rem;
  margin: 1.5rem 0 2rem;
  font-size: 1.05rem;
}
.feature-list li {
  padding-left: 1.5rem;
  position: relative;
  font-weight: 500;
}
.feature-list li::before {
  content: "✈";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

.callout {
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0;
}

/* ---- Image blocks ---- */
.img-wide { margin: 2rem 0; }
.img-wide img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 760px) { .img-wide img { max-height: 45vh; } }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}
.two-col img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.big { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }

/* ---- Specs table ---- */
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 2rem;
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.specs div { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.specs div span:first-child { color: var(--muted); }
.specs div span:last-child { font-weight: 600; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr; } }

/* ---- Downloads ---- */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.downloads a {
  display: block;
  padding: 1.1rem 1.2rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}
.downloads a:hover { background: var(--accent); color: #fff; }
.downloads a::before { content: "📄 "; margin-right: 0.3rem; }

/* ---- Achievements timeline ---- */
.medals {
  margin: 2rem 0;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}
.medals li {
  padding: 0.4rem 0;
  font-size: 1rem;
  color: #2b3644;
}
.medals li strong { color: var(--navy); font-family: var(--font-head); }

/* ---- Pricing simple ---- */
.pricing-simple {
  text-align: center;
  padding: 4rem 1.5rem;
}
.pricing-simple p { font-size: 1.15rem; margin-bottom: 2rem; color: var(--muted); }

/* ---- Configurator ---- */
.configurator {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .configurator { grid-template-columns: 1fr; } }

.cfg-header {
  background: var(--bg-alt);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: #33404e;
}

.cfg-section {
  margin-bottom: 2.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cfg-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.cfg-options { display: flex; flex-direction: column; gap: 0.25rem; }
.cfg-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
  line-height: 1.3;
}
.cfg-option:hover { border-color: var(--accent); }
.cfg-option input {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.cfg-option .name {
  flex: 1;
  font-weight: 500;
  color: var(--navy);
}
.cfg-option .price {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent);
}
.cfg-option.disabled { opacity: 0.4; cursor: not-allowed; }
.cfg-option.disabled input { cursor: not-allowed; }
.cfg-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.cfg-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.cfg-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #f4f4f4;
}
.cfg-gallery figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--text, #222);
}
.cfg-option .tag {
  font-size: 0.75rem;
  background: #edf1fa;
  color: var(--accent-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  font-weight: 600;
}

.cfg-summary {
  position: sticky;
  top: 90px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.cfg-summary h3 { color: #fff; margin-bottom: 1rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; }
.cfg-summary .items {
  min-height: 80px;
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 4px;
}
.cfg-summary .items .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 0.5rem;
}
.cfg-summary .items .row span:first-child { flex: 1; }
.cfg-summary .items .row .price { color: #9dc4ff; font-weight: 600; white-space: nowrap; }
.cfg-summary .empty { opacity: 0.6; font-style: italic; text-align: center; padding: 1.5rem 0; }
.cfg-summary .total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
  margin-bottom: 1rem;
}
.cfg-summary .btn { display: block; text-align: center; width: 100%; }
.cfg-summary .note { font-size: 0.78rem; opacity: 0.7; margin-top: 0.8rem; text-align: center; }

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: #eee; }
.gallery img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
  .gallery img { height: 140px; }
}
.gallery a:hover img { transform: scale(1.03); }

.build-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.build-entry:last-child { border-bottom: 0; }
.build-entry .date {
  font-family: var(--font-head);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* ---- Videos ---- */
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.video-card { background: #fff; }
.video-card a { display: block; position: relative; }
.video-card img { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius); }
.video-card .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3rem;
  background: rgba(0,0,0,0.15);
  transition: background 0.2s;
  border-radius: var(--radius);
}
.video-card a:hover .play { background: rgba(0,0,0,0.35); }
.video-card .meta { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
.video-card h4 { margin: 0.4rem 0 0.6rem; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block h3 { margin-bottom: 1rem; }
.contact-block .person {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-block .person:last-child { border-bottom: 0; }
.contact-block .person strong { display: block; font-size: 1.1rem; color: var(--navy); }

/* ---- Forms ---- */
.form-block { margin: 2rem 0; }
.form-block label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}
.form-block label .req { color: var(--accent); }
.form-block input,
.form-block textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-block input:focus,
.form-block textarea:focus { outline: none; border-color: var(--accent); }
.form-block textarea { min-height: 120px; resize: vertical; }
.form-block .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 620px) { .form-block .form-row { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
footer.site-footer {
  background: var(--navy);
  color: #cfd6e0;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { footer.site-footer .container { grid-template-columns: 1fr; text-align: center; } }
footer.site-footer h4 { color: #fff; margin-bottom: 0.75rem; font-size: 1rem; }
footer.site-footer a { color: #9dc4ff; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .addr { line-height: 1.8; }
footer.site-footer .social {
  display: flex; gap: 1rem;
}
@media (max-width: 760px) { footer.site-footer .social { justify-content: center; } }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.small { font-size: 0.9rem; color: var(--muted); }

/* Extra mobile polish */
@media (max-width: 620px) {
  section.section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }
  h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  .lead { font-size: 1rem; }
  .feature-list { grid-template-columns: 1fr; font-size: 1rem; }
  .callout { font-size: 1.15rem; padding: 1.5rem 0.5rem; }
  .btn.big { padding: 0.85rem 1.6rem; font-size: 1rem; }
  .cfg-summary { position: static; margin-top: 2rem; }
}

/* Prevent horizontal scroll on any device */
html, body { overflow-x: hidden; max-width: 100%; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-inner { min-height: 60px; }
  .logo { font-size: 1.15rem; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    gap: 0;
  }
  .nav-links.open { max-height: 90vh; overflow-y: auto; }
  .nav-links > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links > li > a,
  .nav-links > li > span { padding: 0.75rem 1.5rem; }
  .dropdown > .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--navy-2);
    padding: 0;
    display: none;
    border-top: 0;
  }
  .dropdown.open > .submenu { display: block; }
  .submenu li a { padding: 0.6rem 2.5rem; }
  .cart { border-left: 0; }
}
