/* ========================================
   Wolfe Island Pastoral Charge - Styles
   Professional NPO Design
   ======================================== */

/* ========== CSS Variables ========== */
:root {
  /* Colors */
  --primary-navy: #1a4d8f;
  --primary-navy-dark: #0f3464;
  --accent-gold: #d4a574;
  --accent-gold-light: #e5c299;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --text-dark: #2c3e50;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-max-width: 1200px;

  /* Transitions */
  --transition-smooth: all 0.3s ease;
  --transition-fast: all 0.2s ease;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
}

/* ========== Header Styles ========== */
.header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.top-bar {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.contact-info {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.contact-info a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-info a:hover {
  color: var(--accent-gold-light);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--accent-gold-light);
  transform: translateY(-2px);
}

.main-header {
  padding: 15px 0;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-section img {
  height: 70px;
  width: auto;
}

.site-title {
  display: flex;
  flex-direction: column;
}

.site-title h1 {
  font-size: 1.6rem;
  color: var(--primary-navy);
  margin: 0;
  line-height: 1.2;
}

.site-title .tagline {
  font-size: 0.85rem;
  color: var(--medium-gray);
  font-family: var(--font-body);
  font-weight: 400;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 8px 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--primary-navy);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 5px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background: var(--primary-navy);
  color: var(--white);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 77, 143, 0.85) 0%, rgba(15, 52, 100, 0.75) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Sections ========== */
.section {
  padding: var(--section-padding);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--medium-gray);
}

/* ========== Cards ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

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

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 30px;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

.card p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.card-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

/* ========== Info Boxes ========== */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.info-box {
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border-top: 4px solid var(--accent-gold);
}

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

.info-box-icon {
  font-size: 3.5rem;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

.info-box h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.info-box p {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

/* ========== Contact Form ========== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(26, 77, 143, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ========== Footer ========== */
.footer {
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 100%);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section li {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  line-height: 1.8;
  word-break: break-word;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-section a:hover {
  color: var(--accent-gold-light);
  transform: translateX(5px);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 60px;
  width: auto;
  /* Removed filter to show logo colors */
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 8px 0;
}

.footer-bottom a {
  color: var(--accent-gold-light);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease;
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 30px 30px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-smooth);
    gap: 20px;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .mobile-toggle {
    display: block;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    height: 500px;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .info-boxes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo-section img {
    height: 50px;
  }

  .site-title h1 {
    font-size: 1.2rem;
  }

  .site-title .tagline {
    font-size: 0.75rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

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

.mb-1 {
  margin-bottom: 1rem;
}

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

.mb-3 {
  margin-bottom: 3rem;
}

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

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

.mt-3 {
  margin-top: 3rem;
}

.hidden {
  display: none;
}