:root {
  /* Brand primary - ocean teal/blue for seaside resort */
  --brand-50: #ecfeff;
  --brand-100: #cffafe;
  --brand-200: #a5f3fc;
  --brand-300: #67e8f9;
  --brand-400: #22d3ee;
  --brand-500: #06b6d4;
  --brand-600: #0891b2;
  --brand-700: #0e7490;
  --brand-800: #155e75;
  --brand-900: #164e63;
  --brand-950: #083344;

  /* Warm accent - sunset orange for CTAs/highlights */
  --warm-50: #fff7ed;
  --warm-500: #f97316;
  --warm-600: #ea580c;
  --warm-700: #c2410c;
  --warm: #f97316;
  --warm-dark: #ea580c;
  --dark-bg: #0c1929;
  /* Neutral surfaces - warm sand tones */
  --sand-50: #fdfcf8;
  --sand-100: #faf7ef;
  --sand-200: #f3ede0;

  /* Semantic mappings for apply-html-head-contract */
  --brand-background: #fafbfc;
  --brand-foreground: #0c1929;
  --brand-card: #ffffff;
  --brand-card-foreground: #0c1929;
  --brand-popover: #ffffff;
  --brand-popover-foreground: #0c1929;
  --brand-primary: #0891b2;
  --brand-primary-foreground: #ffffff;
  --brand-muted: #f1f5f9;
  --brand-muted-foreground: #64748b;
  --brand-border: #e2e8f0;
  --brand-input: #cbd5e1;
  --brand-ring: #0891b2;

  /* Radius scale */
  --brand-radius-sm: 4px;
  --brand-radius-md: 8px;
  --brand-radius-lg: 16px;

  /* Shadows */
  --brand-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --brand-shadow-md: 0 4px 12px -4px rgba(15, 23, 42, 0.08);
  --brand-shadow-lg: 0 12px 32px -12px rgba(15, 23, 42, 0.15);

  /* Custom design tokens */
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0c1929;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --brand: #0891b2;
  --brand-ink: #ffffff;
  --accent-warm: #f97316;
  --accent-warm-dark: #ea580c;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 80px;
  --s-9: 120px;

  /* Radius */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;
}

@theme inline {
  --color-background: var(--brand-background);
  --color-foreground: var(--brand-foreground);
  --color-card: var(--brand-card);
  --color-card-foreground: var(--brand-card-foreground);
  --color-popover: var(--brand-popover);
  --color-popover-foreground: var(--brand-popover-foreground);
  --color-primary: var(--brand-primary);
  --color-primary-foreground: var(--brand-primary-foreground);
  --color-muted: var(--brand-muted);
  --color-muted-foreground: var(--brand-muted-foreground);
  --color-border: var(--brand-border);
  --color-input: var(--brand-input);
  --color-ring: var(--brand-ring);
  --radius-sm: var(--brand-radius-sm);
  --radius-md: var(--brand-radius-md);
  --radius-lg: var(--brand-radius-lg);
}
@layer base {
  body {
    background: var(--brand-background);
    color: var(--brand-foreground);
  }
  td,
  th {
    @apply break-words;
    word-break: break-all;
    word-break: auto-phrase;
  }
  th {
    @apply whitespace-nowrap;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

.bg-background {
  background-color: var(--brand-background);
}

.text-background {
  color: var(--brand-background);
}

.border-background {
  border-color: var(--brand-background);
}

.ring-background {
  --tw-ring-color: var(--brand-background);
}

.bg-foreground {
  background-color: var(--brand-foreground);
}

.text-foreground {
  color: var(--brand-foreground);
}

.border-foreground {
  border-color: var(--brand-foreground);
}

.ring-foreground {
  --tw-ring-color: var(--brand-foreground);
}

.bg-card {
  background-color: var(--brand-card);
}

.text-card {
  color: var(--brand-card);
}

.border-card {
  border-color: var(--brand-card);
}

.ring-card {
  --tw-ring-color: var(--brand-card);
}

.bg-card-foreground {
  background-color: var(--brand-card-foreground);
}

.text-card-foreground {
  color: var(--brand-card-foreground);
}

.border-card-foreground {
  border-color: var(--brand-card-foreground);
}

.ring-card-foreground {
  --tw-ring-color: var(--brand-card-foreground);
}

.bg-popover {
  background-color: var(--brand-popover);
}

.text-popover {
  color: var(--brand-popover);
}

.border-popover {
  border-color: var(--brand-popover);
}

.ring-popover {
  --tw-ring-color: var(--brand-popover);
}

.bg-popover-foreground {
  background-color: var(--brand-popover-foreground);
}

.text-popover-foreground {
  color: var(--brand-popover-foreground);
}

.border-popover-foreground {
  border-color: var(--brand-popover-foreground);
}

.ring-popover-foreground {
  --tw-ring-color: var(--brand-popover-foreground);
}

.bg-primary {
  background-color: var(--brand-primary);
}

.text-primary {
  color: var(--brand-primary);
}

.border-primary {
  border-color: var(--brand-primary);
}

.ring-primary {
  --tw-ring-color: var(--brand-primary);
}

.bg-primary-foreground {
  background-color: var(--brand-primary-foreground);
}

.text-primary-foreground {
  color: var(--brand-primary-foreground);
}

.border-primary-foreground {
  border-color: var(--brand-primary-foreground);
}

.ring-primary-foreground {
  --tw-ring-color: var(--brand-primary-foreground);
}

.bg-muted {
  background-color: var(--brand-muted);
}

.text-muted {
  color: var(--brand-muted);
}

.border-muted {
  border-color: var(--brand-muted);
}

.ring-muted {
  --tw-ring-color: var(--brand-muted);
}

.bg-muted-foreground {
  background-color: var(--brand-muted-foreground);
}

.text-muted-foreground {
  color: var(--brand-muted-foreground);
}

.border-muted-foreground {
  border-color: var(--brand-muted-foreground);
}

.ring-muted-foreground {
  --tw-ring-color: var(--brand-muted-foreground);
}

.bg-border {
  background-color: var(--brand-border);
}

.text-border {
  color: var(--brand-border);
}

.border-border {
  border-color: var(--brand-border);
}

.ring-border {
  --tw-ring-color: var(--brand-border);
}

.bg-input {
  background-color: var(--brand-input);
}

.text-input {
  color: var(--brand-input);
}

.border-input {
  border-color: var(--brand-input);
}

.ring-input {
  --tw-ring-color: var(--brand-input);
}

.bg-ring {
  background-color: var(--brand-ring);
}

.text-ring {
  color: var(--brand-ring);
}

.border-ring {
  border-color: var(--brand-ring);
}

.ring-ring {
  --tw-ring-color: var(--brand-ring);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: currentColor;
}

.bg-warm {
  background-color: var(--warm);
}

.text-warm {
  color: var(--warm);
}

.border-warm {
  border-color: var(--warm);
}

.hover\:bg-warm-dark:hover {
  background-color: var(--warm-dark);
}

.hover\:text-warm:hover {
  color: var(--warm);
}

.bg-dark-navy {
  background-color: var(--dark-bg);
}

/* Hero overlay */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(12, 25, 41, 0.25) 0%,
    rgba(12, 25, 41, 0.45) 50%,
    rgba(12, 25, 41, 0.85) 100%
  );
}

/* Card hover */
.service-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(12, 25, 41, 0.18);
}

/* Nav scroll state */
#nav-main {
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

#nav-main[data-scrolled="true"] {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

#nav-main[data-scrolled="true"] .nav-link {
  color: var(--brand-foreground);
}

#nav-main[data-scrolled="true"] .nav-logo-text {
  color: var(--brand-primary);
}

#nav-main .nav-link {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s ease;
}

#nav-main .nav-link:hover {
  color: var(--warm);
}

#nav-main[data-scrolled="true"] .nav-link:hover {
  color: var(--brand-primary);
}

#nav-main .nav-logo-text {
  color: #ffffff;
  transition: color 0.3s ease;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #155e75 100%);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top right,
    rgba(249, 115, 22, 0.15),
    transparent 60%
  );
  pointer-events: none;
}

/* Scroll indicator bounce */
@keyframes subtle-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

.scroll-indicator {
  animation: subtle-bounce 2.2s ease-in-out infinite;
}

/* Fade in */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fade-in-up 0.8s ease-out both;
}

/* Section spacing */
.section-y {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .section-y {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* Service card image ratios */
.card-img-tall {
  aspect-ratio: 16/10;
}

.card-img-md {
  aspect-ratio: 4/3;
}

/* Container */
.container-x {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Service grid: mobile 1-col, tablet 2-col, desktop asymmetric */
.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* About section */
.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: center;
  }
}

/* Footer */
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

/* Mobile menu btn visibility */
.mobile-menu-btn {
  display: inline-flex;
}

.desktop-nav {
  display: none;
}

.desktop-cta {
  display: none;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .desktop-cta {
    display: inline-flex;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.bg-warm {
  background-color: var(--warm);
}

.text-warm {
  color: var(--warm);
}

.border-warm {
  border-color: var(--warm);
}

.hover\:bg-warm-dark:hover {
  background-color: var(--warm-dark);
}

.hover\:text-warm:hover {
  color: var(--warm);
}

.bg-dark-navy {
  background-color: var(--dark-bg);
}

/* Hero overlay - slightly darker for interior page */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(12, 25, 41, 0.35) 0%,
    rgba(12, 25, 41, 0.55) 50%,
    rgba(12, 25, 41, 0.88) 100%
  );
}

/* Card hover */
.service-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(12, 25, 41, 0.18);
}

/* Nav scroll state */
#nav-main {
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

#nav-main[data-scrolled="true"] {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

#nav-main[data-scrolled="true"] .nav-link {
  color: var(--brand-foreground);
}

#nav-main[data-scrolled="true"] .nav-link.nav-link-active {
  color: var(--warm);
}

#nav-main[data-scrolled="true"] .nav-logo-text {
  color: var(--brand-primary);
}

#nav-main .nav-link {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s ease;
}

#nav-main .nav-link:hover {
  color: var(--warm);
}

#nav-main[data-scrolled="true"] .nav-link:hover {
  color: var(--brand-primary);
}

#nav-main[data-scrolled="true"] .nav-link.nav-link-active:hover {
  color: var(--warm);
}

#nav-main .nav-link.nav-link-active {
  color: var(--warm);
  position: relative;
}

#nav-main .nav-logo-text {
  color: #ffffff;
  transition: color 0.3s ease;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #155e75 100%);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top right,
    rgba(249, 115, 22, 0.15),
    transparent 60%
  );
  pointer-events: none;
}

/* Fade in */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fade-in-up 0.8s ease-out both;
}

/* Section spacing */
.section-y {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .section-y {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* Container */
.container-x {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* About hero height (shorter than landing) */
.about-hero {
  min-height: 60vh;
}

/* Story grid */
.story-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: center;
  }
}

/* Values grid: 1-col mobile, 2-col md, 4-col lg */
.values-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Stats grid: 2-col mobile, 4-col desktop */
.stats-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

/* Why choose us grid */
.why-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* Footer */
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

/* Mobile menu btn visibility */
.mobile-menu-btn {
  display: inline-flex;
}

.desktop-nav {
  display: none;
}

.desktop-cta {
  display: none;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .desktop-cta {
    display: inline-flex;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

nav[data-scrolled="true"] .mobile-menu-btn svg {
  color: #000;
}

nav[data-scrolled="false"] .mobile-menu-btn svg {
  color: #fff;
}

.desktop-nav {
  display: flex;
}
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
}

/* 汉堡按钮桌面隐藏，移动端显示 */
.mobile-menu-btn {
  display: none;
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* 移动端抽屉容器 */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 150px;
  height: 100vh;
  background-color: #0c1929;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 80px 30px 30px;
}
.mobile-drawer.open {
  transform: translateX(0);
}

/* 遮罩层 */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.drawer-mask.open {
  opacity: 1;
  visibility: visible;
}

/* 移动端菜单链接 */
.mobile-nav-link {
  display: block;
  color: #fff;
  font-size: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s;
}
.mobile-nav-link:hover {
  color: #f97316;
}

/* 关闭按钮 */
.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  cursor: pointer;
}
