:root {
  --bg: #f7f2e8;
  --bg-2: #efe4cf;
  --ink: #1c1a18;
  --accent: #b84a2f;
  --accent-2: #0f6b5b;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(40, 28, 10, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: url("Images/home_image.jpg") center top / cover no-repeat;
  background-color: #f8efcf;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.brand {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

main {
  width: min(1120px, 92vw);
  margin: 2rem auto 3rem;
  display: grid;
  gap: 3rem;
}

section {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 0.55fr 1.4fr 0.55fr;
}

.hero-side,
.about-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #ffffff;
}

.hero-side {
  min-height: 100%;
}

.about-card {
  flex-direction: column;
  gap: 4rem;
}

.hero-image {
  width: min(100%, 270px);
  max-height: 290px;
  height: auto;
  object-fit: contain;
  display: block;
}

.about-card img {
  width: min(100%, 340px);
  max-height: 320px;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-content {
  padding: 3rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.hero-meta {
  display: grid;
  gap: 0.2rem;
}

.hero-meta p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", serif;
}

h1 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero-content h1 {
  font-family: "Manjari", "Noto Serif Malayalam", serif;
  color: #7a1f14;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
}

.hero-tagline {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: #8f2f1f;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.78rem;
}

.btn {
  width: fit-content;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url("Images/temple.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.about > div:first-child {
  padding: 2rem 2.2rem;
}

.timing-grid,
.event-list {
  display: grid;
  gap: 1rem;
}

.timings,
.events,
.visit {
  padding: 2rem 2.2rem;
}

.timing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.timing-grid article,
.event-list article {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 1rem;
}

.timing-grid .wide-card {
  grid-column: 1 / -1;
}

.pooja-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.pooja-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.pooja-table td {
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pooja-table tr:last-child td {
  border-bottom: 0;
}

.pooja-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--accent-2);
}

.event-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.event-date {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-weight: 700;
}

.btn-alt {
  margin-top: 0.75rem;
  background: var(--accent-2);
}

.location-thumb {
  margin-top: 0.8rem;
  width: min(100%, 520px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.location-thumb iframe {
  display: block;
  width: 100%;
  height: 230px;
  border: 0;
}

.map-link {
  margin-top: 1.1rem;
}

footer {
  text-align: center;
  padding: 1.2rem;
  color: rgba(0, 0, 0, 0.75);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero,
  .about {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .timings,
  .events,
  .visit,
  .about > div:first-child {
    padding: 1.4rem;
  }

  .timing-grid,
  .event-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  nav {
    flex-wrap: wrap;
  }
}
