/* Knights of Columbus Council 5935 - Main Stylesheet */

:root {
  --primary: #0056b3;
  --primary-light: #1e90ff;
  --primary-dark: #003d80;
  --accent-gold: #c59b27;
  --accent-gold-light: #f5eedc;
  --accent-gold-dark: #9a7313;
  --bg-gradient-start: #1e90ff;
  --bg-gradient-end: #3a7bd5;
  --bg-page: #eef4fc;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --border-color: #e2e8f0;
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

body {
  background: linear-gradient(135deg, #1e90ff 0%, #3a7bd5 50%, #205493 100%);
  background-attachment: fixed;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  padding: 30px 15px 50px 15px;
}

.site-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

/* Header & Branding */
header.site-header {
  padding: 35px 25px 25px 25px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
}

.council-emblem {
  width: 120px;
  height: auto;
  margin: 0 auto 15px auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s ease;
}

.council-emblem:hover {
  transform: scale(1.03);
}

.council-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.council-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f2b48;
  line-height: 1.25;
  margin-bottom: 6px;
}

.council-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Navigation Bar */
nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background-color: #0f2b48;
  border-bottom: 3px solid var(--accent-gold);
}

nav.site-nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

nav.site-nav a:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(30, 144, 255, 0.35);
}

nav.site-nav a.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0f2b48;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(197, 155, 39, 0.4);
}

/* Main Content Area */
main.site-content {
  padding: 35px 30px;
}

/* Typography & Headings */
h1, h2, h3, h4 {
  color: #0f2b48;
  font-weight: 700;
}

h2 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  position: relative;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: var(--primary-light);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(30, 144, 255, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 86, 179, 0.4);
  color: #ffffff;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #0f2b48;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(197, 155, 39, 0.3);
}

.btn-gold:hover {
  background-color: #d6ab32;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(197, 155, 39, 0.45);
}

.btn-success {
  background-color: #2e7d32;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(46, 125, 50, 0.3);
}

.btn-success:hover {
  background-color: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(27, 94, 32, 0.4);
  color: #ffffff;
}

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

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

/* Cards & Grid Layouts */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 25px 22px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.feature-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  color: var(--primary);
}

.feature-card h3 {
  color: #0f2b48;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Hero / Feature Banner */
.hero-banner {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 35px;
  position: relative;
}

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

/* Notice / Callout Box */
.notice-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fc 100%);
  border: 1px solid #cce3f8;
  border-left: 6px solid var(--primary-light);
  border-radius: var(--border-radius-md);
  padding: 24px 22px;
  margin: 25px 0;
}

.notice-box.warning {
  border-left-color: #e53e3e;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  border-color: #feb2b2;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.badge-danger {
  background-color: #e53e3e;
  color: #ffffff;
}

.badge-primary {
  background-color: var(--primary);
  color: #ffffff;
}

/* Iframe Containers (Responsive Google Calendar & Sheets) */
.embed-container {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  margin: 20px 0 30px 0;
}

.embed-container iframe {
  display: block;
  width: 100%;
  min-height: 580px;
  border: none;
}

/* Key Principles List (About page) */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 25px 0;
}

.principle-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--accent-gold);
  border-radius: var(--border-radius-sm);
  padding: 18px 16px;
  text-align: center;
}

.principle-item h4 {
  color: #0f2b48;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.principle-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Footer */
footer.site-footer {
  background-color: #0f2b48;
  color: #94a3b8;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer.site-footer a {
  color: #60a5fa;
  text-decoration: none;
}

footer.site-footer a:hover {
  text-decoration: underline;
  color: #93c5fd;
}

footer.site-footer .footer-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 15px 8px 30px 8px;
  }

  .council-title {
    font-size: 1.6rem;
  }

  .council-tagline {
    font-size: 0.95rem;
  }

  main.site-content {
    padding: 25px 16px;
  }

  nav.site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
  }

  nav.site-nav a {
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .embed-container iframe {
    min-height: 480px;
  }
}
