/* Modern Reset & Base Styles */
:root {
  --primary: #00a79d;
  --secondary: #333;
  --light: #f8f9fa;
  --dark: #212529;
  --spacing: clamp(0.4rem, 4vw, 1.8rem);
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}



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

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  color: var(--dark);
  background-color: white;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.container-2 {
  width: 70%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #639;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  clear: both;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  clear: both;
}

h5 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
}

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
}

ul {
  margin-left: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 1.5rem;
}

ul li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

ol li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

h4.italic {
  font-style: italic;
}

hr.embossed {
  border: none;
  height: 2px;
  background: linear-gradient(
    to right,
    #fff 0%,
    #ccc 20%,
    #eee 50%,
    #ccc 80%,
    #fff 100%
  );
  box-shadow: 0 1px 0 #bbb, 0 -1px 0 #fff;
  margin: 0;
  border-radius: 2px;
}


header {
  padding: 1.5rem 0;
  z-index: 100;
  position: relative; /* ensure z-index and pseudo-elements work predictably */
  background: linear-gradient(to right, #00a79d 0%, #639 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%; /* ensure gradient spans the full header width */
  box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
  animation: fadeInDown 0.8s both;
}

/* Ensure header gradient always spans the full viewport width even if internal
   containers are narrow. We use a pseudo-element so the visual gradient is full-bleed
   and the inner .header-container can remain centered. */
header::before {
  content: '';
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: linear-gradient(to right, #00a79d 0%, #639 100%);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative; /* make sure content sits above header::before */
  z-index: 1;
}

.logo {
  height: auto;
  display: flex;
  align-items: center;
  gap: 2em;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
  box-shadow: #fff 0 0 10px;
}

.logo-text {
  color: #639;

  /* Outline: black (or any color you want) on all sides, then purple glow */
  text-shadow: -2px -2px 0 #fff, /* top-left outline */ 1px -1px 0 #fff,
    /* top-right outline */ -1px 1px 0 #fff, /* bottom-left outline */ 1px 1px 0 #fff,
    /* bottom-right outline */ 0 -1px 0 #fff, /* top outline */ 0 1px 0 #fff,
    /* bottom outline */ -1px 0 0 #fff, /* left outline */ 1px 0 0 #fff,
    /* right outline */ 0 0 8px #fff; /* purple glow */

  white-space: nowrap;
  font-weight: bold;
  /* clamp(min, preferred, max) - ensure min <= preferred <= max
    Use a smaller minimum and a sensible max for large screens */
  font-size: clamp(1.1rem, 2.6vw, 2rem);
}

/* Responsive header/logo tweaks */
@media (max-width: 992px) {
  .logo img {
    height: 48px;
  }

  .logo {
    gap: 1rem;
  }

  .logo-text {
    white-space: normal; /* allow wrapping */
    font-size: clamp(1rem, 3.2vw, 1.6rem);
    line-height: 1.1;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 40px;
  }

  .logo-text {
    font-size: clamp(0.95rem, 4.2vw, 1.2rem);
  }
}

.tagline {
  color: #639;
  font-weight: bold;
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.5rem);
}

.logo-text-link {
  text-decoration: none;
}

.bullet-row {
  display: flex;
  gap: 2em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding-top: 15px;
}

nav li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: larger;
  position: relative;
  transition: var(--transition);
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}

nav li a:hover {
  color: var(--primary);
}

.footer-links a:hover {
  color: white;
}

nav li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

nav li a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================
   NAVIGATION STYLES
   ========================= */

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding-top: 15px;
}

nav li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: larger;
  position: relative;
  transition: var(--transition);
}

nav li a:hover {
  color: var(--primary);
}

/* Dropdown menu styles */
nav ul li.dropdown {
  position: relative;
}

nav ul li .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: white;
  box-shadow: 0 8px 24px rgb(197 194 194 / 100%);
  border-radius: 0 0 8px 8px;
  z-index: 100;
  padding: 0.5rem 0;
}

nav ul li .dropdown-menu li {
  width: 100%;
}

nav ul li .dropdown-menu a {
  color: var(--secondary);
  padding: 0.75rem 1.5rem;
  display: block;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

/* Dropdown menu animated lines */
nav ul li .dropdown-menu a::before,
nav ul li .dropdown-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li .dropdown-menu a::before {
  top: 0;
  transform-origin: right;
}

nav ul li .dropdown-menu a::after {
  bottom: 0;
  transform-origin: left;
}

nav ul li .dropdown-menu a:hover::before,
nav ul li .dropdown-menu a:focus::before {
  transform: scaleX(1);
  transform-origin: left;
}

nav ul li .dropdown-menu a:hover::after,
nav ul li .dropdown-menu a:focus::after {
  transform: scaleX(1);
  transform-origin: right;
}

/* Show dropdown on hover/focus */
nav ul li.dropdown .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  display: block; /* Always block for animation to work */
}

nav ul li.dropdown:hover .dropdown-menu,
nav ul li.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile nav toggle button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
/* --- Hero Section --- */

.hero {
  min-height: 50vh;
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.hero-header {
  text-align: left;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  z-index: 1;
  position: relative;
}

.step-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #000;
  font-weight: bold;
  margin-right: 0.5rem;
}


#hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #639;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 3;
}

#hero-title.hero-title-small {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  z-index: 100;
}

#pricing-title.hero-title-smaller,
#pricing-how.hero-title-smaller {
  text-align: center;
  color: #639;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  z-index: 100;
}

.hero-content-container {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 400px);
  grid-template-rows: auto 1fr;
  gap: 2rem;
  position: relative;
  z-index: 5;
}

.hero-image-container {
  float: left;
  width: auto;
  margin: 0 2rem 1.5rem 0;
  z-index: 5;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
  z-index: 5;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  opacity: 1;
  transition: opacity 0.6s ease;
  float: none; /* Remove float from image itself */
}

.hero-image.active {
  width: clamp(150px, 48%, 600px);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  opacity: 1;
  transition: opacity 0.6s ease;
  float: left;
  margin: 0 2rem 1.5rem 0;
}

.hero-image.right {
  margin: 1rem 0 1.5rem 3rem;
  width: clamp(150px, 40%, 400px);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  opacity: 1;
  transition: opacity 0.6s ease;
  float: right;
}

#waiting-image {
  width: clamp(150px, 48%, 350px);
  height: auto;
  display: block;
  border-radius: 8px;
  opacity: 1;
  transition: opacity 0.6s ease;
  float: left;
  margin: 1rem 1rem 1.5rem 0;
}

#default-image {
  width: clamp(150px, 48%, 200px);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 10px 0 rgb(102 51 153 / 10%);
  opacity: 1;
  transition: opacity 0.6s ease;
  float: right;
  margin: 0 0 0 1rem;
}

#wires-image {
  width: clamp(150px, 48%, 300px);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 10px 0 rgb(102 51 153 / 10%);
  opacity: 1;
  transition: opacity 0.6s ease;
  float: right;
  margin: 0 0 0 1rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: rgb(0 167 157 / 25%);
  z-index: 0;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0;
  transform: translateX(300px);
  transition: opacity 0.8s, transform 1s;
}

.hero-bg.active {
  opacity: 1;
  transform: translateX(0);
  animation: slideInRight 1s 0s both;
}

@keyframes slideInRight {
  0% {
    opacity: 1;
    transform: translateX(300px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-layout {
  display: block;
  gap: 3.5rem;
  flex-wrap: nowrap; /* Keep them side by side */
}

.hero-content-flow {
  display: block;
  min-width: 0;
  overflow: hidden;
  z-index: 5;
}

.hero-content-flow::after {
  content: '';
  display: table;
  clear: both;
  z-index: 5;
}

.main {
  min-height: 70vh;
  padding: 3rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.main2 {
  min-height: 70vh;
  padding: 2rem 0 2rem;
  position: relative;
  overflow: hidden;
}

#main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #639;
  margin-bottom: 1.5rem;
}

.workflow-title-smaller {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: #639;
  margin-bottom: 1.5rem;
  text-align: left;
}

#main-title.main-title-small {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #639;
  margin-bottom: 1.5rem;
}

#main-title.main-title-small-centered {
  margin-top: 3rem;
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #000;
  margin-bottom: 1.5rem;
}

#main-title.main-title-smaller {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: #639;
  margin-bottom: 1.5rem;
  text-align: center;
}

.main-title-smaller-black {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: black;
  margin-bottom: 1.5rem;
  text-align: center;
}

.main-header {
  text-align: left;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
}

p.hero-paragraph {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.hero-paragraph.hero-image-text-align {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Align image and text at the top, but push text down a bit */
.hero-paragraph {
  display: block;          /* let text flow normally */
  align-items: initial;    /* not used for block */
  gap: 0;                  /* reset gap used by flex */
  margin-bottom: 1rem;
}

.hero-paragraph .hero-image {
  max-width: 400px; /* Adjust as needed */
  height: auto;
  flex-shrink: 0;
  margin: 0;
  display: block;
}

.hero-paragraph .hero-text-align {
  display: block;
  margin-top: 0.75em; /* Push text downward; adjust value as needed */
}

/* Image container styles */

.tablet-container {
  float: left;
  max-height: 500px; /* increased ~25% from 400px */
  overflow: visible;
  border-radius: 12px;
  margin: 0 20px 0 0;
  background-color: white;
  padding: 10px;
  box-shadow: 0 3px 8px rgb(0 0 0 / 15%);
  border: 1px solid #dadada;
  position: relative;
  z-index: 2;
}

.tablet-container img {
  width: auto;
  height: auto;
  max-height: 250px; /* increased ~25% from 400px */
  border-radius: 8px;
  display: block;
}

.tablet-container video {
  width: 100%;
  max-width: 1000px; /* increased ~25% from 800px */
  max-height: 500px; /* keep height in check and match container */
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain; /* Ensures aspect ratio is preserved and prevents stretching */
}


.relaxed-container {
  float: right;
  max-height: 350px;
  overflow: visible;
  border-radius: 12px;
  margin: 0 0 0 30px;
  background-color: white;
  padding-top: 10px;
  padding-right: 10px;
  padding-left: 10px;
  box-shadow: 0 3px 8px rgb(0 0 0 / 15%);
  border: 1px solid #dadada;
  position: relative;
  z-index: 2;
}

.hero-paragraph.hero-image-text-align img {
  /* your styles */
  vertical-align: top;
}

/* Web Design Philosophy Section Styling */
.philosophy-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.philosophy-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgb(0 0 0 / 8%);
}

.philosophy-title {
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Design Philosophy section container */
.design-philosophy {
  padding: 4rem 0;
  position: relative;
  background-color: white;
  z-index: 5;
}

/* Content column layout */
.content-sidebar {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
}

/* Interactive content */
.interactive-content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
}

/* Content section styling */
.content-section {
  width: 100%;
  opacity: 0;
  display: none;
}

.content-section.active {
  display: block;
  opacity: 1;
}

/* Quick Links Section */

/*
.service-quick-links {
  flex: 0 1 550px;
  z-index: 1;
  min-width: 220px;
  max-width: 650px;
  background-color: rgb(0 0 0 / 70%);
  padding: 1.5rem 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
}
removed the above styles and replaced with the following */

.service-quick-links {
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  min-width: unset;
  max-width: unset;
  flex: none;
}

.service-links-container {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  background: none;
  margin: 0;
  width: auto;
}

.service-link-btn {
  background: none;
  color: #fff;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  width: auto;
  min-width: 0;
}

.service-link-btn:hover,
.service-link-btn.active {
  color: var(--primary);
  background: none;
  text-decoration: underline;
}

.scroll-hint {
  font-style: italic;
}

/* Animation classes */
.fade-in-animation {
  animation: fadeIn 0.6s ease forwards;
}

.fade-out-animation {
  animation: fadeOut 0.6s ease forwards;
}

/* Services Section Styling */
.services {
  padding: 6rem 0;
  background-color: #f0f9f9;
  position: relative;
  z-index: 9;
  box-shadow: 0 5px 15px rgb(0 0 0 / 3%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  color: #000;
}

.section-header h2 {
  color: #639;
  font-size: 3rem;
  margin-bottom: 1rem;
}

#services-content-container {
  min-height: 300px;
  position: relative;
}

.service-content-section {
  width: 100%;
  transition: opacity 0.6s ease;
  opacity: 0;
  visibility: hidden;
  position: absolute;
}

.service-content-section.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  pointer-events: auto;
  z-index: 5;
  line-height: normal;
}

.service-description {
  margin-top: 3rem;
  padding: 2rem;
  background-color: rgb(0 167 157 / 5%);
  border-radius: 8px;
}

.service-description h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-description ul,
.service-description ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Merged styles for .service-description li */

ol.countdown {
  list-style: decimal;
  padding-left: 2rem;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.section-light {
  background-color: #fff;
  padding: 1.5rem 0 3rem;
  overflow: hidden;
}

/* Allow the workflow section to show larger media without being clipped on the right */
#workflow.section-light {
  overflow: visible; /* targeted override for the workflow page only */
}

/* Make the workflow video 25% larger without using !important */
#workflow .tablet-container {
  /* increase available space so the video can be larger without transforms */
  max-height: 625px; /* 500px * 1.25 = 625px */
  max-width: 1250px; /* allow the container to expand proportionally */
}

#workflow .tablet-container video {
  /* scale by increasing the natural container size and using width:100% so the video stays inside */
  width: 100%;
  height: auto;
  max-width: 1250px; /* 1000px * 1.25 */
  max-height: 625px;
  transform: none; /* ensure no transform-based spill */
  display: block;
}

/* Keep the enlarged video responsive: cap at smaller viewports */
@media (max-width: 768px) {
  #workflow .tablet-container {
    max-width: 100%;
    max-height: 400px; /* smaller cap on phones */
  }

  #workflow .tablet-container video {
    max-width: 100%;
    max-height: 400px;
  }
}

.section-dark {
  background-color: #f0f9f9;
  padding: 3rem 0;
  overflow: hidden;
}

/* Tools Section */

.service-description li {
  margin-bottom: 0.8rem;
}

/* Tools Used Section */
.tools {
  padding: 4rem 0;
  background-color: #f0f9f9;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgb(0 0 0 / 5%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-item2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgb(0 0 0 / 5%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* stylelint-disable-next-line no-descending-specificity */
.hero-image-text-align img {
  float: none;
  align-self: flex-start;
  margin-top: 0;
  margin-bottom: 0;
  display: block;
  max-width: 300px;
  height: auto;
  flex-shrink: 0;
}

.tool-name {
  font-weight: 600;
  margin-bottom: 0;
}

.tools-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  margin-top: 2rem;
}

/* Packages Section */

.packages {
  padding: 4rem 0;
  background-color: white;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 15px 15px 15px rgb(0 0 0 / 35%);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgb(0 0 0 / 10%);
}

.package-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.package-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.package-features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  flex-grow: 1;
}

.package-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.feature-check {
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.5rem;
}

.popular-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* FAQ Section */

.faq {
  padding: 5rem 0;
  background-color: white;
  position: relative;
}

.faq::before,
.faq::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 35px;
  background-size: 20px 40px;
  background-repeat: repeat-x;
}

.faq::before {
  top: 0;
  background-image: radial-gradient(20px at 20px 30px, white 50%, transparent 51%),
    radial-gradient(20px at 0 30px, transparent 50%, white 51%);
}

.faq::after {
  bottom: 0;
  background-image: radial-gradient(20px at 20px 10px, white 50%, transparent 51%),
    radial-gradient(20px at 0 10px, transparent 50%, white 51%);
}

/* Make FAQ header more prominent */

.faq .section-header h2 {
  color: var(--primary);
  font-size: 2.5rem;
}

/* Update FAQ Section for two columns */

.faq-list {
  max-width: 100%; /* Change from 800px to allow for full width */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Create two equal columns */
  gap: 1.5rem; /* Add space between columns */
}

/* Keep other FAQ styling the same */

.faq-item {
  margin-bottom: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 10%); /* Deeper shadow for more depth */
  overflow: hidden;
  border-left: 4px solid var(--primary); /* Add accent border */
}

/* FAQ Section - Always Open Version */

.faq-question {
  padding: 1.5rem 1.5rem 0.5rem; /* Reduced bottom padding */
  margin: 0;
  font-weight: 700; /* Always bold */
  color: var(--primary); /* Always primary color */
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question.active::after {
  transform: rotate(45deg);
  content: '+';
}

.faq-answer {
  padding: 1.5rem;
  border-top: 1px solid rgb(0 0 0 / 5%);
  display: block;
}

.process-step-explanation p {
  margin-bottom: 0;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 0.5rem;
}

.process-step p {
  margin-bottom: 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Process Section */

.process {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  grid-template-rows: auto 32px auto; /* slightly increase middle row to accommodate smaller arrows */
  gap: 1rem 1.25rem; /* smaller vertical gap between rows */
  row-gap: 1rem !important; /* ensure vertical gap is enforced */
  max-width: 900px;
  margin: 2.5rem auto 0 auto;
}

/* Step grid placement: ensure steps are placed so 3 is bottom-right and 4 bottom-left */
.process-step.step-1 { grid-row: 1; grid-column: 1; }
.arrow-1-2 { grid-row: 1; grid-column: 2; display: flex; align-items: center; justify-content: center; }
.process-step.step-2 { grid-row: 1; grid-column: 3; }
.arrow-2-3 { grid-row: 2; grid-column: 3; display: flex; align-items: center; justify-content: center; }
.process-step.step-4 { grid-row: 3; grid-column: 1; }
.arrow-3-4 { grid-row: 3; grid-column: 2; display: flex; align-items: center; justify-content: center; }
.process-step.step-3 { grid-row: 3; grid-column: 3; }

/* Optional: style the arrows for better appearance */
.process-arrow span {
  font-size: 1.8rem; /* reduced arrow size to avoid increasing grid row height */
  display: inline-block;
  background: linear-gradient(to right, #639 0%, #00a79d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: bold;
  -webkit-user-select: none; /* Safari 3+, Safari on iOS 3+ */
  user-select: none;
  line-height: 1;
}
.process-arrow.arrow-3-4 span {
  transform: rotate(180deg);
}

/* Make vertical arrow smaller so it doesn't add extra vertical spacing */
.process-arrow.arrow-2-3 span {
  font-size: 1.6rem;
  line-height: 1;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.process-step-header {
  background-color: white;
  border-radius: 8px 8px 0 0;
  padding: 2rem 1.5rem 1rem 1.5rem;
  box-shadow: 0 5px 15px rgb(0 0 0 / 5%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.process-step-explanation {
  background: linear-gradient(to right, #00a79d 0%, #639 100%);
  border-radius: 0 0 8px 8px;
  padding: 1.2rem 1rem;
  color: #fff;
  box-shadow: 0 5px 15px rgb(0 0 0 / 5%);
  font-size: 1.25rem;
  line-height: 1.7;
}

/* Responsive: stack vertically on small screens */

@media (width <= 768px) {
  /* Mobile stacking for process-grid is handled in the consolidated mobile block later
     This placeholder keeps other mobile adjustments grouped here. */

  .process-step-header,
  .process-step-explanation {
    padding: 1.2rem;
    text-align: left;
    align-items: flex-start;
  }
}

/* Intermediate small-to-medium devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr; /* stacked, but with slightly wider gaps */
    gap: 1.25rem;
    width: 96%;
    margin: 2rem auto 0 auto;
    padding: 0 0.5rem;
  }

  .process-step-header,
  .process-step-explanation {
    padding: 1rem;
  }
}

/* Tablet-range tweaks: 769px down to 1024px (covers 768x1024 and similar) */
@media (min-width: 481px) and (max-width: 1024px) {
  /* Keep relaxed image inside its white box to avoid covering following text */
  #benefits .relaxed-container {
    overflow: hidden !important;
    max-height: 360px !important;
    padding: 0.5rem !important;
    margin: 0 auto 1rem auto !important;
  }

  #benefits .relaxed-container img {
    width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
    display: block !important;
    object-fit: cover !important; /* crop slightly if needed rather than overflow */
  }

  /* Center the stacked process-grid column on tablet sizes */
  .process-grid {
    justify-items: center !important;
    width: 94% !important;
    margin: 2rem auto !important;
    padding: 0 1rem !important;
  }

  .process-step {
    width: 100% !important;
    max-width: 720px !important; /* center column width */
    margin: 0 auto !important;
  }

  /* Consistent white-border cards for both images on tablet widths.
     Use a fixed padding (px) so the white border thickness stays the same
     regardless of viewport size. Center the cards by making them inline-block
     and centering their immediate container; keep paragraph text left-aligned. */

  /* Center image cards inside the workflow/benefits sections */
  #workflow .container,
  #benefits .container {
    text-align: center !important;
  }

  /* Keep paragraphs left-aligned so only the cards are centered */
  #workflow .container .hero-paragraph,
  #benefits .container .hero-paragraph,
  #workflow .container p,
  #benefits .container p {
    text-align: left !important;
  }

  /* Fixed 16px white border around cards */
  #workflow .tablet-container,
  #benefits .relaxed-container {
    display: inline-block !important; /* shrink-to-fit content */
    vertical-align: top !important;
    padding: 16px !important; /* consistent white border thickness */
    box-sizing: border-box !important;
    margin: 16px auto !important; /* center via parent text-align */
    background-color: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 8px rgb(0 0 0 / 15%) !important;
    border: 1px solid #dadada !important;
    max-width: 92% !important; /* allow responsiveness but keep padding visible */
  }

  /* Limit absolute max widths to keep layout sane on larger tablets */
  #workflow .tablet-container { max-width: 820px !important; }
  #benefits .relaxed-container { max-width: 720px !important; }

  /* Images fill the inner area but respect the fixed outer padding */
  #workflow .tablet-container img,
  #benefits .relaxed-container img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
  }
}

@media (width <= 768px) {
  /* process-grid mobile rules are consolidated later in this file; keep other responsive rules here */

  .hero-layout {
    flex-direction: column;
    z-index: 5;
  }

  .service-quick-links {
    flex: 0 0 225px;
    width: 100%;
    max-width: 225px;
    margin-top: 1rem;
  }

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

  .contact-info {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* Medium screens: 769px - 992px — two-column layout with tighter gaps */
@media (min-width: 769px) and (max-width: 992px) {
  .process-grid {
    grid-template-columns: 1fr 28px 1fr; /* keep arrows but tighter */
    grid-template-rows: auto 28px auto;
    gap: 1rem 1rem;
    row-gap: 1rem;
    max-width: 820px;
    margin: 2rem auto 0 auto;
  }

  .process-step {
    max-width: 100%;
  }

  .process-arrow span {
    font-size: 1.6rem;
  }
}

/* Contact Section */

.contact {
  padding: 3rem 0;
  position: relative;
  overflow: visible;
  background-color: #fff;
  z-index: 9;
  box-shadow: 0 5px 15px rgb(0 0 0 / 3%);
  border-top: 1px solid rgb(0 167 157 / 3%);
  background-image: linear-gradient(to bottom, #fff 0%, #00a79d 50%, #639 100%);
}

.contact-container {
  margin: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  border: 1px groove #cae4ff;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 90%);
  overflow: hidden;
}

.contact-info {
  padding: 1rem;
  background-color: var(--primary);
  color: white;
}

.contact-info h3 {
  margin-top: 15px;
  margin-bottom: 45px;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  position: relative;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 3px;
  background-color: #639;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
}

.contact-details {
  margin-top: 60px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  transition: var(--transition);
  font-size: 1.25rem;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-icon {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin: 5px;
  border: 2px solid #639;
  border-radius: 4px;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 5%);
}

.contact-form input:focus,
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(0 167 157 / 10%);
  outline: none;
}

.contact-form .btn-primary {
  color: #639;
  font-weight: bold;
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
}

.contact-bg.active {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Styling */

.footer-container {
  display: grid;
}

.footer-logo {
  margin-bottom: 1.5rem;
  max-width: 150px;
  display: block;
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  margin: 1rem 0;
  color: white;
  font-size: 0.9rem;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* ====================================
   CONSOLIDATED MEDIA QUERIES
   ==================================== */

/* Large screens (up to 1200px) */
@media (width <= 1200px) {
  .container {
    width: 85%;
  }
}

/* Medium screens (up to 992px) */
@media (width <= 992px) {
  .hero-content-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    z-index: 5;
  }

  .hero-image-container {
    grid-row: 1;
    max-width: 500px;
    margin: 0 auto 1rem;
    float: none;
    shape-outside: none;
    width: 100%;
  }

  .hero-text-with-image {
    display: block;
    flex-direction: column;
    align-items: center;
  }

  .content-sidebar {
    grid-row: 2;
    max-width: none;
  }

  .hero-bg {
    width: 70%;
  }

  .hero-bg.active {
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 1.2s 0.5s both;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
    display: inline-block;
  }

  /* Force stacking for image containers and ensure images resize on tablets */
  .tablet-container,
  .relaxed-container,
  .hero-image-container,
  .hero-image,
  #waiting-image,
  #default-image,
  #wires-image,
  .hero-image-rotator,
  .hero-image-rotator .hero-image {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 0 1rem 0 !important;
    box-sizing: border-box !important;
  }

  /* Make images scale cleanly to container width */
  .tablet-container img,
  .relaxed-container img,
  .hero-image-container img,
  .hero-image,
  .hero-image-rotator .hero-image,
  #waiting-image,
  #default-image,
  #wires-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: contain;
  }
}

/* Header and navigation changes */

@media (width <= 768px) {
  .header-container {
    position: relative;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 20px rgb(0 0 0 / 10%);
    padding: 0 2rem; /* keep horizontal padding while collapsed */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height 0.36s ease, opacity 0.28s ease, padding 0.28s ease, transform 0.28s ease;
    z-index: 200; /* appear above header pseudo-element and other content */
  }

  /* When JS toggles .active we expand the menu reliably across browsers */
  nav.active {
  max-height: 80vh; /* enough to show menu without covering entire screen */
  padding: 1.5rem 2rem; /* restore vertical padding when expanded */
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  }

  nav ul {
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0;
  }

  /* Mobile: render dropdowns as stacked solid panels (not absolute overlays)
     and animate them separately so submenu items don't appear simultaneously
     with the main menu text. Uses :focus-within and hover as CSS-only toggles. */
  nav ul li .dropdown-menu {
    position: relative; /* stack inside the flow */
    top: auto;
    left: auto;
    min-width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
    border-radius: 8px;
    padding: 0; /* we'll let the links handle padding */
    margin-top: 0.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.36s ease;
    pointer-events: none;
  }

  /* Style dropdown links as a solid list inside the panel */
  nav ul li .dropdown-menu a {
    padding: 0.9rem 1rem;
    display: block;
    color: var(--secondary);
    background: transparent;
  }

  /* When the dropdown parent receives focus-within or hover, reveal the panel */
  nav ul li.dropdown:focus-within .dropdown-menu,
  nav ul li.dropdown:hover .dropdown-menu,
  nav.active ul li.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    max-height: 420px; /* ample space for items */
    pointer-events: auto;
  }

  /* Allow our JS to explicitly open dropdowns via .open */
  nav ul li.dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    max-height: 420px;
    pointer-events: auto;
  }

  /* Slightly offset the dropdown panel so it reads as a separate block */
  nav ul li.dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  /* Staggered fade-in for mobile nav links */
  nav ul li {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  /* Staggered delays for the first 6 items (fallback beyond that repeats) */
  nav.active ul li:nth-child(1) { transition-delay: 0.06s; opacity: 1; transform: translateY(0); }
  nav.active ul li:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
  nav.active ul li:nth-child(3) { transition-delay: 0.18s; opacity: 1; transform: translateY(0); }
  nav.active ul li:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
  nav.active ul li:nth-child(5) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
  nav.active ul li:nth-child(6) { transition-delay: 0.36s; opacity: 1; transform: translateY(0); }

  /* Make mobile nav links readable on the white background */
  nav li a {
    color: var(--secondary);
    font-weight: 600;
  }

  nav li a:hover {
    color: var(--primary);
  }

  .mobile-toggle {
    display: block;
  }

  .container {
    width: 90%;
  }

  .hero-image-container {
    float: none;
    margin: 0 auto 20px;
    width: 100%;
  }

  .hero-text-with-image {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image.active {
    width: clamp(150px, 48%, 600px);
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
    opacity: 1;
    transition: opacity 0.6s ease;
    float: left;
    margin: 0 2rem 1.5rem 0;
  }

  .hero-text-with-image .content-section {
    padding: 0 1rem;
    text-align: center;
  }

  /* Content sections */
  .interactive-content {
    min-height: 550px;
  }

  #services-content-container {
    min-height: 1000px;
  }

  .service-description {
    padding: 1.5rem;
  }

  .service-description ul,
  .service-description ol {
    margin-left: 1rem;
  }

  /* Philosophy section adjustments */
  .philosophy-item {
    padding: 1.2rem;
  }

  .philosophy-list {
    gap: 1rem;
  }
}

/* Small screens (up to 576px) */

@media (width <= 576px) {
  .service-link-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
}

/* Extra small screens (up to 480px) */
@media (width <= 480px) {
  .hero-header {
    text-align: center;
  }

  .service-description {
    padding: 1rem;
  }
}

/* Very small screens (up to 360px) */
@media (width <= 360px) {
  .logo-text {
    display: none;
  }

  .logo img {
    margin: 0 auto;
  }
}

/* Additional mobile fixes: benefits image box and process stacking */
@media (max-width: 768px) {
  /* Ensure Benefits section doesn't clip image box shadows or bottom padding */
  #benefits {
    overflow: visible; /* allow inner white box shadows to show */
  }

  #benefits .relaxed-container {
    margin: 0 auto 1rem auto !important; /* center and give bottom breathing room */
    padding: 0.75rem !important; /* ensure equal padding on all sides */
    box-sizing: border-box;
    z-index: 3; /* lift above background shapes */
    max-width: 100%;
  }

  /* Process section: stack steps vertically and hide arrow elements to prevent wide layout */
  .process-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    gap: 1.25rem !important;
    max-width: 100% !important;
    width: 94% !important;
    margin: 2rem auto !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .process-step {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    display: block !important;
  }

  /* hide arrows between steps on small screens */
  .process-arrow {
    display: none !important;
  }

  .process-step-header,
  .process-step-explanation {
    padding: 1rem !important;
    text-align: left !important;
  }

  /* Hide anonymous spacer grid cells (empty <div></div>) when the grid stacks on mobile
     These are used as grid placeholders on desktop but become visible items when stacked. */
  .process-grid > div:not(.process-step):not(.process-arrow) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Center step number + title when process steps are stacked (mobile) */
@media (max-width: 768px) {
  .process-step-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 0 !important;
    text-align: center !important;
  }

  .process-step-header .step-number {
    display: inline-block !important;
    font-weight: 700 !important;
    min-width: auto !important;
    width: auto !important;
    line-height: 1 !important;
  }

  .process-step-header .step-number::after {
    content: ":";
    margin-left: 0.3rem;
    font-weight: 600;
  }

  .process-step-header .step-title {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
  }

  /* If the title is long, allow wrapping but keep centered alignment */
  .process-step-header .step-title,
  .process-step-header .step-number {
    white-space: normal !important;
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(600px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.slide-in-right {
  animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.accordion {
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 1rem 0;
  background: linear-gradient(to right, rgb(51 51 153 / 25%) 0%, rgb(255 255 255 / 100%) 100%);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.accordion-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  outline: none;
  transition: background 0.2s;
}

.accordion-toggle .icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1rem;
  background: #fff;
}

.accordion.open .accordion-content {
  max-height: 500px; /* or use JS to set scrollHeight for smoother animation */
  padding-top: 10px;
}

.accordion.open {
  box-shadow: 0 4px 16px rgb(0 0 0 / 8%);
}

/* Responsive adjustments */

@media (width <= 1100px) {
  .process-step {
    max-width: 48%; /* Two cards per row on medium screens */
  }
}

@media (width <= 600px) {
  .process-step {
    max-width: 100%; /* One card per row on small screens */
  }
}

footer {
  background-color: var(--dark);
  color: white;
  gap: 2rem;
}


/* Make sure this is NOT inside a media query */
.hero-text-with-image {
  display: block;
  position: relative;
  overflow: hidden;
}

/* Responsive: stack image above text on small screens */
@media (width <= 600px) {
  .hero-image.container {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
    text-align: center;
  }
}

/* Custom purple heading for Top Ten Signs section */
.purple-heading {
  color: #639; /* or "purple" */
}

.hero-image-rotator {
  aspect-ratio: 35 / 22;
  width: 100%;
  max-width: 600px; /* optional, to prevent upscaling */
  position: relative;
  height: 440px;
}

.hero-image-rotator .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 35 / 22;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
  z-index: 1;
}

.hero-image-rotator .hero-image.show {
  opacity: 1;
  z-index: 2;
}

.main-section .container-2 {
  width: 70%;
  position: relative;
  z-index: 5; /* Above the background shape */
}

.main-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 5rem 0;
}

.main-card {
  background: #fff;
  border: 1px groove #9b9a9a;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 75%);
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgb(0 0 0 / 10%);
}

/* Responsive: stack cards on small screens */
@media (width <= 900px) {
  .main-cards {
    grid-template-columns: 1fr;
  }
}

.main-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: rgb(102 51 153 / 50%); /* lighter shade of #663399 */
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
  opacity: 0;
  transform: translateX(-300px);
  transition: opacity 0.8s, transform 1s;
  pointer-events: none;
  z-index: 0;
}

.main-bg-alt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgb(102 51 153 / 25%) 0%,
    #fff 25%,
    #fff 75%,
    rgb(102 51 153 / 25%) 100%
  );
  z-index: 0;
}

.main-section {
  position: relative;
  overflow: hidden;
}

.main-bg.active {
  opacity: 1;
  transform: translateX(0);
  animation: slideInLeft 1s 0s both;
}

@keyframes slideInLeft {
  0% {
    opacity: 1;
    transform: translateX(-300px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 769px) {
  /* Drop-down menu styles (desktop/tablet) */
  nav ul li.dropdown {
    position: relative;
  }

  nav ul li .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: white;
    box-shadow: 0 8px 24px rgb(197 194 194 / 100%);
    border-radius: 0 0 8px 8px;
    z-index: 100;
    padding: 0.5rem 0;
  }

  /* stylelint-disable-next-line no-descending-specificity */
  nav ul li .dropdown-menu li {
    width: 100%;
  }

  /* stylelint-disable-next-line no-descending-specificity */
  nav ul li .dropdown-menu a {
    color: var(--secondary);
    padding: 0.75rem 1.5rem;
    display: block;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
  }
}

.hero-image-text-align {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  min-width: 0; /* allow flex children to shrink */
}

.hero-image-text-align span {
  display: block;
  margin-top: 0;
  padding-top: 0;
  line-height: 1.5;
  max-width: 100%; /* allow wrapping */
  height: auto;
  flex-shrink: 1; /* allow shrinking */
  overflow-wrap: break-word; /* optional, for long words/URLs */
}

.custom-span {
  color: #639;
  font-weight: bold;
  -webkit-user-select: none; /* Safari 3+, Safari on iOS 3+ */
  user-select: none;
}
