/* ==========================================================================
   Market Your Daycare — Static stylesheet
   Faithful port of the Next.js / Tailwind implementation.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --font-display: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ink: #0B0C0E;
  --ink-soft: #3B4048;
  --body: #5B6470;
  --border: #E7E7EA;
  --border-soft: #F0F0F1;
  --surface: #FFFFFF;
  --surface-alt: #FAF9F7;
  --surface-tint: #FFF6F2;

  --brand-50: #FEF2F2;
  --brand-100: #FDE3E2;
  --brand-200: #FAC5C2;
  --brand-300: #F49B95;
  --brand-400: #EB6A61;
  --brand-500: #E23A2E;
  --brand-600: #D01F17;
  --brand-650: #B81813;
  --brand-700: #A5140D;
  --brand-800: #84120C;
  --brand-900: #5F0F0A;

  --sunshine-100: #FFF7D6;
  --sunshine-300: #FFE98C;
  --sunshine-400: #FFDE59;
  --sunshine-500: #FFCC1B;
  --sunshine-600: #F0B400;

  --leaf-500: #0E9D63;
  --leaf-600: #0B8353;
  --sky-500: #2A7FB8;

  --shadow-card: 0 1px 2px rgba(11, 12, 14, 0.04), 0 8px 24px -12px rgba(11, 12, 14, 0.08);
  --shadow-pop: 0 12px 32px -8px rgba(208, 31, 23, 0.28);
  --shadow-button: 0 10px 24px -8px rgba(208, 31, 23, 0.45);

  --container-max: 1240px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 1, "cv11" 1;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img,
svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background-color: var(--sunshine-400);
  color: var(--ink);
}

/* Visible keyboard focus ring, brand-tinted */
:focus-visible {
  outline: 2.5px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   3. Shared utilities
   -------------------------------------------------------------------------- */
.container {
  margin-inline: auto;
  width: 100%;
  max-width: var(--container-max);
  padding-inline: 20px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 32px;
  }
}

/* Subtle dotted grain used behind hero / CTA sections */
.bg-dot-grid {
  background-image: radial-gradient(rgba(11, 12, 14, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Icons (lucide-style inline SVGs) */
svg.icon {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.i-4 {
  width: 16px;
  height: 16px;
}

.i-5 {
  width: 20px;
  height: 20px;
}

.i-6 {
  width: 24px;
  height: 24px;
}

.i-7 {
  width: 28px;
  height: 28px;
}

.i-18 {
  width: 18px;
  height: 18px;
}

/* Entrance animation */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-80 {
  animation-delay: 80ms;
}

.delay-160 {
  animation-delay: 160ms;
}

.delay-220 {
  animation-delay: 220ms;
}

/* Hand-drawn marker underline */
@keyframes draw {
  0% {
    stroke-dashoffset: 400;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.marker-underline {
  position: relative;
  white-space: normal;
  display: inline-block;
  max-width: 100%;
}

.marker-underline svg {
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.16em;
  width: 106%;
  height: 0.34em;
  overflow: visible;
}

.marker-path {
  fill: none;
  stroke: var(--sunshine-400);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 400;
  vector-effect: non-scaling-stroke;
  animation: draw 1s ease-out 0.4s both;
}

.marker-path--2 {
  opacity: 0.9;
  animation-delay: 0.6s;
}

/* --------------------------------------------------------------------------
   4. Logo
   -------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: 80px;
}

.logo-mark {
  position: relative;
  display: flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-600);
  box-shadow: var(--shadow-button);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.logo-name--dark {
  color: #FFFFFF;
}

.logo-name-accent {
  color: var(--brand-600);
}

.logo-sub {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(91, 100, 112, 0.7);
}

.logo-sub--dark {
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background: var(--brand-600);
  color: #FFFFFF;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--brand-650);
  box-shadow: var(--shadow-pop);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-white {
  background: #FFFFFF;
  color: var(--brand-600);
  box-shadow: var(--shadow-card);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

.btn-sm {
  height: 40px;
  padding-inline: 20px;
  font-size: 14px;
}

.btn-md {
  height: 48px;
  padding-inline: 24px;
  font-size: 15px;
}

.btn-lg {
  height: 54px;
  padding-inline: 28px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   6. Badge
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(11, 12, 14, 0.04);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-600);
}

.badge--hero {
  border: 1px solid #1e293b;
  background: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 24px;
  box-shadow: none;
}

.badge--hero::before {
  display: none;
}

/* --------------------------------------------------------------------------
   7. Section heading
   -------------------------------------------------------------------------- */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.section-title {
  max-width: 672px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 36px;
  }
}

.section-desc {
  max-width: 576px;
  font-size: 17px;
  line-height: 1.625;
  color: var(--body);
}

.section-heading--dark .section-title {
  color: #FFFFFF;
}

.section-heading--dark .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   8. Header / Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 rgba(11, 12, 14, 0.06);
}

.navbar {
  position: relative;
  display: flex;
  height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
}

.chevron {
  color: var(--body);
  transition: transform 0.2s;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 224px;
  padding-top: 10px;
  transform: translate(-50%, -4px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}

.dropdown:hover .dropdown-panel,
.dropdown-panel:hover {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  padding: 6px;
  box-shadow: var(--shadow-card);
}

.dropdown-link {
  display: block;
  border-radius: 10px;
  padding: 11px 14px;
  transition: background-color 0.2s;
}

.dropdown-link:hover {
  background: var(--surface-alt);
}

.dropdown-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.dropdown-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--body);
}

/* Mobile toggle */
.nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--ink);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile menu panel */
.nav-mobile {
  overflow-y: auto;
  border-top: 1px solid transparent;
  background: #FFFFFF;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.4s, border-color 0.3s ease;
}

.nav-mobile.open {
  max-height: 82vh;
  opacity: 1;
  visibility: visible;
  border-top-color: var(--border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0 24px;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link:active {
  background: var(--surface-alt);
  color: var(--brand-600);
}

.nav-mobile-dropdown-btn .chevron {
  transition: transform 0.25s ease, color 0.2s ease;
  color: #64748b;
  width: 18px;
  height: 18px;
}

.nav-mobile-dropdown.is-open .nav-mobile-dropdown-btn .chevron {
  transform: rotate(180deg);
  color: var(--brand-600);
}

.nav-mobile-dropdown-content {
  display: none;
  padding: 10px 12px 14px;
  margin-top: 4px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-mobile-dropdown.is-open .nav-mobile-dropdown-content {
  display: block;
}

.nav-mobile-sublink--all {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-600);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(208, 31, 23, 0.08);
  margin-bottom: 10px;
  text-decoration: none;
}

.nav-mobile-group {
  margin-bottom: 12px;
}

.nav-mobile-group:last-child {
  margin-bottom: 0;
}

.nav-mobile-group-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  margin: 8px 10px 4px;
}

.nav-mobile-sublink {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-mobile-sublink:hover,
.nav-mobile-sublink:active {
  background: #ffffff;
  color: var(--brand-600);
}

@media (min-width: 1280px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 64px 0 80px;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 80px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 96px 0 112px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black, transparent);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black, transparent);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.hero-blob--left {
  top: -96px;
  left: -8%;
  width: 288px;
  height: 288px;
  background: var(--brand-100);
}

.hero-blob--right {
  top: -40px;
  right: -6%;
  width: 256px;
  height: 256px;
  background: var(--sunshine-100);
}

@media (min-width: 640px) {
  .hero-blob--left {
    width: 384px;
    height: 384px;
  }

  .hero-blob--right {
    width: 320px;
    height: 320px;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  max-width: 960px;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1px #0f172a;
  color: #0f172a;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 52px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 68px;
  }
}

.hero-br {
  display: none;
}

@media (min-width: 640px) {
  .hero-br {
    display: block;
  }
}

.hero-text {
  max-width: 960px;
  margin: 0 auto 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.625;
  color: #64748b;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-text {
    font-size: 20px;
  }
}

/* Glassmorphism Hero Search */
.hero-glass-search {
  position: relative;
  z-index: 50;
  width: 100%;
  max-width: 960px;
  margin: 28px auto 0;
  background: #FFFFFF;
  border: 1.5px solid rgba(208, 31, 23, 0.18);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  box-shadow: 0 16px 40px -12px rgba(208, 31, 23, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-glass-search:hover {
  border-color: rgba(208, 31, 23, 0.42);
  box-shadow: 0 20px 50px -10px rgba(208, 31, 23, 0.26), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.glass-search-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.glass-search-fields {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.glass-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 10px 16px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 999px;
  cursor: pointer;
}

.glass-field:hover {
  background: rgba(208, 31, 23, 0.04);
}

.glass-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-600);
  margin-bottom: 2px;
  text-align: center;
  width: 100%;
  user-select: none;
}

.glass-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  background: #ffe4e6;
  color: var(--brand-600);
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 0 0 1px rgba(208, 31, 23, 0.15);
}

.glass-field.is-disabled .glass-step-badge,
.glass-custom-select.is-disabled .glass-step-badge {
  background: #f1f5f9;
  color: #94a3b8;
  box-shadow: none;
}

.glass-field:hover:not(.is-disabled) .glass-step-badge,
.glass-custom-select.is-active .glass-step-badge {
  background: var(--brand-600);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(208, 31, 23, 0.35);
  transform: scale(1.1);
}

.glass-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-600);
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-0.5px);
  transition: all 0.2s ease;
}

.glass-field.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.glass-field.is-disabled:hover {
  background: transparent;
}

.glass-field.is-disabled .glass-label {
  color: #94a3b8;
}

.glass-field.is-disabled .glass-step-num {
  background: #f1f5f9;
  color: #94a3b8;
}

.glass-custom-select {
  position: relative;
  width: 100%;
  outline: none;
  display: flex;
  justify-content: center;
}

.glass-custom-select.is-disabled .glass-custom-select-trigger {
  cursor: not-allowed;
}

.glass-custom-select.is-disabled .glass-custom-select-value {
  color: #94a3b8;
  font-weight: 500;
}

.glass-custom-select.is-disabled .glass-chevron {
  color: #cbd5e1;
}

.glass-field.is-disabled:hover .glass-chevron {
  color: #cbd5e1;
}

.glass-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.glass-custom-select-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.glass-chevron {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.glass-field:hover .glass-chevron,
.glass-custom-select.is-active .glass-chevron {
  color: var(--brand-600);
}

.glass-custom-select.is-active .glass-chevron {
  transform: rotate(180deg);
}

.glass-custom-select-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  width: calc(100% + 40px);
  max-width: 320px;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 100;
  max-height: 270px;
  overflow-y: auto;
  padding: 8px;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 12, 14, 0.2) transparent;
}

/* Custom Webkit Scrollbar for Dropdown */
.glass-custom-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.glass-custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.glass-custom-select-dropdown::-webkit-scrollbar-thumb {
  background-color: rgba(11, 12, 14, 0.15);
  border-radius: 10px;
}

.glass-custom-select-dropdown:hover::-webkit-scrollbar-thumb {
  background-color: rgba(11, 12, 14, 0.3);
}

.glass-custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background-color: rgba(11, 12, 14, 0.45);
}

.glass-custom-select.is-active .glass-custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.glass-custom-select.drop-up .glass-custom-select-dropdown {
  top: auto;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px);
  box-shadow: 0 -20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.glass-custom-select.drop-up.is-active .glass-custom-select-dropdown {
  transform: translateX(-50%) translateY(0);
}

.glass-custom-select-empty {
  padding: 16px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  font-weight: 500;
  line-height: 1.4;
}

.glass-select-search-wrap {
  padding: 2px 4px 8px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 10;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 4px;
}

.glass-select-search-input {
  width: 100%;
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: var(--font-body);
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  background: #f8fafc;
  color: var(--ink);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.glass-select-search-input:focus {
  background: #ffffff;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(208, 31, 23, 0.12);
}

.glass-custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: all 0.15s ease;
  user-select: none;
}

.glass-custom-select-option:hover {
  background: var(--brand-50);
  color: var(--brand-600);
}

.glass-custom-select-option.is-selected {
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 700;
}

.glass-custom-select-option .opt-check {
  margin-left: 8px;
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 800;
}

@keyframes glassFieldShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.glass-field.is-invalid {
  animation: glassFieldShake 0.4s ease-in-out;
  background: rgba(208, 31, 23, 0.08) !important;
}

.glass-search-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.glass-search-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.glass-divider {
  width: 1px;
  height: 32px;
  background: rgba(11, 12, 14, 0.08);
  margin: 0 4px;
  flex-shrink: 0;
}

.glass-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-600);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px -4px rgba(208, 31, 23, 0.45);
  flex-shrink: 0;
}

.glass-search-btn:hover {
  background: var(--brand-650);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(208, 31, 23, 0.55);
}

.glass-search-btn:active {
  transform: translateY(0);
}

.glass-search-icon {
  width: 18px;
  height: 18px;
}

/* Mobile Responsiveness for Glass Search */
@media (max-width: 768px) {
  .hero-glass-search {
    border-radius: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
  }

  .glass-search-form {
    flex-direction: column;
    gap: 16px;
  }

  .glass-search-fields {
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 8px;
  }

  .glass-field {
    width: 100%;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
  }

  .glass-field:hover {
    background: rgba(208, 31, 23, 0.03);
  }

  .glass-custom-select-dropdown {
    width: 100%;
    left: 0;
    transform: translateY(8px);
  }

  .glass-custom-select.is-active .glass-custom-select-dropdown {
    transform: translateY(0);
  }

  .glass-custom-select.drop-up .glass-custom-select-dropdown {
    transform: translateY(8px);
  }

  .glass-custom-select.drop-up.is-active .glass-custom-select-dropdown {
    transform: translateY(0);
  }

  .glass-divider {
    display: none;
  }

  .glass-search-btn {
    width: 100%;
    padding: 16px;
  }
}

/* --------------------------------------------------------------------------
   10. About
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.about-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .about-title {
    font-size: 36px;
  }
}

.about-text {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.625;
  color: var(--body);
}

.about-text--second {
  margin-top: 16px;
}

.about-card {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 32px;
}

@media (min-width: 640px) {
  .about-card {
    padding: 40px;
  }
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-check {
  margin-top: 2px;
  color: var(--leaf-500);
}

.about-item span {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.375;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   11. Process
   -------------------------------------------------------------------------- */
.process {
  background: var(--surface-alt);
}

.process-grid {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: 64px;
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.process-line {
  display: none;
}

@media (min-width: 1024px) {
  .process-line {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 52px;
    height: 1px;
    background: var(--border);
  }
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (min-width: 1024px) {
  .process-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

.process-num {
  position: relative;
  z-index: 10;
  display: flex;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 2px solid var(--brand-600);
  background: #FFFFFF;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-600);
  box-shadow: var(--shadow-card);
}

.process-icon {
  color: var(--sunshine-600);
}

@media (min-width: 1024px) {
  .process-icon {
    margin-top: 20px;
  }
}

.process-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .process-title {
    margin-top: 12px;
  }
}

.process-summary {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.375;
  color: var(--ink-soft);
}

.process-detail {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.625;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   12. Features
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  gap: 20px;
  margin-top: 64px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-pop);
}

.feature-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  transition: background-color 0.3s, color 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--brand-600);
  color: #FFFFFF;
}

.feature-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.feature-desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.625;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   13. Case studies
   -------------------------------------------------------------------------- */
.case-studies,
.case-studies-section {
  background: var(--brand-600, #D01F17) !important;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.case-studies .section-head,
.case-studies-section .section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.case-studies .section-title,
.case-studies-section .section-title {
  color: #FFFFFF !important;
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  margin: 0 auto 16px auto;
  max-width: 760px;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .case-studies .section-title,
  .case-studies-section .section-title {
    font-size: 28px;
  }
}

.case-studies .section-desc,
.case-studies-section .section-desc {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 18px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.case-studies .badge {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.case-studies .badge::before {
  background: var(--brand-600);
}

.case-carousel {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.case-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: case-marquee 48s linear infinite;
}

.case-track:hover {
  animation-play-state: paused;
}

.case-group {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}

@keyframes case-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 420px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: #FFFFFF;
  padding: 32px 28px 28px;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.case-card:hover {
  border-color: var(--sunshine-400);
  background: #FFFFFF;
  box-shadow: 0 24px 50px -8px rgba(0, 0, 0, 0.32), 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

@media (max-width: 640px) {
  .case-card {
    width: 85vw;
    max-width: 320px;
    padding: 24px 20px 20px;
  }
}

.case-quote {
  color: var(--sunshine-500);
  width: 32px;
  height: 32px;
}

.case-stars {
  display: flex;
  gap: 4px;
  margin-top: 16px;
}

svg.case-star {
  color: #F59E0B;
  fill: #F59E0B;
  stroke: none;
  width: 18px;
  height: 18px;
}

.case-text {
  flex: 1;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: #1F2937;
  font-weight: 500;
}

.case-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  border-top: 1px solid #F3F4F6;
  padding-top: 18px;
}

.case-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  background: #FFFFFF;
  padding: 4px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.case-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #334155;
  background: #F1F5F9;
}

.case-centre a { color: inherit; text-decoration: none; }
.case-centre a:hover { text-decoration: underline; }

.case-source {
  margin-top: 4px;
  font-size: 12px;
  color: #6B7280;
}

.case-source a { color: inherit; text-decoration: underline; }

.case-meta {
  min-width: 0;
}

.case-centre {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.case-person {
  margin-top: 2px;
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   14. CTA
   -------------------------------------------------------------------------- */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--brand-600);
  padding: 56px 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .cta-card {
    padding: 64px 48px;
  }
}

@media (min-width: 1024px) {
  .cta-card {
    padding: 80px 48px;
  }
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.cta-blob--left {
  top: -64px;
  left: -64px;
  width: 224px;
  height: 224px;
  background: rgba(255, 255, 255, 0.1);
}

.cta-blob--right {
  bottom: -80px;
  right: -40px;
  width: 256px;
  height: 256px;
  background: rgba(255, 214, 89, 0.2);
}

.cta-dots {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

.cta-inner {
  position: relative;
  max-width: 672px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.cta-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 38px;
  }
}

.cta-text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
  .cta-text {
    font-size: 17px;
  }
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.cta-phone:hover {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq-wrap {
  max-width: 860px;
  margin: 48px auto 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #ECEEF2;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(11, 12, 14, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: #D1D5DB;
  box-shadow: 0 4px 14px rgba(11, 12, 14, 0.05);
}

.faq-item.is-open {
  border-color: #FAC5C2;
  box-shadow: 0 4px 16px rgba(208, 31, 23, 0.06);
}

.faq-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}

@media (min-width: 640px) {
  .faq-btn {
    padding: 22px 28px;
  }
}

.faq-q {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .faq-q {
    font-size: 16.5px;
  }
}

.faq-icon-wrap {
  display: flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  stroke: #64748B;
  fill: none;
  transition: stroke 0.2s ease;
}

.faq-icon-v {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  transform-origin: 12px 12px;
}

.faq-item.is-open .faq-icon-v {
  transform: scaleY(0);
  opacity: 0;
}

.faq-item.is-open .faq-toggle-icon {
  stroke: #64748B;
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer {
  padding: 0 22px 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #5B6470;
  font-weight: 400;
}

@media (min-width: 640px) {
  .faq-answer {
    padding: 0 28px 24px;
    font-size: 15px;
  }
}

.faq-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--surface-alt);
  padding: 20px 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .faq-contact {
    flex-direction: row;
    gap: 12px;
    text-align: left;
  }
}

.faq-contact-icon {
  color: var(--brand-600);
  flex-shrink: 0;
}

.faq-contact-text {
  font-size: 14px;
  color: var(--body);
}

.faq-contact-link {
  font-weight: 600;
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.faq-contact-link:hover {
  color: var(--brand-700);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #F8F9FA;
  color: var(--ink);
  border-top: 1px solid #ECEEF2;
}

.footer--premium {
  border-top: 1px solid #ECEEF2;
}

.footer-top {
  display: grid;
  gap: 40px;
  padding-block: 64px 48px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px 32px;
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    padding-block: 80px 56px;
  }
}

.footer-brand {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-brand-img {
  display: block;
  max-width: 155px;
  height: auto;
}

.footer-desc {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.65;
  color: #64748B;
  margin: 0;
}

.footer-desc strong {
  color: #1E293B;
  font-weight: 700;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  list-style: none;
  padding: 0;
}

.footer-link {
  font-size: 14.5px;
  color: #4B5563;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  font-weight: 400;
  display: inline-block;
}

.footer-link:hover {
  color: var(--brand-600);
  transform: translateX(2px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-email {
  font-size: 14.5px;
  color: #4B5563;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-bottom: 20px;
}

.footer-email:hover {
  color: var(--brand-600);
}

.footer-follow-label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-social {
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.footer-social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.footer-social:hover {
  color: var(--brand-600);
  transform: translateY(-2px);
}

.footer-service-area {
  font-size: 13px;
  color: #94A3B8;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid #ECEEF2;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

.footer-copy {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-legal a {
  font-size: 13.5px;
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
}

.footer-legal a:hover {
  color: var(--brand-600);
}

/* Section vertical rhythm */
.section {
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 96px 0;
  }
}

.case-studies,
.case-studies-section,
.process,
.features,
.faq {
  padding: 80px 0;
}

@media (min-width: 1024px) {

  .case-studies,
  .case-studies-section,
  .process,
  .features,
  .faq {
    padding: 112px 0;
  }
}

.cta {
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .cta {
    padding: 96px 0;
  }
}

/* ==========================================================================
   Mega Menu Additions
   ========================================================================== */
.mega-menu-panel {
  width: 760px;
}

@media (min-width: 1024px) {
  .mega-menu-panel {
    width: 860px;
  }
}

.mega-menu-card {
  padding: 24px 32px;
}

.mega-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.mega-menu-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.mega-menu-view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s;
}

.mega-menu-view-all:hover {
  color: var(--brand-600);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mega-menu-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.mt-4 {
  margin-top: 24px;
}

.pin-icon {
  color: var(--brand-600);
}

.mega-menu-link {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 4px 0;
  transition: color 0.2s;
  margin-left: 26px;
  /* align with text next to icon */
}

.mega-menu-link:hover {
  color: var(--brand-600);
}

/* ==========================================================================
   Brands Carousel
   ========================================================================== */
.brands {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.brands-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

@media (max-width: 640px) {
  .brands-top {
    flex-direction: column;
    gap: 12px;
  }
}

.brands-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brands-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .brands-title {
    font-size: 30px;
  }
}

.brands-desc {
  font-size: 16px;
  color: var(--body);
}

.brands-view-all {
  font-size: 14px;
  font-weight: 700;
  color: #e91e63;
  /* Pink from image */
  transition: opacity 0.2s;
  margin-top: 8px;
}

.brands-view-all:hover {
  opacity: 0.8;
}

.brands-slider-wrap {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.brands-slider {
  display: flex;
  width: max-content;
  animation: slideBrands 35s linear infinite;
  padding: 16px 0;
}

.brands-slider:hover {
  animation-play-state: paused;
}

.brands-slide {
  display: flex;
  gap: 48px;
  padding: 0 24px;
}

@keyframes slideBrands {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  width: 120px;
}

.brand-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 14px;
}

.brand-item:hover .brand-circle {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--brand-600), 0 8px 24px rgba(208, 31, 23, 0.25);
  border-color: var(--brand-600);
}

.brand-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--body);
  text-align: center;
  margin-top: 8px;
}

.opacity-0 {
  opacity: 0;
}

.brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bw-img {
  filter: none;
  transition: filter 0.3s ease;
}

.brand-item:hover .bw-img {
  filter: none;
}

.brand-logo-text {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}

.brand-dark {
  background: #0B0C0E;
}

.dark-text {
  color: #fff;
}

.brand-teal {
  background: #00C4B4;
  /* Teal color matching Brighthouse */
  border-color: #00C4B4;
}

.white-text {
  color: #fff;
}

.view-all-circle {
  border: 1px solid var(--border);
  background: #fff;
}

.brand-logo-arrow {
  color: var(--ink);
}

/* ==========================================================================
   Featured Centers
   ========================================================================== */
.featured-centers {
  padding: 80px 0;
  background: var(--surface-alt);
}

.featured-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  .featured-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.featured-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.featured-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .featured-title {
    font-size: 30px;
  }
}

.featured-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: #8b95a5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.featured-view-all {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 4px;
}

.featured-view-all:hover {
  color: var(--brand-600);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

.featured-empty {
  grid-column: 1 / -1;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.featured-empty h3 { margin: 0 0 8px; }
.featured-empty p { margin: 0 0 16px; color: #64748b; }
.featured-empty a { color: var(--brand-600); font-weight: 700; }
.featured-empty .featured-retry {
  margin-right: 16px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.featured-empty .featured-retry:focus-visible { outline: 3px solid #111827; outline-offset: 3px; }

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(11, 12, 14, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--sunshine-300);
  box-shadow: 0 12px 32px rgba(11, 12, 14, 0.08);
}

.fc-image-wrap {
  position: relative;
  height: 200px;
  width: 100%;
}

.fc-logo-panel {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 42px 28px 38px;
  background: #fff;
  box-sizing: border-box;
}

.fc-logo-panel--dark { background: #fff; }
.fc-logo-panel--dark img { filter: drop-shadow(0 0 1px rgba(15, 23, 42, 0.7)) drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35)); }

.fc-logo-panel img {
  display: block;
  max-width: 82%;
  max-height: 112px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.fc-logo-panel img[hidden] { display: none; }

.fc-logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #64748b;
}

.fc-logo-fallback[hidden] { display: none; }
.fc-logo-fallback strong { font-size: 30px; color: #475569; }
.fc-logo-fallback small { font-size: 12px; }

.fc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-photo-sample {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.fc-badge-top {
  position: absolute;
  top: 0;
  left: 0;
  background: #ffc107;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-bottom-right-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.fc-icon-crown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fc-logo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 72px;
  height: 44px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  padding: 4px;
  transition: transform 0.2s ease;
}

/* A light logo made for a dark header */
.fc-logo-badge--dark {
  background: #1F2937;
  border-color: #1F2937;
}

.fc-logo-badge:hover {
  transform: scale(1.1);
}

.fc-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fc-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 2px;
}

.fc-price span {
  font-size: 11px;
  font-weight: 600;
  color: var(--body);
}

.fc-content {
  padding: 20px 24px 16px;
  flex: 1;
}

.fc-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.fc-status--green {
  color: #0E9D63;
}

.fc-status--orange {
  color: #d97706;
}

.fc-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.fc-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8b95a5;
  font-weight: 500;
}

.fc-location svg {
  color: #a3aebf;
}

.fc-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fc-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.fc-rating--none {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.fc-star {
  color: #ffc107;
}

.fc-reviews {
  font-weight: 500;
  color: #8b95a5;
  font-size: 13px;
}

.fc-nqs {
  font-size: 10px;
  font-weight: 800;
  color: #4b5563;
  border: 1px solid #d1d5db;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f9fafb;
}

/* ==========================================================================
   React Icons (fill-based SVG icons via SVG Sprite)
   ========================================================================== */
svg.ri {
  display: inline-block;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
  vertical-align: middle;
}

.fc-crown-svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.fc-status-icon {
  width: 13px;
  height: 13px;
}

.fc-pin-icon {
  width: 13px;
  height: 13px;
}

.fc-star-icon {
  width: 15px;
  height: 15px;
  color: #ffc107;
}

/* ==========================================================================
   Top Picks Section
   ========================================================================== */
.top-picks {
  padding: 80px 0;
  background: #FFFFFF;
}

.tp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  .tp-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.tp-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .tp-title {
    font-size: 30px;
  }
}

.tp-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: #8b95a5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tp-explore {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.tp-explore:hover {
  color: var(--brand-600);
}

.tp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .tp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tp-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11, 12, 14, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 12, 14, 0.07);
  border-color: var(--sunshine-400);
}

/* ==========================================================================
   Card Skeleton Shimmer Loaders
   ========================================================================== */
.card-skeleton {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border, #e5e7eb);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(11, 12, 14, 0.04);
  display: flex;
  flex-direction: column;
  height: 340px;
}

.card-skeleton-img {
  height: 200px;
  width: 100%;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: cardSkeletonShimmer 1.5s infinite;
}

.card-skeleton-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: cardSkeletonShimmer 1.5s infinite;
}

.card-skeleton-line.w-80 { width: 80%; }
.card-skeleton-line.w-50 { width: 50%; }
.card-skeleton-line.w-30 { width: 30%; }

@keyframes cardSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Strategy Session — Combined CTA
   ========================================================================== */
.strategy-section {
  display: flex;
  flex-direction: column;
}

/* --- Top: brand red gradient --- */
.strat-top {
  background: var(--brand-600, #D01F17) !important;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.strat-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.strat-top-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .strat-top-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
  }
}

.strat-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.strat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 99px;
  letter-spacing: 0.08em;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.strat-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
  .strat-title {
    font-size: 36px;
  }
}

.strat-desc {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  max-width: 520px;
}

/* --- Action Card (Single Button CTA) --- */
.strat-action-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 36px 36px 30px;
  gap: 20px;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 440px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strat-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 56px -10px rgba(0, 0, 0, 0.34), 0 10px 28px rgba(0, 0, 0, 0.15);
}

.strat-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: linear-gradient(135deg, #E31B23 0%, #C41018 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px -4px rgba(227, 27, 35, 0.45);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-sizing: border-box;
}

.strat-primary-btn .btn-arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.strat-primary-btn:hover {
  background: linear-gradient(135deg, #FFDE59 0%, #FFC700 100%);
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(255, 199, 0, 0.5);
}

.strat-primary-btn:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.strat-card-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.strat-highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #374151;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.strat-check-icon {
  width: 17px;
  height: 17px;
  color: #0E9D63;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .strat-action-card {
    padding: 24px 20px;
  }
  .strat-primary-btn {
    font-size: 15px;
    padding: 14px 24px;
  }
  .strat-card-highlights {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* --- Newsletter band --- */
.newsletter {
  background: var(--brand-600);
  background: linear-gradient(135deg, #D01F17 0%, #B8150E 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .newsletter {
    padding: 80px 0;
  }
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .newsletter-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .newsletter-title {
    font-size: 30px;
  }
}

.newsletter-title em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--sunshine-400);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.newsletter-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.newsletter-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}

.newsletter-phone:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
  .newsletter-right {
    width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    gap: 12px;
  }
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 14px;
  font-family: var(--font-body);
  border: 2px solid transparent;
  outline: none;
  background: #FFFFFF;
  color: var(--ink);
  min-width: 240px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

@media (max-width: 480px) {
  .newsletter-input {
    width: 100%;
    min-width: unset;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
}

.newsletter-input:focus {
  border-color: var(--sunshine-400);
}

.newsletter-input.is-invalid {
  border-color: #F87171;
  background-color: #FEF2F2;
}

.newsletter-input::placeholder {
  color: #94a3b8;
}

.newsletter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  background: #0B0C0E;
  color: #FFFFFF;
  border: 2px solid transparent;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.2s ease, transform 0.15s ease;
}

@media (max-width: 480px) {
  .newsletter-btn {
    width: 100%;
    border-radius: 8px;
  }
}

.newsletter-btn:hover {
  background: #1e2029;
  border-color: var(--sunshine-400);
}

.newsletter-btn:disabled {
  cursor: wait;
}

.newsletter-btn-text {
  transition: opacity 0.2s ease;
}

.newsletter-btn-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.newsletter-btn.is-loading .newsletter-btn-text {
  opacity: 0;
}

.newsletter-btn.is-loading .newsletter-btn-spinner {
  display: flex;
}

.newsletter-btn-spinner::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: newsletter-spin 0.7s linear infinite;
}

@keyframes newsletter-spin {
  to {
    transform: rotate(360deg);
  }
}

.newsletter-btn.is-success {
  background: #059669;
  border-color: #059669;
}

.newsletter-btn.is-success:hover {
  border-color: #10B981;
}

/* --- Newsletter / validation modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(400px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink);
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  color: #FFFFFF;
  border-color: var(--brand-500);
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-600);
  color: #FFFFFF;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
}

.modal-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.modal-btn {
  margin-top: 24px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 8px;
  border: 2px solid var(--brand-600);
  background: var(--brand-600);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal-btn:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
}

/* ============================================================
   PORTAL BODY & BASE STYLES
   ============================================================ */
:root {
  --portal-bg: #f8fafc;
  --header-height: 82px;
}

body.portal-body {
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, -apple-system, sans-serif);
  background-color: var(--portal-bg);
  color: #111827;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.portal-body * {
  box-sizing: border-box;
}

.portal-body .wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.portal-body .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.portal-body .skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #d01f17;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.portal-body .skip-link:focus {
  top: 1rem;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
/* ============================================================
   PORTAL HEADER & NAVBAR
   ============================================================ */
.portal-body .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(11, 12, 14, 0.04);
  transition: all 0.25s ease;
}

.portal-body .site-header.scrolled,
.portal-body .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(11, 12, 14, 0.08);
}

.portal-body .navbar {
  position: relative;
  display: flex;
  height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-body .logo-img,
.portal-body .brand-logo-img {
  display: block;
  width: auto;
  height: 80px;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.portal-body .logo:hover .logo-img,
.portal-body .brand:hover .brand-logo-img {
  transform: scale(1.02);
}

.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-header-cta {
  display: none;
}

@media (min-width: 640px) {
  .portal-header-cta {
    display: inline-flex;
  }
}

/* ============================================================
   PORTAL HERO
   ============================================================ */
.portal-body .portal-hero {
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, rgba(254, 242, 242, 0.5) 100%);
  border-bottom: 1px solid #e2e8f0;
}

.portal-body .portal-container {
  max-width: 860px;
  margin: 0 auto;
}

.portal-body .portal-pill-badge {
  display: inline-flex;
  align-items: center;
  background: #fdf2f2;
  color: #d01f17;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(208, 31, 23, 0.15);
}

.portal-body .portal-main-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.portal-body .portal-main-subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   PORTAL FORM & CARDS
   ============================================================ */
.portal-body .portal-form-section {
  padding: 3rem 1.5rem 5rem;
}

.portal-body .listing-form {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.portal-body .form-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 2.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-body .form-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.portal-body .form-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  letter-spacing: -0.01em;
}

.portal-body .form-card__heading-group {
  margin-bottom: 1.5rem;
}

.portal-body .form-card__heading-group .form-card__title {
  margin-bottom: 0.35rem;
  border-bottom: none;
  padding-bottom: 0;
}

.portal-body .form-card__subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.portal-body .form-grid {
  display: grid;
  gap: 1.5rem;
}

.portal-body .form-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.portal-body .form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.portal-body .form-group--full {
  grid-column: 1 / -1;
}

.portal-body .form-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111827;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.portal-body .req {
  color: #d01f17;
  font-size: 0.95rem;
}

.portal-body .badge-optional {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: normal;
  margin-left: auto;
}

/* Inputs & Wrappers */
.portal-body .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.portal-body .form-input,
.portal-body .form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: #111827;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
  outline: none;
}

.portal-body .form-input::placeholder,
.portal-body .form-textarea::placeholder {
  color: #94a3b8;
}

.portal-body .form-input:hover,
.portal-body .form-textarea:hover {
  border-color: #cbd5e1;
}

.portal-body .form-input:focus,
.portal-body .form-textarea:focus {
  border-color: #d01f17;
  box-shadow: 0 0 0 3px rgba(208, 31, 23, 0.12);
}

.portal-body .form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Input Prefix & Suffix */
.portal-body .input-wrapper--prefix .input-prefix {
  position: absolute;
  left: 1rem;
  font-weight: 700;
  color: #6b7280;
  pointer-events: none;
  font-size: 1rem;
}

.portal-body .form-input--has-prefix {
  padding-left: 2rem;
}

.portal-body .input-wrapper--suffix .input-suffix {
  position: absolute;
  right: 1rem;
  font-weight: 700;
  color: #6b7280;
  pointer-events: none;
  font-size: 1rem;
}

.portal-body .form-input--has-suffix {
  padding-right: 2.25rem;
}

/* Error states */
.portal-body .form-group.has-error .form-input,
.portal-body .form-group.has-error .form-textarea,
.portal-body .form-group.has-error .custom-select-trigger {
  border-color: #d01f17 !important;
  background-color: #fffaf9;
}

.portal-body .error-msg {
  color: #d01f17;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.4rem;
  display: none;
}

.portal-body .form-group.has-error .error-msg {
  display: block;
}

/* ============================================================
   CENTER LOGO / PFP UPLOADER (PREMIUM REDESIGN)
   ============================================================ */
.portal-body .logo-uploader-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px -2px rgba(11, 12, 14, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-body .logo-uploader-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px -4px rgba(11, 12, 14, 0.08);
}

.portal-body .logo-uploader-card.is-dragover {
  border-color: #d01f17;
  background: #fef2f2;
}

.portal-body .logo-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid #f1f5f9;
  box-shadow: 0 4px 12px rgba(11, 12, 14, 0.06);
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.portal-body .logo-avatar-wrap:hover,
.portal-body .logo-avatar-wrap:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 8px 24px -4px rgba(208, 31, 23, 0.22);
  border-color: #d01f17;
}

.portal-body .logo-avatar-preview {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
}

.portal-body .logo-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  position: relative;
}

.portal-body .logo-avatar-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d01f17;
}

.portal-body .logo-school-icon {
  width: 36px;
  height: 36px;
}

.portal-body .logo-avatar-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: #d01f17;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(208, 31, 23, 0.4);
  border: 1.5px solid #ffffff;
}

.portal-body .logo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-body .logo-preview-img[hidden],
.portal-body .logo-avatar-placeholder[hidden],
.portal-body [hidden] {
  display: none !important;
}

.portal-body .logo-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 16px;
}

.portal-body .logo-avatar-wrap:hover .logo-avatar-overlay,
.portal-body .logo-avatar-wrap:focus-visible .logo-avatar-overlay {
  opacity: 1;
}

.portal-body .logo-info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.portal-body .logo-info-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-body .logo-info-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.portal-body .logo-info-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.portal-body .logo-status-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  letter-spacing: 0.02em;
}

.portal-body .logo-status-tag.is-uploaded {
  background: #ecfdf5;
  color: #059669;
}

.portal-body .logo-info-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.portal-body .logo-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.portal-body .btn-logo-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.portal-body .btn-logo-upload {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.portal-body .btn-logo-upload:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.portal-body .btn-logo-sample {
  background: #ffffff;
  color: #d01f17;
  border: 1.5px solid rgba(208, 31, 23, 0.3);
}

.portal-body .btn-logo-sample:hover {
  background: #fef2f2;
  border-color: #d01f17;
  transform: translateY(-1px);
}

.portal-body .btn-logo-remove {
  background: #fff1f2;
  color: #e11d48;
  border: 1.5px solid #fecdd3;
}

.portal-body .btn-logo-remove:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #be123c;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .portal-body .logo-uploader-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
  }
  
  .portal-body .logo-action-buttons {
    width: 100%;
  }

  .portal-body .btn-logo-action {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================================
   LOCATION AUTOCOMPLETE DROPDOWN
   ============================================================ */
.portal-body .form-group--autocomplete {
  position: relative;
}

.portal-body .autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  max-height: 240px;
  overflow-y: auto;
  z-index: 1050;
  padding: 0.35rem 0;
}

.portal-body .autocomplete-item {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

.portal-body .autocomplete-item:hover,
.portal-body .autocomplete-item.is-selected {
  background: #fef2f2;
  color: #d01f17;
}

.portal-body .autocomplete-item__state {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  background: #f1f5f9;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.portal-body .autocomplete-item.is-selected .autocomplete-item__state,
.portal-body .autocomplete-item:hover .autocomplete-item__state {
  background: rgba(208, 31, 23, 0.12);
  color: #d01f17;
}

/* ============================================================
   CUSTOM SELECT DROPDOWNS
   ============================================================ */
.portal-body .custom-select {
  position: relative;
  width: 100%;
}

.portal-body .custom-select-trigger {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  text-align: left;
}

.portal-body .custom-select-trigger:hover {
  border-color: #cbd5e1;
}

.portal-body .custom-select.is-open .custom-select-trigger,
.portal-body .custom-select-trigger:focus-visible {
  border-color: #d01f17;
  box-shadow: 0 0 0 3px rgba(208, 31, 23, 0.12);
}

.portal-body .custom-select-label.is-placeholder {
  color: #94a3b8;
}

.portal-body .custom-select-chevron {
  color: #6b7280;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.portal-body .custom-select.is-open .custom-select-chevron {
  transform: rotate(180deg);
  color: #d01f17;
}

.portal-body .custom-select-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1050;
  padding: 0.4rem 0;
}

.portal-body .custom-select-option {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.portal-body .custom-select-option:hover,
.portal-body .custom-select-option.is-highlighted {
  background: #fef2f2;
  color: #d01f17;
}

.portal-body .custom-select-option.is-selected {
  font-weight: 700;
  color: #d01f17;
  background: #fdf2f2;
}

.portal-body .custom-select-option .option-check {
  width: 16px;
  height: 16px;
  color: #d01f17;
  display: none;
}

.portal-body .custom-select-option.is-selected .option-check {
  display: inline-block;
}

/* ============================================================
   GALLERY UPLOADER & THUMBNAILS
   ============================================================ */
.portal-body .upload-dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.portal-body .upload-dropzone:hover,
.portal-body .upload-dropzone.is-dragover {
  border-color: #d01f17;
  background: #fef2f2;
}

.portal-body .dropzone-text-primary {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem;
}

.portal-body .dropzone-text-secondary {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
}

.portal-body .btn-select-files {
  background: #ffffff;
  border: 1.5px solid #111827;
  color: #111827;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.portal-body .btn-select-files:hover {
  background: #111827;
  color: #ffffff;
}

/* Previews Grid */
.portal-body .gallery-preview-wrap {
  margin-top: 1.5rem;
}

.portal-body .gallery-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.portal-body .gallery-status-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  background: #f1f5f9;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.portal-body .gallery-preview-actions {
  display: flex;
  gap: 0.5rem;
}

.portal-body .btn-preview-action {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s;
}

.portal-body .btn-preview-action:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.portal-body .btn-preview-action--danger {
  color: #d01f17;
  border-color: #fca5a5;
}
.portal-body .btn-preview-action--danger:hover {
  background: #fef2f2;
  border-color: #d01f17;
}

.portal-body .gallery-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
}

.portal-body .photo-thumb-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.portal-body .photo-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-body .photo-thumb-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.portal-body .photo-thumb-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(208, 31, 23, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.15s;
}

.portal-body .photo-thumb-card:hover .photo-thumb-delete {
  opacity: 1;
}

.portal-body .photo-thumb-delete:hover {
  transform: scale(1.15);
  background: #d01f17;
}

/* Sample populate bar */
.portal-body .sample-populate-bar {
  margin-top: 1rem;
  text-align: right;
}

.portal-body .btn-sample-populate {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  color: #d01f17;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.portal-body .btn-sample-populate:hover {
  background: #fef2f2;
}

/* ============================================================
   SUBMIT BUTTON & LOADERS
   ============================================================ */
.portal-body .form-submit-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.portal-body .btn-submit-listing {
  background: linear-gradient(135deg, #d01f17 0%, #b01710 100%);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1.15rem 3rem;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(208, 31, 23, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 280px;
}

.portal-body .btn-submit-listing:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(208, 31, 23, 0.5);
  filter: brightness(1.05);
}

.portal-body .btn-submit-listing:active {
  transform: translateY(0);
}

.portal-body .btn-submit-listing:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.portal-body .btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-body .loader-spinner {
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.portal-body .newsletter {
  background: #d01f17;
  color: #ffffff;
  padding: 3rem 1.5rem;
}

.portal-body .newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.portal-body .newsletter__copy h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.portal-body .newsletter__copy .highlight {
  color: #fef08a;
}

.portal-body .newsletter__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.portal-body .newsletter__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.portal-body .newsletter__input-group {
  display: flex;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.portal-body .newsletter__input-group input {
  border: none;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  min-width: 220px;
}

.portal-body .newsletter__btn {
  background: #111827;
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
}

.portal-body .newsletter__btn:hover {
  background: #000000;
}

/* ============================================================
   FOOTER
   ============================================================ */
.portal-body .site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 4rem 1.5rem 2rem;
}

.portal-body .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.portal-body .footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
}

.portal-body .footer-brand__text {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

.portal-body .footer-heading {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111827;
  margin: 0 0 1.25rem;
}

.portal-body .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-body .footer-links a {
  font-size: 0.88rem;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s;
}

.portal-body .footer-links a:hover {
  color: #d01f17;
}

.portal-body .footer-regulatory-text {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.portal-body .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.83rem;
  color: #6b7280;
}

.portal-body .footer-bottom__links {
  display: flex;
  gap: 1.5rem;
}

.portal-body .footer-bottom__links a {
  color: #6b7280;
  text-decoration: none;
}
.portal-body .footer-bottom__links a:hover {
  color: #111827;
}

/* ============================================================
   MODALS & TOASTS
   ============================================================ */
.portal-body .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.portal-body .modal--success {
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  animation: modalScaleIn 0.25s ease-out;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.portal-body .modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}
.portal-body .modal__close:hover {
  color: #111827;
}

.portal-body .success-icon-badge {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.portal-body .success-icon-badge svg {
  width: 32px;
  height: 32px;
}

.portal-body .success-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.5rem;
}

.portal-body .success-desc {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

.portal-body .submission-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.portal-body .summary-logo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-body .sum-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.portal-body .sum-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-body .sum-logo-badge img[hidden],
.portal-body .sum-logo-badge .sum-logo-icon[hidden] {
  display: none !important;
}

.portal-body .sum-center-title {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.2rem;
}

.portal-body .sum-location-sub {
  font-size: 0.82rem;
  color: #6b7280;
}

.portal-body .summary-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.85rem 0;
}

.portal-body .summary-grid-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  font-size: 0.82rem;
}

.portal-body .summary-label {
  color: #6b7280;
  margin-right: 0.35rem;
}

.portal-body .summary-value {
  font-weight: 700;
  color: #111827;
}

.portal-body .btn--red {
  background: #d01f17;
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.portal-body .btn--red:hover {
  background: #b01710;
}

.portal-body .btn--full {
  width: 100%;
}

/* Toast */
.portal-body .toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portal-body .toast {
  background: #1e293b;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  animation: toastIn 0.2s ease-out;
}

@keyframes toastIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.portal-body .toast--error {
  background: #d01f17;
}

/* Back to top */
.portal-body .back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #111827;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  z-index: 900;
  transition: all 0.2s;
}
.portal-body .back-to-top:hover {
  color: #d01f17;
  border-color: #d01f17;
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .portal-body .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .portal-body .main-nav {
    display: none;
  }
  .portal-body .hamburger {
    display: flex;
  }
  .portal-body .form-grid--2col {
    grid-template-columns: 1fr;
  }
  .portal-body .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .portal-body .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .portal-body .newsletter__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .portal-body .newsletter__right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .portal-body .newsletter__input-group {
    width: 100%;
  }
  .portal-body .newsletter__input-group input {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .portal-body .logo-uploader-card {
    flex-direction: column;
    text-align: center;
  }
  .portal-body .logo-action-buttons {
    justify-content: center;
  }
  .portal-body .form-card {
    padding: 1.5rem;
  }
  .portal-body .btn-submit-listing {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Global Transparent & Hidden Scrollbars
   -------------------------------------------------------------------------- */
.hide-scrollbar,
.blog-modal-container,
.blog-categories-scroll,
.nav-mobile {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar,
.blog-modal-container::-webkit-scrollbar,
.blog-categories-scroll::-webkit-scrollbar,
.nav-mobile::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

#case-studies[hidden] { display: none !important; }
