.creativity-bg {
  background-image: url("../images/creativity/background.svg");
}
.footer-bg {
  background-image: url("../images/footer-shape-bg.svg");
}
.banner-bg {
  background-image: url("../images/banner-bg.svg");
}
.help-bg {
  background-image: url("../images/help-bg.svg");
}
.help-card-bg {
  background-image: url("../images/help-card-shape.svg");
}

/* Sticky header compact mode - Optimized for smooth animations */
.site-header {
  will-change: box-shadow;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: layout style;
  isolation: isolate;
  overflow: visible; /* Allow dropdown menus to overflow */
}

.site-header__inner {
  will-change: padding;
  transition:
    padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: layout style;
  overflow: visible; /* Allow dropdown menus to overflow */
  position: relative; /* Ensure proper stacking context */
}

.site-header__logo {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  display: flex;
  align-items: center;
  min-height: 60px;
  transition: min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__logo img {
  will-change: max-height;
  transition:
    max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  transform: translateZ(0);
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.site-header.is-sticky .site-header__logo {
  min-height: 40px;
}

.nav-menu {
  will-change: gap;
  transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.primary-button {
  will-change: padding, font-size;
  transition:
    padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.site-header.is-sticky {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-header.is-sticky .site-header__inner {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.site-header.is-sticky .site-header__logo img {
  max-height: 40px !important;
  height: auto !important;
}

.site-header.is-sticky .nav-menu {
  gap: 1rem !important;
}

.site-header.is-sticky .primary-button {
  padding: 0.625rem 1.5rem !important;
  font-size: 0.875rem !important;
}

.site-header,
.site-header__inner,
.site-header__logo img,
.site-header .nav-menu,
.site-header .nav-menu li,
.site-header .nav-menu li a,
.site-header .primary-button {
  will-change: padding, transform, box-shadow, font-size;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* Mobile Menu Overlay - Full Screen Modal */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  z-index: 100;
  background-color: rgba(255, 255, 255, 1);
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}

.mobile-menu-overlay:not(.hidden) {
  visibility: visible;
}

.mobile-menu-overlay.hidden {
  visibility: hidden;
}

.mobile-menu-overlay.opacity-0 {
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-overlay.opacity-100 {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content {
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-menu-content nav {
  flex: 1;
}

.mobile-menu-content .nav-menu li {
  margin-bottom: 0;
}

.mobile-menu-content .nav-menu li a {
  padding: 0.75rem 0;
  display: block;
  font-size: 1rem;
  line-height: 1.5;
}

.mobile-menu-content .nav-menu {
  gap: 0.75rem !important;
}

.mobile-menu-content .nav-menu > li {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
}

.mobile-menu-content .nav-menu > li > a {
  padding: 0.875rem 1rem;
  font-weight: 500;
  color: #0f172a;
}

.mobile-menu-content .nav-menu .has-submenu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-menu-content .nav-menu .has-submenu > a span[aria-hidden="true"] {
  margin-left: auto;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f766e;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mobile-menu-content
  .nav-menu
  .has-submenu.submenu-open
  > a
  span[aria-hidden="true"] {
  transform: rotate(180deg);
}

.mobile-menu-content .nav-menu .has-submenu .sub-menu {
  margin: 0 0.75rem 0.75rem;
  padding: 0.5rem;
  border-left: 0;
  border-radius: 10px;
  background: #f8fafc;
}

.mobile-menu-content .nav-menu .has-submenu .sub-menu a {
  padding: 0.65rem 0.75rem;
  margin: 0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #334155;
}

.mobile-menu-content .nav-menu .has-submenu .sub-menu a:hover {
  color: #0f766e;
  background: #e2e8f0;
}

.mobile-menu-content > .container:last-child {
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

/* Desktop nav dropdown: keep icon + text on one row */
.site-header .nav-menu .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .nav-menu .sub-menu li a svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__inner,
  .site-header__logo img,
  .site-header .nav-menu,
  .site-header .nav-menu li,
  .site-header .nav-menu li a,
  .site-header .primary-button {
    transition: none;
  }
}

/* Contact Form 7 - Custom Styling with Prefix */

/* Form wrapper */
.contact-form-wrapper .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* space-y-5 = 20px */
}

/* Remove default CF7 paragraph margins */
.contact-form-wrapper .wpcf7-form p {
  margin: 0;
}

/* Label styling */
.contact-form-wrapper .wpcf7 label {
  display: block;
  margin-bottom: 0.5rem; /* mb-2 = 8px */
  font-size: 0.875rem; /* text-sm = 14px */
  font-weight: 300; /* font-light */
  color: rgba(0, 0, 0, 0.5); /* text-black/50 */
}

/* Optional text in teal */
.contact-form-wrapper .wpcf7 label .text-teal {
  color: #14b8a6; /* teal color */
}

/* Input, Select, Textarea base styling */
.contact-form-wrapper .wpcf7 input[type="text"],
.contact-form-wrapper .wpcf7 input[type="email"],
.contact-form-wrapper .wpcf7 select,
.contact-form-wrapper .wpcf7 textarea {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  padding: 1rem 1.25rem; /* py-4 px-5 = 16px 20px */
  font-size: 1rem; /* text-base = 16px */
  color: #000000;
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.04);
  outline: none;
  transition: border-color 0.2s ease;
}

/* Select specific styling */
.contact-form-wrapper .wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 3rem; /* pr-12 = 48px */
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5' stroke='rgba(0,0,0,0.4)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center; /* right-5 = 20px */
  background-size: 1rem; /* 16px */
}

/* Textarea specific styling */
.contact-form-wrapper .wpcf7 textarea {
  height: 9rem; /* h-36 = 144px */
  resize: none;
}

/* Focus state */
.contact-form-wrapper .wpcf7 input[type="text"]:focus,
.contact-form-wrapper .wpcf7 input[type="email"]:focus,
.contact-form-wrapper .wpcf7 select:focus,
.contact-form-wrapper .wpcf7 textarea:focus {
  border-color: #14b8a6; /* focus:border-teal */
}

/* Placeholder styling */
.contact-form-wrapper .wpcf7 input::placeholder,
.contact-form-wrapper .wpcf7 textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

/* Submit button */
.contact-form-wrapper .wpcf7 .primary-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #14b8a6; /* teal */
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 12px 30px rgba(20, 184, 166, 0.2);
}

.contact-form-wrapper .wpcf7 .primary-button:hover {
  background-color: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0px 16px 40px rgba(20, 184, 166, 0.3);
}

/* Remove CF7 validation error styles */
.contact-form-wrapper .wpcf7-form .wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.contact-form-wrapper .wpcf7-form .wpcf7-not-valid {
  border-color: #ef4444 !important;
}

/* Success/Error messages */
.contact-form-wrapper .wpcf7-response-output {
  margin: 1rem 0 0 0;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.contact-form-wrapper .wpcf7-validation-errors,
.contact-form-wrapper .wpcf7-mail-sent-ng {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Spinner */
.contact-form-wrapper .wpcf7-spinner {
  margin-left: 1rem;
}
