/* =========================================================
   RESPONSIVE STYLES.CSS
   Phones • Tablets • Laptops • Large Screens
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  user-select: none;
}

/* Prevent elements from creating unexpected horizontal overflow */
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Make pseudo-elements follow the same sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent long content from expanding containers */
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span {
  overflow-wrap: break-word;
}

/* Images and SVGs should never exceed their parent */
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;

  /* Important for grid/flex overflow */
  min-width: 0;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  min-height: 70px;
  width: 100%;
  max-width: 100%;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  background: #ffffff;
  overflow: hidden;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.logo-icon {
  background: url("/LogoSmall.svg") center / contain no-repeat;
  width: 100px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  color: #1e1b4b;
  font-style: italic;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(16px, 2.5vw, 28px);
  margin-left: auto;
  margin-right: auto;

  /* Prevent flex item from forcing page width */
  min-width: 0;
  max-width: 100%;
}

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
  color: #111827;
  font-weight: 600;
  border-bottom: 2px solid #7c3aed;
  padding-bottom: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  min-width: 0;
}

.btn-link {
  text-decoration: none;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary {
  text-decoration: none;
  background: linear-gradient(
    130deg,
    #7a28ce 20%,
    #d02881,
    #f46725 90%
  );
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 380px;
  width: 100%;
  max-width: 100%;
  background:
    linear-gradient(#0008, #0008),
    url("/img/Section-heroBanner.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 60px 48px;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  min-width: 0;
}

.breadcrumbs {
  font-size: 12px;
  color: #d1d5db;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero p {
  font-size: clamp(14px, 2vw, 15px);
  color: #e5e7eb;
  max-width: 580px;
}


/* =========================================================
   STEPS SECTION
   ========================================================= */

.steps-section {
  padding: clamp(40px, 7vw, 80px) 0;
  background-color: #ffffff;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.step-card {
  background-color: #581c87;
  color: white;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 32px);
  border-radius: 15px;

  /* Important for grid sizing */
  min-width: 0;
  max-width: 100%;
}

.step-number {
  font-size: clamp(36px, 5vw, 48px);
  font-family: Georgia, serif;
  opacity: 0.7;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card p {
  font-size: 13px;
  color: #e9d5ff;
  line-height: 1.6;
}

.get-started {
  display: inline-block;
  background-color: #7c3aed;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}


/* =========================================================
   MANAGEMENT SECTION
   ========================================================= */

.management-section {
  padding: clamp(50px, 8vw, 80px) 0;
  background-color: #ffffff;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  gap: clamp(32px, 6vw, 60px);
  align-items: center;

  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.management-content {
  min-width: 0;
  max-width: 100%;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6b7280;
  display: block;
  margin-bottom: 8px;
}

.management-content h2 {
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 36px;
  color: #111827;
}

.feature-item {
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid #7c3aed;

  min-width: 0;
  max-width: 100%;
}

.feature-item h4 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: #6b7280;
}

.management-image {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.management-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   CTA BANNER
   ========================================================= */

.cta-banner {
  position: relative;
  min-height: 280px;
  width: 100%;
  max-width: 100%;
  padding: 60px 24px;
  background: url("/img/CTA-Banner.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.cta-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  min-width: 0;
}

.cta-content h2 {
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-content p {
  font-size: 14px;
  color: #e5e7eb;
  margin-bottom: 24px;
}

.btn-cta {
  display: inline-block;
  background-color: #ffffff;
  color: #111827;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background-color: #ff6b00;
  color: white;
  padding: clamp(40px, 7vw, 60px) 0 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 60px;

  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.footer-brand,
.footer-column {
  min-width: 0;
  max-width: 100%;
}

.footer-brand p {
  font-size: 13px;
  color: #fff0e6;
  margin-top: 16px;
  max-width: 280px;
}

.footer-brand .logo-text {
  color: white;
}

.footer-column h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #fff0e6;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  text-decoration: none;
  color: #ffffff;
  font-size: 13px;
}

.footer-column a.active {
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  font-size: 11px;
  color: #fff0e6;

  min-width: 0;
  max-width: 100%;
}


/* =========================================================
   LARGE TABLETS / SMALL LAPTOPS
   769px - 1024px
   ========================================================= */

@media (max-width: 1024px) {

  .nav-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-links {
    gap: 16px;
    min-width: 0;
  }

  .nav-links a,
  .btn-link,
  .btn-primary {
    font-size: 13px;
  }

  .hero {
    padding-left: 32px;
    padding-right: 32px;
  }

  .steps-grid {
    gap: 18px;
  }

  .management-grid {
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}


/* =========================================================
   TABLETS
   601px - 768px
   ========================================================= */

@media (max-width: 768px) {

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Navbar */
  .navbar {
    min-height: 64px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .nav-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 20px;
    flex-wrap: wrap;
  }

  .logo {
    min-width: 0;
  }

  .logo-icon {
    width: 85px;
    height: 36px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-start;
    margin: 8px 0 0;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 13px;
    flex-shrink: 0;
  }

  .nav-actions {
    gap: 10px;
    min-width: 0;
  }

  .btn-link {
    display: none;
  }

  .btn-primary {
    padding: 9px 14px;
  }


  /* Hero */
  .hero {
    width: 100%;
    max-width: 100%;
    min-height: 340px;
    padding: 50px 24px;
  }


  /* Steps */
  .steps-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-card:last-child {
    grid-column: 1 / -1;
  }


  /* Management */
  .management-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .management-content {
    order: 1;
  }

  .management-image {
    order: 2;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
  }


  /* Footer */
  .footer-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================================================
   MOBILE PHONES
   600px and below
   ========================================================= */

@media (max-width: 600px) {

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }


  /* Navbar */
  .navbar {
    min-height: 60px;
    width: 100%;
    max-width: 100%;
  }

  .nav-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 16px;
    gap: 12px;
  }

  .logo {
    min-width: 0;
  }

  .logo-icon {
    width: 75px;
    height: 34px;
  }

  .logo-text {
    font-size: 18px;
    min-width: 0;
  }

  .nav-actions {
    margin-left: auto;
    min-width: 0;
  }

  .btn-primary {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 7px;
  }

  .nav-links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 18px;
    padding: 4px 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 12px;
    flex-shrink: 0;
  }


  /* Hero */
  .hero {
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    padding: 44px 20px;
    background-position: center;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .breadcrumbs {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.12;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.6;
  }


  /* Steps */
  .steps-section {
    width: 100%;
    max-width: 100%;
    padding: 40px 0 50px;
  }

  .steps-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card:last-child {
    grid-column: auto;
  }

  .step-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 28px 22px;
    border-radius: 13px;
  }

  .step-number {
    font-size: 40px;
    margin-bottom: 10px;
  }

  .step-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
  }

  .step-card p {
    font-size: 13px;
  }

  .get-started {
    padding: 10px 17px;
    font-size: 13px;
  }


  /* Management */
  .management-section {
    width: 100%;
    max-width: 100%;
    padding: 50px 0;
  }

  .management-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .management-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .management-content h2 {
    font-size: 27px;
    margin-bottom: 28px;
  }

  .feature-item {
    padding-left: 13px;
    margin-bottom: 20px;
    min-width: 0;
    max-width: 100%;
  }

  .feature-item h4 {
    font-size: 15px;
  }

  .feature-item p {
    font-size: 13px;
  }

  .management-image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .management-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }


  /* CTA */
  .cta-banner {
    width: 100%;
    max-width: 100%;
    min-height: 260px;
    padding: 50px 20px;
  }

  .cta-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cta-content h2 {
    font-size: 27px;
  }

  .cta-content p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .btn-cta {
    padding: 11px 23px;
    font-size: 13px;
  }


  /* Footer */
  .footer {
    width: 100%;
    max-width: 100%;
    padding: 45px 0 18px;
  }

  .footer-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    margin-bottom: 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-column {
    min-width: 0;
    max-width: 100%;
  }

  .footer-column h5 {
    margin-bottom: 12px;
  }

  .footer-column li {
    margin-bottom: 8px;
  }

  .footer-column a {
    font-size: 12px;
  }

  .footer-bottom {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    font-size: 10px;
  }
}


/* =========================================================
   VERY SMALL PHONES
   380px and below
   ========================================================= */

@media (max-width: 380px) {

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-container {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .logo {
    min-width: 0;
  }

  .logo-icon {
    width: 68px;
  }

  .logo-text {
    min-width: 0;
  }

  .nav-actions {
    min-width: 0;
  }

  .btn-primary {
    padding: 7px 10px;
    font-size: 11px;
  }

  .nav-links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero p {
    font-size: 13px;
  }

  .step-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px;
  }

  .management-content h2 {
    font-size: 24px;
  }

  .management-image {
    width: 100%;
    max-width: 100%;
  }

  .management-image img {
    width: 100%;
    max-width: 100%;
  }

  .cta-banner {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta-content h2 {
    font-size: 24px;
  }

  .footer-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}


/* =========================================================
   LANDSCAPE PHONES
   ========================================================= */

@media (max-height: 500px) and (orientation: landscape) {

  .hero {
    width: 100%;
    max-width: 100%;
    min-height: 280px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .cta-banner {
    width: 100%;
    max-width: 100%;
    min-height: 240px;
  }
}


/* =========================================================
   ACCESSIBILITY / TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

  .nav-links a:hover {
    color: #4b5563;
    border-bottom: none;
  }

  .nav-links a.active {
    color: #111827;
    border-bottom: 2px solid #7c3aed;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   FINAL HORIZONTAL OVERFLOW PROTECTION
   ========================================================= */

/* Prevent accidental width expansion from flex/grid children */
.container > *,
.nav-container > *,
.steps-grid > *,
.management-grid > *,
.footer-grid > * {
  min-width: 0;
}

/* Keep common replaced elements inside their containers */
video,
canvas,
table {
  max-width: 100%;
}

/* Prevent very long unbroken content from creating side scroll */
body {
  overflow-wrap: break-word;
}

/* Sections should never become wider than viewport */
section,
header,
footer,
main,
nav {
  max-width: 100%;
}
