/* ===================================
   14 WING COMBINED CHARITIES
   Military-Inspired Design System
   =================================== */

/* === CSS Custom Properties === */
:root {
  /* Primary Colors - Military Theme */
  --air-force-blue: #004B87;
  --air-force-blue-dark: #003366;
  --air-force-blue-light: #0066B3;
  --rcaf-gold: #FDB913;
  --rcaf-gold-dark: #D99E00;
  --rcaf-gold-light: #FFD04A;

  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --dark-gray: #343A40;
  --black: #000000;

  /* Semantic Colors */
  --success: #28A745;
  --info: #17A2B8;
  --warning: #FFC107;
  --danger: #DC3545;

  /* Typography */
  --font-primary: 'Roboto', sans-serif;
  --font-headings: 'Montserrat', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* === Global Resets & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--air-force-blue-dark);
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--air-force-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--rcaf-gold-dark);
}

/* === Utility Bar (Top Contact Bar) === */
.utility-bar {
  background: linear-gradient(135deg, var(--air-force-blue-dark), var(--air-force-blue));
  color: var(--white);
  padding: 0.625rem 0;
  font-size: 0.875rem;
  border-bottom: 2px solid var(--rcaf-gold);
}

.utility-contact a,
.utility-cra {
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.utility-contact a:hover {
  color: var(--rcaf-gold);
}

.utility-bar i {
  margin-right: 0.4rem;
  color: var(--rcaf-gold);
  font-size: 0.9rem;
}

.utility-cra {
  font-weight: 500;
}

.utility-cra strong {
  color: var(--rcaf-gold);
  margin-left: 0.25rem;
}

/* === Header & Navigation === */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: var(--shadow-lg);
}

.main-header .navbar {
  padding: 0.75rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-headings);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.navbar-brand .logo-img {
  height: 65px;
  width: 65px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
}

.navbar-brand:hover .logo-img {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--air-force-blue-dark);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--medium-gray);
  font-weight: 400;
  margin-top: 0.15rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-gray);
  padding: 0.625rem 1rem;
  position: relative;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--rcaf-gold);
  transition: width var(--transition-normal);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--air-force-blue);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

.btn-donate {
  background: linear-gradient(135deg, var(--rcaf-gold), var(--rcaf-gold-dark));
  color: var(--air-force-blue-dark);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-donate:hover {
  background: linear-gradient(135deg, var(--rcaf-gold-light), var(--rcaf-gold));
  color: var(--air-force-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  .btn-donate {
    display: block;
    text-align: center;
  }
}

/* === Hero Sections === */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 75, 135, 0.85) 0%,
      rgba(0, 51, 102, 0.75) 50%,
      rgba(253, 185, 19, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: var(--spacing-2xl) var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

/* === Buttons === */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--rcaf-gold), var(--rcaf-gold-dark));
  color: var(--air-force-blue-dark);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  display: inline-block;
  text-decoration: none;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--rcaf-gold-light), var(--rcaf-gold));
  color: var(--air-force-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary-custom {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: 2px solid var(--white);
  border-radius: var(--radius-md);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-block;
  text-decoration: none;
}

.btn-secondary-custom:hover {
  background: var(--white);
  color: var(--air-force-blue);
  transform: translateY(-2px);
}

/* === Cards === */
.card-custom {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
  border: none;
}

.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-custom img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card-custom:hover img {
  transform: scale(1.1);
}

.card-custom .card-body {
  padding: var(--spacing-lg);
}

.card-custom .card-title {
  color: var(--air-force-blue-dark);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.card-custom .card-text {
  color: var(--medium-gray);
  margin-bottom: var(--spacing-md);
}

/* === Feature Cards === */
.feature-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border-top: 4px solid var(--rcaf-gold);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--air-force-blue);
}

.feature-card i {
  font-size: 3rem;
  color: var(--air-force-blue);
  margin-bottom: var(--spacing-md);
  transition: color var(--transition-normal);
}

.feature-card:hover i {
  color: var(--rcaf-gold);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

/* === Sections === */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-light {
  background: var(--light-gray);
}

.section-dark {
  background: linear-gradient(135deg, var(--air-force-blue-dark), var(--air-force-blue));
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--rcaf-gold), var(--rcaf-gold-dark));
  border-radius: var(--radius-sm);
}

/* === Footer === */
.main-footer {
  background: linear-gradient(180deg, var(--air-force-blue-dark) 0%, #001a33 100%);
  color: var(--white);
}

/* Footer Top Section */
.footer-top {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--rcaf-gold);
}

.footer-top h4 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
}

.text-gold {
  color: var(--rcaf-gold);
}

.cra-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(253, 185, 19, 0.15);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(253, 185, 19, 0.3);
  font-size: 0.9rem;
}

.cra-badge i {
  color: var(--rcaf-gold);
}

.cra-badge strong {
  color: var(--rcaf-gold);
}

/* Footer Main */
.footer-main {
  padding: 3rem 0 2rem;
}

.footer-heading {
  color: var(--rcaf-gold);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--rcaf-gold);
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--rcaf-gold);
  padding-left: 5px;
}

/* Footer Contact */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9rem;
  color: var(--white);
}

.footer-contact i {
  color: var(--rcaf-gold);
  margin-top: 0.2rem;
  min-width: 18px;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--rcaf-gold);
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Footer */
@media (max-width: 991px) {
  .footer-main {
    padding: 2rem 0 1.5rem;
  }

  .footer-top {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .cra-badge {
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .footer-heading {
    margin-bottom: 1rem;
  }
}

/* === Contact Info Cards === */
.contact-info-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
  border-top: 3px solid var(--air-force-blue);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--rcaf-gold);
}

.contact-info-card i {
  font-size: 2.5rem;
  color: var(--air-force-blue);
  margin-bottom: var(--spacing-sm);
}

.contact-info-card h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.contact-info-card p {
  color: var(--medium-gray);
  margin-bottom: 0;
}

/* === Forms === */
.form-control-custom {
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control-custom:focus {
  border-color: var(--air-force-blue);
  box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.1);
  outline: none;
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 75, 135, 0.8), rgba(253, 185, 19, 0.6));
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  .navbar-brand img {
    height: 45px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

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

/* === Accessibility === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === Print Styles === */
@media print {

  .utility-bar,
  .main-header,
  .main-footer,
  .btn-primary-custom,
  .btn-secondary-custom {
    display: none;
  }
}