/*
Theme Name: StoryFlight Labs
Theme URI: https://storyflightlabs.com
Author: StoryFlight Lab, PBC
Author URI: https://storyflightlabs.com
Description: Official website theme for StoryFlight Labs, PBC — a public benefit corporation restoring dignity, sparking imagination, and strengthening bonds between people.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storyflight
Tags: custom-colors, custom-logo, full-width-template, one-column
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --navy-deep:    #0D1B2E;
  --navy-mid:     #132340;
  --navy-cloud:   #1A2F4A;
  --navy-soft:    #243755;
  --navy-muted:   #2E4666;
  --gold:         #C4782A;
  --gold-bright:  #D4892E;
  --gold-pale:    #F0CFA0;
  --gold-faint:   rgba(196,120,42,0.12);
  --cream:        #F5EDD8;
  --cream-dim:    #C8B89A;
  --white-text:   #EEF3F9;
  --muted-text:   #8FAAC8;
  --faint-text:   #4E6B8A;
  --border:       rgba(196,120,42,0.18);
  --border-soft:  rgba(255,255,255,0.07);
  --radius:       12px;
  --radius-lg:    16px;
  --max-width:    900px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--navy-deep);
  color: var(--white-text);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   STAR FIELD BACKGROUND
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 12%, rgba(196,120,42,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 8%,  rgba(196,120,42,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 22%, rgba(196,120,42,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 5%,  rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 18%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 28% 25%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 40%, rgba(196,120,42,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 8%  35%, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--cream);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: 1.0625rem; }

p {
  font-size: 1rem;
  color: var(--muted-text);
  line-height: 1.85;
  font-weight: 300;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
  opacity: 0.8;
  font-family: 'DM Sans', sans-serif;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,27,46,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border-soft);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 0.5px solid var(--border);
}

.nav-logo-text {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav-logo-text .nav-sub {
  color: var(--gold-bright);
  font-weight: 400;
  font-size: 0.68rem;
  display: block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cream);
}

.nav-cta {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--gold-pale) !important;
  border: 0.5px solid var(--border) !important;
  border-radius: 20px;
  padding: 6px 16px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold-faint) !important;
  color: var(--gold-pale) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted-text);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: var(--navy-deep);
}

.btn-ghost {
  display: inline-block;
  color: var(--muted-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 12px 28px;
  border-radius: 30px;
  border: 0.5px solid var(--border-soft);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-ghost:hover {
  background: var(--border-soft);
  color: var(--cream);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero-logo-wrap {
  margin: 0 auto 2.5rem;
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: clamp(220px, 40vw, 360px);
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 8px 40px rgba(196,120,42,0.25));
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.pbc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-pale);
  background: var(--gold-faint);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 2rem;
  font-family: 'DM Sans', sans-serif;
}

.pbc-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  flex-shrink: 0;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.18;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--muted-text);
  max-width: 540px;
  margin: 0 auto 2.75rem;
  font-weight: 300;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.flight-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flight-line {
  flex: 1;
  height: 0.5px;
  background: var(--border-soft);
}

/* ============================================================
   MISSION
   ============================================================ */
.mission {
  text-align: center;
}

.mission-quote {
  font-family: 'Lora', serif;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--cream);
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.mission-body {
  font-size: 1rem;
  color: var(--muted-text);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.9;
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  padding-top: 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pillar-card {
  background: var(--navy-cloud);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s;
}

.pillar-card:hover {
  border-color: var(--border);
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gold-faint);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.pillar-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.pillar-card p {
  font-size: 0.9375rem;
  color: var(--muted-text);
  line-height: 1.8;
  font-weight: 300;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.product-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 0.5px solid var(--border-soft);
  background: var(--navy-cloud);
  transition: border-color 0.25s, transform 0.2s;
}

.product-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover::before {
  opacity: 1;
}

.product-tag {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  background: var(--gold-faint);
  color: var(--gold-pale);
  border: 0.5px solid var(--border);
  font-family: 'DM Sans', sans-serif;
}

.product-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.product-card p {
  font-size: 0.9375rem;
  color: var(--muted-text);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.product-deco {
  position: absolute;
  right: -8px;
  top: -8px;
  font-size: 5rem;
  opacity: 0.05;
  transform: rotate(15deg);
  line-height: 1;
  pointer-events: none;
}

.product-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold-bright);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.product-link:hover {
  gap: 9px;
  color: var(--gold-bright);
}

/* ============================================================
   IMPACT / CTA BLOCK
   ============================================================ */
.impact-wrap {
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.impact {
  background: var(--navy-cloud);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
}

.impact h2 {
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.impact p {
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 0.5px solid var(--border-soft);
  padding: 2.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.foot-name {
  font-family: 'Lora', serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 3px;
}

.foot-sub {
  font-size: 0.8125rem;
  color: var(--faint-text);
}

.foot-copy {
  font-size: 0.8125rem;
  color: var(--faint-text);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up             { animation: fadeUp 0.75s ease both; }
.fade-up.delay-1     { animation-delay: 0.1s; }
.fade-up.delay-2     { animation-delay: 0.24s; }
.fade-up.delay-3     { animation-delay: 0.4s; }
.fade-up.delay-4     { animation-delay: 0.56s; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  padding-top: 5rem;
  padding-bottom: 1.5rem;
  text-align: center;
}

.contact-hero h1 {
  margin-bottom: 1rem;
  line-height: 1.18;
}

.contact-hero-sub {
  font-size: 1.0625rem;
  color: var(--muted-text);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.85;
}

/* Form section — wider than default content width */
.contact-form-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.form-success,
.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.form-success {
  background: var(--gold-faint);
  border: 0.5px solid var(--border);
  color: var(--gold-pale);
}

.form-error {
  background: rgba(226,75,74,0.08);
  border: 0.5px solid rgba(226,75,74,0.3);
  color: #F09595;
}

/* The form itself */
.contact-form {
  background: var(--navy-cloud);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.75rem 3rem;
}

/* Form table layout — labels in fixed left column, fields flush-left in right column */
.contact-form table {
  width: 100%;
  border-collapse: collapse;
}

.contact-form table tr td {
  padding: 0 0 1.75rem 0;
  vertical-align: top;
}

.contact-form table tr:last-child td {
  padding-bottom: 0;
}

/* Label column — fixed width so all fields start at the same left edge */
.cf-label-cell {
  width: 180px;
  min-width: 180px;
  padding-right: 1.5rem !important;
  padding-top: 13px !important;
}

.cf-label-cell label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-text);
  letter-spacing: 0.02em;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

/* Field column — takes remaining width */
.cf-field-cell {
  width: 100%;
}

.required {
  color: var(--gold-bright);
}

/* Name + Email side by side within a single field cell */
.cf-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.cf-sub-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-text);
  letter-spacing: 0.02em;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--navy-mid);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--white-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
  box-sizing: border-box;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--border);
  box-shadow: 0 0 0 3px rgba(196,120,42,0.12);
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238FAAC8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form select option {
  background: var(--navy-mid);
  color: var(--white-text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.cf-group {
  display: block;
  margin-bottom: 1.75rem;
}

.cf-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cf-privacy {
  font-size: 0.8125rem;
  color: var(--faint-text);
  font-weight: 300;
  margin: 0;
}

/* Info strip below the form */
.contact-info-strip {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-info-strip-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--navy-cloud);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}

.cis-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.cis-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-faint);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cis-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint-text);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 2px;
}

.cis-value {
  font-size: 0.9375rem;
  color: var(--cream);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

a.cis-value:hover {
  color: var(--gold-bright);
}

.cis-divider {
  width: 0.5px;
  height: 40px;
  background: var(--border-soft);
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .cis-divider {
    display: none;
  }

  .contact-info-strip-inner {
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(13,27,46,0.97);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 0.5px solid var(--border-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  .impact {
    padding: 2rem 1.25rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .cf-row--two {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.75rem 1.25rem;
  }

  .cf-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
