/* जय मल्हार पतसंस्था — responsive visual system */
:root {
  --maroon: #8b1118;
  --maroon-dark: #5c0b10;
  --gold: #d6a51d;
  --gold-light: #f1d77b;
  --cream: #fbf7ee;
  --cream-2: #f4ead7;
  --ink: #2e2524;
  --muted: #756966;
  --white: #fff;
  --line: #e9dfcf;
  --shadow: 0 18px 50px rgba(61, 31, 20, .10);
  --radius: 18px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "Noto Sans Devanagari", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7
}

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

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

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

.top-strip {
  background: var(--maroon-dark);
  color: #f9e9bb;
  font-size: 13px
}

.top-strip-inner {
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px
}

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

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px
}

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

.brand img {
  width: 68px;
  height: 62px;
  object-fit: contain
}

.brand strong {
  display: block;
  color: var(--maroon);
  font-size: 23px;
  line-height: 1.1
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 4px;
  max-width: 250px
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px
}

.main-nav a {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #514543;
  border-radius: 10px
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--maroon);
  background: #fff5df
}

.main-nav .nav-cta {
  background: var(--maroon);
  color: white;
  padding: 11px 16px;
  margin-left: 6px
}

.main-nav .nav-cta:hover {
  background: var(--maroon-dark)
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 26px;
  color: var(--maroon)
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #fffaf0 0%, #f5e6c8 55%, #fff9ef 100%);
  padding: 82px 0 70px;
  border-bottom: 1px solid var(--line)
}

.hero:before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(214, 165, 29, .10);
  right: -180px;
  top: -230px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--maroon);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px
}

.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.18;
  margin: 18px 0 20px;
  letter-spacing: -1.5px
}

.hero h1 span {
  color: var(--maroon)
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 650px
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit
}

.btn-primary {
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 17, 24, .18);
  margin-top: 10px;
}
.btn-service{
    background: var(--maroon);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 17, 24, .18);
}

.btn-primary:hover {
  background: var(--maroon-dark)
}

.btn-light {
  background: white;
  border-color: #dfd2bd
}

.btn-light:hover {
  border-color: var(--gold)
}

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

.trust-row div {
  display: flex;
  gap: 9px;
  align-items: center
}

.trust-row b {
  color: var(--gold);
  font-size: 13px
}

.trust-row span {
  font-size: 13px;
  color: var(--muted)
}

.hero-visual {
  position: relative
}
.placeholder-icon img{
  border-radius: 20px;
}
.placeholder-icon iframe{
  width: 100%;
  height: 380px;
  border-radius: 10px;
  border: 5px solid #5c0b10;
}

.placeholder strong {
  font-size: 15px;
  color: #665a53
}

.placeholder span {
  font-size: 12px;
  color: #9a8d84
}

.gold-seal {
  position: absolute;
  left: -65px;
  bottom: -30px;
  width: 155px;
  height: 155px;
  border-radius: 50%;
  background: var(--maroon);
  border: 8px solid var(--gold);
  outline: 5px solid rgba(139, 17, 24, .15);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow)
}

.gold-seal span {
  font-size: 11px;
  color: #f4dc8a
}

.gold-seal b {
  font-size: 21px;
  margin: 5px 0
}

.section {
  padding: 85px 0
}

.section-heading {
  margin-bottom: 38px
}

.section-heading.centered {
  text-align: center
}

.section-heading h2,
.content-block h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.25;
  margin: 12px 0
}

.section-heading p,
.content-block>p {
  color: var(--muted);
  max-width: 720px
}

.centered p {
  margin: 0 auto
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 24px;
  border-radius: var(--radius);
  transition: .25s;
  box-shadow: 0 8px 25px rgba(60, 32, 20, .04)
}

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

.service-card.featured {
  border-top: 4px solid var(--gold)
}

.service-card h3 {
  margin: 18px 0 8px;
  font-size: 20px
}

.service-card p {
  color: var(--muted);
  font-size: 14px
}

.service-card a,
.text-link {
  color: var(--maroon);
  font-weight: 800;
  font-size: 14px
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #fff3d3;
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center
}

.image-frame {
  min-height: 450px;
  border-radius: 24px
}

.image-frame.tall {
  min-height: 520px
}

.content-block p {
  font-size: 16px
}

.mission-box {
  margin-top: 25px;
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  display: grid;
  gap: 15px
}

.mission-box b {
  display: block;
  color: var(--maroon)
}

.mission-box span {
  font-size: 14px;
  color: var(--muted)
}

.stats-band {
  background: var(--maroon);
  color: white;
  padding: 42px 0
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center
}

.stats-grid strong {
  display: block;
  color: var(--gold-light);
  font-size: 37px
}

.stats-grid span {
  font-size: 14px;
  color: #f2e2c6
}

.note {
  font-size: 11px;
  text-align: center;
  color: #d9c9ac;
  margin: 20px 0 0
}

.notice {
  padding-top: 60px
}

.notice-box {
  background: linear-gradient(110deg, #fff, #f7ecd8);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 35px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px
}

.notice-box h2 {
  margin: 8px 0
}

.notice-box p {
  margin: 0;
  color: var(--muted)
}

.site-footer {
  background: #2e2020;
  color: #e9dfd3;
  padding-top: 60px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px
}

.footer-brand img {
  width: 100px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px
}

.footer-brand p {
  max-width: 300px;
  color: #bfb0a5;
  font-size: 13px
}

.site-footer h4 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: 16px
}

.site-footer a,
.site-footer p {
  display: block;
  color: #bfb0a5;
  font-size: 13px;
  margin: 7px 0
}

.site-footer a:hover {
  color: var(--gold-light)
}

.footer-bottom {
  border-top: 1px solid #4a3b39;
  padding: 16px 0;
  color: #a9988d;
  font-size: 12px
}

.page-hero {
  padding: 65px 0;
  background: linear-gradient(115deg, #fffaf0, #f2e3c9);
  border-bottom: 1px solid var(--line)
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin: 10px 0
}

.page-hero p {
  color: var(--muted);
  margin: 0
}

.soft-section {
  background: #f7efe1
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.value-grid article,
.person-card,
.branch-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 8px 24px rgba(50, 30, 20, .035)
}

.value-grid h3 {
  margin: 15px 0 6px
}

.value-grid p {
  font-size: 14px;
  color: var(--muted);
  margin: 0
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.gallery-placeholder {
  height: 220px;
  border-radius: 16px
}

.gallery-placeholder span {
  margin-top: 5px
}

.service-list {
  display: grid;
  gap: 22px
}

.service-detail {
  display: grid;
  grid-template-columns: 75px 1fr 260px;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px
}

.service-number {
  font-size: 25px;
  font-weight: 900;
  color: var(--gold)
}

.service-detail h2 {
  margin: 0 0 8px;
  color: var(--maroon)
}

.service-detail p,
.service-detail li {
  font-size: 14px;
  color: var(--muted)
}

.service-detail ul {
  margin: 10px 0 0;
  padding-left: 18px
}

.service-image {
  height: 170px;
  border-radius: 15px
}

.calculator {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 850px;
  margin: auto;
  box-shadow: var(--shadow)
}

.calc-form {
  display: grid;
  gap: 15px
}

.calc-form label,
.contact-form label {
  font-size: 13px;
  font-weight: 700
}

.calc-form input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #dacdbb;
  background: #fffaf3;
  border-radius: 10px;
  padding: 12px 13px;
  font: inherit;
  outline: none
}

.calc-form input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold)
}

.calc-result {
  border-radius: 17px;
  background: var(--maroon);
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center
}

.calc-result span {
  color: #ead9b4;
  font-size: 13px
}

.calc-result strong {
  font-size: 36px;
  color: var(--gold-light);
  margin: 8px 0
}

.calc-result small {
  color: #dcccb4
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.person-card {
  text-align: center
}

.person-photo {
  height: 230px;
  border-radius: 14px;
  margin-bottom: 18px
}

.person-card h3 {
  font-size: 17px;
  margin: 0
}

.person-card p {
  color: var(--maroon);
  font-size: 13px;
  margin: 5px 0 0
}

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

.branch-card h3 {
  margin: 15px 0 5px
}

.branch-card p {
  color: var(--muted);
  font-size: 14px
}

.branch-tag {
  display: inline-block;
  color: var(--maroon);
  background: #fff2d0;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800
}

.branch-card a {
  color: var(--maroon);
  font-weight: 800;
  font-size: 13px
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 65px
}

.contact-card {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line)
}

.contact-card>span {
  font-size: 22px;
  color: var(--maroon);
  width: 35px
}

.contact-card b {
  font-size: 14px
}

.contact-card p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 14px
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow)
}

.contact-form h2 {
  margin-top: 0
}

.contact-form>p {
  color: var(--muted);
  font-size: 13px
}

.contact-form label {
  display: block;
  margin-top: 15px
}

.contact-form textarea {
  resize: vertical
}

.form-message {
  margin-top: 15px;
  font-size: 13px;
  color: var(--maroon);
  font-weight: 700
}

.map-section {
  padding: 0 0 80px
}

.map-placeholder {
  height: 320px;
  border-radius: 22px
}

@media(max-width:1000px) {
  .main-nav {
    gap: 0
  }

  .main-nav a {
    padding: 9px 8px;
    font-size: 13px
  }

  .hero-grid {
    gap: 40px
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .value-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:780px) {
  .container {
    width: min(100% - 28px, 1160px)
  }

  .top-strip-inner {
    font-size: 11px
  }

  .top-strip-inner span:last-child {
    display: none
  }

  .nav-wrap {
    min-height: 74px
  }

  .brand {
    min-width: 0
  }

  .brand img {
    width: 55px;
    height: 52px
  }

  .brand strong {
    font-size: 19px
  }

  .brand small {
    font-size: 9px;
    max-width: 190px
  }

  .menu-toggle {
    display: block
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch
  }

  .main-nav.open {
    display: flex
  }

  .main-nav a {
    padding: 12px
  }

  .main-nav .nav-cta {
    margin: 4px 0 0;
    text-align: center
  }

  .hero {
    padding: 55px 0
  }

  .hero-grid,
  .split,
  .contact-grid,
  .calculator {
    grid-template-columns: 1fr
  }

  .hero h1 {
    font-size: 43px
  }

  .hero-visual {
    margin-top: 10px
  }

  .hero-photo {
    height: 340px
  }

  .gold-seal {
    left: 12px;
    width: 125px;
    height: 125px
  }

  .gold-seal b {
    font-size: 18px
  }

  .section {
    padding: 60px 0
  }

  .service-grid,
  .gallery-grid,
  .branch-grid {
    grid-template-columns: 1fr 1fr
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .notice-box {
    align-items: flex-start;
    flex-direction: column
  }

  .service-detail {
    grid-template-columns: 55px 1fr
  }

  .service-image {
    grid-column: 1/-1;
    height: 200px
  }

  .service-detail ul {
    display: none
  }
}

@media(max-width:520px) {
  .brand small {
    display: none
  }

  .hero h1 {
    font-size: 37px
  }

  .hero p {
    font-size: 15px
  }

  .trust-row {
    gap: 14px
  }

  .service-grid,
  .value-grid,
  .gallery-grid,
  .team-grid,
  .branch-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr
  }

  .hero-actions .btn {
    width: 100%
  }

  .page-hero {
    padding: 48px 0
  }

  .section-heading h2,
  .content-block h2 {
    font-size: 31px
  }

  .calculator {
    padding: 20px
  }

  .calc-result strong {
    font-size: 30px
  }
}