/* ============================================================
   Avatar Meher Baba Delhi Centre — Main Stylesheet
   Palette: deep green #1a4a2e, gold #c9a84c, cream #fdf6e3
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #fdf6e3;
  color: #2b1a00;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #1a4a2e; text-decoration: none; }
a:hover { color: #c9a84c; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- Site Header ---- */
.site-header {
  background: linear-gradient(135deg, #0e2d1a 0%, #1a4a2e 60%, #2e6b47 100%);
  border-bottom: 4px solid #c9a84c;
  padding: 0.75rem 1rem;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.logo-link { flex-shrink: 0; }
.site-logo { height: 80px; width: auto; border: 2px solid #c9a84c; border-radius: 4px; }
.header-tagline { color: #fdf6e3; }
.header-tagline span { display: block; font-size: 1.25rem; font-weight: bold; letter-spacing: 0.02em; }
.header-tagline small { color: #c9a84c; font-size: 0.9rem; letter-spacing: 0.05em; }

/* ---- Main Nav ---- */
.main-nav {
  background: #1a4a2e;
  border-bottom: 3px solid #c9a84c;
  position: relative;
  z-index: 100;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fdf6e3;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.6rem 1rem;
  width: 100%;
  text-align: left;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fdf6e3;
  font-size: 0.92rem;
  font-family: Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-list > li > a:hover,
.nav-list > li:focus-within > a {
  background: #c9a84c;
  color: #0e2d1a;
  text-decoration: none;
}

/* Dropdowns */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0e2d1a;
  min-width: 200px;
  border: 1px solid #c9a84c;
  border-top: none;
  z-index: 200;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.4);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fdf6e3;
  font-size: 0.88rem;
  font-family: Arial, sans-serif;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: background 0.15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: #c9a84c; color: #0e2d1a; text-decoration: none; }

/* ---- Page Content ---- */
.page-content {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
}

/* ---- Page headings ---- */
h1, h2, h3, h4 { font-family: Georgia, serif; color: #1a4a2e; }
h1 { font-size: 1.8rem; border-bottom: 2px solid #c9a84c; padding-bottom: 0.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin: 1.5rem 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 1rem 0 0.4rem; }
h4 { font-size: 1rem; }
p { margin-bottom: 0.85rem; }

/* ---- Hero / Banner ---- */
.hero {
  background: linear-gradient(to bottom, #1a4a2e, #2e6b47);
  color: #fdf6e3;
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border: 2px solid #c9a84c;
}
.hero h1 { color: #c9a84c; border: none; font-size: 2rem; }
.hero p { color: #fdf6e3; font-size: 1.05rem; max-width: 700px; margin: 0.5rem auto; }
.hero .tagline { font-style: italic; color: #c9a84c; font-size: 1.1rem; margin-top: 0.75rem; }

/* ---- Card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.card {
  background: #fff;
  border: 1px solid #c9a84c;
  border-radius: 6px;
  padding: 1.1rem;
  box-shadow: 1px 2px 6px rgba(0,0,0,0.07);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 2px 4px 12px rgba(0,0,0,0.12); }
.card h3 { color: #1a4a2e; margin-bottom: 0.4rem; }
.card a { display: inline-block; margin-top: 0.5rem; color: #c9a84c; font-weight: bold; }

/* ---- Prayer / content box ---- */
.content-box {
  background: #fff;
  border: 1px solid #c9a84c;
  border-left: 5px solid #1a4a2e;
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin: 1rem 0;
  box-shadow: 1px 2px 6px rgba(0,0,0,0.05);
}
.content-box p { color: #2b1a00; }
.prayer-text {
  font-size: 1.05rem;
  line-height: 2;
  color: #0e2d1a;
}
.prayer-text p { margin-bottom: 1rem; }

/* ---- Info box / note ---- */
.info-box {
  background: #fffbe6;
  border: 1px solid #c9a84c;
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

/* ---- Table ---- */
table.std-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
table.std-table th {
  background: #1a4a2e;
  color: #fdf6e3;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
table.std-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #e0d5b0;
}
table.std-table tr:nth-child(even) td { background: #f5edd5; }

/* ---- Gallery grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 1.2rem 0;
}
.gallery-grid a {
  display: block;
  border: 2px solid #c9a84c;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.gallery-grid a:hover { transform: scale(1.04); border-color: #1a4a2e; }
.gallery-grid img { width: 100%; height: 100px; object-fit: cover; }

/* ---- Single gallery image view ---- */
.gallery-view { text-align: center; }
.gallery-view img { margin: 0 auto 1rem; max-height: 500px; border: 3px solid #c9a84c; border-radius: 4px; }
.gallery-nav { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.gallery-nav a {
  background: #1a4a2e;
  color: #fdf6e3;
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.gallery-nav a:hover { background: #c9a84c; color: #0e2d1a; text-decoration: none; }

/* ---- Contact form ---- */
.contact-form { max-width: 600px; }
.contact-form label { display: block; font-weight: bold; margin: 0.8rem 0 0.25rem; color: #1a4a2e; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #c9a84c;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: #fffdf5;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn {
  margin-top: 1rem;
  background: #1a4a2e;
  color: #fdf6e3;
  border: none;
  padding: 0.6rem 1.8rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form .btn:hover { background: #c9a84c; color: #0e2d1a; }
.form-msg { padding: 0.8rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.form-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-msg.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---- Links list ---- */
.links-list li { padding: 0.3rem 0; border-bottom: 1px dotted #c9a84c; }
.links-list li:last-child { border: none; }
.links-list a { font-size: 0.97rem; }

/* ---- Books list ---- */
.books-list { margin: 1rem 0; }
.books-list li { padding: 0.4rem 0; border-bottom: 1px dotted #c9a84c; }
.books-list li:last-child { border: none; }

/* ---- Print button ---- */
.print-btn {
  display: inline-block;
  margin: 0.75rem 0;
  background: #1a4a2e;
  color: #fdf6e3;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.print-btn:hover { background: #c9a84c; color: #0e2d1a; }

/* ---- Section intro ---- */
.section-intro { font-size: 1.05rem; color: #3a2a00; margin-bottom: 1.2rem; font-style: italic; border-left: 4px solid #c9a84c; padding-left: 0.9rem; }

/* ---- Footer ---- */
.site-footer {
  background: #0e2d1a;
  color: #d0c090;
  border-top: 4px solid #c9a84c;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 1rem;
}
.footer-inner h4 { color: #c9a84c; margin-bottom: 0.6rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-inner p, .footer-inner li { font-size: 0.88rem; line-height: 1.6; }
.footer-inner a { color: #d0c090; }
.footer-inner a:hover { color: #c9a84c; text-decoration: none; }
.footer-inner ul li { padding: 0.15rem 0; }
.footer-bottom {
  background: #071a0e;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #a09060;
}
.footer-bottom p { margin: 0.15rem 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a { border-bottom: 1px solid rgba(201,168,76,0.2); }
  .dropdown { position: static; display: none; border: none; box-shadow: none; background: #122e1e; }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: block; }
  .dropdown li a { padding-left: 2rem; }
  .header-tagline span { font-size: 1rem; }
  h1 { font-size: 1.4rem; }
  .hero h1 { font-size: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
@media (max-width: 480px) {
  .site-logo { height: 55px; }
  .header-tagline span { font-size: 0.9rem; }
  .content-box { padding: 1rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Print ---- */
@media print {
  .main-nav, .site-footer, .nav-toggle, .print-btn { display: none !important; }
  .site-header { background: none; color: #000; border: none; }
  .header-tagline { color: #000; }
  .header-tagline small { color: #333; }
  .page-content { max-width: 100%; margin: 0; padding: 0; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
