/* =========================
   FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600&family=Dancing+Script:wght@400;700&display=swap');

/* =========================
   ROOT & RESET
========================= */
:root {
  --primary: #556B2F;
  --secondary: #778F4A;
  --accent: #F5F5DC;
  --dark: #2F4F2F;
  --muted: #F0F8E0;
  --white: #ffffff;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Crimson Text', serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  padding-top: 80px;
}

.services-page {
  background-image: url('../images/services-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.services-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  z-index: -1;
}

h1, h2, h3 {
  font-family: 'Dancing Script', cursive;
}

/* =========================
   LAYOUT
========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 800px;
}

.section {
  padding: 80px 0;
}

.section.muted {
  background: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 30px;
}

/* =========================
   NAVIGATION
========================= */
.nav {
  background: var(--white);
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInLeft 1s ease-out;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
}

.brand-sub {
  font-size: 0.75rem;
  color: #666;
}

.logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.byl-logo {
  height: 50px;
}

.mvm-logo {
  height: 25px;
}

.logos img {
  transition: transform 0.3s ease;
}

.logos img:hover {
  transform: scale(1.1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

/* =========================
   HERO & HEADERS
========================= */
.hero {
  background: var(--accent);
  padding: 100px 0;
}

.hero-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.page-header {
  padding: 80px 0 40px;
  background: var(--accent);
  text-align: center;
  animation: fadeInUp 1.2s ease-out 0.3s both;
}

.page-header h1 {
  color: var(--primary);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 15px;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
}

.btn.secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn.primary:hover {
  background: #3D5A1F;
}

/* =========================
   GRIDS & CARDS
========================= */
.grid-5,
.service-grid,
.store-grid,
.stories-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-grid,
.store-grid,
.stories-grid,
.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.service-card,
.store-card,
.story-card,
.gallery-item {
  background: var(--white);
  padding: 18px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

/* Ensure grid items align to top to avoid uneven vertical gaps */
.store-grid {
  align-items: start;
}

.card h3,
.service-card h3,
.store-card h3,
.story-card h3,
.gallery-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.gallery-item p {
  font-size: 0.9rem;
  color: var(--dark);
  text-align: center;
}

.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   IMPACT
========================= */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.impact-item strong {
  font-size: 2rem;
  color: var(--primary);
}

/* =========================
   FORMS
========================= */
.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  font-size: 0.85rem;
  color: #444;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #2F4F2F;
  color: var(--white);
  text-align: center;
  padding: 40px 0;
  font-size: 0.85rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* =========================
   SMALL TEXT
========================= */
.small {
  font-size: 0.8rem;
  color: #666;
}

.note {
  font-size: 0.85rem;
  color: #555;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .section {
    padding: 60px 0;
  }

  .byl-logo {
    height: 40px;
  }

  .mvm-logo {
    height: 20px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-sub {
    font-size: 0.65rem;
  }

  .logos {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .section {
    padding: 40px 0;
  }

  .byl-logo {
    height: 35px;
  }

  .mvm-logo {
    height: 18px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-sub {
    font-size: 0.6rem;
  }

  .logos {
    gap: 5px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}

/* =========================
   SHARING BUTTONS
========================= */
.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.3s;
}

.share-buttons a:hover {
  background: var(--secondary);
}

.share-buttons a i {
  font-size: 16px;
}

/* =========================
   STORY STYLES
========================= */
.story {
  margin-bottom: 40px;
}

.story-meta {
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 15px;
}
