/* Second Horizon Foundation - Stylesheet */
/* Color palette inspired by sunset logo: gold, coral, rose, soft lavender */

:root {
  --gold: #F5A623;
  --coral: #E8735A;
  --rose: #D4627A;
  --lavender: #9B7CB8;
  --light-gold: #FDF6E9;
  --light-coral: #FFF5F3;
  --dark-text: #2C3E50;
  --medium-text: #5A6A7A;
  --light-text: #8A99A8;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, var(--gold) 0%, var(--coral) 35%, var(--rose) 70%, var(--lavender) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--medium-text);
}

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--rose);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-text);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--dark-text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(180deg, var(--light-gold) 0%, var(--white) 100%);
}

.hero-content {
  max-width: 800px;
}

.hero-logo {
  width: 100%;
  max-width: 800px;
  min-width: 300px;
  height: auto;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--medium-text);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(232, 115, 90, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 115, 90, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--coral);
  border: 2px solid var(--coral);
}

.btn-secondary:hover {
  background: var(--coral);
  color: var(--white);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Page Header */
.page-header {
  padding: 10rem 2rem 4rem;
  background: linear-gradient(180deg, var(--light-gold) 0%, var(--white) 100%);
  text-align: center;
}

.page-header h1 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Board Members */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.board-member {
  text-align: center;
  padding: 2.5rem 2rem;
}

.board-member .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--white);
}

.board-member h3 {
  margin-bottom: 0.5rem;
}

.board-member .title {
  color: var(--coral);
  font-weight: 500;
}

/* Eligibility */
.eligibility-list {
  max-width: 800px;
  margin: 0 auto;
}

.eligibility-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.eligibility-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.eligibility-content h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.eligibility-content p {
  margin-bottom: 0;
}

/* Application Box */
.application-box {
  background: linear-gradient(135deg, var(--light-gold) 0%, var(--light-coral) 100%);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin-top: 3rem;
}

.application-box h3 {
  color: var(--dark-text);
}

.application-box p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* TOL Section */
.tol-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tol-text h3 {
  color: var(--coral);
  margin-bottom: 1rem;
}

.tol-visual {
  background: var(--gradient);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  color: var(--white);
}

.tol-visual h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.tol-benefits {
  list-style: none;
  text-align: left;
}

.tol-benefits li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
}

.tol-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Contact Form */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  color: var(--dark-text);
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--coral);
}

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

/* Footer */
footer {
  background: var(--dark-text);
  color: var(--white);
  padding: 3rem 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  height: 40px;
}

.footer-logo span {
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copyright {
  width: 100%;
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-inner {
    padding: 1rem;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .tagline {
    font-size: 1.25rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .tol-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 7rem 1rem 3rem;
  }

  .hero-logo {
    width: 90%;
    min-width: 250px;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .btn {
    padding: 0.875rem 2rem;
  }
}
