/* =====================================
   GOVARDHAN LAL PRAJAPAT PROFILE
   DigiProfiles | style.css
===================================== */

:root {
  --navy: #102b46;
  --navy-light: #193e60;
  --gold: #c99a42;
  --cream: #f8f5ef;
  --white: #ffffff;
  --text: #263746;
  --muted: #697785;
  --border: #e6e0d5;
  --shadow: 0 12px 35px rgba(16, 43, 70, 0.09);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Noto Sans Devanagari", "Nirmala UI",
    "Mangal", Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  min-height: 76px;
  padding: 15px 7%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #f1cf85;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-header nav a {
  font-size: 0.91rem;
  color: #f4f5f7;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: #f1cf85;
}

.hero {
  min-height: 520px;
  padding: 65px 9%;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 55px;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(201, 154, 66, 0.15),
      transparent 35%
    ),
    linear-gradient(135deg, #102b46, #193e60);
  color: var(--white);
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  color: #f0cd83;
  font-family: Arial, sans-serif;
  font-size: 0.48em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hero-description {
  color: #e0e7ee;
  margin-bottom: 30px;
  font-size: 1.02rem;
}

.primary-button {
  display: inline-block;
  background: var(--gold);
  color: #142b40;
  padding: 12px 24px;
  border-radius: 7px;
  font-weight: 800;
  transition: transform 0.2s, background 0.2s;
}

.primary-button:hover {
  background: #e0b760;
  transform: translateY(-2px);
}

.hero-photo {
  width: 100%;
  max-width: 350px;
  justify-self: center;
  padding: 9px;
  border: 2px solid var(--gold);
  border-radius: 180px 180px 18px 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.hero-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 170px 170px 12px 12px;
  background: #e8e5df;
}

.section {
  padding: 75px 9%;
}

.section-heading {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 35px;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.5;
}

.section-heading > p:last-child {
  color: var(--muted);
  margin-top: 10px;
}

.info-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  background: var(--white);
  padding: 25px 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.info-card p {
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.info-card strong,
.info-card span {
  display: block;
}

.info-card strong {
  color: var(--navy);
  margin-bottom: 5px;
  font-size: 0.92rem;
}

.info-card span {
  color: var(--muted);
}

.about-text {
  max-width: 900px;
  margin: 35px auto 0;
  padding: 30px;
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.about-text h3,
.content-card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.about-text p + p {
  margin-top: 14px;
}

.journey-section {
  background: #eee9df;
}

.content-card {
  max-width: 950px;
  margin: 18px auto;
  padding: 28px 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  background: var(--white);
  box-shadow: var(--shadow);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.achievement-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
}

.achievement-card > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #e8e5df;
}

.card-content {
  padding: 24px;
}

.year {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 30px;
  background: #f6ecd7;
  color: #77551b;
  font-weight: 800;
  font-size: 0.85rem;
}

.card-content h3 {
  margin-top: 12px;
  color: var(--navy);
  font-size: 1.2rem;
}

.card-content > p:nth-of-type(1) {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.card-content > p:nth-of-type(2) {
  color: var(--muted);
  font-size: 0.94rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8e5df;
}

.gallery-card h3 {
  padding: 15px;
  font-size: 0.97rem;
  color: var(--navy);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.contact-section {
  text-align: center;
  background: #eee9df;
}

.site-footer {
  padding: 28px 6%;
  text-align: center;
  background: var(--navy);
  color: #e1e7ee;
  font-size: 0.88rem;
}

.site-footer p + p {
  margin-top: 5px;
  color: #f0cd83;
}

/* Keyboard accessibility */
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Tablets */
@media (max-width: 900px) {
  .hero {
    padding: 50px 6%;
    gap: 30px;
  }

  .hero-photo img {
    height: 350px;
  }

  .section {
    padding: 60px 6%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header nav {
    gap: 14px;
  }
}

/* Mobile phones */
@media (max-width: 600px) {
  .site-header {
    position: relative;
    padding: 16px 5%;
    justify-content: center;
    text-align: center;
  }

  .site-header nav {
    width: 100%;
    justify-content: center;
    gap: 8px 15px;
  }

  .site-header nav a {
    font-size: 0.82rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 42px 6%;
    gap: 30px;
  }

  .hero-photo {
    max-width: 270px;
  }

  .hero-photo img {
    height: 320px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 48px 5%;
  }

  .info-card,
  .achievement-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 15px 22px;
  }

  .about-text,
  .content-card {
    padding: 22px;
  }

  .achievement-card > img {
    height: 230px;
  }

  .gallery-grid {
    gap: 20px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Tricolour political profile hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 540px;
  padding: 65px 8%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;

  background: linear-gradient(
    180deg,
    #ff9933 0%,
    #fffaf2 48%,
    #ffffff 57%,
    #138808 100%
  );

  color: #242424;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero .eyebrow {
  color: #75410a;
  font-weight: 800;
}

.hero h1 {
  color: #252525;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.4;
}

.hero h1 span {
  display: block;
  color: #8a520b;
  font-family: Arial, sans-serif;
  font-size: 0.48em;
  overflow-wrap: anywhere;
}

.hero-description {
  color: #333333;
  margin: 20px 0 28px;
}

.primary-button {
  background: #138808;
  color: #ffffff;
  border: 2px solid #0c6b05;
}

.primary-button:hover {
  background: #0c6b05;
  color: #ffffff;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.profile-photo {
  width: min(100%, 290px);
  height: 310px;
  padding: 7px;
  background: #ffffff;
  border: 3px solid #d38b24;
  border-radius: 145px 145px 15px 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 140px 140px 10px 10px;
}

.party-logo {
  width: 190px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e0d6c5;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.party-logo img {
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.party-logo p {
  font-weight: 800;
  font-size: 0.85rem;
  color: #333333;
}

.party-logo span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  color: #555555;
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 42px 6%;
    gap: 32px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-side {
    gap: 18px;
  }

  .profile-photo {
    width: 245px;
    height: 270px;
  }

  .party-logo {
    width: 175px;
  }
}
/* =====================================
   PREMIUM FOOTER ENDING
===================================== */

.site-footer {
  position: relative;
  padding: 48px 20px 38px;
  text-align: center;
  background: linear-gradient(145deg, #102b46, #193e60);
  color: #e1e7ee;
  border-top: 4px solid var(--gold);
}

.footer-content {
  max-width: 850px;
  margin: 0 auto;
}

.footer-brand {
  color: #f0cd83;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.6;
}

.footer-description {
  margin-top: 8px;
  color: #e1e7ee;
  font-size: 0.95rem;
  line-height: 1.9;
}

.footer-divider {
  width: 75px;
  height: 2px;
  margin: 24px auto;
  background: var(--gold);
  border-radius: 5px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #d2dce6;
}

.footer-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.footer-credit > span {
  font-size: 0.82rem;
  color: #d2dce6;
}

.footer-credit > a:not(.footer-phone) {
  color: #f0cd83;
  font-size: 1.2rem;
  font-weight: 800;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.footer-phone {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 9px 18px;
  border: 1px solid rgba(240, 205, 131, 0.6);
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.95rem;
}

.footer-phone-label {
  color: #f0cd83;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 38px 18px 42px;
  }

  .footer-credit > a:not(.footer-phone) {
    font-size: 1.1rem;
  }
}
