/* Vijaya Lakshmi Test Academy landing — responsive, all screen sizes */

html.rs-landing-page {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  /* Sync with fixed header height (see includes/header.php) */
  --rs-nav-offset: 72px;
  /* Clears fixed header when jumping to #anchors */
  scroll-padding-top: calc(var(--rs-nav-offset) + env(safe-area-inset-top));
}

/* Nav links can wrap on two rows between tablet and 900px — extra top space so hero clears bar */
@media (min-width: 769px) and (max-width: 899px) {
  html.rs-landing-page {
    --rs-nav-offset: 108px;
  }
}

.rs-landing {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: #fff7ed;
  color: #1c1917;
  -webkit-font-smoothing: antialiased;
  /* Header is ~64–72px + safe area; 56px was too small — content sat under fixed nav */
  padding-top: calc(var(--rs-nav-offset) + env(safe-area-inset-top));
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.rs-landing-main {
  max-width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 28px);
  padding-left: max(clamp(12px, 4vw, 28px), env(safe-area-inset-left));
  padding-right: max(clamp(12px, 4vw, 28px), env(safe-area-inset-right));
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  flex: 1 0 auto;
}

.rs-hero {
  text-align: center;
  padding: clamp(16px, 3vw, 32px) 0 clamp(14px, 3.5vw, 28px);
}

.rs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #c2410c;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #fed7aa;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.08);
}

.rs-hero-badge .material-symbols-outlined {
  font-size: 1rem;
  color: #ea580c;
}

.rs-hero h1 {
  font-size: clamp(1.85rem, 5.5vw + 1rem, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
  color: #1c1917;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.rs-hero h1 span {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rs-hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  color: #57534e;
  max-width: 36rem;
  margin: 0 auto 14px;
}

.rs-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.rs-btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  background: linear-gradient(165deg, #f97316, #ea580c);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(234, 88, 12, 0.35);
  font-size: 1rem;
}

.rs-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: #fff;
  color: #c2410c !important;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  border: 2px solid #fed7aa;
  font-size: 1rem;
}

.rs-section {
  padding: clamp(12px, 3vw, 24px) 0;
}

.rs-section-cream {
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
  border-radius: 20px;
  padding: clamp(14px, 3.5vw, 26px) clamp(14px, 3.5vw, 24px);
  margin: 0;
  border: 1px solid #fed7aa;
  box-shadow: 0 12px 40px rgba(234, 88, 12, 0.06);
}

.rs-section-title {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #c2410c;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.rs-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}

.rs-feature {
  background: #fff;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid #fed7aa;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rs-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.1);
}

.rs-feature h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1c1917;
}

.rs-feature p {
  margin: 0;
  color: #78716c;
  font-size: 0.92rem;
  line-height: 1.55;
}

.rs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.rs-pills span {
  background: #fff;
  color: #9a3412;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid #fed7aa;
}

.rs-pills .rs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rs-pills .rs-pill .material-symbols-outlined {
  color: #c2410c;
  font-size: 1.05rem;
}

.rs-cta-block {
  text-align: center;
  padding: clamp(14px, 3.5vw, 28px) 12px;
}

.rs-cta-block h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 8px;
}

.rs-cta-block p {
  color: #78716c;
  margin: 0 0 12px;
  font-size: 0.98rem;
}

/* —— Site footer (landing + contact + about) —— */
.rs-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  padding: clamp(28px, 5vw, 44px) max(12px, env(safe-area-inset-left)) calc(22px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  background: #1c1917;
  color: #d6d3d1;
  font-size: 0.875rem;
  border-top: 1px solid #292524;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  overflow-x: hidden;
}

.rs-footer-inner {
  max-width: min(1400px, 100%);
  margin: 0 auto;
  min-width: 0;
  padding: 0 clamp(4px, 2vw, 8px);
  box-sizing: border-box;
}

.rs-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 32px);
  padding-bottom: clamp(24px, 4vw, 32px);
  border-bottom: 1px solid #44403c;
  min-width: 0;
}

@media (min-width: 640px) {
  .rs-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .rs-footer-grid {
    grid-template-columns: minmax(min(200px, 100%), 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
    align-items: start;
  }
}

.rs-footer-brand {
  text-align: left;
  min-width: 0;
  max-width: 100%;
}

.rs-footer-logo {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  line-height: 1.15;
  margin-bottom: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.rs-footer-logo-small {
  display: block;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a29e;
}

.rs-footer-logo-main {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fb923c, #fdba74);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 2px;
}

.rs-footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #a8a29e;
  max-width: min(28rem, 100%);
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}

.rs-footer-col {
  min-width: 0;
  max-width: 100%;
}

.rs-footer-heading {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fdba74;
}

.rs-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rs-footer-list a {
  color: #e7e5e4;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 4px 0;
  border-radius: 6px;
  transition: color 0.15s ease;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.rs-footer-list a:hover {
  color: #fff;
  text-decoration: none;
}

.rs-footer-list a:focus-visible {
  outline: 2px solid #fb923c;
  outline-offset: 2px;
}

.rs-footer-list--contact .rs-footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: #e7e5e4;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.rs-footer-list--contact .rs-footer-contact-line span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rs-footer-list--contact .rs-footer-contact-line:hover {
  color: #fdba74;
}

.rs-footer-contact-ico {
  width: 1.75rem;
  text-align: center;
  opacity: 0.95;
}

.rs-footer-hours {
  margin: 0;
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #78716c;
  max-width: min(16rem, 100%);
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.rs-footer-bottom {
  padding-top: clamp(20px, 3vw, 24px);
  text-align: center;
  min-width: 0;
  padding-left: clamp(4px, 2vw, 12px);
  padding-right: clamp(4px, 2vw, 12px);
  box-sizing: border-box;
}

.rs-footer-copy {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: #a8a29e;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}

.rs-footer-copy strong {
  color: #e7e5e4;
  font-weight: 700;
}

.rs-footer-legal-note {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #78716c;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .rs-hero {
    padding-top: clamp(8px, 2vw, 20px);
  }
}

/* CTA uses both classes — one padding value (no stacked gaps) */
.rs-section.rs-cta-block {
  padding: clamp(14px, 3vw, 28px) 12px;
}

/* —— Premium depth + every screen —— */
.rs-landing {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(251, 146, 60, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(254, 215, 170, 0.3), transparent 45%),
    radial-gradient(ellipse 50% 40% at 0% 75%, rgba(255, 237, 213, 0.45), transparent 40%),
    #fff7ed;
}

.rs-btn-main:active,
.rs-btn-secondary:active {
  transform: scale(0.98);
}

.rs-btn-main:focus-visible,
.rs-btn-secondary:focus-visible {
  outline: 3px solid #ea580c;
  outline-offset: 3px;
}

/* Very small screens (e.g. 320px) */
@media (max-width: 380px) {
  .rs-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .rs-btn-main,
  .rs-btn-secondary {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .rs-hero h1 {
    font-size: clamp(1.5rem, 6vw + 0.5rem, 2rem);
  }
  .rs-feature {
    padding: 20px 16px;
  }
  .rs-pills span {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .rs-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1600px) {
  .rs-landing-main {
    max-width: min(1520px, 96vw);
  }
}
