/* --- Theme tokens --- */
:root{
  --bg:#0b1220; --ink:#eaf0ff; --muted:#b9c3d6; --brand:#5dd0ff; --brand-2:#7cf4d1;
  --surface:#111a2d; --card:#0f182b; --accent:#ff7a1a; --accent-2:#ff9c4a;
  --stripe: url('img/default.jpg');               /* per-stripe can override */
  --stripe-pos: 0%;                               /* 0% (top) → 100% (bottom) */
  --stripe-base-h: 220px;                         /* base stripe height */
  --stripe-h: var(--stripe-base-h);               /* current stripe height */
}

/* Allow animating the custom prop when scroll-timeline is supported */
@property --stripe-pos{
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

*{box-sizing:border-box}
html,body{margin:0; padding:0; background:var(--bg); color:var(--ink); font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif; line-height:1.5}
a{color:inherit}
img{max-width:100%; height:auto; display:block}
.wrap{width:min(1120px,92vw); margin-inline:auto}

/* Hero */
header.hero{position:relative; overflow:hidden;
  background:radial-gradient(1200px 600px at 80% -10%, #1c2a4b 20%, transparent 60%),
             linear-gradient(180deg,#0b1220, #0a1327 60%, #0b1220)}
.hero-inner{display:grid; grid-template-columns:1fr; gap:28px; padding:80px 0 22px}
.brand{display:flex; align-items:center; gap:18px}
.brand h1{font-size:clamp(28px,4vw,44px); margin:0; letter-spacing:.3px}
.lead{font-size:clamp(16px,2.2vw,20px); color:var(--muted); max-width:70ch}
.cta-row{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.btn{display:inline-flex; align-items:center; gap:10px; border:1px solid #27324b;
     background:linear-gradient(180deg,#1a2745,#16233f); color:#e9efff;
     padding:12px 18px; border-radius:999px; text-decoration:none; font-weight:600}
.btn:hover{filter:brightness(1.05)}
.btn-ghost{background:transparent}

.brand img {
  width: 600px;
  max-width: 80%;   /* never wider than the column */
  height: auto;      /* keep aspect ratio */
  display: block;    /* removes inline whitespace below image */
}

/* Section */
section{padding:22px 0; border-top:1px solid #111b34}
h2{font-size:clamp(22px,3vw,32px); margin:0 0 16px}
p{margin:0 0 12px}

/* Features grid */
.features{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px}
.card{background:var(--card); border:1px solid #1b2745; border-radius:18px; padding:18px}
.card h3{margin:8px 0 6px; font-size:18px}
.card p{color:var(--muted); font-size:14px}

/* themes explainer */
.pill{display:inline-block; padding:6px 10px; border-radius:999px;
     background:#13203a; border:1px solid #24345a; color:#cfe4ff; font-size:12px; margin-right:8px}

/* Stripe image/video (between examples) — scroll-driven pan top→bottom */
.stripe{
  height: var(--stripe-h);
  background-image:var(--stripe);
  background-size:cover;
  background-repeat:no-repeat;
  background-position:50% var(--stripe-pos); /* 0% at entry, 100% at exit */
  border-top:1px solid #1a2646; border-bottom:1px solid #1a2646;
  will-change: background-position, height;
  transition: height .3s ease;
  margin-bottom:36px; margin-top:8px;
}

/* Progressive enhancement: native scroll-driven animation */
@keyframes stripeVar { from{ --stripe-pos: 0%; } to{ --stripe-pos: 100%; } }
/* Ensure the video element itself animates --stripe-pos */
/* Ensure the video element itself animates --stripe-pos */
@supports (animation-timeline: view()) {
  .stripe-video .bg-video{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; object-position:50% var(--stripe-pos);
    display:block; pointer-events:auto;
    will-change: object-position;

    /* add these three lines */
    animation: stripeVar linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}

/* Make image stripes animate with native scroll-timeline as well */
@supports (animation-timeline: view()) {
  .stripe{
    animation: stripeVar linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .stripe{ animation: none !important; background-position:50% 50% !important; }
}

/* Example apps list */
.example{
  display:flex;
  grid-template-columns:80px 1fr;
  align-items:flex-start;
  gap: 12px;                 /* row-gap 0, column-gap 6px */
}
.example + .example{ margin-top:18px; }   /* correct selector */
.example .logo{
  flex: 0 0 auto;
  width:96px; height:96px; border-radius:16px;
  background:#0f1b30; border:1px solid #22345b;
  display:grid; place-items:center;
  /* margin-right:8px;  <-- remove this */
  align-self:start;
}
.example .infotext {
  flex: 1 1 auto;          /* fill the remaining space */
  min-width: 0;            /* allow shrink, prevents overflow */
}
.example .logo img{width:40px; height:40px;}
.example h3{margin:0}
.example p{margin:4px 0 0; color:var(--muted)}

.highlight{background:linear-gradient(180deg,#13203a,#0f1a31); border:1px solid #203259; border-radius:18px; padding:20px}

/* Orange action button (AeroTourer) */
.btn-primary{background:linear-gradient(180deg,var(--accent),var(--accent-2)); color:#1a120b; border:0; box-shadow:0 6px 20px rgba(255,122,26,.18)}
.btn-primary:hover{filter:brightness(1.05)}

/* Footer */
footer{padding:28px 0 60px; color:#8ea0bf; text-align:center}

/* Small */
@media (min-width: 960px){
  .hero-inner{grid-template-columns:1.2fr .8fr}
}

/* Per-stripe images (override --stripe as needed) */
.stripe-aero    { --stripe: url('img/airshow.png'); }
.stripe-ocean   { --stripe: url('img/sailing.png'); }
.stripe-prospect{ --stripe: url('img/prospecting.png'); }
.stripe-pooch   { --stripe: url('img/dog-beach.png'); }
.stripe-kiddie  { --stripe: url('img/familylunch.png'); }
.stripe-wedding { --stripe: url('img/wedding-show.png'); }
.stripe-surfie  { --stripe: url('img/surfing.png'); }
.stripe-mountain-bike { --stripe: url('img/mountain-bikes.png'); }

/* Video stripe: same cut-out; click to expand to 3× height (not fullscreen) */
.stripe-video{ position:relative; overflow:hidden; cursor:zoom-in; }
.stripe-video.expanded{ --stripe-h: calc(var(--stripe-base-h) * 3); cursor:zoom-out; }
.stripe-video .bg-video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:50% var(--stripe-pos);
  display:block; pointer-events:auto;
}

/* Reduced-motion override for video too */
@media (prefers-reduced-motion: reduce){
  .stripe-video .bg-video{ object-position:50% 50% !important; }
}

/* Contact Form - Centered & Scrollable */
.contact-form {
    display: none; /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #222;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh; /* Prevents overflow on small screens */
    overflow-y: auto; /* Enables scrolling inside the form */
    text-align: center;
    z-index: 1000;
}

.contact-form input,
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    max-height: 40vh; /* Prevents textarea from making the form too large */
    overflow-y: auto;
}

.contact-form label {
    display: block;
    margin: 10px 0;
    font-size: 1rem;
    color: #fff;
}

/* Button Styling */
.contact-form button {
    padding: 10px 20px;
    background: #ff7f50;
    color: #fff;
    border: none;
    cursor: pointer;
}


.contact-form button:hover {
    background: #ff5733;
}

/* Form Message */
#formMessage {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

/* Close (X) Button */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100; /* Ensure it’s always on top */
}

.close-button:hover {
    color: #ff7f50; /* Changes color on hover */
}

/* Hide the default Google reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
}

/* Call-to-action button */
.cta-button, .contact-button, .access-button, .home-button {
    display: inline-block;
    padding: 15px 30px;
    background: #ff7f50;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.cta-button:hover, .contact-button:hover, .access-button:hover, .home-button:hover {
    background: #ff5733;
}

/* Ensure both buttons have white text */
.contact-button, .home-button, .access-button {
    color: #fff !important; /* Override the color for buttons */
}
