/* File: assets/css/styles.css
   Main site-wide styles for Divine Mercy website using CSS variables */

/* Reset and base styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Lato', Arial, sans-serif; line-height: 1.6; color: var(--text-primary); background-color: var(--bg-secondary); }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4, h5 { font-family: 'Crimson Text', serif; font-weight: 600; line-height: 1.2; margin-bottom: 1rem; color: var(--text-primary); }
h1 { font-size: 2rem; color: var(--primary-color); }
h2 { font-size: 1.75rem; position: relative; padding-bottom: 0.5rem; }
h2:after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background-color: var(--primary-color); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }

/* Navigation Styles */
header { background-color: var(--bg-dark); color: var(--text-light); position: sticky; top: 0; z-index: 1000; }
.navbar { position: relative; height: 60px; }
.logo { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
.logo a { color: var(--text-light); text-decoration: none; font-family: 'Crimson Text', serif; font-size: 1.3rem; font-weight: bold; }
.nav-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nav-links ul { display: flex; list-style: none; }
.nav-links li { margin: 0 15px; }
.nav-links a { color: var(--text-light); padding: 5px 0; position: relative; text-decoration: none; }
.nav-links a:after { content: ''; position: absolute; width: 0; height: 2px; background: var(--primary-color); left: 0; bottom: 0; transition: width 0.3s; }
.nav-links a:hover:after, .nav-links a.active:after { width: 100%; }
.nav-links a.active { color: var(--primary-color); }
.hamburger { display: none; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); cursor: pointer; flex-direction: column; z-index: 1001; }
.hamburger span { height: 3px; width: 25px; background: var(--text-light); margin-bottom: 5px; border-radius: 5px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile Menu with slide down animation */
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow: hidden; background: var(--bg-darker); transition: max-height 0.5s ease-out; z-index: 1000; }
.mobile-menu.open { max-height: 300px; }
.mobile-menu ul { list-style: none; padding: 10px; margin: 0; }
.mobile-menu li { border-bottom: 1px solid var(--border-dark); }
.mobile-menu a { display: block; padding: 10px; color: var(--text-light); text-decoration: none; }
.mobile-menu a:hover, .mobile-menu a.active { background-color: var(--bg-dark); }

/* Section styles */
section { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title:after { left: 50%; transform: translateX(-50%); width: 80px; }

/* Footer */
footer { background-color: var(--bg-darker); color: var(--text-light); padding: 30px 0; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 15px; }
.footer-links a { color: var(--text-light); margin: 0 10px; }
.footer-text { font-size: 0.9rem; color: var(--text-muted); }

/* Buttons */
.button { display: inline-block; background-color: var(--primary-color); color: var(--text-light); padding: 10px 20px; border-radius: 4px; font-weight: bold; transition: background-color 0.3s; }
.button:hover { background-color: var(--primary-dark); color: var(--text-light); }
.button.secondary { background-color: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); }
.button.secondary:hover { background-color: var(--primary-light); }

/* Utility classes */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Media queries */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex !important; }
  .logo { left: 50%; transform: translate(-50%, -50%); } /* Center logo on mobile */
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
}

@media (min-width: 992px) {
  .container { padding: 0 30px; }
  section { padding: 60px 0; }
}