
/* ============================================
   Pelican Bay Sailing School Inc.
   501(c)(3) Nonprofit Website Styles
   EIN: 92-3488213
   ============================================ */

:root {
  --primary: #1e3a5f;
  --primary-light: #2a4f7f;
  --secondary: #4a90d9;
  --accent: #f4a261;
  --accent-dark: #e76f51;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
  --success: #38a169;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a { color: #a0c4e8; text-decoration: none; transition: color 0.2s; }
.top-bar a:hover { color: #fff; }

.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.ein-badge {
  background: var(--accent);
  color: var(--primary);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Header */
.site-header {
  background: var(--bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.logo-text { display: flex; flex-direction: column; }
.logo-text strong {
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.2;
}
.logo-text span {
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation */
.main-nav ul { display: flex; list-style: none; gap: 0.25rem; }

.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a:hover, .main-nav a.active {
  background: var(--bg-alt);
  color: var(--secondary);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #e8954a !important; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-size: cover;
  background-position: center;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover { background: #e8954a; transform: translateY(-2px); }

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* Stats Bar */
.stats-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.stats-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

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

.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

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

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-body { padding: 1.5rem; }

.card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card p { color: var(--text-light); font-size: 0.95rem; }

/* Mission Block */
.mission-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-img img { width: 100%; height: auto; display: block; }

.mission-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.mission-content p { margin-bottom: 1rem; color: var(--text-light); }

.values-list {
  list-style: none;
  margin-top: 1.5rem;
}

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.values-list .icon {
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: -5px;
}

.timeline-year {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.timeline-item h4 { color: var(--primary); margin: 0.25rem 0; }

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-alt);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
  border: 3px solid var(--accent);
}

.team-card h4 { color: var(--primary); margin-bottom: 0.25rem; }
.team-role {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

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

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.info-item .icon {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-item strong { display: block; color: var(--primary); margin-bottom: 0.15rem; }
.info-item a { color: var(--secondary); text-decoration: none; }
.info-item a:hover { text-decoration: underline; }

.contact-form {
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}

/* Registration Info */
.reg-box {
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.reg-box h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reg-detail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}

.reg-detail dt { font-weight: 600; color: var(--text-light); }
.reg-detail dd { color: var(--text); font-weight: 500; }

.ein-highlight {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  margin: 0.5rem 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  padding: 1.5rem 1rem 1rem;
  font-size: 0.9rem;
}

/* News */
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.news-date {
  text-align: center;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 8px;
  height: fit-content;
}

.news-date .day { font-size: 1.75rem; font-weight: 800; color: var(--primary); display: block; }
.news-date .month { font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; }

/* Footer */
.site-footer {
  background: var(--primary);
  color: #a0c4e8;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand p { margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.7; }

.footer-brand .ein-box {
  background: rgba(255,255,255,0.1);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-brand .ein-box strong { color: #fff; }

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: #a0c4e8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.social-links a:hover { background: var(--accent); color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  color: var(--primary);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p { margin-bottom: 1rem; color: var(--text-light); }

.legal-content ul { margin-left: 1.5rem; margin-bottom: 1rem; color: var(--text-light); }

.legal-content li { margin-bottom: 0.5rem; }

/* Donate Page */
.donate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.donate-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
}

.donate-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.donate-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.donate-card .amount { font-size: 2.5rem; font-weight: 800; color: var(--accent-dark); }
.donate-card p { color: var(--text-light); margin: 1rem 0; font-size: 0.9rem; }

/* Testimonials */
.testimonial {
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  margin-bottom: 1.5rem;
}

.testimonial p {
  font-style: italic;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-author { font-weight: 700; color: var(--primary); }
.testimonial-role { color: var(--text-light); font-size: 0.9rem; }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.breadcrumb {
  background: var(--bg-alt);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-title {
  background: var(--primary);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.page-title h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-title p { opacity: 0.85; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); box-shadow: var(--shadow); padding: 1rem; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; }
  .hero h1 { font-size: 2.25rem; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .mission-block { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .reg-detail { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .stats-bar .container { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
