/* Custom styles supplementing Tailwind CSS */

:root {
  /* Primary Colors */
  --primary: #3A4F76; /* River Indigo */
  --primary-dark: #2D3A2E; /* Forest Shadow */
  --secondary: #F4B942; /* Sun Gold */
  --accent: #6E8C62; /* Moss Green */
  --background: #EDE6DB; /* Stone Beige */
  --foreground: #3A4F76; /* River Indigo */
  --muted-foreground: #2D3A2E; /* Forest Shadow */
  --border: #C6D7DF; /* Sky Petal */
  --card-bg: #FFFFFF;
  --section-alt-bg: #C6D7DF; /* Sky Petal */
  --cta: #F4B942; /* Sun Gold */
  --cta-text: #2D3A2E; /* Forest Shadow */
  --warm-accent: #D38358; /* Clay Terracotta */
  --subtle-highlight: #F2C9C3; /* Rosewood Tint */
  --shadow-light: 0 4px 8px rgba(45, 58, 46, 0.08);
  --shadow-medium: 0 4px 8px rgba(45, 58, 46, 0.12);
}

/* General styles */
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Karla', sans-serif;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.05em;
  margin-bottom: 0.5em;
}

h1, h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

h3, h4 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
}

h5, h6 {
  font-family: 'Karla', sans-serif;
  font-weight: 600;
}

.accent-text {
  font-family: 'Amatic SC', cursive;
  font-size: 1.8rem;
  line-height: 1.3;
}

.subheading {
  font-family: 'Quicksand', sans-serif;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: black;
}

h2 {
  font-size: 2rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.35;
}

p {
  margin-bottom: 1.5rem;
  max-width: 70ch;
}

/* Hero section animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Component styles */
.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  padding: 24px;
  margin-bottom: 1.5rem;
}

.card-image {
  border-radius: 12px;
  overflow: hidden;
}

/* Button styles */
.btn {
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  background-color: var(--cta); /* Sun Gold */
  color: var(--cta-text); /* Forest Shadow */
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background-color: #E4AB38; /* Slightly darker Sun Gold */
}

/* Section styles */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.section {
  margin-bottom: 40px;
}

.section-alt {
  background-color: var(--section-alt-bg);
  padding: 40px 0;
}

.section-divider {
  height: 1px;
  background-color: var(--border);
  margin: 40px 0;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

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

/* Form styles */
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  width: 100%;
  font-size: 1rem;
  transition: all 0.2s ease;
}

textarea {
  height: auto;
  min-height: 120px;
}

.form-input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(58, 79, 118, 0.2); /* River Indigo with opacity */
  outline: none;
}

.form-input:hover,
input:hover,
textarea:hover,
select:hover {
  border-color: var(--primary-dark);
}

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Blog post styles */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.blog-content a {
  color: var(--primary);
  text-decoration: underline;
}

.blog-content a:hover {
  color: var(--primary-dark);
}

/* Admin dashboard styles */
.admin-card {
  transition: all 0.3s ease;
}

.admin-card:hover {
  background-color: var(--primary); /* River Indigo */
  color: white;
}

.admin-card:hover a {
  color: white;
}

/* Calendar styles */
.calendar-day {
  min-height: 8rem;
}

.calendar-event {
  background-color: var(--accent); /* Moss Green */
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Utilities */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Navigation styles */
nav a {
  position: relative;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  margin: 0 4px;
  transition: all 0.2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

nav a:hover::after {
  width: 80%;
  left: 10%;
}

/* Header styles */
header {
  box-shadow: var(--shadow-light);
}

/* Image styles */
.img-rounded {
  border-radius: 12px;
  box-shadow: var(--shadow-light);
}

.img-container {
  margin: 1.5rem 0;
  overflow: hidden;
  position: relative;
}

/* Footer styles */
footer {
  background-color: var(--section-alt-bg);
  padding: 40px 0;
}

footer h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

footer a {
  transition: all 0.2s ease;
}

footer a:hover {
  color: var(--primary);
}

/* Icon styles */
.icon {
  width: 24px;
  height: 24px;
  margin: 0 16px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s, transform 0.7s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
