/* The Rooted Revival - Brand Stylesheet */

/* ===========================
   Brand Colors
   =========================== */
:root {
  /* Primary Colors */
  --deep-green: #2d5016;
  --deep-green-dark: #1f3810;
  --earth-brown: #6b4423;
  --warm-gold: #d4a574;

  /* Secondary Colors */
  --cream: #f5f1e8;
  --soft-sage: #a8b8a0;
  --deep-charcoal: #2c2c2c;

  /* Utility Colors */
  --white: #ffffff;
  --light-gray: #e5e5e5;
  --medium-gray: #666666;
}

/* ===========================
   Global Reset & Base Styles
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--deep-charcoal);
  background-color: var(--cream);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--deep-green-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 0.75rem;
}

a {
  color: var(--deep-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--earth-brown);
}

/* ===========================
   Accessibility
   =========================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--deep-green);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 5px 0;
  opacity: 0;
}

.skip-link:focus {
  top: 0;
  opacity: 1;
}

/* ===========================
   Layout & Container
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 0.75rem 0;
}

/* ===========================
   Header & Navigation
   =========================== */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--deep-green);
  font-family: Georgia, 'Times New Roman', serif;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--deep-charcoal);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--deep-green);
  border-bottom-color: var(--warm-gold);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--deep-green);
  cursor: pointer;
}

/* ===========================
   Hero Section (Home Page)
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--earth-brown) 100%);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--cream);
}

/* ===========================
   Buttons & CTAs
   =========================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--warm-gold);
  color: var(--deep-charcoal);
}

.btn-primary:hover {
  background-color: var(--earth-brown);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--deep-green);
}

/* ===========================
   Cards & Content Sections
   =========================== */
.card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--deep-green), var(--warm-gold));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--soft-sage);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1;
}

.card h3 {
  color: var(--deep-green);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

/* ===========================
   Page Header (for single pages)
   =========================== */
.page-header {
  background:
    linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  padding: 2.5rem 0 2rem;
  border-bottom: 3px solid var(--warm-gold);
  position: relative;
  overflow: hidden;
}

/* Decorative corner accents */
.page-header::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(45, 80, 22, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header-badge {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.page-header h1 {
  color: var(--deep-green-dark);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  margin-top: 0.25rem;
  line-height: 1.2;
}

.page-header-description {
  font-size: 1.3rem;
  color: var(--earth-brown);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  padding: 0 1rem;
}

/* ===========================
   Content Styling (Services, About, etc.)
   =========================== */
.content {
  line-height: 1.8;
}

.content h2 {
  color: var(--deep-green-dark);
  font-size: 2.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--warm-gold);
  display: inline-block;
}

.content h3 {
  color: var(--deep-green);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content h4 {
  color: var(--earth-brown);
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content p {
  margin-bottom: 1.25rem;
  color: var(--deep-charcoal);
}

.content strong {
  color: var(--deep-green);
  font-weight: 600;
}

.content ul, .content ol {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.content ul li, .content ol li {
  padding-left: 2rem;
  margin-bottom: 1rem;
  position: relative;
  line-height: 1.7;
  display: block;
}

.content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--deep-green);
  font-weight: bold;
  font-size: 1.1rem;
}

.content ol {
  counter-reset: item;
}

.content ol li {
  counter-increment: item;
}

.content ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--deep-green);
  font-weight: 600;
}

.content a {
  color: var(--deep-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--warm-gold);
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.content a:hover {
  color: var(--earth-brown);
  border-bottom-color: var(--earth-brown);
}

.content hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--soft-sage), transparent);
  margin: 2.5rem 0;
}

/* Retreat Schedule Styling */
.content h3 {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--soft-sage) 100%);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(42, 80, 24, 0.15);
}

.content h4,
.content strong {
  color: var(--deep-green-dark);
}

/* Session blocks */
.content h3 + p strong,
.content h3 + h4 {
  display: inline-block;
  background: var(--cream);
  padding: 0.4rem 0.9rem;
  border-left: 3px solid var(--warm-gold);
  margin: 0.75rem 0;
  border-radius: 4px;
}

/* Service Section Boxes */
.content > h2 {
  width: 100%;
}

.content h2 + p {
  font-size: 1.15rem;
  color: var(--medium-gray);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* ===========================
   Forms
   =========================== */
form {
  max-width: 600px;
  margin: 0 auto;
}

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

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--deep-charcoal);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--deep-green);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===========================
   Footer
   =========================== */
footer {
  background: linear-gradient(180deg, var(--deep-green) 0%, var(--deep-green-dark) 100%);
  color: var(--cream);
  padding: 2.5rem 0 1rem;
  margin-top: 1rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--warm-gold), var(--soft-sage), var(--warm-gold));
}

footer h3 {
  color: var(--warm-gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

footer a {
  color: var(--cream);
  transition: color 0.3s ease;
}

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

footer ul {
  padding: 0;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section p {
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.95;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(168, 184, 160, 0.3);
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
  h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  nav ul {
    gap: 1rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  nav.mobile-active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    padding: 1rem 20px;
    border-bottom: 1px solid var(--light-gray);
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
