/* ============================================================
   Premium responsive fixes — hero, industries, footer, disclaimer
   Load after styles.css and home.css
   ============================================================ */

/* ----- Homepage hero: override legacy .hero rules ----- */
body.premium-shell-page.home-page .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  padding: calc(72px + 2rem) 20px 7.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #e9f4ff 48%, #d9ecff 100%) !important;
}

body.premium-shell-page.home-page .hero-overlay {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 44%, rgba(232,244,255,0.4) 100%),
    linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.06) 55%, rgba(243,248,255,0.82) 100%) !important;
}

body.premium-shell-page.home-page .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(900px, 100%);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 24px);
  text-align: center;
  flex: 0 1 auto;
}

body.premium-shell-page.home-page .hero-headline-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  margin: 0 auto clamp(16px, 3vw, 24px);
  max-width: 100%;
}

body.premium-shell-page.home-page .hero-title {
  display: block;
  width: 100%;
  margin: 0;
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue, #0b63c7);
  opacity: 1;
  transform: none;
  animation: fadeUp 0.8s ease forwards 0.45s;
}

body.premium-shell-page.home-page .hero-title-lg {
  display: block;
  width: 100%;
  margin: 0;
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: clamp(1.85rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--white, #10243f);
  text-wrap: balance;
  opacity: 1;
  transform: none;
  animation: fadeUp 0.9s ease forwards 0.6s;
}

body.premium-shell-page.home-page .hero-title-lg span {
  display: inline;
  background: linear-gradient(135deg, #064d9c, var(--blue, #0b63c7), var(--blue-bright, #0a84ff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.premium-shell-page.home-page .hero-subtitle {
  max-width: min(620px, 100%);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

body.premium-shell-page.home-page .hero-btns {
  justify-content: center;
  gap: 14px;
}

body.premium-shell-page.home-page .hero-indicators {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vw, 36px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  width: auto;
  max-width: calc(100% - 40px);
}

body.premium-shell-page.home-page .hero-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(16, 36, 63, 0.22);
  border: none;
  padding: 0;
  transition: width 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

body.premium-shell-page.home-page .hero-dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--blue-bright, #0a84ff);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.45);
}

body.premium-shell-page.home-page .hero-scroll {
  bottom: clamp(20px, 4vw, 36px);
  right: clamp(16px, 4vw, 48px);
  z-index: 3;
}

@media (max-width: 768px) {
  body.premium-shell-page.home-page .hero {
    padding: calc(72px + 1.25rem) 16px 6.5rem;
    min-height: min(100dvh, 820px);
  }

  body.premium-shell-page.home-page .hero-title-lg {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
    line-height: 1.18;
  }

  body.premium-shell-page.home-page .hero-scroll {
    display: none;
  }

  body.premium-shell-page.home-page .hero-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  body.premium-shell-page.home-page .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body.premium-shell-page.home-page .hero-indicators {
    bottom: 16px;
  }

  body.premium-shell-page.home-page .hero-dot.active {
    width: 22px;
  }
}

/* ----- Industry cards & jump nav (global) ----- */
.industry-card,
.industries-grid .industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 132px;
  height: 100%;
  padding: clamp(18px, 3vw, 28px) clamp(12px, 2.5vw, 20px);
  overflow: hidden;
  box-sizing: border-box;
}

.industry-card .industry-name,
.industry-name {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: clamp(0.68rem, 2.2vw, 0.82rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.industries-grid {
  align-items: stretch;
}

.industries-page .industries-jump-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  text-align: center;
  line-height: 1.3;
  font-size: clamp(0.62rem, 2vw, 0.76rem);
  letter-spacing: 0.03em;
  text-transform: none;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.footer-col--industries .footer-link,
.footer-links-list--cols .footer-link {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

/* ----- Mobile footer contact & serviceable areas ----- */
@media (max-width: 768px) {
  .premium-shell-page .footer-main {
    grid-template-columns: 1fr !important;
    padding: 40px 20px 28px !important;
    gap: 22px !important;
  }

  .premium-shell-page .footer-brand {
    grid-column: 1 / -1 !important;
    max-width: none !important;
  }

  .premium-shell-page .footer-links-list {
    gap: 9px;
  }

  .premium-shell-page .footer-col-title {
    margin-bottom: 11px;
    padding-bottom: 7px;
  }

  .premium-shell-page .footer-contact-list {
    gap: 9px;
  }

  .premium-shell-page .footer-contact-item {
    align-items: flex-start;
    gap: 10px;
  }

  .premium-shell-page .footer-contact-office + .footer-contact-office {
    margin-top: 2px;
  }

  .premium-shell-page .footer-contact-item svg {
    margin-top: 3px;
    flex-shrink: 0;
  }

  .premium-shell-page .footer-contact-item span,
  .premium-shell-page .footer-contact-office span {
    font-size: 0.84rem;
    line-height: 1.65;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .premium-shell-page .footer-contact-office strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(13, 43, 78, 0.9);
  }

  .footer-serviceable {
    padding: 40px 0;
  }

  .footer-serviceable-inner {
    padding: 0 20px;
    text-align: center;
  }

  .footer-serviceable-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .footer-serviceable-lead {
    font-size: 0.88rem;
    margin-bottom: 20px;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-serviceable-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
  }

  .footer-serviceable-list li {
    font-size: 0.76rem;
    padding: 8px 14px;
    line-height: 1.3;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .industries-page .industries-jump-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .industries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .industry-card {
    min-height: 118px;
    padding: 16px 10px;
  }
}

/* ----- Compact premium disclaimer ----- */
.disclaimer-modal {
  max-width: min(440px, calc(100vw - 32px)) !important;
  padding: 28px 26px 24px !important;
}

.disclaimer-modal h2 {
  font-size: clamp(1.15rem, 4vw, 1.35rem) !important;
  margin-bottom: 12px !important;
}

.disclaimer-modal-badge {
  margin-bottom: 12px !important;
  font-size: 0.65rem !important;
}

.disclaimer-modal-body p,
.disclaimer-modal-body li {
  font-size: 0.86rem !important;
  line-height: 1.6 !important;
}

.disclaimer-modal-body ul {
  margin: 10px 0 12px !important;
  padding-left: 1.1rem !important;
}

.disclaimer-modal-body li {
  margin-bottom: 6px !important;
}

.disclaimer-modal .btn-primary {
  margin-top: 4px !important;
  padding: 12px 20px !important;
  font-size: 0.8rem !important;
}

/* Disclaimer above loading screen */
.disclaimer-modal-overlay.visible {
  z-index: 10001 !important;
}

/* Hero line break — mobile single line, desktop balanced */
body.premium-shell-page.home-page .hero-br {
  display: none;
}

@media (min-width: 640px) {
  body.premium-shell-page.home-page .hero-br {
    display: inline;
  }
}

/* Homepage service cards — equal height */
.services-grid-home {
  align-items: stretch;
}

.services-grid-home .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services-grid-home .service-desc {
  flex: 1;
}

.services-grid-home .service-link {
  margin-top: auto;
}

/* Deep-link scroll offset for fixed navbar */
.service-category,
.service-accordion,
.industry-section {
  scroll-margin-top: 100px;
}

/* Footer contact accordion — full address on mobile */
@media (max-width: 768px) {
  .premium-shell-page .footer-accordion-content.footer-accordion-content--contact.open,
  .premium-shell-page .footer-accordion-content--contact.open {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  .premium-shell-page .footer-contact-office--hyderabad span {
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .disclaimer-modal-overlay {
    padding: 16px !important;
    align-items: flex-end !important;
  }

  .disclaimer-modal {
    max-height: min(88vh, 520px) !important;
    overflow-y: auto !important;
    border-radius: 12px 12px 0 0 !important;
  }
}
