/* Greenleigh Group - High-End Private Equity Design System */

/* ========================================
   CSS Variables
======================================== */
:root {
  /* Forest Green Palette */
  --gl-forest-dark: #1B4332;
  --gl-forest: #2D6A4F;
  --gl-forest-light: #40916C;
  --gl-forest-muted: #52B788;

  /* Cream & Neutral Palette */
  --gl-cream: #FEFAE0;
  --gl-cream-dark: #F5F5DC;
  --gl-beige: #E9E5D6;
  --gl-warm-gold: #DDA15E;
  --gl-warm-gold-light: #E9C46A;

  /* Background Colors */
  --gl-bg-white: #FFFEF7;
  --gl-bg-cream: #FAF8F3;
  --gl-bg-section: #F5F3ED;

  /* Text Colors */
  --gl-text-dark: #1B1B1B;
  --gl-text-body: #3D3D3D;
  --gl-text-muted: #6B6B6B;
  --gl-text-light: #F8F6F0;

  /* Typography */
  --gl-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --gl-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --gl-section-padding: 100px;
  --gl-section-padding-mobile: 60px;

  /* Transitions */
  --gl-transition: all 0.3s ease;
  --gl-transition-slow: all 0.5s ease;
}

/* ========================================
   Base Styles
======================================== */
body {
  font-family: var(--gl-font-body);
  background-color: var(--gl-bg-white);
  color: var(--gl-text-body);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--gl-font-heading);
  color: var(--gl-text-dark);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1, .h1 { font-size: 3.5rem; font-weight: 700; }
h2, .h2 { font-size: 2.75rem; }
h3, .h3 { font-size: 2rem; }
h4, .h4 { font-size: 1.5rem; }

@media (max-width: 768px) {
  h1, .h1 { font-size: 2.5rem; }
  h2, .h2 { font-size: 2rem; }
  h3, .h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--gl-forest);
  transition: var(--gl-transition);
}

a:hover {
  color: var(--gl-forest-dark);
}

/* ========================================
   Navigation
======================================== */
.gl-navbar {
  padding: 1.25rem 0;
  transition: var(--gl-transition);
  background: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.gl-navbar.scrolled {
  background: rgba(255, 254, 247, 0.98);
  box-shadow: 0 2px 20px rgba(27, 67, 50, 0.08);
  padding: 0.875rem 0;
  backdrop-filter: blur(10px);
}

.gl-navbar .navbar-brand {
  font-family: var(--gl-font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--gl-cream) !important;
  letter-spacing: -0.02em;
  transition: var(--gl-transition);
}

.gl-navbar.scrolled .navbar-brand {
  color: var(--gl-forest-dark) !important;
}

.gl-navbar .nav-link {
  font-family: var(--gl-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1.125rem !important;
  letter-spacing: 0.02em;
  transition: var(--gl-transition);
}

.gl-navbar.scrolled .nav-link {
  color: var(--gl-text-body) !important;
}

.gl-navbar .nav-link:hover {
  color: var(--gl-warm-gold-light) !important;
}

.gl-navbar.scrolled .nav-link:hover {
  color: var(--gl-forest) !important;
}

.gl-navbar .navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.gl-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.gl-navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(27, 67, 50, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Hero / Masthead
======================================== */
.gl-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.gl-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 67, 50, 0.92) 0%,
    rgba(45, 106, 79, 0.85) 50%,
    rgba(27, 67, 50, 0.88) 100%
  );
}

.gl-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.gl-hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--gl-cream);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
}

.gl-hero-subtitle {
  font-family: var(--gl-font-body);
  font-size: 1.375rem;
  color: rgba(254, 250, 224, 0.9);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.gl-hero-divider {
  width: 80px;
  height: 2px;
  background: var(--gl-warm-gold);
  margin: 2rem auto;
}

.gl-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.gl-scroll-indicator svg {
  width: 30px;
  height: 30px;
  stroke: rgba(254, 250, 224, 0.6);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 768px) {
  .gl-hero {
    min-height: 90vh;
    background-attachment: scroll;
  }
  .gl-hero-title {
    font-size: 2.75rem;
  }
  .gl-hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }
}

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

.gl-section-cream {
  background-color: var(--gl-bg-cream);
}

.gl-section-white {
  background-color: var(--gl-bg-white);
}

.gl-section-dark {
  background-color: var(--gl-forest-dark);
  color: var(--gl-text-light);
}

.gl-section-dark h1,
.gl-section-dark h2,
.gl-section-dark h3 {
  color: var(--gl-cream);
}

@media (max-width: 768px) {
  .gl-section {
    padding: var(--gl-section-padding-mobile) 0;
  }
}

/* Section Headers */
.gl-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gl-section-header h2 {
  margin-bottom: 1rem;
}

.gl-section-header .gl-accent-line {
  width: 60px;
  height: 2px;
  background: var(--gl-forest);
  margin: 1.5rem auto 0;
}

.gl-section-dark .gl-accent-line {
  background: var(--gl-warm-gold);
}

/* Section Lead Text */
.gl-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--gl-text-body);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gl-section-dark .gl-lead {
  color: rgba(254, 250, 224, 0.85);
}

/* ========================================
   Content Cards
======================================== */
.gl-card {
  background: var(--gl-bg-white);
  border: 1px solid rgba(27, 67, 50, 0.08);
  border-radius: 4px;
  padding: 2.5rem;
  transition: var(--gl-transition);
}

.gl-card:hover {
  box-shadow: 0 10px 40px rgba(27, 67, 50, 0.1);
  transform: translateY(-2px);
}

.gl-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--gl-forest);
}

/* ========================================
   Lists
======================================== */
.gl-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gl-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.gl-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--gl-forest);
  border-radius: 50%;
}

/* ========================================
   Forms
======================================== */
.gl-form-section {
  background: var(--gl-bg-cream);
  padding: 3rem;
  border-radius: 4px;
}

.gl-form-label {
  font-family: var(--gl-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gl-text-dark);
  margin-bottom: 0.5rem;
}

.gl-form-control {
  background: var(--gl-bg-white);
  border: 1px solid rgba(27, 67, 50, 0.2);
  border-radius: 3px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--gl-text-dark);
  transition: var(--gl-transition);
}

.gl-form-control:focus {
  outline: none;
  border-color: var(--gl-forest);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.gl-form-control::placeholder {
  color: var(--gl-text-muted);
}

textarea.gl-form-control {
  min-height: 140px;
  resize: vertical;
}

/* Challenge field */
.gl-challenge-field {
  background: rgba(27, 67, 50, 0.05);
  border: 1px dashed rgba(27, 67, 50, 0.3);
}

.gl-challenge-label {
  font-size: 0.875rem;
  color: var(--gl-text-muted);
}

.gl-challenge-code {
  font-family: var(--gl-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gl-forest-dark);
  letter-spacing: 0.1em;
}

/* ========================================
   Buttons
======================================== */
.gl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gl-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--gl-transition);
}

.gl-btn-primary {
  background: var(--gl-forest-dark);
  color: var(--gl-cream);
}

.gl-btn-primary:hover {
  background: var(--gl-forest);
  color: var(--gl-cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.3);
}

.gl-btn-outline {
  background: transparent;
  color: var(--gl-forest-dark);
  border: 2px solid var(--gl-forest-dark);
}

.gl-btn-outline:hover {
  background: var(--gl-forest-dark);
  color: var(--gl-cream);
}

.gl-btn-gold {
  background: var(--gl-warm-gold);
  color: var(--gl-text-dark);
}

.gl-btn-gold:hover {
  background: var(--gl-warm-gold-light);
  transform: translateY(-1px);
}

/* ========================================
   Footer
======================================== */
.gl-footer {
  background: var(--gl-forest-dark);
  color: rgba(254, 250, 224, 0.8);
  padding: 4rem 0 2rem;
}

.gl-footer-brand {
  font-family: var(--gl-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gl-cream);
  margin-bottom: 1rem;
}

.gl-footer-tagline {
  font-size: 0.9375rem;
  color: rgba(254, 250, 224, 0.6);
  margin-bottom: 0;
}

.gl-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.gl-footer-links a {
  color: rgba(254, 250, 224, 0.8);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: var(--gl-transition);
}

.gl-footer-links a:hover {
  color: var(--gl-warm-gold);
}

.gl-footer-divider {
  border-top: 1px solid rgba(254, 250, 224, 0.15);
  margin: 2.5rem 0 1.5rem;
}

.gl-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.gl-footer-copyright {
  font-size: 0.875rem;
  color: rgba(254, 250, 224, 0.5);
  margin: 0;
}

.gl-footer-legal {
  display: flex;
  gap: 1.5rem;
}

.gl-footer-legal a {
  font-size: 0.875rem;
  color: rgba(254, 250, 224, 0.5);
  text-decoration: none;
}

.gl-footer-legal a:hover {
  color: var(--gl-cream);
}

@media (max-width: 768px) {
  .gl-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   Utility Classes
======================================== */
.gl-text-center { text-align: center; }
.gl-text-forest { color: var(--gl-forest); }
.gl-text-gold { color: var(--gl-warm-gold); }
.gl-text-cream { color: var(--gl-cream); }

.gl-mb-0 { margin-bottom: 0; }
.gl-mb-1 { margin-bottom: 0.5rem; }
.gl-mb-2 { margin-bottom: 1rem; }
.gl-mb-3 { margin-bottom: 1.5rem; }
.gl-mb-4 { margin-bottom: 2rem; }
.gl-mb-5 { margin-bottom: 3rem; }

.gl-container-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Testimonial Cards
======================================== */
.gl-testimonial {
  background: var(--gl-bg-white);
  padding: 2rem;
  border-left: 3px solid var(--gl-forest);
  margin-bottom: 1.5rem;
}

.gl-testimonial-text {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--gl-text-body);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.gl-testimonial-author {
  font-family: var(--gl-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gl-text-dark);
  margin: 0;
}

/* ========================================
   Page Header (for inner pages)
======================================== */
.gl-page-header {
  padding: 180px 0 100px;
  background: linear-gradient(
    135deg,
    var(--gl-forest-dark) 0%,
    var(--gl-forest) 100%
  );
  text-align: center;
}

.gl-page-header h1 {
  color: var(--gl-cream);
  margin-bottom: 1rem;
}

.gl-page-header p {
  color: rgba(254, 250, 224, 0.8);
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* ========================================
   Animations
======================================== */
.gl-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gl-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive Overrides
======================================== */
@media (max-width: 991px) {
  .gl-navbar .navbar-collapse {
    background: var(--gl-forest-dark);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
  }

  .gl-navbar .nav-link {
    color: var(--gl-cream) !important;
    padding: 0.75rem 1rem !important;
  }

  .gl-navbar.scrolled .navbar-collapse {
    background: var(--gl-bg-white);
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.1);
  }

  .gl-navbar.scrolled .nav-link {
    color: var(--gl-text-body) !important;
  }
}

/* ========================================
   Confirmation Page
======================================== */
.gl-confirmation {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.gl-confirmation-icon {
  width: 80px;
  height: 80px;
  background: var(--gl-forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.gl-confirmation-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--gl-cream);
}
