/* Reusable Components */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  border-radius: var(--radius-sm);
  border: var(--border-width-medium) solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-bourbon-dark);
  color: var(--color-cream);
  border-color: var(--color-bourbon-dark);
}

.btn-primary:hover {
  background-color: var(--color-bourbon-medium);
  border-color: var(--color-bourbon-medium);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-bourbon-gold);
  color: var(--color-bourbon-dark);
  border-color: var(--color-bourbon-gold);
}

.btn-secondary:hover {
  background-color: var(--color-copper);
  border-color: var(--color-copper);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-bourbon-dark);
  border-color: var(--color-bourbon-dark);
}

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

.btn-outline-light {
  background-color: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}

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

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-md);
}

.btn-small {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
}

.btn:focus-visible {
  outline: 3px solid var(--color-copper);
  outline-offset: 3px;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-content {
  padding: var(--space-lg);
}

.card-title {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-bourbon-dark);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

/* Event Card */
.card-event {
  display: flex;
  flex-direction: column;
}

.card-event .event-date {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-copper);
  margin-bottom: var(--space-xs);
}

.card-event .event-title {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-bourbon-dark);
  margin-bottom: var(--space-sm);
}

.card-event .event-description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
  flex-grow: 1;
}

/* Profile Card (Board Members) */
.card-profile {
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  padding: var(--space-lg);
}

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

.card-profile .profile-bio {
  display: none;
}

/* Board Member Modal */
.board-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 37, 64, 0.85);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  overflow-y: auto;
}

.board-modal-content {
  position: relative;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xxl);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.board-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-gray-medium);
  cursor: pointer;
  padding: var(--space-xs);
  transition: color var(--transition-base), transform var(--transition-base);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-modal-close:hover {
  color: var(--color-bourbon-dark);
  transform: rotate(90deg);
}

.board-modal-body {
  text-align: center;
}

.modal-profile-image {
  width: 250px;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-lg);
  background-color: var(--color-gray-light);
}

.modal-profile-name {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-bourbon-dark);
  margin-bottom: var(--space-sm);
}

.modal-profile-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-copper);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--color-gray-light);
}

.modal-profile-bio {
  text-align: left;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
}

.modal-profile-bio p {
  margin-bottom: var(--space-md);
}

.modal-profile-bio p strong {
  color: var(--color-bourbon-dark);
}

@media (max-width: 767px) {
  .board-modal-content {
    padding: var(--space-xl);
    max-height: 95vh;
  }

  .modal-profile-image {
    width: 150px;
    height: 150px;
  }
}

.card-profile .profile-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  background-color: var(--color-gray-light);
}

.card-profile .profile-name {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-bourbon-dark);
  margin-bottom: var(--space-xs);
}

.card-profile .profile-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-copper);
  margin-bottom: var(--space-sm);
}

.card-profile .profile-bio {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

/* Partner Card */
.card-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
}

.card-partner .partner-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: var(--space-md);
}

.card-partner .partner-name {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-bourbon-dark);
  margin-bottom: var(--space-sm);
}

.card-partner .partner-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-home {
  min-height: 600px;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 600px;
  }

  .hero-home {
    min-height: 700px;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(61, 40, 23, 0.7) 0%,
    rgba(61, 40, 23, 0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: var(--space-xl) var(--space-lg);
}

.hero-title {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-cream);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-relaxed);
  color: var(--color-cream);
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (Smaller variant for interior pages) */
.hero-page {
  min-height: 400px;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: var(--space-xxl) 0;
}

.section-large {
  padding: var(--space-xxxl) 0;
}

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

.section-dark {
  background-color: var(--color-bourbon-dark);
  color: var(--color-cream);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--color-bourbon-gold);
}

.section-dark p,
.section-dark li {
  color: var(--color-cream);
}

.section-light {
  background-color: var(--color-off-white);
}

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

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.section-title {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-bourbon-dark);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-bourbon-dark);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  border: var(--border-width-medium) solid var(--color-gray-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-copper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-medium);
}

/* ========================================
   ZEFFY PLUGIN PLACEHOLDER
   ======================================== */

.zeffy-embed {
  background-color: var(--color-surface);
  border: 3px dashed var(--color-bourbon-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl) var(--space-xl);
  text-align: center;
  margin: var(--space-xl) 0;
}

.zeffy-embed h3 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  color: var(--color-bourbon-dark);
  margin-bottom: var(--space-md);
}

.zeffy-embed p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

.zeffy-embed code {
  display: block;
  background-color: var(--color-cream);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-bourbon-medium);
  margin-top: var(--space-md);
}

/* ========================================
   STATS/METRICS DISPLAY
   ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-lg);
}

.stat-number {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-bold);
  color: var(--color-bourbon-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-cream);
}

/* ========================================
   FEATURE BOXES (What We Do, Benefits, etc.)
   ======================================== */

.feature-box {
  text-align: center;
  padding: var(--space-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-copper);
}

.feature-title {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-bourbon-dark);
  margin-bottom: var(--space-sm);
}

.feature-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   IMAGE OVERLAY EFFECTS
   ======================================== */

.image-overlay-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-overlay-wrapper img {
  transition: transform var(--transition-slow);
}

.image-overlay-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(
    to top,
    rgba(61, 40, 23, 0.9),
    transparent
  );
  color: var(--color-cream);
}
