/* SANDRA Website Styles */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #64748b;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--light);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--gray-100);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-600);
  transition: all 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

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

.hero-actions .btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.3);
}

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

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

.section-large {
  padding: 6rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.page-header {
  background: var(--gray-100);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--gray-500);
  font-size: 1.125rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.align-center {
  align-items: center;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.card-highlight a {
  color: white;
  text-decoration: underline;
}

/* Site Cards */
.site-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.site-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.site-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.site-card p {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.site-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Repeater Sites */
.repeater-site {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.site-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.site-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.status-online {
  background: #dcfce7;
  color: #166534;
}

.status-offline {
  background: #fee2e2;
  color: #991b1b;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.repeater-table {
  width: 100%;
  border-collapse: collapse;
}

.repeater-table th,
.repeater-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.repeater-table th {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.repeater-table tr:last-child td {
  border-bottom: none;
}

/* Net Cards */
.net-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.net-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.net-icon {
  font-size: 2rem;
}

.net-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.net-schedule-time {
  color: var(--gray-500);
  margin: 0;
}

.net-content {
  padding: 1.5rem;
}

.repeater-list {
  list-style: none;
  margin: 1rem 0;
}

.repeater-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.repeater-list li:last-child {
  border-bottom: none;
}

/* Board Members */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.board-member {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.board-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.board-member h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.call-sign {
  font-family: monospace;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Membership */
.membership-benefits,
.family-membership {
  margin: 1.5rem 0;
}

.benefit-list {
  list-style: none;
}

.benefit-list li {
  padding: 0.5rem 0;
}

.membership-price-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 2rem;
}

.price-tag {
  margin-bottom: 0.5rem;
}

.price-tag .price {
  font-size: 3rem;
  font-weight: 700;
}

.price-tag .period {
  font-size: 1.25rem;
  opacity: 0.8;
}

.renewal-note {
  opacity: 0.9;
  font-size: 0.875rem;
}

/* Forms */
.membership-form-card {
  max-width: 500px;
}

.form-intro {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.membership-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group-small {
  max-width: 80px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.form-checkbox label {
  margin: 0;
  font-weight: 400;
}

.secure-note {
  text-align: center;
  margin-top: 1rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
}

/* Success Page */
.success-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-card h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-message {
  color: var(--gray-500);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.success-details {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  text-align: left;
}

.success-details h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.success-details ul {
  list-style: none;
}

.success-details li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.success-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Events */
.events-list {
  display: grid;
  gap: 1rem;
}

.event-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.5rem;
}

.event-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1rem;
}

.event-date .month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-500);
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.event-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.event-meta {
  display: flex;
  gap: 1rem;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.event-description {
  color: var(--gray-600);
}

.events-past .event-card {
  opacity: 0.7;
}

.calendar-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Contact Cards */
.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
}

/* Guidelines */
.guidelines-content {
  max-width: 800px;
}

.guidelines-intro {
  color: var(--gray-500);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Feature List */
.feature-list {
  list-style: none;
  margin: 1rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Net Schedule (Homepage) */
.net-schedule {
  margin: 1.5rem 0;
}

.net-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.net-day {
  font-weight: 600;
  color: var(--primary);
  min-width: 100px;
}

.net-time {
  font-family: monospace;
  color: var(--gray-500);
  min-width: 80px;
}

.net-info {
  display: flex;
  flex-direction: column;
}

.net-info strong {
  color: var(--gray-800);
}

.net-info span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1rem;
}

.footer h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--gray-500);
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu a {
    width: 100%;
    text-align: center;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .membership-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-group-small {
    max-width: none;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-date {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .board-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .success-actions {
    flex-direction: column;
  }
}