@font-face {
  font-family: "Hind Vadodara Local";
  src: url("../fonts/Hind_Vadodara/HindVadodara-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hind Vadodara Local";
  src: url("../fonts/Hind_Vadodara/HindVadodara-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hind Vadodara Local";
  src: url("../fonts/Hind_Vadodara/HindVadodara-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hind Vadodara Local";
  src: url("../fonts/Hind_Vadodara/HindVadodara-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anek Gujarati Local";
  src: url("../fonts/Anek_Gujarati/AnekGujarati-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anek Gujarati Local";
  src: url("../fonts/Anek_Gujarati/AnekGujarati-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anek Gujarati Local";
  src: url("../fonts/Anek_Gujarati/AnekGujarati-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anek Gujarati Local";
  src: url("../fonts/Anek_Gujarati/AnekGujarati-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anek Gujarati Local";
  src: url("../fonts/Anek_Gujarati/AnekGujarati-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --garden-paper: url("../images/invitation-paper-border.png");
  --garden-full: url("../images/invitation-garden-full.png");
  --garden-bottom: url("../images/invitation-garden-bottom.png");
  --font-body: "Hind Vadodara Local", system-ui, sans-serif;
  --font-title: "Anek Gujarati Local", "Hind Vadodara Local", system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: #f9efe1;
  background-image: linear-gradient(rgba(249, 242, 233, .88), rgba(249, 242, 233, .88)), var(--garden-paper);
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.nav-link,
.section-title,
.section-kicker,
.btn,
.event-body h3,
.person-card h3,
.member-card h3,
.site-footer h3,
.site-footer h4 {
  font-family: var(--font-title);
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 86px;
  background: linear-gradient(rgba(249, 242, 233, .92), rgba(249, 242, 233, .28));
  pointer-events: none;
  z-index: -1;
}

.nav-glass {
  border: 1px solid rgba(201, 154, 46, .45);
  background: rgba(255, 247, 235, .74);
  box-shadow: 0 14px 42px rgba(98, 54, 18, .13), inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.nav-glass .nav-link {
  color: var(--secondary);
}

.nav-glass .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), #2f8a53);
  box-shadow: 0 8px 18px rgba(29, 107, 60, .22);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.18;
}

.brand-copy small {
  color: #8d6b1f;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
}

.brand-copy strong {
  max-width: 420px;
  color: var(--primary);
  font-size: clamp(.9rem, 1.35vw, 1.12rem);
  font-weight: 800;
  white-space: normal;
}

.about-feature-image {
  overflow: hidden;
  border: 1px solid rgba(201, 154, 46, .36);
  border-radius: var(--radius);
  box-shadow: 0 24px 58px rgba(82, 35, 31, .16);
}

.about-feature-image img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-glass .nav-link:hover,
.nav-glass .nav-link:focus {
  color: #fff;
  background: var(--secondary);
}

.nav-glass .nav-link.active:hover,
.nav-glass .nav-link.active:focus {
  color: #fff;
  background: linear-gradient(135deg, #2f8a53, var(--secondary));
}

.navbar-toggler-icon {
  width: 1.65rem;
  height: 1.65rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231D6B3C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
  min-height: 100svh;
  background: #f7ead8;
}

.hero-img {
  height: 100%;
  object-position: center bottom;
  filter: saturate(1.06) contrast(1.02);
}

.hero-overlay {
  display: none;
}

.hero-content {
  color: var(--primary);
  padding-top: 156px;
  padding-bottom: 230px;
}

.invitation-frame {
  background: rgba(255, 248, 236, .82);
  border: 2px solid rgba(201, 154, 46, .95);
  box-shadow: 0 28px 70px rgba(82, 35, 31, .14), inset 0 0 0 10px rgba(255, 255, 255, .55), inset 0 0 0 14px rgba(201, 154, 46, .18);
  backdrop-filter: blur(6px);
}

.invitation-frame::before {
  inset: 16px;
  border: 1px solid rgba(139, 30, 63, .42);
}

.invitation-frame::after {
  inset: 27px;
  border: 1px dashed rgba(201, 154, 46, .65);
}

.hero-section h1 {
  color: var(--primary);
  text-shadow: none;
}

.hero-subtitle {
  color: var(--secondary);
}

.hero-title-art {
  width: min(100%, 820px);
  margin: 6px auto 28px;
  mix-blend-mode: multiply;
  filter: saturate(1.1) contrast(1.08);
}

.hero-section .invitation-frame {
  width: min(980px, 100%);
  padding: 0 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-section .invitation-frame::before,
.hero-section .invitation-frame::after {
  display: none;
}

.hero-section .kanku-dot {
  display: none;
}

.hero-section .hero-actions {
  margin-top: 8px;
}

.btn-primary-gold {
  color: var(--secondary);
}

.btn-primary-gold:hover,
.btn-primary-gold:focus {
  color: var(--secondary);
}

.btn-outline-maroon {
  border-color: rgba(139, 30, 63, .28);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #d64d7c);
  box-shadow: 0 12px 26px rgba(139, 30, 63, .18);
}

.btn-outline-maroon:hover,
.btn-outline-maroon:focus {
  color: #fff;
  background: linear-gradient(135deg, #d64d7c, var(--primary));
  transform: translateY(-2px);
}

.hero-section .invitation-frame {
  transform: translateY(-70px);
}

.btn-outline-ivory {
  border-color: rgba(139, 30, 63, .38);
  color: var(--primary);
  background: rgba(255, 255, 255, .58);
}

.btn-outline-ivory:hover {
  background: var(--primary);
  color: #fff;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-card > img {
  height: 620px;
  object-fit: contain;
  object-position: center center;
  background:
    linear-gradient(rgba(255, 248, 236, .72), rgba(255, 248, 236, .72)),
    var(--garden-paper);
  background-size: cover;
  padding: 10px;
}

.section-pad {
  overflow: hidden;
  background-image: linear-gradient(rgba(249, 242, 233, .9), rgba(249, 242, 233, .9)), var(--garden-paper);
  background-size: cover;
  background-position: top center;
}

.section-pad::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 54px;
  background: linear-gradient(90deg, transparent 1%, rgba(201, 154, 46, .75) 7%, rgba(201, 154, 46, .75) 93%, transparent 99%);
  mask: radial-gradient(circle at 10px 50%, #000 0 5px, transparent 5.5px) 0 0 / 20px 100%;
  opacity: .5;
  pointer-events: none;
}

.section-pad > .container {
  position: relative;
  z-index: 1;
}

.patterned-band {
  background-image: linear-gradient(rgba(255, 248, 236, .84), rgba(255, 248, 236, .84)), var(--garden-bottom);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.premium-card,
.person-card,
.member-card,
.stats-grid div {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 46, .34);
  background: rgba(255, 255, 255, .9);
}

.person-card span {
  display: inline-block;
  color: var(--muted);
  font-weight: 700;
}

#trustees .avatar,
#members .avatar {
  display: none !important;
}

#trustees .row.g-4,
#memberGrid {
  --bs-gutter-x: .75rem;
  --bs-gutter-y: .75rem;
}

#trustees .person-card,
#members .member-card {
  min-height: 100%;
  padding: 14px 16px;
  text-align: left;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(82, 35, 31, .08);
}

#trustees .person-card::before,
#members .member-card::before {
  inset: 5px;
  border-radius: 8px;
}

#trustees .person-card:hover,
#members .member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(82, 35, 31, .12);
}

#trustees .person-card h3,
#members .member-card h3 {
  margin: 0 0 6px;
  font-size: .98rem;
  line-height: 1.45;
}

#trustees .person-card p,
#members .member-card p {
  margin: 0 0 4px;
  font-size: .82rem;
  line-height: 1.35;
}

#trustees .person-card span,
#members .member-card span {
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.35;
}

#members .member-card p {
  display: flex;
  gap: 4px;
  align-items: center;
}

@media (min-width: 992px) {
  #trustees .col-lg-4 {
    width: 25%;
  }
}

@media (min-width: 1200px) {
  #trustees .col-lg-4,
  #memberGrid .col-lg-3 {
    width: 20%;
  }
}

.premium-card::before,
.person-card::before,
.member-card::before,
.stats-grid div::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(201, 154, 46, .32);
  border-radius: calc(var(--radius) - 7px);
  pointer-events: none;
}

.event-card::after,
.contact-panel::after,
.contact-form::after,
.qr-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 14px;
  height: 12px;
  background: radial-gradient(circle, var(--primary) 0 3px, transparent 4px) 0 0 / 28px 12px repeat-x;
  opacity: .28;
  pointer-events: none;
}

.event-body,
.contact-panel > *,
.contact-form > *,
.qr-card > * {
  position: relative;
  z-index: 1;
}

.floral-separator {
  height: 20px;
  background:
    radial-gradient(circle at 8px 8px, #d84b75 0 4px, transparent 5px),
    radial-gradient(circle at 18px 10px, var(--secondary) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 34px 18px, 34px 18px, 100% 2px;
  background-position: center, center, center;
  background-repeat: repeat-x, repeat-x, no-repeat;
}

.donation-section {
  background-image: linear-gradient(135deg, rgba(139, 30, 63, .94), rgba(29, 107, 60, .84)), var(--garden-bottom);
  background-position: center bottom;
  background-size: cover;
  background-attachment: fixed;
}

.site-footer {
  background-image: linear-gradient(135deg, rgba(139, 30, 63, .96), rgba(77, 16, 35, .96)), var(--garden-paper);
  background-size: cover;
  background-position: top center;
}

.masonry-gallery {
  display: block;
  column-count: 4;
  column-gap: 18px;
}

.gallery-item,
.gallery-item.tall,
.gallery-item.wide {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 18px;
  break-inside: avoid;
  page-break-inside: avoid;
  grid-column: auto;
  grid-row: auto;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.route-qr-card {
  overflow: hidden;
  border: 1px solid rgba(201, 154, 46, .34);
  border-radius: 16px;
  background: #fbf0dc;
}

.route-qr-card img {
  width: 100%;
  height: auto;
}

.contact-panel {
  padding: 22px;
}

.venue-map-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.venue-map-head span {
  color: var(--accent);
  font-family: "Anek Gujarati Local", "Hind Vadodara Local", sans-serif;
  font-size: .98rem;
  font-weight: 800;
}

.venue-map-head h3 {
  margin: 8px 0 6px;
  color: var(--primary);
  font-family: "Anek Gujarati Local", "Hind Vadodara Local", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
}

.venue-map-head p {
  margin: 0;
  color: var(--secondary);
  font-weight: 700;
}

.venue-map-frame {
  min-height: 285px;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 46, .36);
  border-radius: 16px;
  background: #fbf0dc;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .62);
}

.venue-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 285px;
  border: 0;
  filter: sepia(.12) saturate(.92);
}

.venue-map-btn {
  align-self: flex-start;
}

.footer-reg {
  margin-bottom: 6px;
  color: #ffd985;
  font-weight: 800;
}

.copyright a {
  display: inline;
  margin: 0;
  color: #ffd985;
  font-weight: 800;
}

.copyright a:hover {
  color: #fff;
}

.lightbox {
  grid-template-columns: minmax(54px, 1fr) minmax(0, auto) minmax(54px, 1fr);
}

.lightbox img {
  grid-column: 2;
}

.pdf-modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(201, 154, 46, .46);
  border-radius: 20px;
  background: #fff8ec;
  box-shadow: 0 30px 90px rgba(52, 19, 29, .28);
}

.pdf-modal .modal-header {
  border-bottom: 1px solid rgba(201, 154, 46, .32);
  background: linear-gradient(135deg, rgba(139, 30, 63, .08), rgba(29, 107, 60, .08));
}

.pdf-modal .modal-title {
  color: var(--primary);
  font-family: "Anek Gujarati Local", "Hind Vadodara Local", sans-serif;
  font-weight: 800;
}

.pdf-modal .btn-close {
  box-shadow: none;
}

.pdf-modal .modal-body {
  height: min(78vh, 860px);
  padding: 0;
  background: #f5eadb;
  overflow: hidden;
}

.pdf-viewer-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(201, 154, 46, .28);
  background: rgba(255, 248, 236, .96);
  color: var(--secondary);
  font-size: .92rem;
  font-weight: 800;
}

.pdf-viewer-toolbar a {
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.pdf-viewer-canvas {
  height: calc(100% - 45px);
  overflow: auto;
  padding: 16px;
  background: #e7dbc8;
}

.pdf-page-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 980px;
  margin: 0 auto 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(52, 19, 29, .18);
}

.pdf-fallback {
  max-width: 620px;
  margin: 24px auto;
  padding: 18px;
  border: 1px solid rgba(139, 30, 63, .18);
  border-radius: 14px;
  background: #fff8ec;
  color: var(--primary);
  text-align: center;
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  display: inline-grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #351400;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(201, 154, 46, .45);
  border-radius: 50%;
  background: rgba(249, 242, 233, .92);
  color: var(--primary);
  font-size: 1.55rem;
  transform: translateY(-50%);
  z-index: 2;
}

.lightbox-nav:hover {
  transform: translateY(calc(-50% - 2px));
}

.lightbox-prev {
  left: clamp(14px, 4vw, 54px);
}

.lightbox-next {
  right: clamp(14px, 4vw, 54px);
}

@media (max-width: 1199px) {
  body,
  .donation-section {
    background-attachment: scroll;
  }

  .nav-glass .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .navbar-brand {
    flex: 1 1 auto;
    width: calc(100% - 58px);
    max-width: calc(100% - 58px);
    min-width: 0;
    margin-right: 0;
  }

  .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 7px;
    border: 0;
    box-shadow: none;
  }

  .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
  }

  .navbar-collapse:not(.show) {
    display: none;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    display: block;
  }

  .navbar-nav {
    align-items: stretch;
    width: 100%;
    margin-top: 12px;
    padding-left: 0;
    list-style: none;
  }

  .hero-section {
    min-height: 780px;
    background:
      #f7ead8 url("../images/hero-bg.png") center bottom / 100% auto no-repeat;
  }

  .masonry-gallery {
    column-count: 2;
    column-gap: 14px;
  }

  .gallery-item,
  .gallery-item.tall,
  .gallery-item.wide {
    margin-bottom: 14px;
  }

  .hero-content {
    padding-top: 132px;
    padding-bottom: 180px;
  }

  .brand-copy strong {
    max-width: none;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.18;
  }

  .about-feature-image img {
    min-height: 360px;
  }

  .hero-img {
    display: none;
  }
}

@media (max-width: 575px) {
  .hero-section {
    min-height: 720px;
    background-size: auto 100%;
    background-position: center bottom;
  }

  .navbar-brand {
    gap: 8px;
    width: calc(100% - 52px);
    max-width: calc(100% - 52px);
  }

  .navbar-brand img {
    width: 42px;
    height: 42px;
  }

  .brand-copy small {
    font-size: .58rem;
  }

  .brand-copy strong {
    font-size: clamp(.765rem, 3.4vw, .905rem);
    line-height: 1.34;
    padding-top: 2px;
  }

  .about-feature-image img {
    min-height: 280px;
  }

  .hero-content {
    padding-top: 118px;
    padding-bottom: 180px;
  }

  .hero-overlay {
    display: none;
  }

  .invitation-frame {
    padding: 34px 18px;
  }

  .hero-title-art {
    width: 100%;
    margin-bottom: 22px;
  }

  .hero-section .invitation-frame {
    padding: 0;
    transform: translateY(-50px);
  }

  .event-actions .btn {
    width: 100%;
  }

  .event-card > img {
    height: 520px;
    padding: 8px;
  }

  .section-pad::before {
    height: 34px;
    opacity: .38;
  }

  .patterned-band {
    background-size: auto 100%;
    background-position: center bottom;
  }

  .masonry-gallery {
    column-count: 1;
  }

  .lightbox {
    padding: 70px 14px 78px;
  }

  .lightbox img {
    max-width: 94vw;
    max-height: 78vh;
  }

  .lightbox-nav {
    top: auto;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    transform: none;
  }

  .lightbox-nav:hover {
    transform: translateY(-2px);
  }

  .lightbox-prev {
    left: calc(50% - 62px);
  }

  .lightbox-next {
    right: calc(50% - 62px);
  }
}
