/* ===== E9 Legal LLP — Theme Variables (from e9legal-poster.jpeg) ===== */
:root {
  --navy: #132a3d;
  --navy-dark: #0d1e2c;
  --teal: #1e7a76;
  --teal-light: #2a9d95;
  --gold: #e8a838;
  --gold-light: #f4c463;
  --cream: #f3ede1;
  --cream-light: #faf7f0;
  --text-dark: #1a1a1a;
  --text-muted: #4a4a4a;
  --white: #ffffff;
  --shadow: 0 4px 16px rgba(19, 42, 61, 0.12);
  --shadow-lg: 0 8px 30px rgba(19, 42, 61, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--cream-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

h1, h2 {
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-light);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--teal);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: var(--gold);
  opacity: 0.15;
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: var(--teal);
  opacity: 0.2;
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 4px var(--gold), var(--shadow-lg);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 2px;
}

.hero-sub {
  color: var(--gold-light);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  margin-top: 8px;
}

/* ===== Scheme Section ===== */
.scheme {
  background: var(--cream);
  padding: 60px 0;
  text-align: center;
}

.scheme-title {
  font-size: clamp(2.2rem, 8vw, 4rem);
  color: var(--navy);
  line-height: 1.05;
}

.scheme-title span {
  display: block;
  color: var(--teal);
}

.scheme-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  margin: 18px 0;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.scheme-desc {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
}

.scheme-desc strong {
  color: var(--teal);
}

/* Waiver panel */
.waiver-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto 30px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  flex-wrap: wrap;
}

.waiver-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.waiver-percent {
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.waiver-label {
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-top: 6px;
}

.waiver-divider {
  width: 2px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.25);
}

.waiver-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 220px;
}

.check-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.waiver-detail p {
  font-size: 0.95rem;
  color: #dfe6ec;
}

/* Fee panel */
.fee-panel {
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: 16px;
  padding: 24px 32px;
  max-width: 800px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  text-align: left;
}

.fee-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.rupee-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
}

.fee-label {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.fee-amount {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.fee-split {
  width: 2px;
  align-self: stretch;
  background: rgba(19, 42, 61, 0.15);
}

.fee-note {
  color: var(--navy);
  font-weight: 700;
}

.fee-badge {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.fee-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.4;
}

.fee-fineprint {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Section heading shared ===== */
.section-heading {
  text-align: center;
  color: var(--navy);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 40px;
  position: relative;
}

.section-heading span {
  background: var(--teal);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 30px;
  display: inline-block;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.section-heading.light {
  color: var(--white);
}

/* ===== Benefits ===== */
.benefits {
  padding: 60px 0;
  background: var(--cream-light);
}

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

.benefit-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.benefit-card p {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* ===== Deadline ===== */
.deadline {
  background: var(--navy);
  padding: 40px 0;
}

.deadline-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.deadline-icon {
  font-size: 2.5rem;
}

.deadline-label {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
}

.deadline-date {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: clamp(1.3rem, 4vw, 2rem);
  padding: 10px 26px;
  border-radius: 10px;
}

/* ===== Services ===== */
.services {
  padding: 60px 0;
  background: var(--cream);
}

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

.service-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 30px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
  border-bottom: 4px solid var(--gold);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.service-card p {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 70px 0;
  text-align: center;
}

.contact-lead {
  color: #dfe6ec;
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 26px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--teal);
}

.contact-icon.web {
  background: var(--gold);
}

.contact-card-label {
  display: block;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact-card-value {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  word-break: break-word;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: #b9c3cc;
  padding: 30px 0;
  text-align: center;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 14px;
  box-shadow: 0 0 0 2px var(--gold);
}

.footer-links a {
  color: var(--gold-light);
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-inner p {
  margin-top: 6px;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .benefit-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.3s ease;
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.3);
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav a {
    color: var(--white);
    font-size: 1.1rem;
  }

  .nav-cta {
    color: var(--navy-dark) !important;
  }

  .waiver-panel,
  .fee-panel {
    flex-direction: column;
    text-align: center;
  }

  .waiver-amount,
  .waiver-detail {
    align-items: center;
    text-align: center;
  }

  .waiver-divider,
  .fee-split {
    width: 60%;
    height: 2px;
  }

  .fee-info {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .benefit-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .brand-tagline {
    display: none;
  }
}
