:root {
  --navy: #18375b;
  --navy-dark: #102844;
  --maroon: #7d2020;
  --gold: #b8892d;
  --gold-light: #e4c579;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --soft: #f5efe2;
  --text: #292929;
  --muted: #666;
  --border: #e2d6bd;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 248, 0.97);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--maroon);
  font-size: 11px;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  color: var(--navy);
}

.brand-text small {
  color: var(--muted);
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

nav a:hover {
  color: var(--maroon);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--navy);
}

.hero {
  min-height: 680px;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;

  background-image:
    linear-gradient(
      rgba(255, 250, 240, 0.70),
      rgba(255, 250, 240, 0.86)
    ),
    url("../images/sita_rama_kalyanam.png");

  background-position: center;
  background-size: cover;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background:
    linear-gradient(
      90deg,
      var(--maroon),
      var(--gold),
      var(--maroon)
    );
}

.hero::before {
  top: 0;
}

.hero::after {
  bottom: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(850px, calc(100% - 36px));
}

.eyebrow,
.section-label,
.section-heading > span {
  color: var(--maroon);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  color: var(--navy-dark);
  font-family: Georgia, serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  margin: 18px 0;
}

.hero p {
  max-width: 720px;
  margin: auto;
  font-size: 19px;
  color: #403c36;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
}

.button.primary {
  background: var(--navy);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--gold);
  color: var(--maroon);
}

.section {
  padding: 88px 20px;
}

.alternate {
  background: var(--cream);
}

.section-heading {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 48px;
}

.section-heading h2,
.temple-layout h2 {
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  margin: 10px 0 14px;
}

.section-heading p {
  color: var(--muted);
}

.two-column {
  width: min(1100px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.info-card,
.donation-panel,
.verify-card,
.contact-card,
.activity-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.info-card {
  padding: 28px;
  border-top: 4px solid var(--gold);
}

.card-grid {
  width: min(1100px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.activity-card {
  padding: 26px;
}

.activity-card h3 {
  color: var(--navy);
}

.activity-icon {
  color: var(--maroon);
  font-size: 28px;
}

.temple-image img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.notice,
.warning-box {
  padding: 15px;
  border-left: 4px solid var(--gold);
  background: var(--soft);
  margin-top: 20px;
}

.donation-panel,
.verify-card {
  width: min(720px, 100%);
  margin: auto;
  padding: 32px;
}

.verify-card {
  display: grid;
  gap: 10px;
}

.verify-card label {
  color: var(--navy);
  font-weight: 700;
  margin-top: 8px;
}

.verify-card input {
  width: 100%;
  padding: 13px;
  border-radius: 7px;
  border: 1px solid #bfb8aa;
  font: inherit;
}

.verify-card .button {
  margin-top: 14px;
}

.verification-message {
  display: none;
  margin-top: 10px;
  padding: 14px;
  border-radius: 7px;
  background: var(--soft);
}

.privacy-note {
  color: var(--muted);
  font-size: 13px;
}

.contact-grid {
  width: min(1000px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 25px;
}

.contact-card h3 {
  color: var(--navy);
}

.contact-card a {
  color: var(--maroon);
}

footer {
  padding: 45px 20px;
  text-align: center;
  background: var(--navy-dark);
  color: white;
  border-top: 5px solid var(--gold);
}

footer strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

footer p {
  opacity: 0.88;
}

@media (max-width: 900px) {

  .menu-button {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    padding: 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
  }

  nav.open {
    display: flex;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {

  .hero {
    min-height: 600px;
  }

  .section {
    padding: 65px 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .brand-text small {
    display: none;
  }
}
/* =========================================================
   SRMDC TRUST WEBSITE - PHASE 1B
   Public UI Polish
   ========================================================= */

/*
  Sticky navigation anchor correction.
  This prevents section headings such as Contact Us
  from being hidden behind the fixed/sticky header.
*/
section[id] {
  scroll-margin-top: 105px;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.sri-rama-jayam {
  margin-bottom: 10px;
  color: var(--maroon);
  font-family: Georgia, serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero {
  background-image:
    linear-gradient(
      rgba(255, 250, 240, 0.62),
      rgba(255, 250, 240, 0.78)
    ),
    url("../images/sita_rama_kalyanam.png");
}

.hero h1 {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(40px, 5.4vw, 68px);
}

.hero p {
  max-width: 780px;
}

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

.site-header {
  backdrop-filter: blur(8px);
}

nav a {
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transition: right 0.2s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  right: 0;
}

/* ---------------------------------------------------------
   CARDS
   --------------------------------------------------------- */

.activity-card,
.contact-card,
.info-card,
.donation-panel,
.verify-card {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.activity-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-light);
}

/* ---------------------------------------------------------
   TEMPLE SECTION
   --------------------------------------------------------- */

.temple-image-frame {
  position: relative;
  overflow: hidden;
  padding: 7px;
  background: var(--paper);
  border: 1px solid var(--gold-light);
  border-radius: 16px;
}

.temple-image-frame img {
  width: 100%;
  display: block;
  border-radius: 11px;
}

.temple-image-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  padding: 10px 15px;
  text-align: center;
  color: white;
  background: rgba(16, 40, 68, 0.78);
  border: 1px solid rgba(228, 197, 121, 0.75);
  border-radius: 7px;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   DONATION ACTIONS
   --------------------------------------------------------- */

.donation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.whatsapp-button {
  background: #176b3a;
  color: white;
}

.whatsapp-button:hover {
  filter: brightness(0.94);
}

.contact-whatsapp {
  display: inline-block;
  margin-top: 5px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   VERIFY RECEIPT
   --------------------------------------------------------- */

.verify-card input:focus {
  outline: 2px solid rgba(184, 137, 45, 0.28);
  border-color: var(--gold);
}

.verify-card .button {
  min-height: 48px;
}

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

.contact-card a {
  word-break: break-word;
}

.contact-card {
  min-height: 220px;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.footer-contact {
  font-size: 13px;
  opacity: 0.72;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

  section[id] {
    scroll-margin-top: 90px;
  }

  .hero h1 {
    font-size: clamp(38px, 8vw, 58px);
  }

  nav {
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  nav a::after {
    display: none;
  }

  .temple-layout {
    gap: 32px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 560px) {

  .nav-container {
    width: min(100% - 24px, 1180px);
  }

  .brand-mark {
    width: 43px;
    height: 43px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .hero {
    min-height: 610px;
    background-position: center;
  }

  .hero h1 {
    font-size: clamp(35px, 11vw, 48px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-heading h2,
  .temple-layout h2 {
    font-size: 34px;
  }

  .donation-panel,
  .verify-card {
    padding: 22px;
  }

  .donation-actions {
    flex-direction: column;
  }

  .donation-actions .button {
    width: 100%;
    text-align: center;
  }

  .temple-image-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 13px;
  }

  .contact-card {
    min-height: auto;
  }
}

/* ---------------------------------------------------------
   ACCESSIBILITY
   --------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(184, 137, 45, 0.45);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}