:root {
  --theme-primary: #111111;
  --theme-primary-hover: #333333;
  --theme-on-primary: #ffffff;
  --theme-bg: #ffffff;
  --theme-on-bg: #111111;
  --theme-surface-1: #f9f9f7;
  --theme-on-surface-1: #111111;
  --theme-surface-2: #e8e8e4;
  --theme-on-surface-2: #111111;
  --theme-border: #e8e8e4;
  --theme-muted: #888880;
  --theme-muted-text: #555550;
  --theme-shape-radius: 8px;
  --theme-button-border-radius: 6px;
  --theme-transition: 0.2s ease;
  --section-margin: 3rem;
  --theme-grid-gap: 1rem;
  --container-max-width: 1080px;
  --container-max-width-narrow: 760px;
  --container-padding: 0 1.5rem;
  --navbar-height: 72px;
  --font-size-sm: 13px;
  --font-size-base: 15px;
  --font-size-md: 18px;
  --font-size-lg: 20px;
  --font-size-xl: 26px;
  --font-size-xxl: clamp(34px, 5vw, 52px);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--theme-bg);
  color: var(--theme-on-bg);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

h1 {
  font-size: var(--font-size-xxl);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

h2 {
  font-size: var(--font-size-xl);
  line-height: 1.15;
}

h3 {
  font-size: var(--font-size-lg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

/* ---------- Layout ---------- */
.content__container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.content__container--narrow {
  max-width: var(--container-max-width-narrow);
}

.content__container--wide {
  max-width: 1280px;
}

.section-band {
  margin: var(--section-margin) auto;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--theme-muted-text);
  margin-bottom: 0.75rem;
}

.muted-text {
  color: var(--theme-muted-text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--theme-button-border-radius);
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn:hover {
  background: var(--theme-primary-hover);
}

.btn--unelevated {
  background: transparent;
  color: var(--theme-on-bg);
  border-color: var(--theme-border);
}

.btn--unelevated:hover {
  background: var(--theme-surface-2);
}

.btn--ghost {
  background: transparent;
  color: var(--theme-on-bg);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  opacity: 0.7;
  background: transparent;
}

.btn .custom-icon__span {
  display: inline-flex;
  align-items: center;
}

.btn .custom-icon__span svg {
  width: 1em;
  height: 1em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--navbar-height);
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--theme-border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.brand .logo-img {
  height: 2.25rem;
  width: auto;
  border-radius: 6px;
}

.brand-name {
  font-size: var(--font-size-md);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: var(--font-size-base);
  color: var(--theme-muted-text);
}

.nav-links a:hover {
  color: var(--theme-on-bg);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: transparent;
  color: var(--theme-muted-text);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  border-color: var(--theme-on-bg);
  color: var(--theme-on-bg);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--theme-on-bg);
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 960px) {
  .site-header {
    padding: 0 1rem;
  }

  .nav-links,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.mobile-menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--theme-bg);
    border-bottom: 1px solid var(--theme-border);
  }

  .site-header.mobile-menu-open .nav-links a {
    padding: 0.6rem 0;
    font-size: var(--font-size-md);
  }

  .site-header.mobile-menu-open .nav-links .nav-cta {
    display: inline-flex;
    margin-top: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: var(--font-size-base);
  }
}

/* ---------- Announcement marquee ---------- */
.announcement-banner {
  overflow: hidden;
  padding: 0.5rem 0;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  white-space: nowrap;
}

.announcement-banner__marquee {
  display: inline-flex;
  gap: 4rem;
  padding-left: 0;
  animation: marquee 40s linear infinite;
}

.announcement-banner__item {
  font-size: var(--font-size-base);
  color: #ffffff;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Hero ---------- */
.hero-section {
  display: grid;
  grid-template-columns: 2fr 3fr;
  align-items: stretch;
  gap: 1rem;
  margin: var(--section-margin) auto;
  min-height: clamp(90vh, 100vw, calc(100vh - var(--navbar-height)));
  padding: 0;
}

.hero-section__text {
  max-width: 26rem;
  align-self: center;
}

.hero-section__text p {
  font-size: var(--font-size-md);
  color: var(--theme-muted-text);
}

.hero-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-section__image {
  display: flex;
  align-items: stretch;
  justify-content: center;
  transform: translateX(10%);
}

/* Hero visual panel (brand-driven, no external image needed) */
.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 80vh;
  border-radius: var(--theme-shape-radius);
  background: linear-gradient(150deg, #f7f7f5 0%, #efefea 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual__logo {
  width: 42%;
  max-width: 300px;
  height: auto;
}

@media (max-width: 768px) {
  .content__container {
    padding: 0 1.5rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
    padding: 1rem 0 2.5rem;
  }

  .hero-section__image {
    order: 2;
    transform: none;
  }

  .hero-visual {
    height: 40vh;
  }

  .hero-visual__logo {
    width: 34%;
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-btns .btn {
    width: auto;
    justify-content: center;
  }

  .form-card,
  .booking-card {
    padding: 1.25rem;
  }

  .case-article {
    padding: 0 1rem 2.5rem;
  }
}

/* ---------- Feature strip ---------- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.feature-strip > div {
  padding: 1rem 1.25rem;
  background: var(--theme-surface-1);
  border-radius: var(--theme-shape-radius);
}

.feature-strip strong {
  display: block;
  font-size: var(--font-size-md);
  font-weight: 600;
}

.feature-strip span {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--theme-muted-text);
}

/* ---------- Service / feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-grid article,
.service-card {
  padding: 1.5rem;
  background: var(--theme-surface-1);
  border: 1px solid transparent;
  border-radius: var(--theme-shape-radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-grid article:hover,
.service-card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-grid article > span {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--theme-muted);
  margin-bottom: 0.75rem;
}

.feature-grid h3,
.service-card h3 {
  margin-bottom: 0.6rem;
}

.feature-grid p,
.service-card p {
  margin-bottom: 0;
  color: var(--theme-muted-text);
}

.service-card ul {
  margin-top: 0.75rem;
}

.service-card ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  color: var(--theme-muted-text);
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--theme-primary);
}

/* Services: text columns (Odyssey three-col style) */
.service-columns {
  --column-count: 3;
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: space-evenly;
  margin: var(--section-margin) auto;
}

.service-columns article {
  width: calc(100% / var(--column-count));
  margin-bottom: 2rem;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr;
  text-align: center;
}

.service-columns h2 {
  margin-bottom: 0.75rem;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-columns p {
  margin: 0;
  color: var(--theme-muted-text);
}

@media (max-width: 960px) {
  .service-columns {
    --column-count: 2;
  }
}

@media (max-width: 640px) {
  .service-columns {
    --column-count: 1;
  }
}

/* ---------- Two-column split ---------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: var(--section-margin) auto;
}

@media (max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.pain-list,
.results-list {
  padding-left: 1.25rem;
  color: var(--theme-muted-text);
}

.pain-list li,
.results-list li {
  list-style: disc;
  margin-bottom: 1rem;
}

.pain-list strong,
.results-list strong {
  color: var(--theme-on-bg);
  font-weight: 600;
}

.provide-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.provide-item h2 {
  margin-bottom: 0.75rem;
}

.provide-item p {
  margin: 0;
}

/* ---------- Case study cards ---------- */
.case-studies-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: var(--section-margin) auto;
}

.case-study-card {
  display: block;
  padding: 1.5rem;
  background: var(--theme-surface-1);
  border: 1px solid transparent;
  border-radius: var(--theme-shape-radius);
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.case-study-card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.case-study-card__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--theme-muted);
  margin-bottom: 0.5rem;
}

.case-study-card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.case-study-card__summary {
  font-size: var(--font-size-base);
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.case-study-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.case-study-card__meta dt {
  font-weight: 500;
  opacity: 0.7;
  margin-bottom: 0.25rem;
  font-size: var(--font-size-sm);
}

.case-study-card__meta dd {
  margin: 0;
  font-size: var(--font-size-sm);
}

.case-study-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.case-study-card__link svg {
  width: 18px;
  height: 18px;
}

/* ---------- Case study article ---------- */
.case-article {
  max-width: var(--container-max-width-narrow);
  margin: 3rem auto;
  padding: 0 1.5rem 3rem;
}

.case-article__hero {
  margin-bottom: 2.5rem;
}

.case-article__hero .eyebrow {
  text-transform: none;
}

.case-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--theme-surface-1);
  border-radius: var(--theme-shape-radius);
}

.case-article__meta div dt {
  font-size: var(--font-size-sm);
  font-weight: 500;
  opacity: 0.7;
}

.case-article__meta div dd {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: 500;
}

.case-article h2 {
  margin-top: 2.5rem;
}

.case-article p {
  color: var(--theme-muted-text);
}

.case-article blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.75rem;
  border-left: 2px solid var(--theme-primary);
  font-size: var(--font-size-md);
  font-weight: 300;
  font-style: italic;
  color: var(--theme-on-bg);
}

.case-article .case-list {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.case-article .case-list li {
  list-style: disc;
  color: var(--theme-muted-text);
  margin-bottom: 0.5rem;
}

/* ---------- About ---------- */
.about-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  margin: var(--section-margin) auto;
  max-width: var(--container-max-width-narrow);
}

.about-section__photo {
  display: flex;
  justify-content: flex-start;
  justify-self: start;
}

.founder-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--theme-surface-2);
}

.about-section__content {
  min-width: 0;
}

.about-section__content h1 {
  margin-top: 0;
}

.about-section__content p {
  margin-bottom: 1.25rem;
  color: #303030;
  line-height: 1.75;
}

.founder-intro {
  font-size: var(--font-size-sm);
  opacity: 1;
  color: #51514d;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-section__photo {
    order: -1;
    justify-content: center;
    justify-self: center;
  }
}

/* ---------- Forms ---------- */
.form-card {
  padding: 2rem;
  background: var(--theme-surface-1);
  border-radius: var(--theme-shape-radius);
}

.site-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.site-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--theme-on-bg);
}

.site-form label.required > span:first-child::after,
.slot-group.required > span::after {
  content: " *";
  color: #e02424;
  font-weight: 600;
}

.site-form input,
.site-form select,
.site-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-button-border-radius);
  background: var(--theme-bg);
  color: var(--theme-on-bg);
  font-size: var(--font-size-base);
  transition: border-color 0.2s;
}

.site-form input:focus,
.site-form select:focus,
.site-form textarea:focus {
  outline: none;
  border-color: var(--theme-primary);
}

.site-form textarea {
  resize: vertical;
}

.site-form fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.site-form legend {
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.checkbox-row label {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  color: var(--theme-muted-text);
}

.checkbox-row input {
  width: auto;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--theme-button-border-radius);
  font-size: var(--font-size-sm);
}

.form-status.error {
  display: block;
  background: #fdecea;
  color: #b3261e;
}

/* ---------- Booking UI ---------- */
.booking-card {
  padding: 2rem;
  background: var(--theme-surface-1);
  border-radius: var(--theme-shape-radius);
}

.slot-group {
  margin-bottom: 1.5rem;
}

.slot-group > span {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slot-chip {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-bg);
  font-size: var(--font-size-sm);
  color: var(--theme-muted-text);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.slot-chip:hover {
  border-color: var(--theme-primary);
  color: var(--theme-on-bg);
}

.slot-chip.selected {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: var(--theme-on-primary);
}

.slot-chip:disabled {
  cursor: not-allowed;
  background-color: var(--theme-surface-2);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 4px,
    rgba(0, 0, 0, 0.18) 4px 8px
  );
  border-color: var(--theme-border);
  color: var(--theme-muted);
  text-decoration: line-through;
  text-decoration-color: #111111;
  text-decoration-thickness: 2px;
}

.slot-chip:disabled:hover {
  border-color: var(--theme-border);
  color: var(--theme-muted);
}

.booking-note {
  font-size: var(--font-size-sm);
  color: var(--theme-muted);
  margin-bottom: 1.5rem;
}

/* ---------- Thank you ---------- */
.thankyou-section {
  max-width: var(--container-max-width-narrow);
  margin: 6rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.thankyou-section .btn {
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--theme-border);
  background: var(--theme-surface-1);
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto 2rem;
}

.footer-brand .logo-img {
  height: 2.25rem;
  width: auto;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  max-width: 22rem;
  font-size: var(--font-size-sm);
  color: var(--theme-muted-text);
  margin: 0;
}

.footer-col strong {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: var(--font-size-base);
  color: var(--theme-muted-text);
}

.footer-col a:hover {
  color: var(--theme-on-bg);
}

.footer-copyright {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--theme-border);
}

.footer-copyright p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--theme-muted-text);
}

/* ---------- Utilities ---------- */
.hidden {
  display: none !important;
}

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

.mt-2 {
  margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
