/* 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;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

.z-container {
  position: relative;
  z-index: 5;
  max-width: 55%;
}

/* 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, 2vw, 1.1rem);
}

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

ol {

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

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

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


.italic {
  font-style: italic;
  display: inline;
}

hr.embossed1 {
  border: none;
  height: 3px;
  background: linear-gradient(
    to right,
    #663399 0%,
    #00a79d 100%
  );
  box-shadow: 0 1px 0 #bbb, 0 -1px 0 #fff;
  border-radius: 2px;
  width: 70%;
  margin: auto;
  margin-top: 2rem;
}

header {
  padding: 1.5rem 0;
  z-index: 100;
  background: linear-gradient(to right, #00a79d 0%, #639 100%);
  box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
  animation: fadeInDown 0.8s both;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.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;
  font-size: clamp(2.5rem, 3vw, 1.5rem);
}

.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;
}

/* =========================
   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;
}

#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;
}

.tablet-container {
  float: left;
  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-width: 300px; /* increased ~25% from 400px */
  border-radius: 8px;
  display: block;
}

.welcomish-container {
  float: right;
  max-height: 100%;
  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;
}

#welcomish-image {
  width: 500px;
  height: auto;
  display: block;
  border-radius: 8px;
  opacity: 1;
  transition: opacity 0.6s ease;
  float: right;
  margin: 0 0 0 2rem;
}

#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);
  }
}

.swing-wrapper {
  overflow: hidden; /* ensures the float doesn't break layout */
}

.swing-sign {
  float: left;
  width: 350px; /* adjust as needed */
  max-width: 100%;
  margin: 0 1rem 1rem 0;
  transform-origin: top center;
  animation: swing 4s ease-in-out infinite;
}

@keyframes swing {
  0%   { transform: rotate(-5deg); }
  50%  { transform: rotate(5deg); }
  100% { transform: rotate(-5deg); }
}


.doormat-wrapper {
  overflow: hidden; /* ensures the float doesn't break layout */
  width: 80%;
  margin: 0 auto;           /* centers the block horizontally */
  max-width: 1200px;       /* optional: prevent it getting too wide on large screens */
  box-sizing: border-box;  /* optional: keep padding inside width */
}

.too-much-image-container {
  float: right;
  max-height: 480px;
  overflow: visible;
  border-radius: 12px;
  margin: 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;
}

.too-much-image-container img {
  width: auto;
  height: auto;
  max-height: 300px;
  border-radius: 8px;
  display: block;
}


/* Doormat figure + caption styling */
.doormat-figure {
  float: right;                    /* image on the right, text flows left */
  width: min(40%, 320px);          /* responsive width: 40% but no wider than 320px */
  max-width: 100%;
  margin: 0 0 1.5rem 1.5rem;       /* spacing: top 0, right 0, bottom 1.5rem, left 1.5rem */
  text-align: center;              /* centers the figcaption text inside the figure */
  display: block;
}



.doormat-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);                  /* ensures the image is above the background */
}

.doormat-caption {
  display: block;
  margin-top: 0.5rem;              /* space between image and caption */
  color: #663399;                  /* purple theme color */
  font-weight: 700;                 /* bold caption */
  font-size: 0.95rem;
  line-height: 1.3;
  max-width: 450px;
}

/* Clearfix element (if needed after the list) */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Responsive: on small screens remove float and center the figure */
@media (max-width: 768px) {
  .doormat-figure {
    float: none;
    width: 100%;
    max-width: 420px;              /* limit size on small devices */
    margin: 1rem auto 1.5rem;      /* center the figure */
    text-align: center;
  }
}

.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;
}

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

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

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

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

h3.main-title-smallest {
  font-size: clamp(1.2rem, 2.2vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: #000;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
    margin: 0 auto 1rem;          /* centers the block and gives bottom spacing */
  max-width: 750px;
}


#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, 4vw, 1.5rem);
}

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

p.hero-thanks {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 4vw, 1.5rem);
  text-align: center;
}

/* Align image and text at the top, but push text down a bit */
.hero-paragraph {
  display: block;
  align-items: flex-start;
  gap: 1.5rem; /* Adjust spacing between image and text as needed */
}

.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 */
}

/* =========================================================
   Checklist (services)
   ========================================================= */
.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  background: var(--surface);
  border: 1px solid #e8e6ef;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 0.75rem 0.75rem 0.75rem 0.9rem;
}

.checklist__title {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.checklist__desc {
  display: block;
  color: var(--muted-ink);
  margin-top: 0.25rem;
}

/* Image container styles */
.spoon-kid-image-container {
  float: left;
  max-height: 270px;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 20px 10px 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;
}

/* Web Design Philosophy Section Styling */

.spoon-kid-image-container img {
  width: auto;
  height: auto;
  max-height: 220px;
  border-radius: 8px;
  display: block;
}

/* Duplicate selector removed to resolve no-duplicate-selectors and no-descending-specificity */

.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: #000;
  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-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;

  /* Reserve space on the right for the floated figure to avoid overlap.
     Matches .doormat-figure width + its left margin (1.5rem) */
  margin-right: calc(min(40%, 320px) + 1.5rem);
}

/* Style only the list marker (the number) for .countdown lists */
ol.countdown li::marker {
  color: #663399;   /* purple from site theme */
  font-weight: 700; /* bold */
  /* optional: tweak size to match design */
  /* font-size: 1.05rem; */
}

.section-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 1.5rem 0 1.5rem;
  overflow: hidden;
}

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

/* Tools Section */

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

/* 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;
}

.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 {
  border-top: 5px solid #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: 220px 800px; /* Both columns fixed width */
  grid-template-rows: repeat(4, auto);
  gap: 1.5rem 2.5rem; /* row gap, column gap */
  margin-top: 3rem;
  max-width: 700px; /* 220 + 440 + gap */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.process-step-header {
  background-color: white;
  border-radius: 8px;
  padding: 2rem 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: 8px;
  padding: 1.2rem 1rem;
  max-width: 50%;
  width: 50%;
  box-shadow: 0 5px 15px rgb(0 0 0 / 5%);
  display: flex;
  align-items: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.4rem;
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

/* Responsive: stack vertically on small screens */

@media (width <= 768px) {
  .process-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 1.5rem;
  }

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

@media (width <= 768px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .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;
  }
}

/* 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: flex;
  flex-direction: column;
  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: #663399;
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.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: center;
  margin-bottom: 0;
  font-size: 1.25rem;
  gap: 0.5rem;
  min-width: 180px;
  justify-content: center;
}

.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: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #333;
}

/* Make inputs/textarea match site style (existing .contact-form inputs can be used) */
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.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:focus {
  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-feedback {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}
.contact-feedback.success { background: #e6fffa; color: #00664d; border: 1px solid #00a79d; }
.contact-feedback.error   { background: #fff1f0; color: #641212; border: 1px solid #ff6b6b; }

.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;
  }
}

/* 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: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }

  nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

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

  .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;
  }
}

@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-bottom: 1rem;
}

.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;
}

.footer-logo-text {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-links ul {
  list-style: none;
  margin-left: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
  transform: translateX(-10px);
  opacity: 0.7;
  transition: var(--transition);
}

/* Removed duplicate selector */

.footer-links li:hover {
  transform: translateX(0);
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

/* 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);
  }
}

.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 */
}

/* ---------------------------
   Shared image container styles (copied from about.css)
   Used by doormat-figure and too-much-image-container
   --------------------------- */
.doormat-figure,
.too-much-image-container {
  float: right;
  display: block;
  margin: 2rem 0 2rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgb(0 0 0 / 8%);
  padding: 1.5rem;
  max-width: 540px;
  width: fit-content;
  text-align: center;
}

.doormat-figure img,
.too-much-image-container img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Figcaption / caption styling — center and match purple */
.doormat-figure .doormat-caption,
.too-much-image-container .doormat-caption,
.too-much-image-container figcaption {
  margin-top: 1rem;
  color: #639;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* Ensure the specific welcome image inside a figure/container scales properly
   and doesn't force a fixed width or its own float that breaks wrapping. */
.doormat-figure img#welcomish-image,
.too-much-image-container img#welcomish-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  float: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgb(0 0 0 / 10%);
}

/* Center the image inside the figure */



/* Responsive: stack the figure above on small screens */
@media (max-width: 768px) {
  .doormat-figure,
  .too-much-image-container {
    float: none;
    width: 100%;
    margin: 1rem auto 1.5rem;
  }

  /* If you used the ol margin-right trick, remove it on small screens */
  ol.countdown {
    margin-right: 0;
  }
}


/* My Carousel - consolidated and cleaned
   - removes colored/purple backgrounds from cards
   - ensures images fill the card and center visually
   - single authoritative block for layout and responsive behavior
*/

:root {
  --carousel-spacing: 1rem;
  --carousel-radius: 8px;
  --carousel-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.my-carousel-container {
  position: relative;
  width: 100%;
  display: flex;                 /* horizontally center the inner wrapper */
  align-items: center;
  justify-content: center;
  padding: calc(var(--carousel-spacing) * 1.25) 0;
  margin-top: 4rem;
  background: transparent;
  border-radius: var(--carousel-radius);
  box-sizing: border-box;
  height: 400px;       /* fixed visual height */
  max-height: 400px;   /* cap at 400px */
  overflow: hidden !important; /* clip overflow to create cutoff effect */
}

/* On very large displays (e.g., 1920x1080 and above) increase the min-height so the
   scaled center card has room and no clipping occurs. */
@media (min-width: 1400px) {
  /* keep the carousel visually capped at 400px even on wide displays */
  .my-carousel-container { height: 400px !important; max-height: 400px !important; }
  .section-main:has(.my-carousel-container), .section-main.carousel-expanded { /* ensure section stays tall but allow clipping at the carousel */
    min-height: 420px !important;
  }
}

.my-carousel-container .my-carousel-cards-wrapper {
  display: flex;
  gap: var(--carousel-spacing);
  align-items: center; /* vertical centering so scale grows symmetrically */
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  justify-content: center; /* keep centered alignment so visible cards appear symmetric */
  scroll-snap-type: x mandatory;
  padding: 0 calc(var(--carousel-spacing));
}

/* Constrain carousel width on very large viewports so the layout remains a 3-up
   (left, center, right) composition. This prevents more cards from sitting in the
   visible area at once on ultra-wide monitors. It remains responsive and centers
   within the parent container. */
.my-carousel-container {
  max-width: 1000px; /* reduced to ensure 3-up layout on wide screens */
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1400px) {
  .my-carousel-container { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
}

.my-carousel-container .my-carousel-card {
  /* transparent background so only the image is visible (removes purple card backgrounds) */
  background: transparent !important;
  border-radius: var(--carousel-radius);
  padding: 0 !important; /* images sit edge-to-edge inside the card */
  box-shadow: none !important; /* avoid colored shadows behind images */
  /* fixed basis so exactly three cards fit at the intended container width */
  --card-basis: calc((100% - (var(--carousel-spacing) * 2)) / 3);
  flex: 0 0 var(--card-basis);
  min-width: var(--card-basis) !important;
  max-width: var(--card-basis) !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 220ms cubic-bezier(.2,.9,.3,1);
  scroll-snap-align: center; /* ensure each card snaps to the center of the viewport */
}

/* Make non-centered cards slightly reduced so the center card reads as the clear focal point. */
.my-carousel-container .my-carousel-card {
  /* Cards are fixed to fill the carousel height; no scaling so they read as cards not columns */
  transform: none !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  box-shadow: none !important; /* remove all shadowing */
}

.my-carousel-container > .my-carousel-cards-wrapper > .my-carousel-card.my-carousel-card-center {
  /* Emphasize center image by making the image inside it larger; the container clips the overflow */
  transform: none !important;
  z-index: 20 !important;
  box-shadow: none !important;
}

/* Responsive overrides for medium and small screens to keep the visual hierarchy */
@media (max-width: 900px) {
  /* On medium screens keep a strong but smaller visual difference */
  .my-carousel-container .my-carousel-card { transform: none !important; height: 100% !important; min-height: 100% !important; max-height: 100% !important; }
  .my-carousel-container > .my-carousel-cards-wrapper > .my-carousel-card.my-carousel-card-center { transform: none !important; z-index: 20 !important; }
}

@media (max-width: 520px) {
  /* On small screens reduce the visual multiplier to avoid overflow */
  .my-carousel-container .my-carousel-card { transform: none !important; height: auto; min-height: 240px; max-height: none; }
  .my-carousel-container > .my-carousel-cards-wrapper > .my-carousel-card.my-carousel-card-center { transform: none !important; z-index: 20 !important; }
}

/* Hide scrollbars visually while preserving horizontal scrolling (keeps autoplay/scrollBy working). */
.my-carousel-container .my-carousel-cards-wrapper {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.my-carousel-container .my-carousel-cards-wrapper::-webkit-scrollbar {
  height: 0; /* WebKit: hide horizontal scrollbar */
  display: none;
}

.my-carousel-container .my-carousel-card img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  display: block !important;
  object-fit: contain !important; /* contain so side images appear smaller and centered */
  object-position: center center !important;
  border-radius: calc(var(--carousel-radius) / 1.75) !important; /* subtle rounding on images */
  align-self: center; /* vertically center image inside card */
}

.my-carousel-container > .my-carousel-cards-wrapper > .my-carousel-card.my-carousel-card-center {
  transform: scale(1.35) !important; /* keep emphasis but remove shadow entirely per request */
  z-index: 30 !important; /* keep above siblings */
  /* remove any shadow for a flat look */
  box-shadow: none !important;
  /* ensure the center card can overflow without being clipped by the card box */
  overflow: visible !important;
}

/* Additional targeted override: remove any long, wide blur on center image elements that can create side fades */
.my-carousel-container > .my-carousel-cards-wrapper > .my-carousel-card.my-carousel-card-center img {
  box-shadow: none !important;
  filter: none !important;
}

/* Subtle 1px border around carousel images so white images read against the page
   - use border-box to include border in sizing and avoid layout shifts
   - color is a very light neutral; change to #e6e6e6 or rgba if you prefer
*/
.my-carousel-container .my-carousel-card img {
  box-sizing: border-box !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 6px !important;
  background-clip: padding-box !important;
}

.my-carousel-clone { opacity: 0.75 !important; }

/* Responsive: two-up on medium screens */
@media (max-width: 900px) {
  .my-carousel-container .my-carousel-card { --card-basis: calc((100% - var(--carousel-spacing)) / 2); flex: 0 0 var(--card-basis) !important; min-width: var(--card-basis) !important; max-width: var(--card-basis) !important; }
  .my-carousel-container > .my-carousel-cards-wrapper > .my-carousel-card.my-carousel-card-center { transform: scale(1.28) !important; }
  .my-carousel-container { padding: calc(var(--carousel-spacing) * 0.75) 0; min-height: 520px; }
}

@media (max-width: 520px) {
  .my-carousel-container .my-carousel-card { --card-basis: calc(100% - var(--carousel-spacing)); flex: 0 0 var(--card-basis) !important; min-width: var(--card-basis) !important; max-width: var(--card-basis) !important; }
  .my-carousel-container > .my-carousel-cards-wrapper > .my-carousel-card.my-carousel-card-center { transform: scale(1.12) !important; }
  .my-carousel-container { padding: calc(var(--carousel-spacing) * 0.5) 0; min-height: 360px; }
}

/* Accessibility and small niceties */
.my-carousel-container .my-carousel-card:focus { outline: 3px solid rgba(0,167,157,0.12); }

/* Allow page sections that contain the carousel to expand so scaled center card isn't clipped.
   Use :has() where supported, plus a .carousel-expanded fallback class applied via JS.
*/
.section-main:has(.my-carousel-container) {
  overflow: visible !important;
  min-height: calc(var(--carousel-min-height, 820px));
}

.section-main.carousel-expanded {
  overflow: visible !important;
  min-height: calc(var(--carousel-min-height, 820px));
}

/* Additional strong overrides to eliminate unintended clipping (max-height/overflow) coming
   from other site-wide rules. These are deliberately specific and use !important so they
   reliably apply when the carousel is present in the section. */
.section-main.carousel-expanded,
.section-main:has(.my-carousel-container) {
  max-height: none !important;
}

/* Ensure the immediate container elements don't cap height or hide overflow */
.section-main.carousel-expanded > .container,
.section-main:has(.my-carousel-container) > .container,
.section-main.carousel-expanded > .container-2,
.section-main:has(.my-carousel-container) > .container-2 {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* Make sure the carousel container and internal wrapper don't impose height caps */
.my-carousel-container {
  /* allow vertical overflow to be visible so the scaled center card isn't clipped */
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

.my-carousel-container .my-carousel-cards-wrapper {
  /* keep horizontal scrolling enabled so autoplay/scrolling works */
  overflow-x: auto !important;
  overflow-y: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* Cards and images must not be capped in height so transform:scale shows fully */
.my-carousel-container .my-carousel-card,
.my-carousel-container .my-carousel-card img {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* When the center card scales, ensure it can overflow and sit above siblings */
.my-carousel-container > .my-carousel-cards-wrapper > .my-carousel-card.my-carousel-card-center {
  overflow: visible !important;
}

/* ------------------------------------------------------------------
   FINAL AUTHORITATIVE CAROUSEL OVERRIDES (width-based)
   - Slightly taller visual height to avoid top/bottom clipping
   - Increased horizontal spacing so side cards have more visible room
   - Reduced vertical padding so images can use more of the available height
   - Images constrained by max-height (calculated) to prevent accidental clipping
   ------------------------------------------------------------------ */
.my-carousel-container {
  --carousel-spacing: 1.5rem; /* slightly larger gap between cards */
  padding: 0.4rem 0 !important; /* reduce vertical padding so images can breathe */
  height: 480px !important; /* slightly taller to reduce top/bottom clipping further */
  max-height: 560px !important; /* soft cap for very large displays */
  overflow: hidden !important; /* keep the clipped visual we want, but allow images to fit inside */
  position: relative !important;
  max-width: 1120px !important; /* allow a touch more horizontal room for wider center card */
}

.my-carousel-container .my-carousel-cards-wrapper {
  height: 100% !important;
  display: flex !important;
  align-items: center !important; /* vertically center images */
  overflow-x: auto !important; /* keep horizontal scrolling for autoplay */
  overflow-y: hidden !important;
  gap: var(--carousel-spacing) !important;
  padding: 0 !important; /* remove internal vertical padding that reduces usable height */
}


.my-carousel-container .my-carousel-card {
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  transform: none !important;
  box-shadow: none !important; /* ensure no shadow on side cards */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex: 0 0 22% !important; /* side cards slightly wider to improve visibility */
}

/* Center card remains dominant at 60% width but we leave a touch more horizontal gap so
   side cards are less visually obscured by the center card. */
.my-carousel-container .my-carousel-card.my-carousel-card-center {
  flex: 0 0 56% !important; /* slightly reduce center dominance */
  z-index: 20 !important;
  /* keep optional elevation only on center card */
  box-shadow: none !important; /* remove center shadow as well to satisfy request */
}

/* Images: use max-height relative to card/container so they never overflow the visual area.
   The calc provides a small vertical breathing room (8-16px) so images aren't clipped. */
.my-carousel-container .my-carousel-card img {
  width: auto !important;
  height: auto !important;
  max-height: calc(100% - 12px) !important; /* leaves a small gap above/below */
  max-width: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: calc(var(--carousel-radius) / 1.75) !important;
  box-shadow: none !important;
}

/* Center image can be slightly larger vertically but still constrained to avoid clipping */
.my-carousel-container .my-carousel-card.my-carousel-card-center img {
  max-height: calc(100% - 8px) !important;
}

/* Hide scrollbars visually while preserving horizontal scrolling */
.my-carousel-container .my-carousel-cards-wrapper {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.my-carousel-container .my-carousel-cards-wrapper::-webkit-scrollbar {
  height: 0 !important;
  display: none !important;
}

/* Raise the section minimum so the carousel has room on tall displays and doesn't get clipped
   by section-level max-heights from other site rules. */
.section-main:has(.my-carousel-container),
.section-main.carousel-expanded {
  overflow: visible !important;
  min-height: 520px !important;
}

/* Strong override: remove any remaining shadows or visual filters applied by
   broader site rules to elements inside the carousel. This targets all
   descendants and pseudo-elements so no box-shadow or gradient overlays remain. */
.my-carousel-container,
.my-carousel-container *,
.my-carousel-container *::before,
.my-carousel-container *::after {
  box-shadow: none !important;
  filter: none !important;
  background-image: none !important;
}

/* Ensure images themselves carry no shadow or drop-shadow filters */
.my-carousel-container img {
  box-shadow: none !important;
  -webkit-filter: none !important;
  filter: none !important;
}

/* Remove any gradient/overlay pseudo-elements applied at the section or container
   level when the carousel is present. Many site styles add ::before/::after
   gradients to sections; scope the override with :has() and the .carousel-expanded
   fallback so we don't globally remove those decorations elsewhere. */
.section-main:has(.my-carousel-container)::before,
.section-main:has(.my-carousel-container)::after,
.section-main.carousel-expanded::before,
.section-main.carousel-expanded::after {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
  display: none !important;
  pointer-events: none !important;
}

/* Also remove container-level pseudo-elements inside the section that might create
   side fades. These target the common wrapper elements used across the site. */
.section-main:has(.my-carousel-container) .container::before,
.section-main:has(.my-carousel-container) .container::after,
.section-main:has(.my-carousel-container) .container-2::before,
.section-main:has(.my-carousel-container) .container-2::after,
.section-main.carousel-expanded .container::before,
.section-main.carousel-expanded .container::after,
.section-main.carousel-expanded .container-2::before,
.section-main.carousel-expanded .container-2::after {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
  display: none !important;
  pointer-events: none !important;
}

/* Ensure the carousel sits above any decorative overlays and disable blending */
.my-carousel-container {
  position: relative !important;
  z-index: 99999 !important; /* sit on top of other section decorations */
  mix-blend-mode: normal !important;
}

.section-main:has(.my-carousel-container) > *:not(.my-carousel-container),
.section-main.carousel-expanded > *:not(.my-carousel-container) {
  z-index: 0 !important; /* lower siblings so carousel is visually dominant */
  mix-blend-mode: normal !important;
}

/* Hide any pseudo-elements directly on carousel cards or wrapper that might create fades */
.my-carousel-container::before,
.my-carousel-container::after,
.my-carousel-container .my-carousel-card::before,
.my-carousel-container .my-carousel-card::after,
.my-carousel-container .my-carousel-cards-wrapper::before,
.my-carousel-container .my-carousel-cards-wrapper::after {
  display: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
}



