/* ===================================================
   BIGHEADS — 2026 Modernization Overrides
   Loaded after the original styles.css
   =================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --color-accent: #c0392b;
}

/* --- Refined Typography --- */
body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Modernized Navigation --- */
.navbar-default {
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar-default.scrolled {
  background: rgba(27, 26, 25, 0.95) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.navbar-default .navbar-collapse .navbar-nav > li > a {
  font-family: 'Inter', 'Open Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

@media only screen and (min-width: 768px) {
  .navbar-default .navbar-collapse .navbar-nav > li > a {
    background: none !important;
  }
  
  .navbar-default .navbar-collapse .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(22px);
    width: 0;
    height: 1.5px;
    background: #fff;
    transition: width var(--transition);
  }
  
  .navbar-default .navbar-collapse .navbar-nav > li > a:hover::after,
  .navbar-default .navbar-collapse .navbar-nav > li > a.active::after {
    width: calc(100% - 32px);
  }
  
  .navbar-default .navbar-collapse .navbar-nav > li > a:hover,
  .navbar-default .navbar-collapse .navbar-nav > li > a.active {
    color: #fff !important;
    background: none !important;
  }
}

/* --- Hero Page Improvements --- */
.page-inner {
  background-attachment: fixed;
  transition: filter 0.6s ease;
}

.page-inner > h1 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
}

.page-inner h1::after {
  background: var(--color-accent) !important;
  height: 2px !important;
  width: 60px !important;
  transition: width 0.6s ease;
}

/* --- Content Section Refinements --- */
.page-inner > section {
  background-color: rgba(0,0,0,0.7) !important;
  padding: clamp(40px, 6vw, 80px) 0 !important;
}

.page-inner > section p,
.page-inner > section li {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

.page-inner > section h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* --- Home Page Title --- */
.page-home h1 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.75rem) !important;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* --- Contact Page Refinements --- */
.page-contact form input,
.page-contact form textarea,
.page-contact form select {
  border: 1px solid rgba(255,255,255,0.3) !important;
  padding: 12px 16px !important;
  font-family: 'Inter', 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: transparent !important;
}

.page-contact form input:focus,
.page-contact form textarea:focus {
  border-color: rgba(255,255,255,0.6) !important;
  outline: none;
}

.page-contact form input::placeholder,
.page-contact form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.page-contact form button {
  font-family: 'Inter', 'Open Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 12px 28px !important;
  transition: all var(--transition) !important;
}

.page-contact address {
  font-family: 'Inter', 'Open Sans', sans-serif;
}

.page-contact address strong {
  letter-spacing: 0.08em;
}

/* Hide email address on Contact page */
.page-contact a[href^="mailto:"] {
  display: none;
}
.page-contact a[href^="mailto:"] + br,
.page-contact p:has(a[href^="mailto:"]) {
  display: none;
}

/* --- Footer Refinements --- */
footer {
  transition: background var(--transition);
}

footer > div a {
  font-family: 'Inter', 'Open Sans', sans-serif !important;
  letter-spacing: 0.06em;
}

/* --- Scroll Reveal (new) --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
  background: rgba(192, 57, 43, 0.3);
  color: #fff;
}

/* ===================================================
   MOBILE RESPONSIVE FIXES (max-width: 767px)
   =================================================== */
@media only screen and (max-width: 767px) {

  /* --- Body & Global Spacing --- */
  body {
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
/* Push footer to bottom when content is short */
  #primary {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #primary > #main {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #primary > #main > article {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #primary > #main > article > .entry-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* Make page-inner sections fill remaining space */
  .entry-content > .page-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .entry-content > .page-inner > section {
    flex: 1;
  }
#primary {
  flex: 1;
}

  /* --- Mobile Navigation --- */
  .navbar-default .navbar-collapse {
    background: rgba(27, 26, 25, 0.97);
    border: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .navbar-default .navbar-collapse .navbar-nav > li > a {
    padding: 12px 20px !important;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-align: center;
  }

  /* --- Inner Page Hero Spacing --- */
  .page-inner > h1 {
    margin: 0 0 40px 0 !important;
    padding: 50px 20px 0 20px !important;
    font-size: 22px !important;
    letter-spacing: 0.15em;
  }

  /* --- Inner Page Background Images --- */
  .page-inner {
    background-size: cover !important;
    background-attachment: scroll !important;
    margin-top: 70px;
  }

  /* --- Content Sections Horizontal Padding --- */
  .page-inner > section {
    padding: 30px 0 20px !important;
  }

  .page-inner > section .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .page-inner .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Ensure Bootstrap columns have proper padding */
  .page-inner > section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-inner > section [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* --- Body Text Readability --- */
  .page-inner > section p,
  .page-inner > section li {
    font-size: 0.95rem !important;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
  }

  .page-inner > section h2 {
    font-size: 1.3rem !important;
    margin-bottom: 0.8em;
  }

  /* Tighten the gap between the heading area and the content section */
  .page-inner > section:first-of-type {
    margin-top: -20px;
  }

  /* --- Home Page --- */
  .page-home {
    background-attachment: scroll !important;
  }

  .page-home h1 {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    padding: 0 20px !important;
    letter-spacing: 0.01em;
    line-height: 1.3;
  }

  /* --- Contact Page Mobile Layout --- */
  .page-contact .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .page-contact h1 {
    font-size: 22px !important;
    padding-left: 20px !important;
  }

  /* Stack the address block vertically on mobile */
  .page-contact .col-md-5,
  .page-contact .col-md-offset-1 {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 15px !important;
  }

  .page-contact .col-xs-6 {
    width: 100% !important;
    float: none !important;
  }

  .page-contact address {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .page-contact form input,
  .page-contact form textarea {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }

  .page-contact form button {
    width: 100%;
    padding: 14px 20px !important;
    font-size: 0.9rem;
  }

  /* --- Footer Mobile Fix --- */
  footer {
    position: relative !important;
    padding: 20px 15px !important;
  }

  footer.fixed {
    position: relative !important;
  }

  html, body {
    height: auto !important;
  }

  footer > div a {
    font-size: 0.7em !important;
  }

  /* --- Reduce Excessive Whitespace --- */
  .page-inner > section h1 + *,
  .page-inner > section h2:first-child {
    margin-top: 0.5em;
  }

  .page-io > h1,
  .page-events > h1,
  .page-about > h1,
  .page-aviation > h1 {
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
  }

  /* Inner page min-height fix */
  .page-about,
  .page-aviation,
  .page-events,
  .page-io {
    min-height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 30px !important;
  }
}

/* ===================================================
   SMALL MOBILE (max-width: 374px)
   =================================================== */
@media only screen and (max-width: 374px) {
  .page-home h1 {
    font-size: 1.3rem !important;
  }

  .page-inner > h1 {
    font-size: 18px !important;
  }

  footer > div a {
    font-size: 0.65em !important;
  }
}

/* ===================================================
   TABLET TWEAKS (768px - 1023px)
   =================================================== */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .page-inner > h1 {
    margin: 0 0 140px 0 !important;
    padding: 140px 0 0 0 !important;
  }
}