/* Fly Brothers Aviation: matches the Squarespace design.
   Anton headings (uppercase), Epilogue body, yellow / ink / off-white. */
:root {
  --yellow: #ffd200;
  --ink: #111111;
  --paper: #f7f7f2;
  --white: #ffffff;
  --line: rgba(17, 17, 17, 0.18);
  --muted: #4b4a44;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 36px);
  --radius: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.05; margin: 0; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h4 { font-size: 1.3rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 1.1rem; }
.yellow { background: var(--yellow); }
.dark { background: var(--ink); color: var(--white); }
.paper { background: var(--paper); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.center { text-align: center; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--yellow); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 30px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--ink); color: var(--yellow); font: 500 0.95rem/1.1 var(--body); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.yellow-btn { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--yellow); border-bottom: 1px solid rgba(17,17,17,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); }
.nav a { text-decoration: none; font-size: 0.94rem; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--yellow); border: 0; border-radius: var(--radius); padding: 9px 16px; cursor: pointer; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .78rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 28px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--yellow); padding: 8px var(--gutter) 24px; border-bottom: 2px solid var(--ink); transform: translateY(-120%); transition: transform .25s ease; }
  .nav.open { transform: none; }
  .nav a { font: 400 1.6rem/1.2 var(--display); text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .cart-btn { margin-top: 16px; justify-content: center; padding: 14px; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding: 56px 0 40px; }
.site-footer .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 48px; }
.site-footer h2 { color: var(--yellow); font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.site-footer .email { color: var(--yellow); font: 400 clamp(1.15rem, 2.6vw, 1.9rem)/1.1 var(--display); text-transform: uppercase; text-decoration: none; word-break: break-all; }
.site-footer p { max-width: 34ch; color: #e9e9e4; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.site-footer .links a { color: #e9e9e4; font-size: .92rem; }
.site-footer .yt { display: inline-flex; margin-top: 14px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #2a2a28; padding-top: 22px; font-size: .85rem; color: #a8a79f; }
@media (max-width: 760px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* Home */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; text-align: center; overflow: hidden; }
.hero h1 { max-width: 22ch; margin: 0 auto; }
.hero h4 { margin-top: 30px; }
.hero p { max-width: 42ch; margin: 18px auto 0; font-weight: 500; }
.hero .btn { margin-top: 26px; }
.hero .banner { margin: clamp(30px, 6vw, 60px) 0 0; width: 100%; max-width: none; }
.marquee { background: var(--yellow); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; padding: 18px 0; }
.marquee .track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font: 400 clamp(2rem, 5vw, 3.8rem)/1 var(--display); text-transform: uppercase; padding-right: 0.9em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } html { scroll-behavior: auto; } .btn { transition: none; } }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.services .photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4/3; background: #ddd; }
.services .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.services .photo img.on { opacity: 1; }
.services .photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 16px 14px; color: #fff; font-size: .88rem; line-height: 1.35; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } }

.accordion { border-top: 1px solid var(--ink); margin-top: 22px; }
.accordion details { border-bottom: 1px solid var(--ink); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 400 1.35rem/1.1 var(--display); text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font: 300 1.8rem/1 var(--body); }
.accordion details[open] summary::after { content: "\2212"; }
.accordion .panel { padding: 0 0 22px 0; max-width: 52ch; }
.accordion .panel > * + * { margin-top: .8rem; }

.youtube { text-align: center; }
.youtube h2 { max-width: 20ch; margin: 0 auto; }
.youtube .btn { margin-top: 28px; }

/* Content pages on yellow (How it works, Pricing) */
.page-yellow { background: var(--yellow); min-height: 60vh; }
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 28px; }
.prose h3 { margin: 40px 0 14px; }
.prose p, .prose li { font-size: 1.06rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 14px 0 0; }
.prose li + li { margin-top: 10px; }
.prose p + p { margin-top: 14px; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(17,17,17,.25); }
.steps li:last-child { border-bottom: 1px solid rgba(17,17,17,.25); }
.steps li::before { content: counter(step); font: 400 2.2rem/1 var(--display); }
.cta-line { margin-top: 36px !important; font-weight: 500; }

/* Request form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 28px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .num { font-family: var(--display); margin-right: 4px; }
.field .req { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 12px 14px; }
.field textarea { min-height: 140px; resize: vertical; }
.form .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-note { color: var(--muted); font-size: .9rem; }
.hidden { display: none !important; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* About */
.about-intro { max-width: 820px; }
.about-intro h3 { margin-bottom: 18px; }
.about-intro p + p { margin-top: 14px; }
.team { display: grid; gap: clamp(40px, 6vw, 72px); margin-top: 36px; }
.member { display: grid; grid-template-columns: 220px 1fr; gap: clamp(22px, 4vw, 48px); align-items: start; }
.member img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; }
.member h3 { margin-bottom: 14px; }
.member p + p { margin-top: 12px; }
/* Meet the Fly Brothers: two side by side, photo above the bio */
.team.pair { grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.team.pair .member { grid-template-columns: 1fr; gap: 18px; }
@media (max-width: 760px) { .member { grid-template-columns: 1fr; } .member img { width: 180px; height: 180px; } .team.pair { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 32px; }
.gallery-grid figure { margin: 0; position: relative; aspect-ratio: 1; overflow: hidden; background: #222; cursor: zoom-in; }
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: .88rem; line-height: 1.35; background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .2s; }
.gallery-grid figure:hover figcaption, .gallery-grid figure:focus-within figcaption { opacity: 1; }
@media (hover: none) { .gallery-grid figcaption { opacity: 1; } }
.gallery-grid button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.94); display: grid; grid-template-rows: 1fr auto; padding: 56px 16px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; border-radius: 8px; }
.lightbox .cap { color: #fff; text-align: center; padding: 14px 8px 4px; }
.lightbox .lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox .lb-close { top: 10px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; }
.lightbox .lb-next { right: 12px; top: 50%; }

/* Legal */
.legal { max-width: 820px; }
.legal h2 { margin: 48px 0 12px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.legal h3 { margin: 26px 0 8px; font-size: 1.25rem; }
.legal p { margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal .toc { margin-top: 26px; padding: 18px 22px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); }
.legal .toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2 240px; }
.back-top { display: inline-block; margin-top: 18px; font-size: .9rem; }

/* Gallery page: black page and header; cart stays yellow */
.page-gallery, .page-gallery main, .page-gallery .section.paper { background: #000; color: #fff; }
.page-gallery .site-header { background: #000; border-bottom-color: #000; }
.page-gallery .nav a { color: #fff; }
.page-gallery .nav a:hover, .page-gallery .nav a[aria-current="page"] { border-bottom-color: var(--yellow); color: var(--yellow); }
.page-gallery .cart-btn { background: #000; color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); }
.page-gallery .cart-count { background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--yellow); }
.page-gallery .menu-toggle span { background: #fff; }
.page-gallery .site-footer { border-top: 1px solid #1d1d1d; }
.page-gallery h1 { color: var(--yellow); }
@media (max-width: 860px) { .page-gallery .nav { background: #000; border-bottom-color: var(--yellow); } .page-gallery .nav a { border-bottom-color: #222; } }

/* File Your Request: styled like an ICAO flight plan form */
.fpl { margin-top: 30px; background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); font-family: "DM Mono", ui-monospace, Menlo, monospace; }
.fpl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 2px solid var(--ink); }
.fpl-head .t { font: 400 1.9rem/1 var(--display); letter-spacing: .04em; }
.fpl-head .s { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.fpl-row { display: grid; border-bottom: 1.5px solid var(--ink); }
.fpl-row:last-of-type { border-bottom: 0; }
.fpl-row.c2 { grid-template-columns: 1fr 1fr; }
.fpl-row.c3 { grid-template-columns: 1fr 1fr 1fr; }
.fpl-row.c4 { grid-template-columns: repeat(4, 1fr); }
.fpl-box { position: relative; padding: 22px 12px 8px; border-right: 1.5px solid var(--ink); min-width: 0; }
.fpl-box:last-child { border-right: 0; }
.fpl-box label { position: absolute; top: 6px; left: 12px; right: 8px; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpl-box label b { display: inline-grid; place-items: center; min-width: 18px; height: 16px; margin-right: 6px; padding: 0 3px; background: var(--ink); color: #fff; font-weight: 500; font-size: .62rem; letter-spacing: 0; }
.fpl-box input, .fpl-box select, .fpl-box textarea { width: 100%; border: 0; background: transparent; padding: 6px 0 2px; font: 500 1.02rem/1.3 "DM Mono", ui-monospace, monospace; color: var(--ink); border-bottom: 1px dotted rgba(17,17,17,.35); border-radius: 0; }
.fpl-box input:focus, .fpl-box select:focus, .fpl-box textarea:focus { outline: none; background: #fff8d1; }
.fpl-box textarea { min-height: 110px; resize: vertical; }
.fpl-box input::placeholder, .fpl-box textarea::placeholder { color: #a5a49c; }
.fpl-arrow { font: 400 1.3rem/1 var(--display); padding: 0 6px; align-self: center; }
.fpl-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 2px solid var(--ink); background: var(--yellow); }
.fpl-foot .req { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 680px) { .fpl { box-shadow: 4px 4px 0 var(--ink); margin-right: 4px; } .fpl-row.c2, .fpl-row.c3, .fpl-row.c4 { grid-template-columns: 1fr; } .fpl-box { border-right: 0; border-bottom: 1px solid rgba(17,17,17,.25); } .fpl-box:last-child { border-bottom: 0; } }

/* Home: clouds scattered in the yellow area around the headline (behind the text).
   Each cloud is placed a fixed distance from the page center so it stays beside the text,
   and its width shrinks with the screen so it never runs off the edge. */
.hero { position: relative; }
.hero .wrap { position: relative; z-index: 1; }
.hero-clouds { position: absolute; inset: 0; pointer-events: none; }
.hero-clouds img { position: absolute; height: auto; display: none; }
@media (min-width: 1200px) {
  .hero-clouds img { display: block; }
  /* beside the headline (headline is about 800px wide) */
  .hero-clouds .c1 { right: calc(50% + 440px); top: 70px; width: min(260px, calc(50vw - 480px)); }
  .hero-clouds .c4 { left: calc(50% + 440px); top: 120px; width: min(230px, calc(50vw - 490px)); }
  /* above the headline */
  .hero-clouds .c2 { right: calc(50% + 250px); top: 14px; width: 110px; }
  .hero-clouds .c5 { left: calc(50% + 220px); top: 8px; width: 140px; }
  /* beside the paragraph and button (narrower) */
  .hero-clouds .c3 { right: calc(50% + 250px); top: 400px; width: 180px; }
  .hero-clouds .c6 { left: calc(50% + 250px); top: 370px; width: 150px; }
  .hero-clouds .c7 { right: calc(50% + 130px); top: 518px; width: 96px; }
  .hero-clouds .c8 { right: calc(50% + 470px); top: 290px; width: min(150px, calc(50vw - 490px)); }
  .hero-clouds .c9 { left: calc(50% + 460px); top: 300px; width: min(170px, calc(50vw - 480px)); }
  .hero-clouds .c10 { left: calc(50% + 140px); top: 520px; width: 110px; }
  .hero-clouds .c11 { left: calc(50% + 30px); top: 10px; width: 80px; }
}
@media (min-width: 1200px) and (max-width: 1399px) { .hero-clouds .c8, .hero-clouds .c9 { display: none; } }
@media (max-width: 1199px) {
  /* --btn-y (button center) and --h1-half (half the headline width) are set by site.js */
  .hero-clouds .c3, .hero-clouds .c6 { display: block; }
  .hero-clouds .c3 { right: calc(50% + 122px); top: calc(var(--btn-y, 420px) - 32px); width: min(140px, calc(50vw - 140px)); }
  .hero-clouds .c6 { left: calc(50% + 122px); top: calc(var(--btn-y, 420px) - 26px); width: min(124px, calc(50vw - 140px)); }
}
@media (min-width: 761px) and (max-width: 1199px) {
  .hero-clouds .c1, .hero-clouds .c4 { display: block; }
  .hero-clouds .c1 { right: calc(50% + var(--h1-half, 400px) + 14px); top: 70px; width: min(150px, calc(50vw - var(--h1-half, 400px) - 30px)); }
  .hero-clouds .c4 { left: calc(50% + var(--h1-half, 400px) + 14px); top: 130px; width: min(140px, calc(50vw - var(--h1-half, 400px) - 30px)); }
  .hero-clouds .c8, .hero-clouds .c9, .hero-clouds .c11 { display: block; }
  .hero-clouds .c8 { right: calc(50% + var(--h1-half, 400px) + 24px); top: 190px; width: min(100px, calc(50vw - var(--h1-half, 400px) - 40px)); }
  .hero-clouds .c9 { left: calc(50% + var(--h1-half, 400px) + 30px); top: 20px; width: min(96px, calc(50vw - var(--h1-half, 400px) - 46px)); }
  .hero-clouds .c11 { left: calc(50% + 30px); top: 8px; width: 64px; }
}
@media (max-width: 760px) {
  .hero-clouds .c3 { right: calc(50% + 108px); top: calc(var(--btn-y, 420px) - 16px); width: min(76px, calc(50vw - 116px)); }
  .hero-clouds .c6 { left: calc(50% + 108px); top: calc(var(--btn-y, 420px) - 14px); width: min(70px, calc(50vw - 116px)); }
  .hero-clouds .c9, .hero-clouds .c11 { display: block; top: 6px; width: 58px; }
  .hero-clouds .c9 { left: 10px; }
  .hero-clouds .c11 { right: 10px; }
}

/* Header color by page: white on Home, How it works, Pricing and File Your Request */
.page-home .site-header, .page-how-it-works .site-header, .page-pricing .site-header, .page-request .site-header, .page-request-sent .site-header { background: #fff; }
@media (max-width: 860px) {
  .page-home .nav, .page-how-it-works .nav, .page-pricing .nav, .page-request .nav, .page-request-sent .nav { background: #fff; }
}

/* Home: half the gap between the photo section and the YouTube section */
.home-services { padding-bottom: clamp(28px, 4.5vw, 55px); }
.home-youtube { padding-top: clamp(28px, 4.5vw, 55px); }
@media (max-width: 374px) { .hero-clouds .c9, .hero-clouds .c11 { width: 44px; top: 4px; } }

/* Header spans the full screen: logo 34px from the left edge, cart (or menu button) 34px from the right,
   and the page tabs sit right next to the logo */
.site-header .wrap { max-width: none; padding: 0 34px; }
@media (min-width: 861px) {
  .site-header .wrap { justify-content: flex-start; gap: 0; }
  .site-header .nav { flex: 1; margin-left: clamp(28px, 3vw, 48px); }
  .site-header .cart-btn { margin-left: auto; }
}
@media (max-width: 860px) { .menu-toggle { margin-right: -8px; } }

/* About, phones only: center each person's photo and name (bio text stays left-aligned) */
@media (max-width: 760px) { .member img { margin: 0 auto; } .member h3 { text-align: center; } }

/* About, phones only: center the section headings too */
@media (max-width: 760px) { .page-about .section h2 { text-align: center; } }
