/* ==========================================================================
   Stock Element — Clean rebuild stylesheet
   Design tokens matched to the original GoDaddy-built site.
   ========================================================================== */

:root {
  --teal: #2f4f4f;        /* header / nav background */
  --black: #161616;       /* promo banner + buttons */
  --silver: #c0c0c0;      /* alternate section background */
  --light: #dcdcdc;       /* alternate section background */
  --text-dark: #161616;
  --text-black: #000000;
  --text-body: #2b2b2b;
  --text-muted: #424242;
  --heading-font: 'Cabin', arial, sans-serif;
  --body-font: 'Lato', arial, sans-serif;
  --container-max: 1280px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

input {
  font: inherit;
  color: inherit;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 1024px) { .container { width: 984px; } }
@media (min-width: 1280px) { .container { width: 1160px; } }
@media (min-width: 1536px) { .container { width: 1280px; } }

.center { text-align: center; }

/* ---------- Sections ---------- */
.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-silver { background-color: var(--silver); }
.section-light  { background-color: var(--light); }

/* ---------- Promo banner ---------- */
.promo-banner {
  background-color: var(--black);
  color: #f7f7f7;
  padding: 4px 0;
  text-align: center;
}

.promo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0 24px;
  color: #f7f7f7;
  cursor: pointer;
}

.promo-text {
  padding: 0 8px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.promo-leaf {
  flex-shrink: 0;
  height: 30px;
  max-width: 20px;
}

.promo-leaf path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLeaf 5s linear forwards;
}

.promo-leaf-left g path:nth-child(2) { animation-delay: 2.5s; }
.promo-leaf-left g path:nth-child(3) { animation-delay: 2.5s; }
.promo-leaf-right g path:nth-child(2) { animation-delay: 2s; }
.promo-leaf-right g path:nth-child(3) { animation-delay: 4s; }

@keyframes drawLeaf {
  to { stroke-dashoffset: 0; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: relative;
  z-index: 1000;
  background-color: var(--teal);
  transition: background 0.3s ease;
}

.site-header.sticky {
  position: sticky;
  top: 0;
  background-color: rgba(47, 79, 79, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.site-header.sticky .header-hr { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 24px;
  flex-wrap: nowrap;
}

.logo {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s;
}

.logo:hover { color: #c6c6c6; }

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.nav-item {
  position: relative;
  display: inline-block;
}

.nav-link {
  display: block;
  padding: 6px 6px;
  margin: 0 2px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s, opacity 0.2s;
}

.nav-link { position: relative; }

.nav-link::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 2px;
  background: #c6c6c6;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.nav-link:hover { color: #c6c6c6; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { font-weight: 700; }

/* "More" dropdown */
.has-dropdown { position: relative; }

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px;
  margin: 0 2px;
  font-size: 13px;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s;
}

.more-btn:hover { color: #c6c6c6; }
.more-btn[aria-expanded="true"] .more-chevron { transform: rotate(180deg); }

.more-chevron { transition: transform 0.25s ease; }

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 6px 3px rgba(0, 0, 0, 0.24);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1003;
}

.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li { border-bottom: 1px solid rgba(76, 76, 76, 0.5); }
.dropdown li:last-child { border-bottom: 0; }

.dropdown-link {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  color: #161616;
  white-space: nowrap;
  transition: color 0.2s;
}

.dropdown-link:hover { color: #81cccc; }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  color: #fff;
  padding: 4px;
  margin-left: 8px;
}

.hamburger:hover { color: #c6c6c6; }

.header-hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  transition: opacity 0.3s;
}

/* ---------- Mobile drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 10001;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 84vw;
  max-width: 360px;
  background: #161616;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateX(-110%);
  transition: transform 0.3s ease-in-out;
  z-index: 10002;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer.open { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #f7f7f7;
  padding: 4px;
}

.drawer-close:hover { color: #3f6b6b; }

.drawer-list {
  padding: 72px 24px 24px;
}

.drawer-list li {
  border-bottom: 1px solid rgba(76, 76, 76, 0.5);
}

.drawer-list li:last-child { border-bottom: 0; }

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 200px;
  padding: 16px 4px;
  font-size: 20px;
  font-weight: 400;
  color: #f7f7f7;
  transition: color 0.2s;
}

.drawer-link:hover { color: #81cccc; }
.drawer-link.active { font-weight: 700; }

/* ---------- Hero（3 张轮播 Banner） ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--teal);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/image/hero-bg.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-bg-b {
  background-position: 28% 42%;
  filter: saturate(1.06) contrast(1.02);
}

.hero-bg-c {
  background-position: 72% 34%;
  filter: brightness(0.94) saturate(1.08);
}

/* 背景缓慢放大（Ken Burns） */
.hero-slide.active .hero-bg {
  animation: heroZoom 8s ease-out both;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.13); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(47, 79, 79, 0.26) 0%, rgba(47, 79, 79, 0.26) 100%);
}

.hero-overlay-2 {
  background: linear-gradient(160deg, rgba(16, 24, 24, 0.52) 0%, rgba(47, 79, 79, 0.22) 100%);
}

.hero-overlay-3 {
  background: linear-gradient(200deg, rgba(16, 24, 24, 0.58) 0%, rgba(47, 79, 79, 0.24) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 96px;
  padding-bottom: 92px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.hero-title {
  font-family: var(--heading-font);
  font-size: 29px; /* flexfill scales this up to fill the container */
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
  color: #fff;
  max-width: 100%;
  white-space: pre-line;
}

.hero-sub {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}

.hero-cta {
  margin-top: 34px;
}

/* 每张轮播内容入场 */
.hero-slide.active .hero-kicker,
.hero-slide.active .hero-title,
.hero-slide.active .hero-sub,
.hero-slide.active .hero-cta {
  animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-slide.active .hero-title { animation-delay: 0.1s; }
.hero-slide.active .hero-sub   { animation-delay: 0.22s; }
.hero-slide.active .hero-cta   { animation-delay: 0.34s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* 光标跟随的柔和光晕 */
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  will-change: transform;
}

/* Hero 箭头 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  transition: background-color 0.25s, border-color 0.25s;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* Hero 圆点 */
.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background-color 0.3s, width 0.3s, border-radius 0.3s;
}

.hero-dot:hover { background: rgba(255, 255, 255, 0.7); }
.hero-dot.active { width: 26px; border-radius: 999px; background: #fff; }

/* ---------- Section headings ---------- */
.section-title {
  font-family: var(--heading-font);
  font-size: 29px; /* flexfill scales up to 40px on desktop */
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
}

.section-title-tight { margin-bottom: 0; }

.title-line {
  display: block;
  width: 50px;
  height: 0;
  border-top: 2px solid #a5a5a5;
  margin: 24px auto 0;
}

.title-line-light { border-color: #c0c0c0; }

/* ---------- What we offer ---------- */
.offer-media {
  text-align: center;
  margin-bottom: 32px;
}

.offer-img {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 32px;
  aspect-ratio: 1.5006 / 1;
  object-fit: fill;
  border-radius: 0;
}

.grid-2 {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col {
  flex-basis: 100%;
  max-width: 100%;
  padding: 0 12px;
  margin-bottom: 24px;
}

.col:last-child { margin-bottom: 0; }

.col-title {
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-black);
  margin-bottom: 24px;
  text-align: left;
}

.rich-text {
  font-size: 16px;
  color: var(--text-body);
  text-align: left;
}

.rich-text p {
  margin: 0;
}

.rich-text .spacer {
  line-height: 0.6;
}

.rich-text strong { font-weight: 700; }

.inline-link {
  color: var(--text-dark);
  text-decoration: underline;
  transition: color 0.2s;
}

.inline-link:hover { color: #404040; }
.inline-link:active { color: #000; }

/* ---------- Featured / CTA ---------- */
.featured-title {
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-black);
  margin-bottom: 24px;
}

.featured-text {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 32px;
  border-radius: 4px;
  background-color: var(--black);
  color: #dbdbdb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  transform: translateZ(0);
  transition: background-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

/* 按钮上的一抹光泽扫过（hover） */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn:hover {
  background-color: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.btn:hover::after { left: 130%; }

.btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

/* ---------- Logos ---------- */
.logos-title {
  font-family: var(--body-font);
  font-size: 25px; /* flexfill scales up to 29px on desktop */
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  margin-bottom: -24px;
}

.logo-img {
  height: 100px;
  width: auto;
  aspect-ratio: 1.584 / 1;
  object-fit: contain;
  opacity: 1;
  margin-bottom: 24px;
}

/* ---------- Carousel（中间模式：多张同时显示，中间突出、两侧半透明） ---------- */
.carousel {
  position: relative;
  width: 100%;
  margin-top: 0;
}

.car-viewport {
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
}

.car-track {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.6s ease;
  will-change: transform;
}

.car-slide {
  flex: 0 0 320px;
  height: 600px;
  min-height: 600px;
  overflow: hidden;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.6s ease, transform 0.35s ease;
}

.car-slide:not(.active):hover { opacity: 0.6; }

.car-slide.active {
  opacity: 1;
}

.car-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.car-slide.active img { transform: scale(1.02); }

.car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 8px;
  border-radius: 4px;
  background-color: rgba(22, 22, 22, 0.25);
  color: #fff;
  transition: background-color 0.2s, opacity 0.2s;
}

.car-arrow:hover { background-color: rgba(22, 22, 22, 0.5); }
.car-arrow:active { background-color: rgba(22, 22, 22, 0.5); }

.car-arrow-prev { left: 0; }
.car-arrow-next { right: 0; }

/* 轮播圆点：点击第几个就跳转到第几个 */
.car-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.car-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.25);
  transition: background-color 0.3s, width 0.3s, border-radius 0.3s, transform 0.3s;
}

.car-dot:hover { background: rgba(22, 22, 22, 0.5); transform: scale(1.15); }
.car-dot.active { width: 26px; border-radius: 999px; background: var(--teal); }

/* ---------- Cards (about) ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -12px -24px;
}

.card {
  flex-basis: 100%;
  max-width: 100%;
  padding: 0 12px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-media {
  display: inline-block;
  margin: 0 auto 24px;
  max-width: 100%;
}

.card-media img {
  width: 100%;
  aspect-ratio: 1.33 / 1;
  object-fit: cover;
  border-radius: 0;
}

.card-title {
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-black);
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
}

.card-text {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 100%;
}

.card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.card-media {
  overflow: hidden;
  border-radius: 10px;
}

.card-media img {
  transition: transform 0.6s ease;
}

.card:hover .card-media img { transform: scale(1.06); }

/* ---------- Social ---------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 24px -8px -8px;
}

.social-link {
  display: inline-block;
  margin: 0 8px 8px;
  color: var(--text-black);
  transition: color 0.25s, transform 0.25s;
}

.social-link:hover { color: var(--teal); transform: translateY(-4px) scale(1.05); }
.social-link:active { transform: translateY(-1px) scale(1); }
.social-link:active { color: #000; }

.social-link svg {
  display: block;
}

/* ---------- Subscribe ---------- */
.subscribe-title {
  font-family: var(--heading-font);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--text-black);
  text-align: center;
  margin: -4px 0 32px;
}

.subscribe-desc {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}

.subscribe-field {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

.subscribe-input {
  width: 100%;
  padding: 23px 16px 7px;
  border: 1px solid #000;
  border-radius: 4px;
  background-color: rgba(220, 220, 220, 0);
  color: var(--text-body);
  font-size: 14px;
  outline: none;
}

.subscribe-input::placeholder { color: inherit; }

.subscribe-input:focus {
  box-shadow: inset 0 0 0 1px currentColor;
  outline: none;
}

.subscribe-label {
  position: absolute;
  top: 33%;
  left: 16px;
  font-size: 14px;
  color: var(--text-body);
  pointer-events: none;
  transition: all 0.15s ease;
}

.subscribe-input:focus + .subscribe-label,
.subscribe-input:not(:placeholder-shown) + .subscribe-label {
  font-size: 12px;
  top: 8px;
  color: var(--text-dark);
}

.btn-subscribe { width: 100%; }

.form-msg {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}

.form-msg.success { color: #1a7a3c; }
.form-msg.error { color: #b00020; }

/* ---------- Trust badge ---------- */
.trust-badge {
  display: flex;
  justify-content: center;
  min-height: 40px;
}

/* ---------- Footer ---------- */
.footer {
  padding-top: 56px;
  padding-bottom: 56px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.footer-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color 0.2s;
}

.footer-link:hover { color: #404040; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 40px;
}

.footer-copy,
.footer-brand {
  font-size: 14px;
  color: var(--text-body);
}

/* ==========================================================================
   Single-page anchor navigation
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

/* Offset anchored sections below the sticky header */
#home,
#teacher,
#trial,
#results,
#reviews,
#guide,
#contact {
  scroll-margin-top: 96px;
}

/* Active nav link highlight (scrollspy) */
.nav-link.active,
.drawer-link.active {
  font-weight: 700;
}

/* ==========================================================================
   WhatsApp（配色与原站一致：主按钮黑底白字，导航内白底青字）
   ========================================================================== */
.btn-whatsapp {
  gap: 10px;
}

.btn-lg {
  min-height: 64px;
  padding: 12px 40px;
  font-size: 15px;
}

.wa-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: #fff;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.wa-nav-btn:hover {
  background-color: #e8ecec;
  color: var(--teal);
}

/* ==========================================================================
   Teacher / Mentor section
   ========================================================================== */
.teacher-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.teacher-photos {
  flex: 0 0 46%;
  max-width: 46%;
}

.teacher-photo-main {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.teacher-photo-main img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.teacher-photo-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.teacher-thumb {
  flex: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.teacher-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.teacher-thumb:hover { opacity: 1; }
.teacher-thumb.active { border-color: var(--teal); opacity: 1; }

.teacher-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.teacher-name {
  font-family: var(--heading-font);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.2;
}

.teacher-location {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.teacher-role {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}

.teacher-bio {
  margin: 24px 0 28px;
}

.teacher-bio-title {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 18px 0 6px;
}

.teacher-bio p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ==========================================================================
   Mentor section（升级：深色 spotlight 版，金色点缀）
   ========================================================================== */
.mentor-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0e1717 0%, #1d3131 55%, #2b4a4a 100%);
  color: #fff;
}

.mentor-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 88% 12%, rgba(198, 166, 78, 0.12), transparent 65%),
    radial-gradient(45% 40% at 8% 92%, rgba(255, 255, 255, 0.05), transparent 65%);
}

.mentor-section .container { position: relative; }
.mentor-section .section-title { color: #fff; }
.mentor-section .title-line { border-color: rgba(255, 255, 255, 0.4); }

.mentor-layout {
  display: flex;
  align-items: center;
  gap: 56px;
}

.mentor-photos {
  flex: 0 0 44%;
  max-width: 44%;
  position: relative;
}

.mentor-photo-main {
  position: relative;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #c8a64e 0%, rgba(255, 255, 255, 0.16) 45%, rgba(255, 255, 255, 0.07) 100%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}

.mentor-photo-main::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  box-shadow: inset 0 0 46px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.mentor-photo-main img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.mentor-badge {
  position: absolute;
  top: 26px;
  left: -20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6c76b, #c8a64e);
  color: #101818;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  text-align: center;
  line-height: 1;
}

.mentor-badge-name {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mentor-badge-sub {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.mentor-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.mentor-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e6c76b;
  margin-bottom: 12px;
}

.mentor-section .teacher-name { color: #fff; font-size: 40px; }
.mentor-section .teacher-location { color: rgba(255, 255, 255, 0.72); }

.mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
}

.mentor-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}

.mentor-section .teacher-bio-title { color: #e6c76b; }
.mentor-section .teacher-bio p { color: rgba(255, 255, 255, 0.84); }

.hl {
  color: #e6c76b;
  font-weight: 700;
}

.mentor-stats {
  display: flex;
  gap: 14px;
  margin: 26px 0 28px;
}

.mentor-stat {
  flex: 1;
  padding: 16px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.mentor-stat:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.stat-num {
  display: block;
  font-family: var(--heading-font);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: #e6c76b;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* 深色区域金色 CTA */
.btn-gold {
  background: linear-gradient(135deg, #e6c76b, #c8a64e);
  color: #101818;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f0d681, #d4b257);
  color: #101818;
}

/* ==========================================================================
   Free trial section
   ========================================================================== */
.trial-title,
.guide-title {
  font-family: var(--heading-font);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 24px;
}

/* ==========================================================================
   Reviews 三列上下滚动（无限循环）
   ========================================================================== */
.reviews-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 24px 16px;
}

.review-col {
  height: 620px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.review-col-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}

.col-1 .review-col-track { animation: scroll-up 42s linear infinite; }
.col-2 .review-col-track { animation: scroll-down 56s linear infinite; }
.col-3 .review-col-track { animation: scroll-up 48s linear infinite; }

.review-col:hover .review-col-track {
  animation-play-state: paused;
}

@keyframes scroll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes scroll-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.review-card {
  flex: 0 0 auto;
  width: 100%;
  background: #101010;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.review-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 9px;
}

/* ==========================================================================
   Guide section
   ========================================================================== */
.guide-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Medium screens (tablet) */
@media (min-width: 768px) and (max-width: 1279px) {
  .grid-2 .col {
    flex-basis: 50%;
    max-width: 50%;
  }

  .cards .card {
    flex-basis: 50%;
    max-width: 50%;
  }

  .subscribe-form {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .subscribe-field {
    flex: 1;
    margin-bottom: 0;
  }

  .btn-subscribe {
    width: auto;
    flex-shrink: 0;
  }
}

/* Large screens (desktop) */
@media (min-width: 1024px) {
  .hamburger { display: none; }

  .grid-2 .col {
    flex-basis: 50%;
    max-width: 50%;
    margin-bottom: 0;
  }

  .cards .card {
    flex-basis: 33.333%;
    max-width: 33.333%;
  }

  .subscribe-form {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .subscribe-field {
    flex: 1;
    margin-bottom: 0;
  }

  .btn-subscribe {
    width: auto;
    flex-shrink: 0;
  }

  .teacher-layout {
    flex-direction: row;
  }
}

/* Narrow desktop: hide the WhatsApp button in the nav (still in drawer + guide) */
@media (min-width: 1024px) and (max-width: 1399px) {
  .wa-nav-btn { display: none; }
}

/* Mobile */
@media (max-width: 1023px) {
  .main-nav { display: none; }

  .hamburger { display: inline-flex; }

  .header-inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .car-slide { flex-basis: 190px; height: 460px; min-height: 460px; }

  .car-arrow {
    width: 44px;
    height: 44px;
  }

  .hero-sub { font-size: 16px; }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

  /* Teacher layout stacks on mobile */
  .teacher-layout {
    flex-direction: column;
    gap: 28px;
  }

  .teacher-photos {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .teacher-info {
    text-align: center;
  }

  .teacher-bio {
    text-align: left;
  }

  .teacher-name { font-size: 26px; }

  /* Reviews 三列适配移动端：减高度、减间距 */
  .reviews-columns {
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .review-col {
    height: 460px;
  }

  .review-col-track { gap: 10px; }
}

@media (max-width: 640px) {
  .car-slide { flex-basis: 160px; height: 380px; min-height: 380px; }
}

/* ---------- Scroll reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Mentor + Hero 移动端细节 */
@media (max-width: 1023px) {
  .hero { min-height: 58vh; }
  .hero-arrow { width: 42px; height: 42px; }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }
  .hero-dots { bottom: 18px; }
  .hero-sub { font-size: 16px; }

  .mentor-layout { flex-direction: column; gap: 44px; }
  .mentor-photos { flex: 0 0 auto; max-width: 100%; width: 100%; }
  .mentor-info { text-align: center; }
  .mentor-section .teacher-name { font-size: 30px; }
  .mentor-section .teacher-bio { text-align: left; }
  .mentor-tags,
  .mentor-stats { justify-content: center; }
  .mentor-badge { top: 16px; left: 10px; width: 72px; height: 72px; }
  .mentor-stat { padding: 12px 6px; }
  .stat-num { font-size: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
