/* ============================================================
   Helisite public landing page
   Dedicated stylesheet for root index.php only
   ============================================================ */

:root {
  --helisite-dark-navy: #062A3F;
  --helisite-blue-black: #102229;
  --helisite-off-white: #e9e8e7;
  --helisite-mid-teal: #33788F;
  --helisite-mustard: #FDD501;
  --mid-blue: #094863;
  --mid-green: #259C7F;
  --dark-brown: #2D2823;
  --light-mid-brown: #ECE9E2;
  --dark-navy: var(--helisite-dark-navy);

  --baseline: 8px;
  --max-width: 1200px;
  --page-pad: clamp(1rem, 4vw, 4rem);
  --section-y: clamp(3rem, 8vw, 6.5rem);
  --radius: 12px;
  --radius-sm: 6px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --h1: clamp(2.25rem, 5vw, 3.75rem);
  --h2: clamp(1.5rem, 3vw, 2rem);
  --h3: clamp(1.05rem, 1.5vw, 1.2rem);
  --body: clamp(0.95rem, 1.2vw, 1.05rem);
  --small: 0.9rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .stagger {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark-navy);
  line-height: 1.55;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--dark-navy);
  text-decoration: none;
}

a:hover {
  color: var(--helisite-mustard);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--helisite-mustard);
  outline-offset: 2px;
}

h1, h2, h3, p {
  margin: 0 0 1rem;
}

h1 {
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark-navy);
}

h2 {
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark-navy);
}

h3 {
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-navy);
}

p {
  font-size: var(--body);
  font-weight: 400;
  color: var(--dark-navy);
}

ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--mid-green);
  font-size: var(--body);
  font-weight: 600;
  line-height: 1.7;
}

/* Layout */
.wrap {
  width: min(100% - (var(--page-pad) * 2), var(--max-width));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section {
  padding-block: var(--section-y);
}

.section-intro {
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-intro.center,
.center {
  text-align: center;
  margin-inline: auto;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-green);
}

.muted {
  color: rgba(6, 42, 63, 0.78);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--helisite-mustard);
  color: var(--dark-navy);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--mid-blue);
  color: var(--helisite-mustard);
}

.btn:active {
  background: var(--helisite-mid-teal);
  color: var(--helisite-mustard);
  transform: translateY(1px);
}

.btn-block {
  width: 100%;
}

/* Nav */
.nav-panel {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6, 42, 63, 0.06);
  transition: box-shadow 0.2s ease;
}

.nav-panel.is-scrolled {
  box-shadow: 0 8px 24px rgba(6, 42, 63, 0.08);
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  /* Tighter edge insets than global .wrap */
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-block: 0.65rem;
  padding-inline: clamp(0.5rem, 1.5vw, 1rem);
}

.logo-link {
  flex: 0 0 auto;
}

.logo-img {
  height: 2.75rem;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(6, 42, 63, 0.15);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.nav-toggle:hover {
  border-color: rgba(6, 42, 63, 0.28);
  background: var(--helisite-off-white);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  background: var(--dark-navy);
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before {
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  transform: translateY(4px);
}

.nav-panel.is-open .nav-toggle-bars {
  background: transparent;
}

.nav-panel.is-open .nav-toggle-bars::before {
  transform: translateY(0) rotate(45deg);
}

.nav-panel.is-open .nav-toggle-bars::after {
  transform: translateY(-2px) rotate(-45deg);
}

/* Hamburger menu at all breakpoints — content-width, right-aligned */
.site-nav {
  display: none;
  position: absolute;
  top: calc(100% - 0.15rem);
  right: 0;
  left: auto;
  width: max-content;
  min-width: 11rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.4rem 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(6, 42, 63, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 24px rgba(6, 42, 63, 0.1);
  z-index: 1001;
}

.nav-panel.is-open .site-nav {
  display: flex;
}

.site-nav a {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(6, 42, 63, 0.06);
}

.site-nav a:last-child {
  border-bottom: 0;
}

.site-nav a:hover {
  background: rgba(6, 42, 63, 0.04);
}

/* Hero */
.hero-panel {
  background-color: var(--helisite-mustard);
  background-image: url("/assets/images/helipad_banner.jpg");
  /* Overscale + left bias so rotor disk centre sits near the right border */
  background-size: 142% auto;
  background-position: 0% 55%;
  background-repeat: no-repeat;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Mustard wash only on the left; transparent by mid-panel */
  background: linear-gradient(
    90deg,
    rgba(253, 213, 1, 0.94) 0%,
    rgba(253, 213, 1, 0.82) 14%,
    rgba(253, 213, 1, 0.45) 28%,
    rgba(253, 213, 1, 0.12) 40%,
    rgba(253, 213, 1, 0) 50%
  );
}

/* Keep copy on the left; 75% of panel width */
.hero.wrap {
  position: relative;
  z-index: 1;
  width: calc(75% - var(--page-pad));
  max-width: 75%;
  margin-left: clamp(0.75rem, 2.5vw, 2rem);
  margin-right: auto;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 500;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

/* Value */
.value-panel {
  background: #fff;
}

.value-title {
  max-width: 14ch;
}

.value-copy p + p {
  margin-top: 0.85rem;
}

.value-copy .lead {
  font-weight: 700;
  line-height: 1.55;
}

/* Features */
.features-panel {
  background: var(--light-mid-brown);
}

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 22rem;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(6, 42, 63, 0.06);
}

.feature-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.feature-card p {
  flex: 1 1 auto;
  font-size: var(--small);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.feature-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Geospatial / Exports / Security cards */
.card-grid .card {
  height: 100%;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(6, 42, 63, 0.08);
  box-shadow: 0 10px 28px rgba(6, 42, 63, 0.04);
}

.card-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  color: var(--helisite-mustard);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin-bottom: 0.65rem;
}

.card p {
  font-size: var(--small);
  line-height: 1.6;
  margin: 0;
  color: rgba(6, 42, 63, 0.86);
}

.geospatial-panel {
  background: #fff;
}

.exports-panel {
  background: var(--helisite-off-white);
}

.security-panel {
  background: #fff;
}

/* Process */
.process-intro-panel {
  background: #fff;
  padding-bottom: 0;
}

.process-intro-panel .section {
  padding-bottom: 1.5rem;
}

.process-panel {
  background: var(--helisite-mustard);
}

.process-panel .section {
  padding-top: 2rem;
}

.step {
  text-align: center;
}

.step img {
  width: min(100%, 11rem);
  height: auto;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: var(--small);
  font-weight: 500;
  margin: 0 auto;
  max-width: 18rem;
}

/* CTA */
.cta-panel {
  background-color: var(--light-mid-brown);
  background-image: url("/assets/images/footer_bar_small.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 34, 41, 0.55);
}

.cta {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.cta h2,
.cta p {
  color: var(--light-mid-brown);
}

.cta p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Contact */
.contact-panel {
  background: #fff;
}

.contact-copy p {
  max-width: 28rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(6, 42, 63, 0.18);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--dark-navy);
  font: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-status {
  min-height: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mid-green);
}

.form-status.is-error {
  color: #a33a2d;
}

/* Footer */
.footer-panel {
  background: var(--dark-navy);
  color: var(--light-mid-brown);
}

.footer {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.footer p,
.footer a {
  color: var(--light-mid-brown);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

.footer a:hover {
  color: var(--helisite-mustard);
}

.footer-logo {
  height: 2.75rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-meta p {
  margin-bottom: 0.75rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.stagger:nth-child(1) { transition-delay: 0.05s; }
.stagger:nth-child(2) { transition-delay: 0.12s; }
.stagger:nth-child(3) { transition-delay: 0.19s; }
.stagger:nth-child(4) { transition-delay: 0.26s; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .value-title {
    max-width: none;
  }

  .feature-card .btn,
  .hero .btn {
    width: 100%;
  }

  .hero-panel {
    background-size: cover;
    background-position: 20% 30%;
  }

  .hero-panel::before {
    background: linear-gradient(
      90deg,
      rgba(253, 213, 1, 0.94) 0%,
      rgba(253, 213, 1, 0.78) 22%,
      rgba(253, 213, 1, 0.35) 48%,
      rgba(253, 213, 1, 0.08) 68%,
      rgba(253, 213, 1, 0) 82%
    );
  }

  .hero.wrap {
    width: min(100% - (var(--page-pad) * 2), var(--max-width));
    max-width: none;
    margin-left: var(--page-pad);
    margin-right: var(--page-pad);
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .logo-img {
    height: 2.25rem;
  }

  .hero.wrap {
    padding-block: 3.25rem;
    width: calc(100% - (var(--page-pad) * 2));
    margin-left: var(--page-pad);
    margin-right: var(--page-pad);
  }

  .hero-panel {
    background-size: cover;
    background-position: 30% 28%;
  }

  .feature-image {
    max-width: 100%;
  }

  .step img {
    width: 8.5rem;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
