/*
Theme Name: Elite Senior Home (XaaS MSP Child)
Description: Custom theme styles for Elite Senior Home
Author: Michael / XaaS Techs
Version: 1.5.6
*/

/* =========================
   BASE / RESET
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2f1f1a;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #b76b3c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

/* =========================
   TYPOGRAPHY / HEADINGS
   ========================= */

h1,
h2,
h3,
h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #1f130f;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.4;
}

/* Small helper text */
.esh-small {
  font-size: 0.85rem;
  color: #6b5a50;
}

/* Eyebrow */
.esh-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a47a55;
  margin-bottom: 0.5rem;
}

/* =========================
   LAYOUT CONTAINERS
   ========================= */

.esh-section-inner,
.esh-header-inner,
.esh-footer-inner,
.esh-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Standard sections */
.esh-section {
  padding: 3.5rem 0;
  background-color: #ffffff;
}

.esh-section-light {
  padding: 3.5rem 0;
  background-color: #fdf5ef;
}

.esh-section-alt {
  padding: 3.5rem 0;
  background-color: #faf1e9;
}

.esh-section-cta {
  padding: 3.25rem 0 3.5rem;
  background: radial-gradient(circle at 0% 0%, #fdf0e3 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #fbe5cf 0, transparent 55%),
    #fff7ef;
  text-align: center;
}

/* Page-level wrappers */
.esh-page {
  padding-top: 0;
}

/* Services & location & about page content width (middle content) */
.esh-page-about .esh-section-inner,
.esh-page-service .esh-section-inner,
.esh-page-location .esh-section-inner {
  max-width: 880px;
}

/* =========================
   TOP BAR
   ========================= */

.esh-topbar {
  background: #1f130f;
  color: #f9fafb;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.12);
}

.esh-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.35rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.esh-topbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.esh-topbar-left span {
  opacity: 0.9;
}

.esh-topbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.esh-topbar-right a {
  color: #f9fafb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.95;
}

.esh-topbar-right a:hover {
  opacity: 1;
  text-decoration: underline;
}

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

.esh-hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at 0% 0%, #fdf0e3 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #fbe5cf 0, transparent 50%),
    linear-gradient(135deg, #fffaf5, #f7ede3);
}

.esh-hero-service {
  background: radial-gradient(circle at 0% 0%, #fdf1e7 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #fae2cf 0, transparent 50%),
    #fffaf5;
}

.esh-hero-inner {
  max-width: 1040px;
}

.esh-hero-subtitle {
  max-width: 640px;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #4b3a32;
}

/* Hero CTA – left on desktop, centered on mobile */
.esh-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

/* In prefooter CTA ONLY (bottom section), center the buttons on all screens */
.esh-section-cta .esh-hero-cta,
#esh-about-cta .esh-hero-cta {
  justify-content: center;
}

/* =========================
   HERO ANIMATION – FRONT PAGE ONLY
   ========================= */

body.home .esh-hero {
  overflow: hidden;
}

/* Soft glow background */
body.home .esh-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(183, 107, 60, 0.24),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(102, 70, 46, 0.22),
      transparent 55%
    );
  opacity: 0.45;
  animation: eshHeroGlow 26s ease-in-out infinite alternate;
}

/* Subtle ocean wave overlay */
body.home .esh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(
      to top,
      rgba(34, 110, 147, 0.18),
      rgba(183, 217, 235, 0.06),
      transparent 55%
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.28) 0px,
      rgba(255, 255, 255, 0.28) 2px,
      transparent 2px,
      transparent 10px
    );
  background-size: 120% 140%, 220px 80px;
  background-position: 0 100%, 0 0;
  mix-blend-mode: soft-light;
  animation: eshHeroWaves 32s linear infinite;
}

/* Foreground content entrance */
body.home .esh-hero-inner {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(14px);
  animation: eshHeroFadeIn 900ms ease-out 120ms forwards;
}

body.home .esh-hero-cta {
  position: relative;
  z-index: 1;
  animation: eshHeroCtaFloat 7s ease-in-out 900ms infinite;
}

body.home .esh-hero-cta .esh-btn {
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.home .esh-hero-cta .esh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Keyframes */
@keyframes eshHeroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  60% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes eshHeroGlow {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(3%, 4%, 0) scale(1.05);
    opacity: 0.55;
  }
  100% {
    transform: translate3d(-2%, 1%, 0) scale(1.02);
    opacity: 0.45;
  }
}

/* Soft, slow wave drift */
@keyframes eshHeroWaves {
  0% {
    background-position: 0 100%, 0 0;
  }
  50% {
    background-position: 8% 96%, 60px 30px;
  }
  100% {
    background-position: 0 100%, 120px 60px;
  }
}

@keyframes eshHeroCtaFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.home .esh-hero::before,
  body.home .esh-hero::after,
  body.home .esh-hero-inner,
  body.home .esh-hero-cta {
    animation: none !important;
    transform: none !important;
  }
}

/* =========================
   BUTTONS
   ========================= */

.esh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    transform 120ms ease;
}

.esh-btn-primary {
  background: linear-gradient(135deg, #b76b3c, #e29f63);
  border-color: #b76b3c;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(183, 107, 60, 0.35);
}

.esh-btn-primary:hover {
  background: linear-gradient(135deg, #a65f35, #d9945a);
  transform: translateY(-1px);
  text-decoration: none;
}

.esh-btn-outline {
  background-color: transparent;
  color: #b76b3c;
  border-color: rgba(183, 107, 60, 0.6);
  box-shadow: 0 6px 16px rgba(148, 115, 86, 0.18);
}

.esh-btn-outline:hover {
  background-color: #fff8f2;
  text-decoration: none;
}

.esh-btn-block {
  width: 100%;
}

/* Cookie-specific button */
.esh-btn-cookie {
  border-radius: 999px;
  border: none;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: #b76b3c;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.esh-btn-cookie:hover {
  background: #a65f35;
}

/* Small button for mega highlight */
.esh-btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* =========================
   GRID / COLUMNS
   ========================= */

.esh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 1.75rem;
}

.esh-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Step lists */
.esh-steps {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
}

.esh-steps li {
  margin-bottom: 0.75rem;
}

/* =========================
   HEADER / NAV
   ========================= */

.esh-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 115, 86, 0.15);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.esh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Logo */
.esh-site-branding img {
  max-height: 44px;
  width: auto;
  display: block;
}

/* Primary nav desktop */
.esh-primary-nav--desktop {
  flex: 1 1 auto;
}

.esh-primary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.esh-primary-menu > li > a,
.esh-menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  font-size: 0.96rem;
  font-weight: 500;
  color: #43302a;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 140ms ease;
}

.esh-primary-menu > li > a:hover,
.esh-menu-toggle:hover {
  color: #b76b3c;
}

/* Underline accent */
.esh-primary-menu > li > a::after,
.esh-menu-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b76b3c, #facc93);
  transition: width 150ms ease-out;
}

.esh-primary-menu > li:hover > a::after,
.esh-menu-item-has-children:hover > .esh-menu-toggle::after {
  width: 18px;
}

/* Header CTA area: search + button */
.esh-header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Search field in header */
.esh-header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.esh-header-search-input {
  width: 210px;
  max-width: 100%;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 115, 86, 0.35);
  background: #fdf8f3;
  font-size: 0.9rem;
  color: #43302a;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.esh-header-search-input::placeholder {
  color: #9a7f6a;
}

.esh-header-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #b76b3c;
  box-shadow: 0 0 0 1px rgba(183, 107, 60, 0.2);
}

.esh-header-cta-btn {
  padding-inline: 1.15rem;
  padding-block: 0.5rem;
  font-size: 0.9rem;
}

/* =========================
   BASIC DROPDOWN SUBMENU (NON-MEGA)
   ========================= */

.esh-menu-item-has-children {
  position: relative;
}

/* Default simple dropdown */
.esh-menu-item-has-children > .esh-submenu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.45rem;
  min-width: 220px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  list-style: none;
  padding: 0.5rem 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out,
    visibility 160ms ease-out;
  z-index: 60;
}

/* Show simple submenu on hover (only when NOT mega) */
.esh-menu-item-has-children:hover > .esh-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

/* If a mega panel is present, don’t use the simple dropdown */
.esh-menu-item-has-children.has-mega > .esh-submenu {
  display: none;
}

.esh-submenu li {
  margin: 0.1rem 0;
}

.esh-submenu a {
  display: block;
  padding: 0.35rem 0.25rem;
  font-size: 0.9rem;
  color: #43302a;
  text-decoration: none;
  border-radius: 6px;
}

.esh-submenu a:hover {
  background: #fff4ea;
  color: #b76b3c;
}

/* =========================
   MEGA MENU
   ========================= */

.esh-mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate3d(-50%, 10px, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out,
    visibility 160ms ease-out;
  z-index: 70;
  width: 100%;
}

/* Show mega on hover */
.esh-menu-item-has-children.has-mega:hover > .esh-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
}

/* Mega inner grid */
.esh-mega-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 1.75rem 1.6rem;
  border-radius: 16px;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(255, 247, 237, 0.9),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(252, 232, 214, 0.95),
      transparent 55%
    ),
    #ffffff;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.09),
    0 0 0 1px rgba(148, 115, 86, 0.08);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

/* Mega columns hover */
.esh-mega-col {
  transition:
    transform 130ms ease,
    box-shadow 130ms ease,
    background 130ms ease;
  border-radius: 10px;
  padding: 0.15rem 0.15rem;
}

.esh-mega-col:hover {
  transform: translateY(-2px);
  background: rgba(253, 242, 230, 0.7);
  box-shadow: 0 8px 20px rgba(148, 115, 86, 0.15);
}

.esh-mega-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a7f6a;
}

.esh-mega-col h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #432b25;
}

.esh-mega-col p {
  margin: 0.25rem 0 0.6rem;
  font-size: 0.88rem;
  color: #4b3a32;
}

/* Links inside mega panel */
.esh-mega-panel .esh-submenu {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.esh-mega-panel .esh-submenu li {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.esh-mega-panel .esh-submenu a {
  color: #43302a;
  text-decoration: none;
  padding: 0.15rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 4px;
  transition:
    color 130ms ease,
    background 130ms ease,
    transform 130ms ease;
}

.esh-mega-panel .esh-submenu a::after {
  content: "›";
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-2px);
  transition:
    opacity 130ms ease,
    transform 130ms ease;
}

.esh-mega-panel .esh-submenu a:hover {
  background: rgba(247, 231, 214, 0.7);
  color: #b76b3c;
  transform: translateX(1px);
}

.esh-mega-panel .esh-submenu a:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

/* Highlight column */
.esh-mega-col-highlight {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: linear-gradient(
      135deg,
      rgba(183, 107, 60, 0.08),
      rgba(234, 179, 107, 0.14)
    ),
    #fff9f4;
  box-shadow: 0 12px 25px rgba(148, 115, 86, 0.13);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =========================
   MOBILE NAV – FULLSCREEN
   ========================= */

.esh-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
  margin-left: auto;
}

.esh-nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.esh-nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f9fafb;
}

/* Fullscreen overlay */
.esh-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease-out,
    visibility 0.25s ease-out;
}

.esh-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.esh-nav-open {
  overflow: hidden;
}

.esh-mobile-menu-inner {
  max-width: 600px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 24px;
  color: #e5e7eb;
}

.esh-mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.esh-mobile-logo img {
  max-height: 36px;
  width: auto;
}

.esh-mobile-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.esh-mobile-close-line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.esh-mobile-close-line-1 {
  transform: rotate(45deg);
}

.esh-mobile-close-line-2 {
  transform: rotate(-45deg);
}

.esh-mobile-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 0;
}

.esh-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.esh-mobile-menu-list > li {
  margin-bottom: 10px;
}

.esh-mobile-menu-list a {
  display: block;
  padding: 10px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 6px;
}

.esh-mobile-menu-list a:hover {
  background: rgba(183, 107, 60, 0.32);
}

.esh-mobile-menu-heading {
  margin: 18px 0 6px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.esh-mobile-menu-bottom {
  flex: 0 0 auto;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.esh-mobile-meta {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

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

.esh-site-footer {
  padding: 1.75rem 0;
  background: #1f130f;
  color: #e5e7eb;
}

.esh-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.esh-footer-copy {
  font-size: 0.9rem;
}

.esh-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.esh-footer-links a {
  color: #f9fafb;
  text-decoration: none;
}

.esh-footer-links a:hover {
  text-decoration: underline;
}

/* =========================
   COOKIE BANNER
   ========================= */

.esh-cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 340px;
  z-index: 10000;
  background: #1f2933;
  color: #e5e7eb;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    visibility 200ms ease;
  font-size: 0.88rem;
}

.esh-cookie-banner--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.esh-cookie-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.esh-cookie-text {
  margin: 0;
  flex: 1;
}

.esh-cookie-text a {
  color: #facc93;
  text-decoration: underline;
}

/* =========================
   OVERLAYS (THANK-YOU + IDLE CTA)
   ========================= */

.esh-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.esh-overlay.active {
  display: flex;
}

.esh-overlay-box {
  max-width: 420px;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.6rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.38);
  text-align: left;
}

.esh-overlay-box h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* =========================
   CONTACT FORM – BOOTSTRAP-ESQUE
   ========================= */

.esh-contact-form {
  margin-top: 1.5rem;
}

.esh-contact-form .esh-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.esh-contact-form .esh-form-col {
  flex: 1 1 220px;
}

.esh-contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b3a32;
}

.esh-contact-form input[type="text"],
.esh-contact-form input[type="email"],
.esh-contact-form input[type="tel"],
.esh-contact-form select,
.esh-contact-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(148, 115, 86, 0.55);
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  color: #2f1f1a;
  background-color: #ffffff;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.esh-contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.esh-contact-form input::placeholder,
.esh-contact-form textarea::placeholder {
  color: #a68f80;
}

.esh-contact-form input:focus,
.esh-contact-form select:focus,
.esh-contact-form textarea:focus {
  outline: none;
  border-color: #b76b3c;
  box-shadow: 0 0 0 1px rgba(183, 107, 60, 0.2);
  background: #fffdf9;
}

/* Small helper / spam-protection notice */
.esh-contact-form .esh-field-help {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #857066;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
   ========================= */

@media (max-width: 960px) {
  /* Top bar stacks nicely */
  .esh-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Header: show burger, hide desktop nav+CTA */
  .esh-primary-nav--desktop,
  .esh-header-cta {
    display: none;
  }

  .esh-nav-toggle {
    display: inline-flex;
  }

  .esh-header-inner {
    gap: 1rem;
  }

  .esh-hero {
    padding: 2.75rem 0 2.5rem;
  }

  /* Hide mega panels on mobile (mobile menu handles links) */
  .esh-mega-panel {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .esh-hero-cta {
    justify-content: center;
  }

  .esh-section-inner,
  .esh-hero-inner,
  .esh-header-inner,
  .esh-footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .esh-grid,
  .esh-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .esh-cookie-banner {
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
}

@media (min-width: 961px) {
  .esh-nav-toggle {
    display: none;
  }

  .esh-mobile-menu {
    display: none;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  h1 {
    font-size: 1.85rem;
  }

  .esh-hero-subtitle {
    font-size: 0.98rem;
  }
}
/* =========================
   HERO – OCEAN WAVE ANIMATION
   ========================== */

.esh-hero-home {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #eef4ff 0%,
    #f5f6fb 35%,
    #fdf7f3 70%,
    #ffffff 100%
  );
}

/* Make sure hero content stays above the waves */
.esh-hero-home .esh-hero-inner {
  position: relative;
  z-index: 2;
  animation: eshHeroFloat 12s ease-in-out infinite;
}

/* Soft wave layers */
.esh-hero-home::before,
.esh-hero-home::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -60px;
  height: 220px;
  background-repeat: no-repeat;
  background-size: 200% 100%;
  opacity: 0.7;
  pointer-events: none;
}

/* Back wave – deeper, calmer color */
.esh-hero-home::before {
  background-image:
    radial-gradient(circle at 10% 40%, rgba(183, 107, 60, 0.12) 0, transparent 50%),
    radial-gradient(circle at 60% 0%, rgba(59, 130, 246, 0.16) 0, transparent 52%),
    radial-gradient(circle at 100% 40%, rgba(37, 99, 235, 0.12) 0, transparent 55%);
  animation: eshWaveBack 26s linear infinite;
}

/* Front wave – lighter, more “foam” feel */
.esh-hero-home::after {
  bottom: -80px;
  height: 260px;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9) 0, transparent 50%),
    radial-gradient(circle at 55% 10%, rgba(239, 246, 255, 0.95) 0, transparent 55%),
    radial-gradient(circle at 90% 30%, rgba(255, 255, 255, 0.9) 0, transparent 50%);
  animation: eshWaveFront 20s linear infinite;
  opacity: 0.9;
}

/* Gently floating hero content */
@keyframes eshHeroFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* Slow horizontal drift for the back wave */
@keyframes eshWaveBack {
  0%   { background-position: 0% 100%; }
  50%  { background-position: 50% 100%; }
  100% { background-position: 0% 100%; }
}

/* Slightly faster drift for the front wave */
@keyframes eshWaveFront {
  0%   { background-position: 100% 100%; }
  50%  { background-position: 40% 100%; }
  100% { background-position: 100% 100%; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .esh-hero-home::before,
  .esh-hero-home::after,
  .esh-hero-home .esh-hero-inner {
    animation: none !important;
  }
}

/* =========================================
   MEGA MENU FIX – DESKTOP ONLY
   ========================================= */
@media (min-width: 961px) {

  /* Let the mega panel anchor to the whole header instead of just the <li> */
  .esh-site-header {
    position: relative;
    z-index: 50;
  }

  .esh-menu-item-has-children.has-mega {
    position: static; /* prevent weird clipping inside flex */
  }

  /* Reset mega panel positioning to be full-width under header */
  .esh-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    transform: translateY(10px); /* small drop */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 160ms ease-out,
      transform 160ms ease-out,
      visibility 160ms ease-out;
    z-index: 80; /* above header */
  }

  /* Show on hover */
  .esh-menu-item-has-children.has-mega:hover > .esh-mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Make sure the inner grid is centered & constrained */
  .esh-mega-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem 1.75rem 1.6rem;
  }

  /* Make sure the simple dropdown is not fighting the mega version */
  .esh-menu-item-has-children.has-mega > .esh-submenu {
    display: none !important;
  }
}

/* Mobile: ensure mega is fully hidden (use mobile menu instead) */
@media (max-width: 960px) {
  .esh-mega-panel {
    display: none !important;
  }
}
