@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Tiro+Devanagari+Sanskrit:ital@0;1&display=swap');

:root {
  --maroon: #671817;
  --maroon-dark: #3d0d0d;
  --gold: #d8a443;
  --gold-light: #f0c978;
  --ivory: #fffaf1;
  --cream: #f9f0df;
  --ink: #2c1a16;
  --muted: #76665f;
  --green: #0b8d4e;
  --line: #e8c889;
  --shadow: 0 18px 50px rgba(74, 29, 18, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Noto Sans Devanagari', sans-serif;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #40100f, #681817 58%, #3d0d0d);
  color: #fff2d4;
  border-bottom: 1px solid rgba(240, 201, 120, .35);
  box-shadow: 0 8px 25px rgba(45, 7, 7, .18);
}

.nav-wrap {
  width: min(1320px, calc(100% - 40px));
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  background: #fff;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  color: var(--gold-light);
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 19px;
  line-height: 1.2;
}

.brand small {
  display: block;
  font-size: 9px;
  color: #f4ddad;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  font-size: 13px;
  transition: .2s;
}

.nav a:hover, .nav a.active {
  color: var(--gold-light);
  font-weight: 600;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(75, 20, 18, .16);
}

.button-gold {
  background: linear-gradient(135deg, var(--gold-light), #d49a2d);
  color: #4b1512;
}

.button-maroon {
  background: linear-gradient(135deg, #751d1b, #4a0e0d);
  color: white;
}

.button-outline {
  border: 1px solid #a6ad7f;
  color: #453128;
  background: #fffdf7;
}

.button-outline svg { color: #12a455; }
.nav-cta { font-size: 12px; white-space: nowrap; }

.menu-button {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* Common Layout Elements */
.section { padding: 95px 0; }
.page-section { min-height: 60vh; }

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

.section-heading span { color: #a73a31; font-weight: 600; }
.section-heading h2, .about-copy h2, .contact-card h2 {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  color: #521716;
  font-size: 39px;
  margin: 8px 0;
}

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

/* Service Grid */
.services-section { background: #fffdf8; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 32px 27px;
  border: 1px solid #e4c384;
  border-radius: 10px;
  background: #fffaf0;
  text-align: center;
  transition: .25s;
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: white;
}

.service-card > svg {
  font-size: 56px;
  color: #c68b27;
  margin: 0 auto;
}

.service-card h3 {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 21px;
  color: #5d1714;
  margin: 12px 0;
}

.service-card p {
  font-size: 13px;
  color: #75645d;
  flex: 1;
}

.service-card a, .service-card .text-link {
  font-size: 12px;
  color: #8f2b25;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Credentials */
.credentials {
  background: linear-gradient(100deg, #49100f, #761f1c);
  color: white;
  padding: 55px 0;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.credentials-grid > div {
  text-align: center;
  padding: 0 30px;
  border-right: 1px solid rgba(240, 201, 120, .3);
}

.credentials-grid > div:last-child { border: 0; }
.credentials svg { font-size: 52px; color: var(--gold-light); }
.credentials h3 { margin: 8px 0; color: #ffe7b5; }
.credentials p { font-size: 13px; color: #e5cdbb; }

/* Process */
.process-section { background: white; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.steps > div {
  text-align: center;
  position: relative;
  padding: 25px 12px;
}

.steps b {
  position: absolute;
  top: 4px;
  left: 25px;
  background: var(--maroon);
  color: #ffd98a;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.steps svg {
  font-size: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #95651e;
}

.steps h3 { margin: 14px 0 0; color: #5c1b18; }
.steps p { font-size: 12px; color: var(--muted); }

/* Reference-matched institutional footer */
.footer {
  position: relative;
  background: #003b30;
  color: #dce9df;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid rgba(215, 174, 79, .7);
}

.footer:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 20%, rgba(215, 174, 79, .07), transparent 25%), radial-gradient(circle at 88% 70%, rgba(215, 174, 79, .06), transparent 24%);
}

.footer .footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr .78fr 1.25fr .85fr;
  gap: 0;
  padding: 36px 0 28px;
}

.footer-grid > div {
  min-width: 0;
  padding: 0 28px;
  border-right: 1px solid rgba(215, 174, 79, .55);
}

.footer-grid > div:first-child { padding-left: 0; }
.footer-grid > div:last-child { padding-right: 0; border-right: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #d7ae4f;
  border-radius: 50%;
  background: #fff;
}

.footer-brand strong, .footer-brand b {
  display: block;
  font-family: 'Tiro Devanagari Sanskrit', serif;
  color: #e4bd61;
  line-height: 1.35;
}

.footer-brand strong { font-size: 22px; }
.footer-brand b { font-size: 15px; }

.footer-brand-block > p {
  max-width: 340px;
  margin: 15px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: #c5d7cd;
}

.footer h3 {
  position: relative;
  margin: 0 0 17px;
  color: #e1b95c;
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 16px;
}

.footer h3:after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  margin-top: 7px;
  background: #d7ae4f;
}

.footer-column > a, .footer-column > span {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 9px 0 !important;
  color: #d5e2da;
  font-size: 12px !important;
  line-height: 1.5;
}

.footer-column > a:hover { color: #f2cd74; }

.footer-contact svg {
  flex: 0 0 auto;
  color: #e0b757;
  font-size: 20px;
}

.footer-contact span { overflow-wrap: anywhere; }

.footer-social-links { display: grid; gap: 10px; }
.footer-social-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #d5e2da;
}

.footer-social-links svg {
  width: 23px;
  height: 23px;
  padding: 4px;
  border-radius: 50%;
  color: white;
}

.footer-social-links a:nth-child(1) svg { background: #df2533; }
.footer-social-links a:nth-child(2) svg { background: #3478c8; }
.footer-social-links a:nth-child(3) svg { background: #1fa864; }

.footer .copyright {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid rgba(215, 174, 79, .32);
  text-align: center;
  color: #94b0a1;
  font-size: 10px;
  background: rgba(0, 29, 23, .18);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0a9a51;
  color: white;
  display: grid;
  place-items: center;
  font-size: 31px;
  box-shadow: 0 12px 30px rgba(0, 90, 44, .3);
  z-index: 20;
}

/* ── Nav dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dd-arrow { transition: transform .2s; }
.nav-dropdown:hover .dd-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #4a0f0e;
  min-width: 160px;
  padding: 8px 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 100;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
  font-size: 13px;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.08); }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

@media (max-width: 820px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
    border-radius: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 8px 16px; font-size: 12px; opacity: .85; }
  .dd-arrow { display: none; }
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .phone-link, .nav-cta { display: none; }
  .nav { margin-left: auto; }
  .brand { min-width: 220px; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 28px, 700px); }
  .nav-wrap { height: 70px; width: calc(100% - 28px); }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .menu-button { display: block; margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #4a0f0e;
    padding: 18px 24px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .2);
  }
  .nav.open { display: flex; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .credentials-grid { grid-template-columns: 1fr; }
  .credentials-grid > div { border-right: 0; border-bottom: 1px solid rgba(240, 201, 120, .3); padding-bottom: 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .footer .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .footer-grid > div { border-right: 0; }
  .footer-grid > div:nth-child(odd) { border-right: 1px solid rgba(215, 174, 79, .45); }
  .footer-grid > div:nth-child(3), .footer-grid > div:nth-child(4) { padding-top: 28px; border-top: 1px solid rgba(215, 174, 79, .3); }
}

@media (max-width: 560px) {
  .footer .footer-grid { grid-template-columns: 1fr; padding: 34px 0 20px; }
  .footer-grid > div, .footer-grid > div:first-child, .footer-grid > div:last-child { padding: 0 4px 24px; margin-bottom: 24px; border: 0 !important; border-bottom: 1px solid rgba(215, 174, 79, .3) !important; }
  .footer-grid > div:last-child { margin: 0; }
  .footer-brand strong { font-size: 20px; }
  .footer-brand b { font-size: 13px; }
  .footer-social-links { grid-template-columns: repeat(2, 1fr); }
  .footer-social-links a { flex-direction: column; align-items: flex-start; }
  .footer .copyright { padding: 14px 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .steps { grid-template-columns: 1fr; }
}
