/* ============================================================
   styles.css — Might of Flight
   Shared base + page-scoped overrides (body.privacy)
   ============================================================ */

:root {
  --bg:          #f4f6f8;
  --bg-surface:  #eaecef;
  --bg-raised:   #dde2e7;
  --border:      #cdd4da;
  --border-hi:   #a8b8c4;
  --text-faint:  #9aaab8;
  --text-dim:    #5a7080;
  --text-mid:    #3a5060;
  --text-body:   #243040;
  --text-head:   #0d1e2c;
  --accent:      #1a6a9a;
  --accent-hi:   #1e82bc;
  --accent-dim:  #4a8aaa;
  --footer-bg:   #0d1e2c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 48px,
    rgba(26,106,154,0.028) 48px,
    rgba(26,106,154,0.028) 49px
  );
  pointer-events: none;
  z-index: 1000;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--accent-dim) 25%,
    var(--accent) 50%,
    var(--accent-dim) 75%,
    transparent 100%
  );
  z-index: 999;
}

.wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2.5rem 0 3rem;
  width: 100%;
  flex: 1;
}

/* ----- header ----- */

header {
  padding: 4.2rem 0 3.2rem;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.05s forwards;
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.14em;
  color: var(--text-head);
  text-transform: uppercase;
  line-height: 1;
}

.tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 0.8rem;
}

/* ----- sections ----- */

section {
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

section:last-of-type { border-bottom: none; }

section:nth-of-type(1) { animation-delay: 0.3s; }
section:nth-of-type(2) { animation-delay: 0.48s; }

.sec-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.18em;
  color: var(--text-head);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 48px;
}

p {
  font-size: clamp(1rem, 2.1vw, 1.1rem);
  font-weight: 300;
  line-height: 1.88;
  color: var(--text-body);
  margin-bottom: 1.1rem;
}

p:last-child { margin-bottom: 0; }

/* ----- About section (index): geese watermark ----- */

.section-about {
  position: relative;
  overflow: hidden;
}

.geese-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-about .sec-label,
.section-about p {
  position: relative;
  z-index: 1;
}

.geese-bg img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.13;
  filter: invert(38%) sepia(80%) saturate(450%)
          hue-rotate(172deg) brightness(0.78);
}

/* ----- contact form (index) ----- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
}

label .req { color: var(--accent); margin-left: 0.3em; }

input, textarea {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-body);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

input:focus, textarea:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(26,106,154,0.08);
}

textarea { resize: vertical; min-height: 110px; }

.checkbox-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  aspect-ratio: 1 / 1;
  padding: 0;
  margin-top: 0.15rem;
  line-height: 0;
  background-color: #fff;
  background-image: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 1px solid var(--border-hi);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.checkbox-row input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.checkbox-row input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='square' stroke-linejoin='miter'><polyline points='4 12 10 18 20 6'/></svg>");
}

.checkbox-row input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(26,106,154,0.25);
  outline-offset: 2px;
}

.checkbox-label {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-dim);
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.h-captcha {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.4rem;
}

button[type="submit"] {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0.75rem 2.2rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

button[type="submit"]:hover {
  background: var(--text-head);
  border-color: var(--text-head);
}

.form-note {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.form-status {
  display: none;
  padding: 0.85rem 1.1rem;
  border-left: 2px solid var(--accent);
  background: rgba(26,106,154,0.06);
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.65;
  grid-column: 1 / -1;
}

.form-status.visible { display: block; }
.form-status.error { border-color: #b83030; color: #903030; background: rgba(184,48,48,0.05); }

/* ----- privacy-only elements ----- */

.back-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s;
}

.back-link:hover { color: var(--text-head); }
.back-link:hover::before { background: var(--text-head); width: 26px; }

.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 4.4vw, 2.4rem);
  letter-spacing: 0.1em;
  color: var(--text-head);
  text-transform: uppercase;
  margin-top: 1.2rem;
  line-height: 1.1;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

li {
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-body);
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.45rem;
}

li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

li strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-head);
  text-transform: uppercase;
  display: inline-block;
  margin-right: 0.4em;
}

.controller-block {
  background: var(--bg-surface);
  border-left: 2px solid var(--accent);
  padding: 1.1rem 1.3rem;
  margin: 0.6rem 0 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 1.85;
  color: var(--text-mid);
  text-transform: uppercase;
}

.controller-block .name {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--text-head);
  display: block;
  margin-bottom: 0.4rem;
}

.controller-block a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,106,154,0.3);
}

.controller-block a:hover { border-bottom-color: var(--accent); }

.ref {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.sec-label .num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 400;
}

/* ----- privacy page overrides ----- */

body.privacy header {
  padding: 4.2rem 0 2.4rem;
}

body.privacy .logo {
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  letter-spacing: 0.18em;
}

body.privacy section {
  padding: 2.6rem 0;
}

body.privacy section:nth-of-type(1),
body.privacy section:nth-of-type(2) {
  animation-delay: 0.25s;
}

body.privacy .sec-label {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 1.5rem;
}

body.privacy p {
  font-size: 0.98rem;
  line-height: 1.82;
  margin-bottom: 1rem;
}

body.privacy footer { animation-delay: 0.5s; }

/* ----- footer (shared) ----- */

footer {
  background: var(--footer-bg);
  margin-top: 1px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.66s forwards;
}

.footer-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.4rem 2.5rem 1.8rem 3rem;
}

.footer-company {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: #e8f0f6;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.9rem;
}

.footer-line {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #9bb0c4;
  text-transform: uppercase;
  line-height: 1.7;
}

.footer-copyright {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: #5e7a90;
  text-transform: uppercase;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232,240,246,0.07);
}

/* ----- animations ----- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- responsive ----- */

@media (max-width: 580px) {
  .wrapper { padding: 0 1.4rem 0 1.8rem; }
  header   { padding: 3.5rem 0 3rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full, .checkbox-row, .form-actions { grid-column: 1; }
  .form-actions { flex-direction: column; align-items: flex-start; }
  .footer-body { padding: 2rem 1.4rem 1.6rem 1.8rem; }
  body.privacy header { padding: 3.5rem 0 2rem; }
}
