/* ============================================================
   Jaswant Singh Hada — Official Website
   ============================================================ */

:root {
  --saffron: #e87722;
  --saffron-dark: #c75d0e;
  --saffron-light: #fdf1e7;
  --green: #1d7a3e;
  --ink: #24211d;
  --ink-soft: #5c554c;
  --cream: #fffaf4;
  --white: #ffffff;
  --line: #eadfd2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 33, 29, 0.08);
  --font-head: "Rozha One", serif;
  --font-body: "Mukta", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ============ Language switching ============ */
html[data-lang="hi"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-hi { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ============ Top bar ============ */
.topbar {
  background: var(--ink);
  color: #cfc8be;
  font-size: 0.88rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.45rem;
  gap: 1rem;
}

.topbar-contact {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.topbar-contact a {
  color: #cfc8be;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-contact a:hover { color: var(--saffron); }

.topbar-socials {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.topbar-socials a {
  color: #cfc8be;
  display: grid;
  place-items: center;
  transition: color 0.2s;
}

.topbar-socials a:hover { color: var(--saffron); }

.topbar-socials svg { width: 17px; height: 17px; }

@media (max-width: 600px) {
  .topbar-email { display: none; }
}

/* ============ Navbar ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 70%;
  height: auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.02rem; }
.brand-text small { color: var(--ink-soft); font-size: 0.78rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--saffron-dark); }

.nav-cta {
  background: var(--saffron);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--saffron-dark); }

.lang-toggle {
  background: none;
  border: 1.5px solid var(--saffron);
  color: var(--saffron-dark);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle:hover {
  background: var(--saffron);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(60rem 30rem at 110% -10%, var(--saffron-light), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, #e9f5ec, transparent 55%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
  padding-block: 5.5rem;
}

.hero-eyebrow {
  color: var(--saffron-dark);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  font-weight: 400;
}

.hero h1 .accent { color: var(--saffron); }

.hero-sub {
  margin-top: 0.9rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
}

.hero-desc {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

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

.btn-primary {
  background: var(--saffron);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(232, 119, 34, 0.35);
}

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

.btn-outline {
  border: 2px solid var(--saffron);
  color: var(--saffron-dark);
}

.btn-outline:hover { background: var(--saffron-light); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.6rem;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--saffron-dark);
  line-height: 1.1;
}

.stat span { color: var(--ink-soft); font-size: 0.9rem; }

/* Hero photo */
.hero-photo { display: flex; justify-content: center; }

.photo-frame {
  position: relative;
  width: min(400px, 86vw);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
  outline: 1px solid var(--line);
  background: linear-gradient(150deg, var(--saffron-light), #e9f5ec);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
}

.photo-fallback img {
  width: 42%;
  height: auto;
  opacity: 0.9;
}

.photo-frame.photo-placeholder .photo-fallback { display: grid; }

/* ============ Sections ============ */
.section { padding-block: 5rem; }

.section-alt {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-head { text-align: center; margin-bottom: 3rem; }

.section-eyebrow {
  color: var(--saffron-dark);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.section-head h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-note { color: var(--ink-soft); margin-top: 0.8rem; }
.section-note code {
  background: var(--saffron-light);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p + p { margin-top: 1.1rem; }
.about-text { color: var(--ink-soft); font-size: 1.05rem; }
.about-text strong { color: var(--ink); }

.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--saffron);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  margin-bottom: 1.2rem;
  color: var(--saffron-dark);
}

.about-card ul { list-style: none; }

.about-card li {
  display: flex;
  flex-direction: column;
  padding-block: 0.65rem;
  border-bottom: 1px dashed var(--line);
}

.about-card li:last-child { border-bottom: none; }
.about-card li span { font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.about-card li strong { font-weight: 600; }

/* ============ Timeline ============ */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--saffron), var(--green));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.4rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--saffron);
}

.timeline-year {
  font-family: var(--font-head);
  color: var(--saffron-dark);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.timeline-body h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.timeline-body p { color: var(--ink-soft); }

/* ============ Cards (Focus Areas) ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--saffron);
}

.card-icon { font-size: 2rem; margin-bottom: 0.9rem; }
.card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============ Gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item.placeholder {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background:
    linear-gradient(150deg, var(--saffron-light), #e9f5ec);
  font-weight: 500;
}

/* ============ Public Corner form ============ */
.pc-form {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--saffron);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.pc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 600px) {
  .pc-row { grid-template-columns: 1fr; }
}

.pc-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.pc-form input,
.pc-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}

.pc-form input:focus,
.pc-form textarea:focus {
  outline: none;
  border-color: var(--saffron);
}

.pc-form textarea { resize: vertical; }

.pc-form button { align-self: center; border: none; cursor: pointer; }

.pc-honey { display: none !important; }

/* ============ Facebook feed ============ */
.fb-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.fb-feed iframe {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.fb-feed-fallback { color: var(--ink-soft); font-size: 0.95rem; }

.fb-feed-fallback a {
  color: var(--saffron-dark);
  font-weight: 600;
  text-decoration: none;
}

.fb-feed-fallback a:hover { text-decoration: underline; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h3 { margin-bottom: 0.6rem; font-size: 1.08rem; }
.contact-card p { color: var(--ink-soft); }

.contact-card a {
  color: var(--saffron-dark);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.contact-card a:hover { text-decoration: underline; }

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.socials a {
  text-decoration: none;
  color: var(--saffron-dark);
  border: 1.5px solid var(--saffron);
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.socials a:hover {
  background: var(--saffron);
  color: var(--white);
}

/* ============ Quote band ============ */
.quote-band {
  background: linear-gradient(120deg, var(--saffron-dark), var(--saffron));
  padding-block: 3.5rem;
}

.quote-band blockquote {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.5;
}

.quote-band blockquote footer {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
}

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  color: #cfc8be;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 2.5rem;
  padding-block: 3.2rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.02rem;
  margin-bottom: 0.9rem;
}

.footer-col p, .footer-col address {
  font-size: 0.93rem;
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 0.7rem;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.footer-brand-head img {
  width: 42px;
  height: auto;
  background: var(--white);
  border-radius: 50%;
  padding: 5px;
}

.footer-brand-head strong { display: block; color: var(--white); line-height: 1.3; }
.footer-brand-head small { font-size: 0.82rem; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: #cfc8be;
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--saffron); }

.footer-tag { color: var(--saffron); font-weight: 500; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.1rem;
  font-size: 0.88rem;
  text-align: center;
}

/* ============ WhatsApp float ============ */
.wa-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s;
}

.wa-float:hover { transform: scale(1.08); }

.wa-float svg { width: 30px; height: 30px; }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 3.5rem;
    gap: 2.4rem;
  }

  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-photo { order: -1; }

  .about-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem;
    gap: 1.1rem;
    display: none;
  }

  .nav-links.open { display: flex; }
}
