:root {
  --teal: #0F5C5C;
  --teal-hover: #0B4747;
  --cream: #F7F3EE;
  --white: #FFFFFF;
  --charcoal: #2B2B2B;
  --muted: #6B6B6B;
  --gold: #C9A96A;
  --border: rgba(43, 43, 43, 0.12);
  --shadow: 0 1.4rem 3.75rem rgba(43, 43, 43, 0.08);
  --radius: 1.5rem;
  --max: 73.75rem;
  --wide: 96rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.05;
  margin: 0 0 1.125rem;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 3vw, 1.5rem);
}

.section {
  padding-block: clamp(4.5rem, 7vw, 6rem);
}

.section.white {
  background: var(--white);
}

.section.cream {
  background: var(--cream);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.125rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 2.125rem;
  height: 1px;
  background: var(--gold);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8125rem 1.375rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: var(--teal);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--teal-hover);
  transform: translateY(-0.125rem);
}

.btn.secondary {
  background: var(--white);
  color: var(--teal);
  border-color: rgba(15, 92, 92, 0.22);
}

.btn.secondary:hover {
  border-color: var(--teal);
  transform: translateY(-0.125rem);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
}

.nav {
  width: min(100% - clamp(2rem, 6vw, 8rem), var(--wide));
  max-width: none;
  margin-inline: auto;
  padding-block: clamp(1rem, 1.4vw, 1.55rem);
  padding-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 5rem);
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.7rem, 1vw, 1rem);
  color: var(--teal);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.25vw, 1.45rem);
  line-height: 1;
  white-space: nowrap;
}

.logo-mark-img {
  width: clamp(5.8rem, 7vw, 8.6rem);
  height: clamp(5.8rem, 7vw, 8.6rem);
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.35rem, 2.4vw, 3.4rem);
  font-size: clamp(0.92rem, 0.95vw, 1.05rem);
  font-weight: 650;
  color: var(--muted);
  flex: 1;
}

.nav-links a {
  position: relative;
  color: inherit;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 0.12rem;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--teal);
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  min-height: clamp(3rem, 3.4vw, 4rem);
  padding-inline: clamp(1.35rem, 2.4vw, 2.5rem);
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* MAIN CONTENT */
.hero {
  position: relative;
  min-height: clamp(38rem, 70vw, 47.5rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 44, 44, 0.72) 0%, rgba(15, 44, 44, 0.47) 42%, rgba(15, 44, 44, 0.08) 100%),
    linear-gradient(0deg, rgba(0,0,0,.16), rgba(0,0,0,.08));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 45rem);
  align-items: center;
  min-height: clamp(38rem, 70vw, 47.5rem);
}

.hero-text {
  max-width: 47.5rem;
  padding-block: clamp(4.5rem, 8vw, 6rem);
}

.hero-text h1,
.hero-text p,
.hero-text .eyebrow {
  color: var(--white);
}

.hero-text .eyebrow::before {
  background: var(--gold);
}

.hero-text p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 40.625rem;
  color: rgba(255,255,255,.88);
}

.hero .btn.secondary {
  background: rgba(255,255,255,.16);
  color: var(--white);
  border-color: rgba(255,255,255,.38);
  backdrop-filter: blur(0.5rem);
}

.hero .btn.secondary:hover {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.76);
}

.hero-note {
  margin-top: 2.125rem;
  max-width: 27rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(0.875rem);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 1.375rem;
  padding: 1.25rem 1.375rem;
  box-shadow: 0 1rem 2.75rem rgba(0,0,0,.12);
}

.hero-note strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.hero-note p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,.82);
}

.cards-3,
.features-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.375rem);
}

.card,
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 1.875rem);
  box-shadow: 0 1.125rem 3rem rgba(43, 43, 43, 0.04);
}

.card-icon {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 1.125rem;
  display: grid;
  place-items: center;
  background: rgba(15, 92, 92, 0.08);
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.card-icon svg,
.social-links svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-strip {
  margin-top: 2.375rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.375rem;
  align-items: stretch;
}

.trust-card,
.quote-card {
  border-radius: 1.75rem;
  padding: clamp(1.5rem, 2.8vw, 2rem);
}

.trust-card {
  background: var(--cream);
  border: 1px solid var(--border);
}

.quote-card {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow);
}

.quote-card p,
.quote-card h3 {
  color: var(--white);
}

.quote-card p {
  opacity: .86;
}

.mini-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.mini-point {
  border-left: 2px solid var(--gold);
  padding-left: 0.875rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
}

.split,
.split.reverse,
.student-photo-band {
  display: grid;
  gap: clamp(2rem, 5vw, 3.625rem);
  align-items: center;
}

.split {
  grid-template-columns: 1fr 0.9fr;
}

.split.reverse {
  grid-template-columns: 0.9fr 1fr;
}

.student-photo-band {
  grid-template-columns: 1fr 1fr;
  margin-top: 2.875rem;
}

.compact-image,
.image-frame {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
  background: transparent;
}

.compact-image img,
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.875rem;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.125rem;
  padding: 1.25rem;
}

.step-number {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.step h3,
.feature h3,
.faq-item h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.step p,
.feature p {
  font-size: 0.875rem;
  margin: 0;
}

.bullet-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1.75rem 0;
  list-style: none;
}

.bullet-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
}

.bullet-list li::before {
  content: '✓';
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(15, 92, 92, 0.10);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 900;
  margin-top: 0.125rem;
}

/* FAQ */
.faq-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.875rem;
  padding: clamp(1.25rem, 3vw, 2.125rem);
  box-shadow: 0 1.125rem 3rem rgba(43,43,43,.04);
}

.faq-tabs {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 1.375rem;
  flex-wrap: wrap;
}

.faq-shell button,
.faq-shell .tab-btn,
.faq-shell .faq-question {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.faq-shell .tab-btn {
  background: var(--cream) !important;
  color: var(--teal) !important;
  border: 1px solid rgba(15, 92, 92, 0.18) !important;
  border-radius: 999px !important;
  padding: 0.7rem 1.125rem !important;
  font-weight: 800;
  cursor: pointer;
}

.faq-shell .tab-btn.active {
  background: var(--teal) !important;
  color: var(--white) !important;
}

.faq-panel {
  display: none;
}

.faq-panel.active {
  display: block;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 0;
}

.faq-question {
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--charcoal) !important;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.faq-question h3,
.faq-answer p {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.faq-plus {
  width: 1.9rem !important;
  height: 1.9rem !important;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 92, 92, 0.08) !important;
  color: var(--teal) !important;
  font-weight: 800;
  transition: .22s ease;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  margin: 0 0 1.25rem;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
  background: var(--teal) !important;
  color: var(--white) !important;
}

/* CTA */
.cta {
  background: var(--teal);
  color: var(--white);
  border-radius: 2.5rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.cta-content {
  padding: clamp(2.25rem, 5vw, 3.625rem);
}

.cta h2,
.cta p {
  color: var(--white);
}

.cta p {
  opacity: 0.86;
}

.cta .btn.primary {
  background: var(--white);
  color: var(--teal);
}

.cta .btn.secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FOOTER */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.footer-grid {
  width: min(100% - clamp(2rem, 6vw, 8rem), var(--wide));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  display: grid;
  grid-template-columns: minmax(18rem, 1.35fr) minmax(12rem, 0.7fr) minmax(12rem, 0.7fr);
  gap: clamp(2rem, 5vw, 7rem);
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.1rem, 1.25vw, 1.35rem);
  line-height: 1;
}

.footer-logo-img {
  width: clamp(5.4rem, 6.6vw, 8rem);
  height: clamp(5.4rem, 6.6vw, 8rem);
  object-fit: contain;
  display: block;
}


.footer-brand p {
  margin-top: 1.4rem;
  max-width: 32rem;
  color: rgba(255,255,255,.72);
  font-size: clamp(0.95rem, 1vw, 1.08rem);
}

.footer h3 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: rgba(255,255,255,.72);
}

.footer a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 0.75rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.social-links a {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.78);
  transition: 0.22s ease;
}

.social-links a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  transform: translateY(-0.12rem);
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* THANK YOU PAGE */
.thank-you-page {
  min-height: 68vh;
  display: flex;
  align-items: center;
}

.thank-you-card {
  max-width: 55rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2.125rem;
  padding: clamp(2.625rem, 6vw, 4.375rem);
  box-shadow: var(--shadow);
}

.thank-you-card h1 {
  font-size: clamp(3rem, 6vw, 4.75rem);
  max-width: 45rem;
}

.thank-you-lead {
  font-size: 1.25rem;
  max-width: 42.5rem;
}

.thank-you-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.375rem;
  margin-top: 2.25rem;
}

.thank-you-info > div {
  background: var(--cream);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border-left: 3px solid var(--gold);
}

.thank-you-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0;
}

/* CONTACT MODAL */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.contact-modal.active {
  display: block;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 44, 44, 0.45);
  backdrop-filter: blur(0.625rem);
}

.contact-modal-card {
  position: relative;
  max-width: 32.5rem;
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 1.875rem;
  padding: clamp(2.125rem, 4vw, 2.625rem);
  box-shadow: 0 1.375rem 3.75rem rgba(43,43,43,.18);
  z-index: 2;
}

.contact-modal-card h2 {
  margin-bottom: 0.875rem;
}

.contact-modal-card p {
  margin-bottom: 1.125rem;
}

.contact-modal-links {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.625rem;
}

.contact-modal-link {
  display: block;
  padding: 1rem 1.125rem;
  border-radius: 1.125rem;
  background: var(--cream);
  color: var(--teal);
  font-weight: 700;
}

button.contact-modal-close {
  position: absolute !important;
  top: 2.125rem !important;
  right: 2.125rem !important;
  width: 3.625rem !important;
  height: 3.625rem !important;
  min-height: 3.625rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(15, 92, 92, 0.08) !important;
  color: var(--teal) !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-transform: none !important;
  z-index: 10 !important;
}

button.contact-modal-close:hover {
  background: var(--teal) !important;
  color: #fff !important;
}

/* FULL WIDTH INSIDE ELEMENTOR */
.elementor-widget-html,
.elementor-widget-html .elementor-widget-container {
  width: 100% !important;
}

.elementor-widget-html .site-header,
.elementor-widget-html .hero,
.elementor-widget-html .section,
.elementor-widget-html .footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* TABLET */
@media (max-width: 1024px) {
  .nav,
  .footer-grid {
    width: min(100% - 2rem, 92rem);
  }

  .nav-links {
    gap: 1.4rem;
    font-size: 0.9rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* GENERAL MOBILE LAYOUT */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .split.reverse,
  .cta,
  .footer-grid,
  .trust-strip,
  .student-photo-band {
    grid-template-columns: 1fr;
  }

  .cards-3,
  .features-3,
  .mini-points {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding-block: 4.5rem;
  }
}

@media (max-width: 760px) {
  .footer {
    padding-block: 3rem;
  }

  .footer-grid {
    width: min(100% - 1.5rem, 92rem);
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .thank-you-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 1.125rem;
  }

  .cards-3,
  .features-3,
  .steps,
  .mini-points {
    grid-template-columns: 1fr;
  }

  .card,
  .faq-shell {
    padding: 1.5rem;
  }

  .cta {
    border-radius: 1.75rem;
  }

  .cta-content {
    padding: 2.25rem 1.5rem;
  }

  .faq-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .faq-shell .tab-btn {
    width: 100% !important;
    text-align: center !important;
  }

  .faq-question h3 {
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
    white-space: normal !important;
  }

  .contact-modal-card {
    margin: 10vh 1.125rem 0;
  }
}

/* ===================================================
   MOBILE SLIDE-DOWN NAVIGATION
   你要改手机端菜单底板宽度，只改这里
=================================================== */

@media (max-width: 820px) {
  .nav {
    width: min(100% - 1.5rem, 92rem);
    padding-block: 0.9rem;
  }

  .logo span {
    font-size: 1.08rem;
  }

  .logo-mark-img {
    width: 2.7rem;
    height: 2.7rem;
  }

  .nav-toggle-label {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    background: rgba(15, 92, 92, 0.08);
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
  }

  .nav-toggle-label span {
    width: 1.25rem;
    height: 0.12rem;
    background: var(--teal);
    display: block;
    position: absolute;
    transition: 0.22s ease;
  }

  .nav-toggle-label span:nth-child(1) {
    transform: translateY(-0.42rem);
  }

  .nav-toggle-label span:nth-child(2) {
    transform: translateY(0);
  }

  .nav-toggle-label span:nth-child(3) {
    transform: translateY(0.42rem);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50% !important;
    right: auto !important;

    /* 改这里控制手机端菜单底板宽度 */
    width: min(calc(100vw - 1.5rem), 16rem) !important;
    max-width: calc(100vw - 1.5rem) !important;

    display: grid;
    gap: 0.25rem;

    background: #fff;
    border: 1px solid rgba(43, 43, 43, 0.10);
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 1.375rem 3.75rem rgba(43, 43, 43, 0.12);

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -0.5rem) !important;
    pointer-events: none;
    transition: 0.22s ease;
  }

  .nav-toggle:checked ~ .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) !important;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    text-align: center;
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-links a:not(.btn):hover {
    background: var(--cream);
  }

  .nav-contact {
    width: 100%;
    justify-content: center;
    margin-top: 0.4rem;
    min-height: 3rem;
  }
}

@media (max-width: 420px) {
  .nav {
    width: min(100% - 1rem, 92rem);
  }

  .nav-links {
    width: calc(100vw - 1rem) !important;
    max-width: calc(100vw - 1rem) !important;
  }

  .logo span {
    font-size: 1rem;
  }

  .logo-mark-img {
    width: 2.4rem;
    height: 2.4rem;
  }
}

/* FINAL mobile menu width override */
@media (max-width: 820px) {
  .site-header .nav .nav-links {
    width: min(calc(100vw - 3rem), 16rem) !important;
    max-width: min(calc(100vw - 3rem), 16rem) !important;
  }
}

@media (max-width: 420px) {
  .site-header .nav .nav-links {
    width: min(calc(100vw - 3rem), 16rem) !important;
    max-width: min(calc(100vw - 3rem), 16rem) !important;
  }
}

/* FINAL mobile menu: 14rem, right aligned, no radius */
@media (max-width: 820px) {
  .site-header .nav .nav-links {
    left: auto !important;
    right: 0 !important;

    width: 14rem !important;
    max-width: 14rem !important;

    transform: translateY(-0.5rem) !important;

    border-radius: 0 !important;
  }

  .site-header .nav-toggle:checked ~ .nav-links {
    transform: translateY(0) !important;
  }
}

@media (max-width: 420px) {
  .site-header .nav .nav-links {
    right: 0 !important;
    width: 14rem !important;
    max-width: 14rem !important;
    border-radius: 0 !important;
  }
}



/* Fix Elementor sticky header incorrect inline width */
.h-edge-header,
.h-edge-header.elementor-sticky,
.h-edge-header.elementor-sticky--active {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

.h-edge-header.elementor-sticky--active > .elementor-element,
.h-edge-header.elementor-sticky--active .elementor-widget-html {
  width: 100% !important;
  max-width: 100% !important;
}