/* Dhamma Nadi Monastery — Static Site Styles */
:root {
  --primary: #FFD700; /* Golden Yellow */
  --brown: #A0522D;   /* Soft brown */
  --muted-orange: #F4A460; /* Muted orange */
  --text: #333333;    /* Dark gray */
  --bg: #fffdf6;      /* Warm off-white */
  --bg-alt: #fffaf0;
  --link: #A0522D;
  --maxw: 1100px;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Typography */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

/* Burmese font support */
.mm, .myanmar-text {
  font-family: "Padauk", "Myanmar Text", "Myanmar MN", sans-serif;
}

h1, h2, h3, h4, h5 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
  color: #222;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.stack { display: grid; gap: 1rem; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 253, 246, 0.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid #eee4b2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; color: #222; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 20%, var(--primary) 22%, #e7c100 60%, #c7a200 100%);
  border: 2px solid #e7c100;
  box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .en { font-size: 1.1rem; }
.brand-text .mm { font-family: "Lora", Georgia, "Times New Roman", serif; font-size: 0.95rem; color: var(--brown); opacity: 0.9; }

.nav-links { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.nav-links a { padding: 0.5rem 0.8rem; border-radius: 8px; font-weight: 500; }
.nav-links a.active, .nav-links a:hover { background: var(--primary); color: #1e1e1e; text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 850px) {
  .nav-links { display: none; width: 100%; margin-top: 0.75rem; }
  .nav-links.open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-toggle { display: inline-block; }
  .navbar { flex-wrap: wrap; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  background: linear-gradient(120deg, #fff3b0, #fffaf0 35%, #ffffff 100%);
  border-bottom: 1px solid #f2e6b3;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.hero-inner { padding: 3rem 0; width: 100%; }
.hero h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.hero p.lead { font-size: 1.2rem; color: #444; margin-bottom: 1.5rem; }

.hero-card {
  background: white; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem; border: 1px solid #f2e6b3;
  max-width: 600px;
}

/* Sections */
section { padding: 2.5rem 0; }
.section-title { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.25rem; }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--muted-orange); color: #2b1a09; font-size: 0.85rem; font-weight: 600; }

/* Cards / Grid */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 950px) { 
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } 
  .hero-inner { padding: 2rem 0; }
}
@media (max-width: 650px) { 
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } 
  section { padding: 1.8rem 0; }
}

.card { 
  background: white; border-radius: var(--radius); padding: 1.25rem; 
  box-shadow: var(--shadow); border: 1px solid #f1e7c2; 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card h3 { margin-bottom: 0.5rem; }

/* Buttons */
.btn { 
  display: inline-block; padding: 0.7rem 1.2rem; border-radius: 10px; 
  font-weight: 600; border: 2px solid transparent; cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.btn:hover { 
  text-decoration: none; 
  filter: saturate(110%); 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-primary { background: var(--primary); color: #1e1e1e; }
.btn-brown { background: var(--brown); color: #fff; }
.btn-outline { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { padding: 0.75rem 0.75rem; border-bottom: 1px solid #eee; text-align: left; }
thead th { border-bottom: 2px solid #e7c100; background: #fff8d9; }
tr:hover td { background: #fffaf0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.gallery-item { 
  position: relative; overflow: hidden; border-radius: 12px; 
  background: #f7f0d6; border: 1px solid #f1e7c2; box-shadow: var(--shadow); 
  aspect-ratio: 4/3;
}
.gallery-item img { 
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item span { 
  position: absolute; left: 10px; bottom: 10px; 
  background: rgba(255,255,255,0.9); padding: 5px 10px; 
  border-radius: 8px; font-size: 0.85rem; font-weight: 600;
}

/* Lightbox */
.lightbox { 
  position: fixed; inset: 0; background: rgba(0,0,0,0.9); 
  display: none; align-items: center; justify-content: center; 
  padding: 1.5rem; z-index: 2000;
}
.lightbox.open { display: flex; }
.lightbox img { 
  max-width: 95vw; max-height: 90vh; border-radius: 12px; 
  box-shadow: 0 15px 50px rgba(0,0,0,0.5); 
  border: 3px solid white;
}
.lightbox .close-btn {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.2); color: white;
  border: none; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer;
}
.lightbox .close-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Forms */
form { display: grid; gap: 1rem; max-width: 600px; }
label { font-weight: 600; display: block; margin-bottom: 0.3rem; }
input, textarea, select { 
  width: 100%; padding: 0.75rem 0.9rem; border-radius: 8px; 
  border: 1px solid #e7dca8; background: #fff;
  font-family: inherit; font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}
textarea { min-height: 160px; resize: vertical; }

/* Footer */
.site-footer { 
  background: #fff; border-top: 1px solid #eee4b2; 
  margin-top: 3rem; padding: 2rem 0;
}
.site-footer .inner { padding: 0; }
.site-footer a { color: var(--brown); }
.site-footer a:hover { color: #1e1e1e; }
.muted { color: #666; font-size: 0.95rem; }

/* Utilities */
.pill { 
  display: inline-block; padding: 0.25rem 0.7rem; background: #fff5bf; 
  color: #3a2a00; border-radius: 999px; border: 1px solid #e7c100; 
  font-size: 0.85rem; font-weight: 600;
}
.note { 
  background: #fff8d9; border-left: 4px solid var(--primary); 
  padding: 1rem; border-radius: 8px; margin: 1.5rem 0;
}
.center { text-align: center; }
.spacer { height: 1rem; }
.sr-only { 
  position: absolute; width: 1px; height: 1px; padding: 0; 
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; 
}

/* Map */
.map-container {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #f1e7c2;
  margin: 1.5rem 0;
}
@media (max-width: 700px) {
  .map-container { height: 300px; }
}

/* Calendar */
.calendar-view {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid #f1e7c2;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
.calendar-day-header {
  text-align: center;
  font-weight: 700;
  padding: 0.5rem;
  color: var(--brown);
}
.calendar-day {
  min-height: 80px;
  padding: 0.5rem;
  border-radius: 8px;
  background: #fffaf0;
  border: 1px solid #f1e7c2;
}
.calendar-day.empty {
  background: transparent;
  border: none;
}
.calendar-day-number {
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.calendar-day-events {
  font-size: 0.8rem;
}
.calendar-day.has-events {
  background: #fff8d9;
  border-color: #e7c100;
}

/* Audio/Video Gallery */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.media-item {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #f1e7c2;
}
.media-thumb {
  height: 180px;
  background: linear-gradient(45deg, #f4a460, #a0522d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}
.media-info {
  padding: 1rem;
}
.media-info h3 {
  margin: 0 0 0.5rem 0;
}
.media-info p {
  margin: 0 0 0.75rem 0;
  color: #666;
  font-size: 0.9rem;
}
.media-link {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--primary);
  color: #1e1e1e;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.media-link:hover {
  text-decoration: none;
  background: #e7c100;
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.resource-item {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid #f1e7c2;
}
.resource-item h3 {
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.resource-item p {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 0.95rem;
}
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--brown);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.resource-link:hover {
  text-decoration: none;
  background: #8b4513;
}

/* Donation buttons */
.donation-buttons {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
}
.donation-buttons .btn {
  flex: 1;
  padding: 1.2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
@media (max-width: 600px) {
  .donation-buttons {
    flex-direction: column;
  }
}