/* ---------- Base & Background ---------- */
:root{
  --saffron:#ff9933;
  --maroon:#7a0f0f;
  --deep:#3a2115;
  --gold:#f3c766;
  --glass-bg: rgba(255,255,255,0.16);
  --glass-stroke: rgba(255,255,255,0.22);
}

*{ box-sizing:border-box; }

html,body{
  height:100%;
}

body{
  margin:0;
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#fff;
  /* Temple image you placed in the same folder */
  background:
    linear-gradient( to bottom, rgba(58,33,21,0.65), rgba(58,33,21,0.65) ),
    url("templepic.jpg") center/cover fixed no-repeat;
}

/* Subtle backdrop blur for “glass” sections */
.glass{
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
}

/* ---------- Header ---------- */
.site-header{
  margin:16px auto 14px;
  width:min(1100px, 92vw);
  padding:14px 16px;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  font-size:34px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}

.title-wrap h1{
  font-family:'Playfair Display', serif;
  font-weight:700;
  letter-spacing:.3px;
  font-size:28px;
  margin:0;
  color: #ffe9c9;
}

.title-wrap p{
  margin:2px 0 0;
  color:#f7e6d2;
  opacity:.9;
  font-size:14px;
}

.search{
  width:min(420px, 60vw);
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.4);
  background:rgba(255,255,255,.18);
  color:#fff;
  outline:none;
}

.search::placeholder{ color: #f1e7db; }

/* ---------- Container ---------- */
.container{
  width:min(1100px, 92vw);
  margin:0 auto 22px;
}

/* Section heading */
.section{
  margin:20px 0 26px;
}

.section h2{
  font-family:'Playfair Display', serif;
  font-size:26px;
  letter-spacing:.3px;
  margin:18px 4px 10px;
  color:#ffe3b1;
  display:flex;
  align-items:center;
  gap:10px;
}

.section h2 .icon{
  font-size:22px;
}

/* Pooja grid */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
}

/* Pooja card */
.card{
  position:relative;
  padding:16px 16px 14px;
  min-height:118px;
  display:flex;
  flex-direction:column;
  gap:12px;
  justify-content:space-between;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.card .name{
  font-weight:600;
  font-size:18px;
  color:#fff8ef;
}

.meta{
  display:flex;
  align-items:center;
  gap:8px;
  color:#ffe9c9;
  font-size:13px;
  opacity:.95;
}

/* Buttons */
.btn{
  padding:9px 12px;
  border-radius:10px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:600;
}

.btn-primary{
  background: linear-gradient(135deg, var(--saffron), #ffb862);
  color:#3b220f;
}

.btn-primary:hover{
  filter: brightness(1.05);
}

.btn-outline{
  background: transparent;
  border:1px solid #ffd69a;
  color:#ffe3b1;
}

.btn-outline:hover{
  background: rgba(255,255,255,.08);
}

/* ---------- Footer ---------- */
.site-footer{
  width:min(1100px, 92vw);
  margin: 0 auto 22px;
  padding:12px 16px;
  text-align:center;
  color:#ffe8c6;
  font-size:14px;
}

/* ---------- Modal ---------- */
.modal{
  width:min(640px, 92vw);
  border:none;
  padding:0;
  color:#fff;
}

.modal::backdrop{
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

#bookingForm{
  padding:18px;
}

#modalTitle{
  margin:4px 0 14px;
  font-family:'Playfair Display', serif;
  font-size:22px;
  color:#ffe5b7;
}

.modal-close{
  position:absolute;
  right:12px;
  top:10px;
  background:transparent;
  border:none;
  font-size:20px;
  color:#ffe8c9;
  cursor:pointer;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.form-grid label{
  font-size:13px;
  color:#ffedd0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.form-grid .full{ grid-column:1/-1; }

input, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.15);
  color:#fff;
  outline:none;
}

input::placeholder, textarea::placeholder{ color:#f1e7db; }

.modal-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

/* Small screens */
@media (max-width:640px){
  .form-grid{ grid-template-columns: 1fr; }
  .search{ width:100%; }
}

/* ======= NEW: Two-column layout + Priest card ======= */
.two-col{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:20px;
  align-items:start;
}

#priestCard{
  padding:16px;
  text-align:center;
}

.priest-photo{
  width:100%;
  max-width:280px;
  border-radius:14px;
  margin-bottom:12px;
  box-shadow:0 6px 14px rgba(0,0,0,.35);
}

#priestCard h2{
  font-family:'Playfair Display', serif;
  font-size:22px;
  margin:6px 0 4px;
  color:#ffe3b1;
}

#priestCard .subtitle{
  font-size:13px;
  color:#ffe9c9;
  opacity:.9;
  margin-bottom:10px;
}

#priestCard p{
  font-size:15px;
  line-height:1.6;
  color:#f7e6d2;
  text-align:justify;
}

/* Stack on smaller screens */
@media (max-width:800px){
  .two-col{ grid-template-columns: 1fr; }
  #priestCard{ margin-top:20px; }
}
