/*
Theme Name: Sai Srinivas
Theme URI: https://www.saisrinivas.net
Author: Sai Srinivas Website Team
Description: A dignified public-facing WordPress theme for Sai Srinivas Lankalapalli.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: sai-srinivas
*/

:root {
  --ink: #172033;
  --muted: #607086;
  --line: #d9e1ea;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --deep: #163b56;
  --green: #257064;
  --saffron: #c8792a;
  --red: #a7423d;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: grid;
  gap: 1px;
  min-width: 210px;
}

.brand-title {
  color: var(--deep);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--deep);
}

.nav-toggle-lines {
  display: grid;
  gap: 4px;
  width: 20px;
}

.nav-toggle-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: #314056;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--deep);
  background: var(--soft);
}

.section {
  padding: 78px 0;
}

.section-soft {
  background: var(--soft);
}

.section-title {
  max-width: 780px;
  margin: 0 0 28px;
  color: var(--deep);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.16;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  font-weight: 800;
}

.button:hover {
  background: #0d2c42;
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--deep);
}

.button.secondary:hover {
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 30, 46, 0.88), rgba(12, 30, 46, 0.62) 48%, rgba(12, 30, 46, 0.22)),
    var(--hero-image, linear-gradient(135deg, #163b56, #257064 62%, #c8792a)) center/cover;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--saffron), var(--red));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 98px 0 86px;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-kicker {
  margin: 0 0 18px;
  color: #ffd991;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 800;
}

.hero-role {
  max-width: 820px;
  margin-top: 18px;
  color: #edf5fb;
  font-size: 1.05rem;
  font-weight: 750;
}

.hero-intro {
  max-width: 760px;
  margin-top: 22px;
  color: #dbe7ef;
  font-size: 1.08rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.pillar-card,
.post-card,
.gallery-card,
.contact-card,
.value-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.stat-card {
  padding: 24px 18px;
  border-top: 5px solid var(--green);
}

.stat-card:nth-child(2) {
  border-top-color: var(--saffron);
}

.stat-card:nth-child(3) {
  border-top-color: var(--red);
}

.stat-card strong {
  display: block;
  color: var(--deep);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 48px;
  align-items: start;
}

.profile-panel {
  padding: 30px;
  border-left: 6px solid var(--saffron);
  background: var(--soft);
}

.profile-panel dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.profile-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-panel dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 750;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card {
  padding: 28px;
  min-height: 220px;
}

.pillar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #e4f2ef;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 900;
}

.pillar-card h3,
.post-card h3,
.gallery-card h3 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 1.2rem;
  line-height: 1.3;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 105px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
}

.timeline-year {
  color: var(--saffron);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
}

.timeline-body {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.timeline-body::before {
  content: "";
  position: absolute;
  top: 23px;
  left: -37px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.leadership-band {
  background: var(--deep);
  color: #f6fbff;
}

.leadership-band .section-title,
.leadership-band .eyebrow {
  color: #fff;
}

.leadership-band p {
  color: #d9e8f2;
}

.quote-band {
  padding: 70px 0;
  background: #f7efe5;
  color: var(--deep);
}

.quote-band blockquote {
  margin: 0;
  max-width: 980px;
  font-size: clamp(1.85rem, 4vw, 3.4rem);
  font-weight: 850;
  line-height: 1.12;
}

.quote-band cite {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.posts-grid,
.gallery-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  display: grid;
  min-height: 230px;
  padding: 24px;
}

.post-meta {
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card p,
.gallery-card p,
.pillar-card p {
  color: var(--muted);
}

.gallery-card {
  overflow: hidden;
}

.gallery-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dfe9ef, #f3e7d6);
}

.gallery-card-body {
  padding: 20px;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: #3c4b5f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 42px 0 34px;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 0.95rem;
  font-weight: 850;
}

.footer-about {
  max-width: 330px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #53657a;
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-quote strong {
  color: var(--deep);
}

.page-hero {
  padding: 76px 0;
  background: linear-gradient(90deg, #12354e, #236b5f);
  color: #fff;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.content {
  max-width: 900px;
  font-size: 1.04rem;
}

.content h2 {
  margin: 2.4rem 0 0.8rem;
  color: var(--deep);
  font-size: 1.65rem;
  line-height: 1.24;
}

.content ul {
  padding-left: 1.2rem;
}

.value-card {
  padding: 22px;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .primary-menu a {
    width: 100%;
  }

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

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

  .pillars-grid,
  .posts-grid,
  .gallery-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-quote {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: 720px;
    background:
      linear-gradient(180deg, rgba(12, 30, 46, 0.86), rgba(12, 30, 46, 0.74)),
      var(--hero-image, linear-gradient(135deg, #163b56, #257064 62%, #c8792a)) center/cover;
  }

  .hero-content {
    width: min(100% - 24px, var(--max));
    padding: 72px 0 70px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .stats-grid,
  .pillars-grid,
  .posts-grid,
  .gallery-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 34px;
  }

  .timeline-body::before {
    left: -34px;
  }
}
