/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: #374151;
}

/* Brand logo (header) */
.brand-logo {
  height: clamp(48px, 8vw, 84px);
  width: auto;
  display: block;
  object-fit: contain;
}

/* Extra spacing utility for header */
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 1rem;
}

/* Page sections and typography helpers */
.prose p {
  margin-bottom: 1rem;
}
.prose h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose h3 {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.prose ul {
  margin: 0.75rem 0 1rem 1.25rem;
}
.prose li {
  margin: 0.25rem 0;
}
/* Compact variant for tighter paragraphs (used on Contact intro) */
.prose--compact p {
  margin-bottom: 0.75rem;
}

/* Contact page layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 3fr 2fr;
  }
}
.image-panel {
  background-image: url('assets/images/banner.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid #a7f3d0;
  border-radius: 0.75rem;
  min-height: 220px;
  box-shadow:
    0 10px 15px -3px rgba(16, 185, 129, 0.08),
    0 4px 6px -2px rgba(16, 185, 129, 0.06);
}
@media (min-width: 768px) {
  .image-panel {
    min-height: 100%;
  }
}

/* Buttons and muted text helpers */
.btn {
  display: inline-block;
  background: #059669;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.btn:hover {
  background: #047857;
}
.muted {
  color: #047857;
  font-size: 0.875rem;
}

/* Simple text decoration utility */
.underline {
  text-decoration: underline;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Layout */
.min-h-screen {
  min-height: 100vh;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.pb-0 {
  padding-bottom: 0;
}

.pt-6 {
  padding-top: 1.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

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

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

.mb-8 {
  margin-bottom: 2rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

/* Flexbox */
.flex {
  display: flex;
}

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

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.5rem;
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.75rem;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem;
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

/* Background and gradients */
.gradient-bg {
  /* Reference-like palette: deep green + subtle paper background */
  background: linear-gradient(135deg, #f7f5ee 0%, #f2efe3 50%, #f7f5ee 100%);
}

.bg-white {
  background-color: #ffffff;
}

.bg-emerald-50 {
  background-color: #ecfdf5;
}

.bg-emerald-600 {
  background-color: #059669;
}

.bg-emerald-700 {
  background-color: #047857;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.bg-white\/80 {
  background-color: rgba(255, 255, 255, 0.8);
}

.bg-white\/90 {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Text colors */
.text-white {
  color: #ffffff;
}

.text-emerald-600 {
  color: #059669;
}

.text-emerald-700 {
  color: #047857;
}

.text-emerald-800 {
  color: #065f46;
}

.text-emerald-900 {
  color: #064e3b;
}

.text-red-500 {
  color: #ef4444;
}

.text-red-800 {
  color: #991b1b;
}

/* Text sizes */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

/* Font weights */
.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Text alignment */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Borders */
.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-emerald-100 {
  border-color: #d1fae5;
}

.border-emerald-200 {
  border-color: #a7f3d0;
}

.border-emerald-500 {
  border-color: #10b981;
}

.border-red-200 {
  border-color: #fecaca;
}

.border-red-500 {
  border-color: #ef4444;
}

.border-gray-300 {
  border-color: #d1d5db;
}

/* Border radius */
.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded {
  border-radius: 0.25rem;
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Backdrop filter */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Sizing */
.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-10 {
  width: 2.5rem;
}

.w-16 {
  width: 4rem;
}

.w-24 {
  width: 6rem;
}

.w-full {
  width: 100%;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-10 {
  height: 2.5rem;
}

.h-16 {
  height: 4rem;
}

.h-24 {
  height: 6rem;
}

/* Form elements */
input,
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: #ffffff;
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

/* Animations for show/hide */
.fade-enter {
  animation: fadeIn 350ms ease-out forwards;
}
.fade-leave {
  animation: fadeOut 300ms ease-in forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Compact success summary */
.success-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
}

@media (max-width: 640px) {
  .success-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Sliding collapse for compacting actions - we'll transition max-height dynamically via JS */
.sliding {
  overflow: hidden;
  transition: max-height 280ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

input.border-red-500,
select.border-red-500 {
  border-color: #ef4444;
}

input[type=\"radio\"],
input[type=\"checkbox\"] {
  width: 1rem;
  height: 1rem;
  accent-color: #059669;
}

label {
  display: block;
  cursor: pointer;
}

/* Button */
button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: #059669;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

button:hover:not(:disabled) {
  background-color: #047857;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Success animation */
.success-animation {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Loading spinner */
.loading-spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #059669;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive design */
@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }

  .md\:flex {
    display: flex;
  }
}

/* Leading and line height */
.leading-relaxed {
  line-height: 1.625;
}

/* Transitions */
.transition-all {
  transition: all 0.2s;
}

.transition-colors {
  transition:
    color 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}

.duration-200 {
  transition-duration: 0.2s;
}

/* Transform */
.transform {
  transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.hover\:scale-\[1\.02\]:hover {
  transform: scale(1.02);
}

/* Outline */
.outline-none {
  outline: none;
}

/* Ring (focus) */
.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.focus\:ring-emerald-500:focus {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.focus\:ring-opacity-20:focus {
  --tw-ring-opacity: 0.2;
}

/* Additional utility classes for the registration form */
.block {
  display: block;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.opacity-50 {
  opacity: 0.5;
}

/* ===== New Homepage Styles (Header, Nav, Slider, Sections) ===== */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #c4a24f; /* gold accent */
}
.site-header__inner {
  max-width: 72rem; /* 1152px */
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #064e3b;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.main-nav a {
  color: #0b3b2c; /* deep green */
  text-decoration: none;
  font-weight: 600;
}
.main-nav a:hover {
  color: #ffffff;
  background-color: #0b3b2c; /* dark green */
  text-decoration: none;
}

/* Hero */
.hero {
  max-width: 72rem;
  margin: 1.25rem auto 0;
  padding: 0 1rem;
}
.hero-lead {
  text-align: center;
  margin-bottom: 0.75rem;
}
.hero-lead h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  color: #0b3b2c; /* dark green similar to reference */
}
.hero-lead p {
  color: #345c4d; /* muted green */
  margin-top: 0.25rem;
}

/* Slider */
.slider {
  position: relative;
  border: 1px solid #c4a24f; /* gold */
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.slides {
  position: relative;
  display: grid;
}
.slide {
  grid-area: 1/1;
  width: 100%;
  height: clamp(220px, 40vw, 520px);
  display: none;
}
.slide.is-active {
  display: block;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.slider-btn {
  pointer-events: auto;
  background: #ffffffcc;
  border: 1px solid #c4a24f; /* gold accent */
  color: #0b3b2c;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  margin: 0 0.5rem;
}
.slider-btn:hover {
  background: #0b3b2c;
  border-color: #0b3b2c;
  color: #ffffff;
}
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e7d7a6; /* light gold */
  border: none;
}
.slider-dot[aria-current='true'] {
  background: #c4a24f; /* gold accent */
}

/* Sections */
.section {
  max-width: 72rem;
  margin: 2rem auto 0;
  padding: 0 1rem;
}
.section h2 {
  color: #0b3b2c;
  margin-bottom: 0.75rem;
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: #fff;
  border: 1px solid #e7d7a6; /* light gold */
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.08), 0 4px 6px -2px rgba(16, 185, 129, 0.06);
}
.card h3 {
  color: #065f46;
  margin-bottom: 0.25rem;
}
.card p {
  color: #345c4d;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 1.25rem 1rem 2rem;
  color: #345c4d;
  text-align: center;
}

/* Footer icons layout */
.footer-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.footer-icons img {
  display: block;
}
