/*
Theme Name: Fleet777
Author: Faisal
Description: Custom theme for Fleet777 Boeing 777 fan site
Version: 1.0
*/

/* --- General Reset --- */
html, body {
  margin: 0;
  padding: 0;
  background: #0b1120;
  color: rgba(255,255,255,.9);
  font-family: 'Inter', sans-serif;
}
html { scroll-behavior: smooth; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,17,32,.95);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: saturate(120%) blur(6px);
}
.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.logo img,
.custom-logo,
.custom-logo-link img,
.wp-block-site-logo img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  display: block;
}
.logo span {
  font-weight: 600;
  letter-spacing: .05em;
  color: #fff;
  text-transform: uppercase;
}

/* --- Navigation --- */
.main-navigation ul,
.nav-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}
.main-navigation a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font: 600 14px/1.2 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.main-navigation a:hover {
  color: #2CA9FF;
}
.main-navigation a:visited {
  color: rgba(255,255,255,.9);
}

/* --- Specs CTA Button (right) --- */
.cta {
  margin-left: auto;
  background: linear-gradient(135deg, #2CA9FF, #4CC3FF);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  padding: .55rem .9rem;
  border-radius: .6rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,113,197,.35);
  transition: 0.2s ease;
}
.cta:hover {
  background: linear-gradient(135deg, #1999ff, #45b6ff);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 7rem 1.5rem 5rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.65) 45%, rgba(0,0,0,.85) 100%),
    radial-gradient(1200px 600px at 20% 20%, rgba(0,113,197,.25), transparent 70%),
    url('assets/hero-bg.webp') center right / cover no-repeat,
    #0A1120;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
@media(min-width:900px){
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; }
}
.hero-text h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.4rem,1rem + 4vw,4rem);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}
.hero-text .tagline {
  color: rgba(255,255,255,.65);
  max-width: 46ch;
  margin-bottom: 1.25rem;
}
.hero-actions {
  display: flex;
  gap: .75rem;
}
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg,#0071C5,#2CA9FF);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: .7rem;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 16px 40px rgba(0,113,197,.35);
  text-decoration: none;
  font-weight: 500;
}
.cta-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}
.hero-card {
  background: rgba(15,23,42,.55);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .9rem;
  padding: 1rem 1.25rem;
}

/* --- Specs / Gallery sections --- */
.specs-section {
  padding: 3.25rem 1.5rem;
  background: linear-gradient(180deg,#0F172A 0%, #0A1120 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.specs-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.specs-headline {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
}
.specs-grid {
  display: grid;
  gap: 1.5rem;
}
@media(min-width:800px){
  .specs-grid { grid-template-columns: repeat(3,1fr); }
}
.specs-card {
  background: rgba(8,12,24,.55);
  backdrop-filter: saturate(120%) blur(2px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.specs-label {
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .15rem;
}
.specs-value {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: .03em;
}
.specs-value .unit {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-left: .25rem;
}
.specs-desc {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  line-height: 1.4;
  margin-top: .5rem;
}

/* --- Gallery images in cards --- */
.specs-card img {
  display: block;
  border-radius: 1rem;
  margin-bottom: .75rem;
  width: 100%;
  height: auto;
}

/* --- Sticky header offset for anchors --- */
#specs,
#gallery {
  scroll-margin-top: 80px;
}

/* --- Footer --- */
footer {
  background: #0b1120;
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* === FDP Calculator === */

#fleet777-fdp-calculator {
  max-width: 640px;
  margin: 3rem auto;
  padding: 1.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

/* Title */
#fleet777-fdp-calculator h3 {
  margin: 0 0 1.25rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5f4ff;
}

/* Form layout */
#fleet777-fdp-calculator form {
  display: grid;
  gap: 0.75rem;
}

/* Labels + fields */
#fleet777-fdp-calculator label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.8);
}

#fleet777-fdp-calculator input[type="time"],
#fleet777-fdp-calculator input[type="number"],
#fleet777-fdp-calculator select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.85rem;
}

#fleet777-fdp-calculator input[type="time"]:focus,
#fleet777-fdp-calculator input[type="number"]:focus,
#fleet777-fdp-calculator select:focus {
  outline: none;
  border-color: #2CA9FF;
  box-shadow: 0 0 0 1px rgba(44, 169, 255, 0.5);
}

/* Radio groups */
#fleet777-fdp-calculator input[type="radio"] {
  transform: translateY(1px);
  margin-right: 4px;
}

#fleet777-fdp-calculator hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin: 0.9rem 0;
}

/* Button */
#fleet777-fdp-calculator button[type="submit"] {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, #0071C5, #2CA9FF);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 113, 197, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#fleet777-fdp-calculator button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 22px 55px rgba(0, 113, 197, 0.55);
}

/* Result block */
#fdp-result {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(45, 212, 191, 0.35);
  font-family: 'Inter', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e5f4ff;
}

/* Small screens */
@media (max-width: 600px) {
  #fleet777-fdp-calculator {
    margin: 2rem 1rem;
    padding: 1.25rem 1rem;
  }
}

/* Blog list */
.blog-inner { max-width: 800px; }

.blog-card {
  background: rgba(8,12,24,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.1rem;
}

.blog-title {
  margin: 0 0 .3rem;
  font-family: 'Oswald', sans-serif;
}
.blog-title a {
  color: #fff;
  text-decoration: none;
}
.blog-title a:hover { color: #2CA9FF; }

.blog-meta {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .6rem;
}

.blog-excerpt {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

.blog-readmore {
  display: inline-block;
  margin-top: .6rem;
  font-size: .85rem;
  color: #2CA9FF;
  text-decoration: none;
}
.blog-readmore:hover { text-decoration: underline; }

.blog-pagination {
  margin-top: 1.5rem;
}
.blog-pagination .page-numbers {
  margin-right: .4rem;
}

/* Generic page layout (About, Contact, FDP, etc.) */
.page-section {
  padding: 3rem 1.5rem;
  background: #050816;
}

.page-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Hard override: make ALL page form text light on dark */

body.page label,
body.page .wpforms-field-label,
body.page .wpforms-field-sublabel,
body.page .wpforms-required-label {
  color: #e5e7eb !important;
}

/* Inputs / textareas / selects on any PAGE (Contact, FDP, etc.) */
body.page input,
body.page textarea,
body.page select {
  background: #020617 !important;
  color: #e5e7eb !important;
  border-radius: 0.5rem !important;
  border: 1px solid rgba(148,163,184,.6) !important;
}

/* Placeholder text */
body.page input::placeholder,
body.page textarea::placeholder {
  color: rgba(148,163,184,.8) !important;
}

/* === Footer === */
.site-footer {
  background: #020617;
  border-top: 1px solid rgba(148,163,184,.25);
  padding: 1.5rem 1.75rem;
  color: rgba(148,163,184,.9);
  font-size: .85rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-site {
  font-weight: 600;
  color: #e5e7eb;
}
.footer-tagline {
  font-size: .8rem;
  color: rgba(148,163,184,.9);
}

.footer-copy {
  margin: .25rem 0 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.footer-nav a {
  color: rgba(148,163,184,.9);
  text-decoration: none;
  font-size: .85rem;
}
.footer-nav a:hover {
  color: #2CA9FF;
}
/* === Responsive Navigation === */

/* Hamburger button: hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile layout */
@media (max-width: 768px) {

  .site-header .container {
    padding: 0.7rem 1rem;
  }

  /* show hamburger, hide desktop CTA initially */
  .nav-toggle {
    display: flex;
  }

  .cta {
    display: none;
  }

  /* Turn nav into a dropdown panel */
  .main-navigation {
    position: fixed;
    top: 56px;            /* header height on mobile */
    left: 0;
    right: 0;
    background: #020617;
    border-bottom: 1px solid rgba(148,163,184,.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
  }

  .main-navigation .nav-ul {
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.85rem;
  }

  .main-navigation .nav-ul a {
    font-size: 14px;
  }

  /* When nav is open */
  body.nav-open .main-navigation {
    max-height: 260px; /* adjust if you add more items */
  }

  /* Animate hamburger into an "X" when open */
  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}
