/*
Theme Name: TurnSector
Theme URI: https://turnsector.com
Author: TurnSector
Description: Public marketing website for TurnSector flight operations software.
Version: 1.0.0
*/

:root {
  --ink: #172033;
  --soft-ink: #53616f;
  --mist: #f6f8f7;
  --line: #d9e1e0;
  --sea: #207a83;
  --mint: #68c7c1;
  --copper: #d96745;
  --night: #111827;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

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

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

.bar,
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 224, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mark svg { width: 100%; height: 100%; display: block; }

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}

.brand strong + span {
  display: block;
  margin-top: 4px;
  color: #6f7d86;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.nav {
  display: none;
  align-items: center;
  gap: 26px;
  color: #516170;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.text-link:hover { color: var(--sea); }

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-link {
  display: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.btn.dark { background: var(--ink); color: #fff; }
.btn.copper { background: var(--copper); color: #fff; }
.btn.light { border: 1px solid #b8c5c8; background: #fff; color: var(--ink); }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) 49%, rgba(235,245,244,0.72) 49%, rgba(235,245,244,0.72) 100%),
    #fff;
}

.hero:before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
}

.hero-grid {
  min-height: 680px;
  display: grid;
  align-items: center;
  gap: 54px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #a9472b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.lead {
  max-width: 620px;
  color: #465767;
  font-size: 19px;
  line-height: 1.62;
}

.copy {
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.manifest-panel {
  width: min(100%, 470px);
  justify-self: end;
  border: 1px solid #c5d1d1;
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.16);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  background: var(--ink);
  color: #fff;
}

.panel-head span,
.panel-note small {
  color: var(--mint);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-head strong { font-size: 15px; }

.flight-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.flight-row span {
  color: var(--sea);
  font-size: 13px;
  font-weight: 900;
}

.flight-row strong { font-size: 16px; }

.flight-row em {
  color: #667683;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.flight-row.active {
  background: #eef8f6;
}

.panel-note {
  padding: 20px;
  background: var(--mist);
}

.panel-note p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.section {
  padding-top: 82px;
  padding-bottom: 82px;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid #cad6d6;
  background: #cad6d6;
}

.card {
  min-height: 270px;
  background: #fff;
  padding: 30px;
}

.icon {
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #e7f3f1;
  color: var(--sea);
}

.icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.band {
  background: var(--mist);
}

.split {
  display: grid;
  gap: 46px;
  align-items: start;
}

.day-list {
  display: grid;
  border: 1px solid #cad6d6;
  background: #fff;
}

.day-list div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.day-list div:last-child { border-bottom: 0; }

.day-list span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
}

.day-list p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
}

.demo {
  background: #fff;
}

.demo-box {
  display: grid;
  gap: 24px;
  align-items: center;
  border: 1px solid #c8d4d4;
  background: var(--night);
  color: #fff;
  padding-top: 44px;
  padding-bottom: 44px;
}

.demo-box .copy { color: rgba(255,255,255,0.66); }
.demo-box .btn.light { background: transparent; border-color: rgba(255,255,255,0.34); color: #fff; }

.site-footer {
  background: #111827;
  color: #fff;
}

.site-footer .brand strong { color: #fff; }

.footer-grid {
  display: grid;
  gap: 34px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.footer-links {
  display: grid;
  gap: 12px;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  font-weight: 800;
}

.footer-links a:hover { color: #fff; }

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px;
  text-align: center;
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  background: var(--ink);
  color: white;
  border-bottom: 1px solid var(--line);
  padding-top: 90px;
  padding-bottom: 90px;
}

.page-hero .eyebrow { color: var(--mint); }
.page-hero .lead { color: rgba(255,255,255,0.72); }

.form {
  display: grid;
  gap: 16px;
  max-width: 740px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #fff;
  padding: 26px;
  color: var(--ink);
}

.form label {
  display: grid;
  gap: 8px;
  color: #536778;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid #cad8df;
  border-radius: 6px;
  background: #f8fafa;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.form textarea { min-height: 120px; resize: vertical; }
.notice { border: 1px solid #b7dfd8; background: #eaf8f6; padding: 14px; color: var(--sea); font-weight: 800; }

@media (min-width: 760px) {
  .nav,
  .text-link { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(390px, 470px); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 0.85fr 1fr; }
  .demo-box { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1fr 1.35fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .form { grid-template-columns: repeat(2, 1fr); }
  .span-2 { grid-column: span 2; }
}

@media (max-width: 980px) {
  .actions .btn { display: none; }
  .hero { background: #fff; }
  .hero-grid { min-height: 0; }
  .manifest-panel { justify-self: stretch; width: 100%; }
}

@media (max-width: 759px) {
  .bar {
    min-height: 68px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand strong { font-size: 15px; }
  .actions { margin-left: auto; }
  .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .hero-grid { gap: 34px; padding-top: 48px; padding-bottom: 56px; }
  h1 { font-size: clamp(42px, 14vw, 58px); }
  h2 { font-size: clamp(30px, 10vw, 40px); }
  .lead { font-size: 17px; line-height: 1.56; }
  .section { padding-top: 58px; padding-bottom: 58px; }
  .card { min-height: 0; padding: 24px; }
  .flight-row { grid-template-columns: 62px 1fr; }
  .flight-row em { grid-column: 2; }
  .demo-box { padding-top: 32px; padding-bottom: 32px; }
}
