/*
Theme Name: Great Steps Off Site ISS Theme
Theme URI: http://txoffsiteiss.org/
Author: Advisory Engineering & Analytics, LLC & Antigravity
Author URI: https://aea-innovations.com/
Description: Unified custom theme for TxOffSiteISS.org, harmonizing the Great Steps Off Site ISS Program with the Grace Steps Portal plugin. Features a premium space-dark and neon-accented glassmorphic aesthetic.
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: tx-offsite-iss-theme
Tags: custom-logo, dark mode, modern, responsive, premium

This theme, like WordPress, is licensed under the GPL.
*/

:root {
  /* Premium Dark Forest & Gold Aesthetics (Black Forest Reserve) */
  --bg-app: #071510;
  --bg-card: rgba(14, 38, 30, 0.5);
  --bg-card-hover: rgba(22, 54, 44, 0.7);
  --bg-input: #0a1c16;
  --border-color: rgba(212, 175, 55, 0.15);
  --border-color-active: rgba(212, 175, 55, 0.4);
  
  --primary: #D4AF37;
  --secondary: #3AA399;
  
  --text-main: #f1f3f9;
  --text-muted: #8b9bb4;
  --text-inverse: #ffffff;
  
  --status-success: #10b981;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-warning: #f59e0b;
  --status-warning-bg: rgba(245, 158, 11, 0.15);
  --status-danger: #ef4444;
  --status-danger-bg: rgba(239, 68, 68, 0.15);
  
  /* Typography */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Shadows & Borders */
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-sm: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* Layout Utilities */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .section-container {
    padding: 50px 20px;
  }
}

/* Header Styling */
.site-header {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area a {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-area img,
.custom-logo-link img {
  max-width: 160px;
  height: auto;
  max-height: 50px;
  display: block;
}

.logo-main {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, #b9cbe7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-top: 2px;
}

.nav-menu > ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active {
  border-color: var(--primary);
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(251, 133, 0, 0.3);
  font-weight: 700;
  border-bottom: none !important;
}

.nav-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(251, 133, 0, 0.45);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.mobile-nav-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0b1224;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow);
  }
  .nav-menu.active {
    display: block;
  }
  .nav-menu > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .nav-menu > ul > li {
    text-align: center;
  }
  .nav-btn {
    display: block;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at top right, rgba(251, 133, 0, 0.08), transparent 45%),
              radial-gradient(circle at bottom left, rgba(227, 46, 44, 0.05), transparent 45%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  text-align: left;
}

.badge-hero {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(251, 133, 0, 0.1);
  border: 1px solid rgba(251, 133, 0, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(251, 133, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 133, 0, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-container {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
  position: relative;
}

.visual-decor {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.15;
  filter: blur(10px);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-active);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(251, 133, 0, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.glass-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.glass-card p {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Features List */
.features-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-bullet {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--status-success-bg);
  color: var(--status-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.feature-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Contact Details & Footer */
.footer-section {
  background: #060a14;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-about h4 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14.5px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-info-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-security-badges {
  display: flex;
  gap: 16px;
}

.badge-security {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Form Styles */
.wpcf7-form, .contact-form-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(251, 133, 0, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Micro animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.pulsing-bullet {
  animation: pulse 2s infinite ease-in-out;
}

/* Navigation Dropdown Menu Styles (Supports Fallback & WordPress Custom Menus) */
.nav-dropdown-item,
.nav-menu .menu-item-has-children {
  position: relative;
}

.nav-dropdown,
.nav-menu ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #0B1E18;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 0;
  min-width: 200px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.nav-dropdown li,
.nav-menu ul.sub-menu li {
  text-align: left !important;
  width: 100%;
  display: block;
  margin: 0 !important;
}

.nav-dropdown a,
.nav-menu ul.sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted) !important;
  transition: var(--transition);
  border-bottom: none !important;
  text-align: left;
}

.nav-dropdown a:hover,
.nav-menu ul.sub-menu a:hover {
  color: #fff !important;
  background: rgba(212, 175, 55, 0.1) !important;
}

.nav-dropdown-item:hover .nav-dropdown,
.nav-menu .menu-item-has-children:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
