:root {
  --bg: #f7f4ee;
  --bg-soft: #efe8dc;
  --surface: #ffffff;
  --surface-soft: #f8f7f3;
  --text: #243447;
  --text-soft: #526274;
  --heading: #0d2240;
  --primary: #1f4d8c;
  --primary-dark: #163760;
  --accent: #b68a35;
  --accent-soft: #e7d3a5;
  --border: #d8dfe7;
  --shadow: 0 16px 40px rgba(13, 34, 64, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1240px;
  --focus: 0 0 0 3px rgba(182, 138, 53, 0.35);
}

/* Punjabi typography */

.pa-site {
  font-family: "Noto Sans Gurmukhi", "Mukta Mahee", sans-serif;
  line-height: 1.75;
}

.pa-site h1,
.pa-site h2,
.pa-site h3,
.pa-site h4,
.pa-site h5,
.pa-site h6 {
  font-family: "Noto Sans Gurmukhi", "Mukta Mahee", sans-serif;
  letter-spacing: 0.01em;
}

.pa-site p,
.pa-site a,
.pa-site li,
.pa-site button {
  font-family: "Noto Sans Gurmukhi", "Mukta Mahee", sans-serif;
}

body.dark {
  --bg: #08111d;
  --bg-soft: #0d1727;
  --surface: #101b2d;
  --surface-soft: #132033;
  --text: #e8eef6;
  --text-soft: #bfd0e0;
  --heading: #ffffff;
  --primary: #8cb8ff;
  --primary-dark: #bfd7ff;
  --accent: #d4af5a;
  --accent-soft: #4c3b14;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --focus: 0 0 0 3px rgba(212, 175, 90, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

body.dark .site-header {
  background: rgba(8, 17, 29, 0.9);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.khanda {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(31, 77, 140, 0.12), rgba(182, 138, 53, 0.14));
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: var(--shadow);
  font-size: 1.35rem;
}

.brand-title,
.brand-subtitle {
  margin: 0;
}

.brand-title {
  font-size: 1.05rem;
  color: var(--heading);
}

.brand-subtitle {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: var(--text);
  transition: background 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(31, 77, 140, 0.1);
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.lang-switch,
.theme-toggle,
.btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: 0.2s ease;
}

.lang-switch,
.theme-toggle {
  background: var(--surface);
  color: var(--text);
  padding: 0.72rem 1rem;
  box-shadow: var(--shadow);
}

.theme-toggle {
  cursor: pointer;
}

.lang-switch:hover,
.theme-toggle:hover,
.btn:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 3rem 0 2.5rem;
  background:
    linear-gradient(to bottom, rgba(182, 138, 53, 0.06), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: start;
}

.hero-content,
.hero-side {
  display: grid;
  gap: 1rem;
}

.eyebrow,
.section-tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.hero h1,
.section h2,
.message-card h2 {
  margin: 0;
  color: var(--heading);
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.hero-text,
.section-text,
.message-card p,
.info-card p,
.video-card p,
.fact-card p {
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.4rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e4c67b);
  color: #17212b;
}

.btn-secondary {
  background: var(--surface);
  color: var(--heading);
  box-shadow: var(--shadow);
}

.hero-facts,
.card-grid.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fact-card,
.info-card,
.video-card,
.message-card,
.board-card,
.center-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.fact-card,
.info-card,
.video-card,
.message-card,
.center-card {
  padding: 1.2rem;
}

.fact-card h2,
.info-card h3,
.video-card h3 {
  margin-top: 0;
  color: var(--heading);
}

.hero-image-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.message-card h2 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.section {
  padding: 2.2rem 0;
}

.soft-section {
  background: var(--bg-soft);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.4rem;
  align-items: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.1rem;
}

.board-card {
  overflow: hidden;
}

.board-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(31, 77, 140, 0.75), rgba(182, 138, 53, 0.45)),
    url("../images/gurdwara-hero.png") center/cover;
  margin-bottom: 1rem;
  position: relative;
}

.video-thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2.5rem;
  background: rgba(0, 0, 0, 0.12);
}

.center-card {
  text-align: center;
}

.narrow {
  max-width: 60ch;
  margin-inline: auto;
}

.site-footer{
  border-top:1px solid var(--border);
  margin-top:60px;
  padding:40px 0;
  background:var(--surface-soft);
}

.footer-wrapper{
  display:flex;
  flex-direction:column;
  gap:28px;
}

.footer-brand h2{
  font-size:1.2rem;
  margin-bottom:4px;
  color:var(--heading);
}

.footer-brand p{
  color:var(--text-soft);
}

.footer-nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  list-style:none;
  padding:0;
  margin:14px 0;
}

.footer-nav a{
  text-decoration:none;
  color:var(--text);
}

.footer-nav a:hover{
  color:var(--primary);
}

.footer-description{
  max-width:600px;
  color:var(--text-soft);
}

.footer-middle{
  border-top:1px solid var(--border);
  padding-top:16px;
}

.footer-policies{
  display:flex;
  gap:16px;
  list-style:none;
  padding:0;
  margin:0;
}

.footer-policies a{
  color:var(--text-soft);
  text-decoration:none;
}

.footer-policies a:hover{
  color:var(--primary);
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--border);
  padding-top:16px;
  flex-wrap:wrap;
  gap:10px;
}

.footer-language a{
  text-decoration:none;
  color:var(--text);
}

.footer-language a:hover{
  color:var(--primary);
}

@media (max-width: 980px) {
  .header-inner,
  .hero-grid,
  .two-column,
  .hero-facts,
  .card-grid.three-col {
    grid-template-columns: 1fr;
  }

  .main-nav ul {
    justify-content: flex-start;
  }

  .hero-image-card img {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, var(--max-width));
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .lang-switch,
  .theme-toggle,
  .btn {
    width: 100%;
  }

  .hero {
    padding-top: 1.5rem;
  }
}