* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fffaf1;
  color: #40251b;
  font-family: "Noto Serif Telugu", serif;
}
a {
  text-decoration: none;
  color: inherit;
}
.topbar {
  height: 34px;
  background: #681d18;
  color: #f9e7b0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  font-size: 12px;
}
.header {
  height: 82px;
  background: #fffaf1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #ead7b5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  color: #6b211a;
  letter-spacing: 0.2px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
nav a:hover {
  color: #9a571b;
}
.nav-cta {
  background: #8e2d20;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
}
.menu-btn {
  display: none;
  border: 0;
  background: none;
  font-size: 26px;
  color: #6b211a;
}
.hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background: url("./images/bg2.jpeg") center/cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(42, 16, 11, 0.88),
    rgba(42, 16, 11, 0.48),
    rgba(42, 16, 11, 0.08)
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  margin-left: 9%;
  max-width: 680px;
}
.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #d7aa55;
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.12;
  margin: 14px 0;
}
.hero h1 span {
  color: #f0ca78;
}
.hero p {
  font-size: 19px;
  line-height: 1.9;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  border: 0;
  padding: 13px 24px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
}
.primary {
  background: #9a321f;
  color: white;
}
.ghost {
  border: 1px solid #f2d58e;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.hero-card {
  position: absolute;
  right: 7%;
  bottom: 50px;
  z-index: 3;
  background: #fffaf1;
  color: #51271b;
  padding: 22px 28px;
  width: 230px;
  box-shadow: 0 15px 40px #0004;
  border-top: 3px solid #bd8a31;
}
.hero-card span,
.hero-card small {
  display: block;
  font-size: 12px;
  color: #8a6546;
}
.hero-card strong {
  display: block;
  font-size: 20px;
  margin: 6px 0;
}
.search-panel {
  position: relative;
  margin: -38px auto 0;
  z-index: 5;
  max-width: 1120px;
  background: #fff;
  border: 1px solid #e6d4b4;
  box-shadow: 0 15px 35px #4b24161a;
  padding: 25px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr auto;
  gap: 12px;
  align-items: end;
}
.search-panel h2 {
  font-size: 20px;
  margin: 4px 0 0;
}
.search-panel span {
  font-size: 11px;
  color: #a06a25;
}
.search-panel select,
.register input,
.register select,
.register textarea {
  font-family: inherit;
  border: 1px solid #dec9a4;
  background: #fffdf8;
  padding: 13px;
  border-radius: 3px;
  color: #563126;
}
.section {
  padding: 95px 7%;
}
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}
.ornament {
  color: #b07a24;
  font-size: 20px;
}
.section-heading h2 {
  font-size: 38px;
  margin: 10px 0 14px;
  color: #5a251a;
}
.section-heading > p:last-child {
  color: #795f50;
  line-height: 1.9;
}
.about-grid {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid #ead7b5;
  text-align: center;
  padding: 38px 25px;
}
.feature span {
  font-size: 28px;
  color: #a97928;
}
.feature h3 {
  font-size: 20px;
}
.feature p {
  color: #806b60;
  line-height: 1.8;
}
.profiles-section {
  background: #f7eddd;
}
.profiles {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.profile-card {
  background: white;
  border: 1px solid #e6d4b4;
  overflow: hidden;
}
.profile-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.profile-body {
  padding: 20px;
}
.badge {
  font-size: 10px;
  color: #8c5a1b;
  background: #f7e7bd;
  padding: 5px 8px;
}
.profile-body h3 {
  margin: 14px 0 4px;
  font-size: 20px;
}
.profile-body p {
  margin: 0 0 9px;
  color: #8c5c46;
}
.profile-body small {
  color: #7c6a5e;
}
.image-note {
  text-align: center;
  font-size: 11px;
  color: #8a776c;
  margin: 25px auto 0;
  max-width: 850px;
}
.traditions {
  background: #542019;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}
.tradition-image {
  min-height: 570px;
  background: url("./images/bg1.jpeg") center/cover;
}
.tradition-content {
  padding: 90px 10%;
}
.tradition-content h2 {
  font-size: 40px;
  margin: 10px 0 18px;
  color: #f3cf83;
}
.tradition-content p:not(.kicker) {
  line-height: 2;
  color: #f1dfc6;
}
.ritual-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.ritual-list span {
  border: 1px solid #b88a4b;
  padding: 8px 12px;
  font-size: 13px;
}
.register form {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.register textarea {
  grid-column: 1/-1;
  min-height: 130px;
}
.register button {
  justify-self: start;
}
.contact {
  padding: 70px 8%;
  background: #f2dfbb;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}
.contact h2 {
  font-size: 34px;
  margin: 8px 0;
}
.contact-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.contact-items div {
  background: #fff8eb;
  padding: 20px;
  border: 1px solid #dfc79c;
}
.contact-items b,
.contact-items span {
  display: block;
}
.contact-items b {
  color: #8c5a1b;
  font-size: 12px;
  margin-bottom: 8px;
}
.contact-items span {
  font-size: 13px;
  word-break: break-word;
}
footer {
  background: #3c1713;
  color: #ead9bd;
  padding: 25px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
footer strong {
  font-family: Georgia, serif;
  font-size: 19px;
  color: #f0c873;
  display: block;
}
footer span {
  font-size: 11px;
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .header.open nav {
    display: flex;
    position: absolute;
    top: 116px;
    left: 0;
    right: 0;
    background: #fffaf1;
    flex-direction: column;
    padding: 22px;
    border-bottom: 1px solid #ead7b5;
  }
  .hero-card {
    display: none;
  }
  .search-panel {
    margin: 0 5%;
    grid-template-columns: 1fr 1fr;
  }
  .search-panel > div {
    grid-column: 1/-1;
  }
  .profiles,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .traditions,
  .contact {
    grid-template-columns: 1fr;
  }
  .tradition-image {
    min-height: 360px;
  }
  .contact-items {
    grid-template-columns: 1fr;
  }
  .register form {
    grid-template-columns: 1fr;
  }
  .register textarea {
    grid-column: auto;
  }
  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
@media (max-width: 560px) {
  .topbar {
    padding: 0 4%;
    font-size: 9px;
  }
  .topbar div:last-child {
    display: none;
  }
  .header {
    padding: 0 5%;
  }
  .hero {
    min-height: 620px;
  }
  .hero-content {
    margin: 0 7%;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 16px;
  }
  .section {
    padding: 70px 6%;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .search-panel {
    grid-template-columns: 1fr;
    margin: 0;
  }
  .search-panel .btn {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: max-content;
  }
}
