/* ============================================
   House of Cedar Youth Ministry - Styles
   ============================================ */

/* CSS Variables */
:root {
  --color-forest-green: #0f3d2e;
  --color-accent-gold: #c9a227;
  --color-cream: #f9f7f1;
  --color-teal: #1fa89b;
  --color-dark: #0a1f18;
  --color-light-teal: #6dd5c3;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-cream);
  color: var(--color-forest-green);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation Header */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 241, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 61, 46, 0.1);
  box-shadow: 0 4px 24px -8px rgba(15, 61, 46, 0.15);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  position: relative;
  width: 6px;
  height: 32px;
  background: var(--color-teal);
  border-radius: 9999px;
}

.mobile-menu-btn {
  display: none;
  background: rgba(15, 61, 46, 0.8);
  color: var(--color-cream);
  border: 1px solid rgba(249, 247, 241, 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.mobile-menu-btn:hover {
  border-color: var(--color-teal);
}

.desktop-nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--color-teal);
  background: rgba(31, 168, 155, 0.05);
}

.nav-link.active {
  color: var(--color-teal);
  background: rgba(31, 168, 155, 0.1);
}

.mobile-nav {
  display: none;
  padding: 0 1.5rem 1.5rem;
  background: rgba(15, 61, 46, 0.8);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(31, 168, 155, 0.2);
  animation: slideDown 0.3s ease-out;
}

.mobile-nav.show {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-cream);
  border-radius: 0.5rem;
  transition: background 0.2s;
  margin-bottom: 0.25rem;
}

.mobile-nav-link:hover {
  background: rgba(249, 247, 241, 0.1);
}

.mobile-nav-link.active {
  color: var(--color-teal);
  background: rgba(31, 168, 155, 0.2);
  font-weight: 600;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .desktop-nav {
    display: none;
  }
}

/* Main Container */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-content {
  max-width: 1024px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  background: var(--color-dark);
  color: var(--color-cream);
  padding: 2.5rem;
  margin-bottom: 4rem;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(at 40% 20%, rgba(31, 168, 155, 0.3) 0px, transparent 50%),
              radial-gradient(at 80% 0%, rgba(201, 162, 39, 0.2) 0px, transparent 50%),
              radial-gradient(at 0% 50%, rgba(15, 61, 46, 0.3) 0px, transparent 50%);
  opacity: 0.6;
  animation: pulse 8s ease-in-out infinite;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  top: 2.5rem;
  left: 2.5rem;
  width: 288px;
  height: 288px;
  background: rgba(31, 168, 155, 0.2);
}

.orb-2 {
  bottom: 2.5rem;
  right: 2.5rem;
  width: 384px;
  height: 384px;
  background: rgba(201, 162, 39, 0.15);
  animation-delay: 2s;
}

.hero-content {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  animation: slideUp 0.6s ease-out;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-light-teal);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-teal {
  color: var(--color-light-teal);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(249, 247, 241, 0.8);
  max-width: 512px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.hero-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(249, 247, 241, 0.1);
  background: rgba(15, 61, 46, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(31, 168, 155, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 168, 155, 0.2), transparent);
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  color: rgba(109, 213, 195, 0.5);
  margin-bottom: 1rem;
}

.placeholder-text {
  font-size: 0.875rem;
  color: rgba(249, 247, 241, 0.6);
  text-align: center;
  max-width: 288px;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 5rem 2.5rem 7rem;
  }
  .hero-content {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 3.75rem;
  }
  .hero-description {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-teal);
  color: white;
  box-shadow: 0 0 20px rgba(31, 168, 155, 0.3);
}

.btn-primary:hover {
  background: var(--color-light-teal);
  transform: scale(1.05);
  box-shadow: 0 8px 32px 0 rgba(31, 168, 155, 0.15);
}

.btn-secondary {
  background: rgba(15, 61, 46, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(249, 247, 241, 0.2);
  color: var(--color-cream);
}

.btn-secondary:hover {
  border-color: rgba(109, 213, 195, 0.6);
  transform: scale(1.05);
}

.btn-light {
  background: rgba(249, 247, 241, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(249, 247, 241, 0.2);
  color: var(--color-cream);
}

.btn-light:hover {
  border-color: rgba(109, 213, 195, 0.6);
  transform: scale(1.05);
}

.btn-submit {
  background: var(--color-forest-green);
  color: var(--color-cream);
}

.btn-submit:hover {
  background: var(--color-teal);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

/* Section Heading */
.section-heading {
  margin-bottom: 3rem;
}

.section-heading.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-forest-green);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: rgba(15, 61, 46, 0.7);
  max-width: 672px;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.title-underline {
  width: 80px;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--color-teal), var(--color-accent-gold));
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
  .section-subtitle {
    font-size: 1.25rem;
  }
}

/* Events Grid */
.events-section {
  margin: 4rem 0;
}

.events-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.event-card {
  position: relative;
  background: rgba(249, 247, 241, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 61, 46, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s;
  animation: slideUp 0.6s ease-out;
}

.event-card:hover {
  transform: scale(1.05);
  border-color: rgba(31, 168, 155, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 168, 155, 0.15);
}

.event-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 168, 155, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 1rem;
}

.event-card:hover::before {
  opacity: 1;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.event-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: rgba(31, 168, 155, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.event-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-forest-green);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.event-card:hover .event-title {
  color: var(--color-teal);
}

.event-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(15, 61, 46, 0.6);
  margin-bottom: 0.75rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.event-meta svg {
  width: 1rem;
  height: 1rem;
}

.event-summary {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(15, 61, 46, 0.7);
}

.events-footer {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(15, 61, 46, 0.6);
  margin-top: 1.5rem;
}

.text-link {
  color: var(--color-teal);
  font-weight: 500;
}

.text-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CTA Section */
.cta-section {
  background: rgba(15, 61, 46, 0.8);
  backdrop-filter: blur(16px);
  border-radius: 1.75rem;
  padding: 2.5rem;
  text-align: center;
  margin: 4rem 0;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 1.5rem;
}

.cta-description {
  color: rgba(249, 247, 241, 0.8);
  max-width: 672px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 4rem;
  }
  .cta-title {
    font-size: 2.5rem;
  }
}

/* Cards */
.card-grid-2 {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.card-grid-3 {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 61, 46, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.highlight-card {
  background: rgba(31, 168, 155, 0.1);
  border: 1px solid rgba(31, 168, 155, 0.3);
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-forest-green);
}

.card-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(15, 61, 46, 0.8);
}

.value-list {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

.value-list li {
  margin-bottom: 0.25rem;
}

/* Leader Cards */
.leader-card {
  background: white;
  padding: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 61, 46, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.leader-photo {
  height: 96px;
  background: rgba(15, 61, 46, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(15, 61, 46, 0.6);
  margin-bottom: 0.75rem;
}

.leader-name {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.leader-role {
  font-size: 0.75rem;
  color: var(--color-teal);
  margin-bottom: 0.25rem;
}

.leader-bio {
  font-size: 0.75rem;
  line-height: 1.7;
  flex: 1;
}

/* Resource List */
.resource-list {
  list-style: none;
  margin: 2rem 0;
}

.resource-item {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 61, 46, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.resource-title {
  font-weight: 500;
}

.resource-type {
  font-size: 0.75rem;
  color: var(--color-teal);
}

/* Contact Form */
.contact-form {
  max-width: 512px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 61, 46, 0.3);
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-teal);
}

.form-error {
  display: block;
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.25rem;
}

.form-success {
  background: rgba(31, 168, 155, 0.1);
  border: 1px solid rgba(31, 168, 155, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 2rem 0;
}

.form-note {
  font-size: 0.75rem;
  color: rgba(15, 61, 46, 0.7);
  margin-top: 1rem;
}

/* Lead Text */
.lead-text {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 768px;
  margin: 2rem 0;
}

.lead-text.small-margin {
  margin-top: 1rem;
}

/* Footer */
.footer {
  position: relative;
  margin-top: 6rem;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-forest-green) 50%, var(--color-dark) 100%);
}

.footer-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  gap: 3rem;
  color: var(--color-cream);
}

.footer-col {
  flex: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(249, 247, 241, 0.8);
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  font-size: 0.875rem;
  color: rgba(249, 247, 241, 0.8);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-list a {
  transition: color 0.2s;
}

.footer-list a:hover {
  color: var(--color-teal);
}

.icon {
  color: var(--color-teal);
}

.todo-note {
  font-size: 0.625rem;
  color: rgba(249, 247, 241, 0.5);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(249, 247, 241, 0.1);
  padding: 1.5rem;
}

.footer-bottom > div:first-child {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(249, 247, 241, 0.6);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: rgba(249, 247, 241, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-teal);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom > div:first-child {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-teal), var(--color-forest-green));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-teal);
}
