/* LUVELA INTERNATIONAL — brand system */
:root {
  --navy-950: #07131f;
  --navy-900: #0b1f33;
  --navy-800: #123049;
  --teal-600: #1f7a6e;
  --teal-500: #2a9d8f;
  --teal-300: #7ecfc4;
  --gold-500: #b8956a;
  --gold-300: #d4b896;
  --sand-100: #e8e2d6;
  --ink-900: #101820;
  --ink-700: #3a4654;
  --ink-500: #5c6b7a;
  --paper: #f3f0ea;
  --paper-soft: #faf8f4;
  --line: rgba(11, 31, 51, 0.12);
  --line-strong: rgba(11, 31, 51, 0.22);
  --white: #ffffff;
  --shadow-soft: 0 24px 60px rgba(7, 19, 31, 0.12);

  --font-display: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --font-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Outfit", "Noto Sans TC", system-ui, sans-serif;

  --header-h: 4.5rem;
  --container: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background: var(--paper-soft);
  font-family: var(--font-zh);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-lang="en"] {
  font-family: var(--font-en);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 0.25rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 19, 31, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(7, 19, 31, 0.25);
}

.header-inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  z-index: 2;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.35rem;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand-sub {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  opacity: 0.72;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  border-radius: 0.35rem;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.site-header.is-open .nav-toggle-bar {
  background: transparent;
}

.site-header.is-open .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--white);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.55) 0%, rgba(7, 19, 31, 0.35) 38%, rgba(7, 19, 31, 0.78) 100%),
    linear-gradient(90deg, rgba(7, 19, 31, 0.55) 0%, rgba(7, 19, 31, 0.15) 55%, rgba(7, 19, 31, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  padding: calc(var(--header-h) + 4rem) 0 7rem;
  max-width: 46rem;
  animation: riseIn 1.1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--white);
  text-wrap: balance;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--sand-100);
  margin-bottom: 1rem;
  max-width: 28ch;
}

body[data-lang="en"] .hero-title {
  font-family: var(--font-en);
  font-weight: 400;
  letter-spacing: 0.01em;
  max-width: 34ch;
}

.hero-lead {
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(243, 240, 234, 0.86);
  max-width: 38ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.45rem;
  border-radius: 0.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-500);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  animation: pulseY 2.4s ease-in-out infinite;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  margin-bottom: 1rem;
  text-wrap: balance;
}

body[data-lang="en"] .section-title {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--ink-700);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 46ch;
}

/* About */
.about {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(42, 157, 143, 0.08), transparent 60%),
    var(--paper-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 1.15rem;
  color: var(--ink-700);
  font-size: 1.05rem;
  font-weight: 300;
}

.about-stats {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.stat {
  display: grid;
  gap: 0.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: 0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--ink-500);
}

/* Services */
.services {
  background:
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
}

.services .eyebrow {
  color: var(--teal-300);
}

.services .section-title {
  color: var(--white);
}

.services .section-lead {
  color: rgba(243, 240, 234, 0.78);
}

.service-list {
  display: grid;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.service-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.service-index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-300);
  letter-spacing: 0.08em;
  padding-top: 0.2rem;
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}

body[data-lang="en"] .service-body h3 {
  font-family: var(--font-en);
  font-weight: 500;
}

.service-body > p {
  color: rgba(243, 240, 234, 0.78);
  font-weight: 300;
  max-width: 52ch;
  margin-bottom: 1.1rem;
}

.service-points {
  display: grid;
  gap: 0.45rem;
}

.service-points li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(243, 240, 234, 0.68);
  font-size: 0.95rem;
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 1px;
  background: var(--teal-300);
}

/* Strengths */
.strengths {
  background:
    linear-gradient(135deg, rgba(184, 149, 106, 0.08), transparent 40%),
    var(--paper);
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.strength-item {
  padding: 2rem 1.75rem 2rem 0;
  border-bottom: 1px solid var(--line);
}

.strength-item:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.strength-item:nth-child(even) {
  padding-left: 2rem;
}

.strength-item h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.7rem;
}

body[data-lang="en"] .strength-item h3 {
  font-family: var(--font-en);
  font-weight: 500;
}

.strength-item p {
  color: var(--ink-700);
  font-weight: 300;
  max-width: 36ch;
}

/* Process */
.process {
  background: var(--paper-soft);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.process-step {
  position: relative;
  padding-top: 0.5rem;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 3.2rem;
  right: -1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-500), transparent);
}

.process-step:last-child::before {
  display: none;
}

.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--teal-600);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.55rem;
}

body[data-lang="en"] .process-step h3 {
  font-family: var(--font-en);
  font-weight: 500;
}

.process-step p {
  color: var(--ink-700);
  font-weight: 300;
  font-size: 0.98rem;
}

/* Company */
.company {
  background:
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(31, 122, 110, 0.07), transparent 55%),
    var(--paper);
}

.company-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.fact {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.fact:not(.fact-wide) {
  border-right: 1px solid var(--line);
  padding-right: 1.75rem;
}

.fact:nth-child(3) {
  border-right: 0;
}

.fact-wide {
  grid-column: 1 / -1;
  padding-right: 0;
}

.fact dt {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 0.65rem;
}

.fact dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy-900);
  line-height: 1.55;
}

/* Contact */
.contact {
  background:
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}

.contact .eyebrow {
  color: var(--gold-300);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-lead {
  color: rgba(243, 240, 234, 0.78);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.contact-intro .section-head,
.contact-intro .section-lead {
  margin-bottom: 0;
}

.contact-intro .section-title {
  margin-bottom: 1rem;
}

.contact-panel {
  display: grid;
  gap: 0;
  padding: 0.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: baseline;
}

.contact-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(243, 240, 234, 0.55);
}

.contact-value {
  font-size: 1.05rem;
  color: var(--white);
}

.contact-link {
  transition: color 0.25s ease;
}

.contact-link:hover {
  color: var(--teal-300);
}

.contact-cta {
  margin-top: 1.75rem;
  justify-self: start;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(243, 240, 234, 0.65);
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.footer-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-brand p {
  font-size: 0.88rem;
}

.footer-copy {
  font-size: 0.85rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes pulseY {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 0.45;
  }
  50% {
    transform: translate(-50%, 6px);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-image,
  .hero-content,
  .hero-scroll,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid,
  .contact-layout,
  .process-timeline {
    grid-template-columns: 1fr;
  }

  .process-step::before {
    display: none;
  }

  .process-timeline {
    gap: 0;
  }

  .process-step {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    column-gap: 1rem;
    padding: 1.35rem 0;
    border-top: 1px solid var(--line);
  }

  .process-num {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .company-facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:not(.fact-wide) {
    border-right: 0;
    padding-right: 0;
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }

  .strength-item,
  .strength-item:nth-child(odd),
  .strength-item:nth-child(even) {
    border-right: 0;
    padding: 1.75rem 0;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(7, 19, 31, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-list a {
    font-size: 1.25rem;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-content {
    padding-bottom: 5.5rem;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .brand-sub {
    display: none;
  }
}
