/*
Theme Name: DiGiT Aviation
Theme URI: https://digitaviation.com
Author: DiGiT Aviation
Author URI: https://digitaviation.com
Description: Boutique aviation services theme for a New England charter brokerage — aircraft management, acquisition, sales, and charter. Instrument-precision design with transparent, conversion-focused pages.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digit-aviation
*/

/* ===========================================================
   DiGiT Aviation — shared stylesheet
   Concept: instrument precision, New England restraint
   =========================================================== */

:root {
  --navy:      #0B1B2B;
  --navy-2:    #12283D;
  --navy-3:    #1B374F;
  --bone:      #F3EFE6;
  --bone-2:    #E8E2D4;
  --brass:     #C4A258;
  --brass-dim: #9C7F3F;
  --ink:       #0B1B2B;
  --muted-d:   #93A4B4;   /* muted text on dark */
  --muted-l:   #5A6675;   /* muted text on light */
  --line-d:    rgba(196,162,88,0.28);
  --line-l:    rgba(11,27,43,0.14);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- monospace data labels ---------- */
.code {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dim);
}
.code--light { color: var(--brass); }

/* ---------- type scale ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin: 0 0 1.1rem; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,27,43,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-d);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  text-decoration: none; color: var(--bone);
}
.brand__mark {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}
.brand__mark b { color: var(--brass); font-weight: 400; }
.brand__tag {
  font-family: var(--mono);
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-d);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-d); text-decoration: none;
  padding: 6px 0; position: relative; transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a.is-active { color: var(--bone); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--brass);
}
.nav__cta {
  font-family: var(--mono) !important;
  border: 1px solid var(--line-d);
  padding: 9px 16px !important;
  border-radius: 2px;
  color: var(--brass) !important;
}
.nav__cta:hover { background: rgba(196,162,88,0.1); border-color: var(--brass); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--bone); margin: 5px 0; transition: 0.3s var(--ease); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--navy);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.hero::before { content: none; }
.hero__inner { padding: clamp(70px, 12vh, 150px) 0 clamp(60px, 9vh, 110px); position: relative; }
.hero__station {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  margin-bottom: 30px;
}
.hero__station .dot { width: 6px; height: 6px; background: var(--brass); border-radius: 50%; }
.hero h1 { max-width: 24ch; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero__sub {
  max-width: 52ch; margin-top: 26px; color: var(--muted-d);
  font-size: 1.08rem;
}
.hero__actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* buttons */
.btn {
  font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: 2px; border: 1px solid transparent;
  transition: 0.25s var(--ease); display: inline-block;
}
.btn--brass { background: var(--brass); color: var(--navy); font-weight: 500; }
.btn--brass:hover { background: #d4b264; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-d); color: var(--bone); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }

/* =========================================================
   SECTIONS (light)
   ========================================================= */
.section { padding: clamp(64px, 9vh, 110px) 0; }
.section--navy { background: var(--navy-2); color: var(--bone); }
.section__head { max-width: 60ch; margin-bottom: 52px; }
.section__head .code { display: block; margin-bottom: 18px; }
.section__head p { color: var(--muted-l); margin-top: 16px; }
.section--navy .section__head p { color: var(--muted-d); }

.lede { font-size: 1.15rem; color: var(--muted-l); max-width: 58ch; }

/* =========================================================
   SERVICE CARDS (grid on home)
   ========================================================= */
.services {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line-l); border: 1px solid var(--line-l);
}
.svc {
  background: var(--bone); padding: 38px 34px;
  position: relative;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc:hover { background: #fff; box-shadow: 0 12px 32px rgba(11,27,43,0.14); transform: translateY(-3px); }
.svc:hover h3 { color: var(--brass-dim); }
.svc__code {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em;
  color: var(--brass-dim); display: block; margin-bottom: 22px;
}
.svc h3 { margin-bottom: 12px; color: var(--ink); transition: color 0.3s var(--ease); }
.svc p { color: #2F3B49; font-size: 0.99rem; margin: 0; }
.svc__line { width: 30px; height: 2px; background: var(--brass); margin: 22px 0 0; transition: width 0.3s var(--ease); }
.svc:hover .svc__line { width: 52px; }

/* =========================================================
   POSITIONING BAND
   ========================================================= */
.band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 28px; margin-top: 10px; }
.stat__num { font-family: var(--display); font-size: 2.6rem; color: var(--brass); line-height: 1; }
.stat__label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-d); margin-top: 10px; }
.whypoints { display: grid; gap: 20px; }
.whypoint {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.2; color: var(--ink);
  border-left: 2px solid var(--brass); padding-left: 20px;
}

/* =========================================================
   DETAILED SERVICE ROWS (services page)
   ========================================================= */
.svcrow { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line-l); }
.svcrow:last-child { border-bottom: 1px solid var(--line-l); }
.svcrow__tag .code { display: block; margin-bottom: 14px; }
.svcrow__tag h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.svcrow__body p { color: var(--muted-l); }
.svcrow__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.svcrow__list li { position: relative; padding-left: 22px; font-size: 0.96rem; color: var(--ink); }
.svcrow__list li::before { content: "›"; position: absolute; left: 0; color: var(--brass); font-family: var(--mono); }

/* =========================================================
   CONTACT / FORM
   ========================================================= */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.contact__aside .code { display: block; margin-bottom: 18px; }
.contact__detail { margin-top: 34px; }
.contact__detail .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-d); }
.contact__detail .v { color: var(--bone); margin-top: 4px; }
.contact__detail a { color: var(--brass); text-decoration: none; }

.form { background: var(--bone); padding: 40px; border-radius: 3px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-l); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-l); border-radius: 2px;
  padding: 13px 14px; transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(196,162,88,0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 0.82rem; color: var(--muted-l); }

.form__success {
  display: none; background: var(--navy); color: var(--bone);
  padding: 40px; border-radius: 3px; border: 1px solid var(--line-d);
}
.form__success .code { display: block; margin-bottom: 16px; }
.form__success h3 { color: var(--bone); margin-bottom: 10px; }
.form__success p { color: var(--muted-d); margin: 0; }
.is-sent .form { display: none; }
.is-sent .form__success { display: block; }

/* =========================================================
   PAGE HEADER (interior pages)
   ========================================================= */
.pagehead { background: var(--navy); color: var(--bone); padding: clamp(70px,10vh,120px) 0 clamp(50px,7vh,80px); position: relative; }
.pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--brass), transparent 70%); opacity: 0.5; }
.pagehead .code { display: block; margin-bottom: 18px; }
.pagehead h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.pagehead p { color: var(--muted-d); max-width: 54ch; margin-top: 20px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy); color: var(--muted-d); padding: 60px 0 36px; border-top: 1px solid var(--line-d); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand .brand__mark { font-size: 1.6rem; color: var(--bone); }
.footer__brand p { margin-top: 14px; max-width: 30ch; font-size: 0.92rem; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin: 0 0 16px; font-weight: 400; }
.footer__col a { display: block; color: var(--muted-d); text-decoration: none; font-size: 0.92rem; margin-bottom: 9px; transition: color 0.2s; }
.footer__col a:hover { color: var(--bone); }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.footer__base p { margin: 0; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; }

/* =========================================================
   MOTION
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: rise 0.9s var(--ease) both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }

@keyframes horizon { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 0.55; } }
.hero::before { animation: horizon 1.4s var(--ease) 0.3s both; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy); padding: 24px 28px; border-bottom: 1px solid var(--line-d);
  }
  .band, .contact, .field--row { grid-template-columns: 1fr; gap: 36px; }
  .services { grid-template-columns: 1fr; }
  .svcrow { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .svcrow__list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .hero::before { opacity: 0.55; transform: none; }
}

/* =========================================================
   CHARTER REQUEST — points + focused form
   ========================================================= */
.points { border-bottom: 1px solid var(--line-l); }
.point {
  display: grid; grid-template-columns: 230px 1fr; gap: 44px;
  padding: 30px 0; border-top: 1px solid var(--line-l); align-items: start;
}
.point__term { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.12; }
.point__body p { margin: 0; color: var(--muted-l); }
.point--note .point__term {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass-dim);
}
.point--note .point__body p { font-size: 0.9rem; }

.formwrap { max-width: 760px; margin: 0 auto; }
.formwrap .form__success { margin: 0; }

@media (max-width: 880px) {
  .point { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
}
