/* ===== Custom Properties ===== */
:root {
  --navy: #1a2a3a;
  --navy-light: #2c3e50;
  --navy-dark: #0f1922;
  --steel-blue: #4a6d8c;
  --steel-blue-light: #6b8fad;
  --slate: #708090;
  --sand: #f5f1eb;
  --sand-dark: #e8e2d8;
  --warm-white: #faf9f7;
  --white: #ffffff;
  --sea-green: #5a8a7a;
  --sea-green-light: #7aaa9a;
  --rope: #b8956a;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-light: #8494a7;
  --border: #ddd8d0;
  --shadow-sm: 0 1px 3px rgba(26, 42, 58, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 42, 58, 0.1);
  --shadow-lg: 0 8px 30px rgba(26, 42, 58, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.3;
}

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  color: var(--steel-blue);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 450;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--sand);
}

.nav-admin-link {
  color: var(--steel-blue) !important;
  font-weight: 500 !important;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--steel-blue) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(90, 138, 122, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(74, 109, 140, 0.2) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='https://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
  background: var(--sand);
}

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

.section-title {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--steel-blue);
  border-radius: 2px;
}

/* ===== Content Cards ===== */
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

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

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  list-style: none;
  padding: 0;
}

.content-card li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--sand);
}

.content-card li:last-child {
  border-bottom: none;
}

.content-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--steel-blue);
  border-radius: 50%;
}

/* ===== Documents ===== */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.document-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.document-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.document-icon {
  width: 44px;
  height: 44px;
  background: var(--sand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.document-icon svg {
  width: 22px;
  height: 22px;
  color: var(--steel-blue);
}

.document-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.document-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.document-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== Events ===== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
}

.event-date {
  flex-shrink: 0;
  width: 65px;
  height: 65px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.event-day {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.event-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.event-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.contact-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

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

/* ===== Private Documents ===== */
.private-section {
  background: var(--navy);
  color: var(--white);
}

.private-section .section-title {
  color: var(--white);
}

.private-section .section-title::after {
  background: var(--steel-blue-light);
}

.private-login-prompt {
  text-align: center;
  padding: 2rem;
}

.private-login-prompt p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.2rem;
}

.btn-login-front {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-login-front:hover {
  background: var(--sand);
}

.btn-login-microsoft {
  margin-top: 0.6rem;
}

.private-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.private-docs-grid .document-card {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.1);
}

.private-docs-grid .document-card:hover {
  background: var(--steel-blue);
}

.private-docs-grid .document-card h3,
.private-docs-grid .document-card p {
  color: rgba(255,255,255,0.9);
}

.private-docs-grid .document-icon {
  background: rgba(255,255,255,0.1);
}

.private-docs-grid .document-icon svg {
  color: var(--steel-blue-light);
}

.private-docs-grid .document-meta {
  color: rgba(255,255,255,0.5);
}

.private-user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
}

.private-user-bar span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.private-user-bar button {
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.private-user-bar button:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem;
    width: 100%;
  }

  .hero {
    min-height: 35vh;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .event-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
