:root {
  --bg: #f3f4f2;
  --surface: #ffffff;
  --surface-soft: #faf6ee;
  --surface-accent: #f5f0e7;
  --text: #2a2c2d;
  --muted: #5b5f60;
  --line: rgba(42, 44, 45, 0.12);
  --primary: #505657;
  --accent: #a6886a;
  --accent-deep: #836b54;
  --shadow: 0 24px 70px rgba(42, 44, 45, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(166, 136, 106, 0.18), transparent 32%),
    linear-gradient(180deg, #fcfbf8 0%, var(--bg) 38%, #f7f4ef 100%);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

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

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

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(252, 251, 248, 0.84);
  border-bottom: 1px solid rgba(42, 44, 45, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 160px;
  max-width: 42vw;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-kicker,
.eyebrow,
.mini-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-deep);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(166, 136, 106, 0.24);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch a.active {
  color: var(--accent-deep);
  font-weight: 700;
}

.hero {
  padding: 52px 0 44px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 246, 238, 0.92)),
    url("https://www.lineaestheticsclinic.com/wp-content/uploads/2025/07/branch-1024x674.webp") center/cover;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 252, 246, 0.98) 0%, rgba(255, 252, 246, 0.9) 52%, rgba(255, 252, 246, 0.28) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 38px;
  padding: 62px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button {
  background: var(--accent);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(166, 136, 106, 0.25);
  color: var(--accent-deep);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(131, 107, 84, 0.42);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  border-radius: var(--radius-xl);
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(42, 44, 45, 0.06);
}

.hero-panel h2 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.hero-panel ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-panel li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.hero-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.73em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.98;
  text-transform: uppercase;
}

.section-heading p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  height: 100%;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(166, 136, 106, 0.12);
  box-shadow: 0 18px 40px rgba(42, 44, 45, 0.04);
}

.card h3,
.card h4 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
  text-transform: uppercase;
}

.card h3 {
  font-size: 28px;
}

.card h4 {
  font-size: 24px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul,
.list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.list li,
.card ul li {
  position: relative;
  padding-left: 18px;
}

.list li::before,
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 28px;
}

.feature-panel {
  overflow: hidden;
  border-radius: 32px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(250, 246, 238, 0.24), rgba(255, 255, 255, 0.06)),
    url("https://www.lineaestheticsclinic.com/wp-content/uploads/2025/07/branch-1024x674.webp") center/cover;
  position: relative;
  box-shadow: var(--shadow);
}

.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 44, 45, 0.06), rgba(42, 44, 45, 0.34));
}

.feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 34px;
  color: #fff;
}

.feature-copy h3 {
  margin: 8px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.feature-copy p {
  margin: 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.88);
}

.cta {
  padding: 36px 0 54px;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(166, 136, 106, 0.16), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(166, 136, 106, 0.18);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 0.98;
  text-transform: uppercase;
}

.cta-box p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.contact-card,
.form-card {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(166, 136, 106, 0.14);
  box-shadow: 0 18px 40px rgba(42, 44, 45, 0.04);
}

.contact-card h3,
.form-card h3 {
  margin: 10px 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.contact-meta {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-meta strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.contact-meta span,
.contact-meta a {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(166, 136, 106, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(131, 107, 84, 0.5);
  box-shadow: 0 0 0 4px rgba(166, 136, 106, 0.12);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 28px 0 44px;
}

.footer-shell {
  display: grid;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(42, 44, 45, 0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.7fr));
  gap: 20px;
}

.footer-brand p,
.footer-links a,
.footer-contact li {
  color: var(--muted);
}

.footer-brand p {
  max-width: 42ch;
  margin: 12px 0 0;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.sample-index {
  padding: 88px 0;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.sample-card {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(166, 136, 106, 0.14);
  box-shadow: var(--shadow);
}

.sample-card h2 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
}

.sample-card p {
  color: var(--muted);
}

.sample-card .button,
.sample-card .button-secondary {
  margin-top: 16px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .contact-wrap,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid {
    padding: 34px 24px;
    gap: 22px;
  }

  .hero-panel,
  .card,
  .contact-card,
  .form-card,
  .sample-card,
  .cta-box {
    padding: 24px;
  }

  .form-grid,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy p,
  .section-heading p,
  .cta-box p {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1,
  .section-heading h2,
  .cta-box h2 {
    text-transform: none;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .lang-switch {
    flex-wrap: wrap;
  }
}

/* ===== CJK safety: prevent awkward breaks & overflow ===== */
:lang(ja),
:lang(ko),
:lang(zh),
:lang(zh-CN) {
  word-break: normal;
  line-break: strict;
  overflow-wrap: anywhere;
}

:lang(ja) .hero-copy h1,
:lang(ja) .hero-panel h2,
:lang(ja) .section-heading h2,
:lang(ja) .cta-box h2,
:lang(ja) .card h3,
:lang(ja) .card h4,
:lang(ja) .feature-copy h3,
:lang(ja) .contact-card h3,
:lang(ja) .form-card h3,
:lang(ja) .footer-links h4,
:lang(ja) .footer-contact h4,
:lang(ja) .sample-card h2,
:lang(ko) .hero-copy h1,
:lang(ko) .hero-panel h2,
:lang(ko) .section-heading h2,
:lang(ko) .cta-box h2,
:lang(ko) .card h3,
:lang(ko) .card h4,
:lang(ko) .feature-copy h3,
:lang(ko) .contact-card h3,
:lang(ko) .form-card h3,
:lang(ko) .footer-links h4,
:lang(ko) .footer-contact h4,
:lang(ko) .sample-card h2,
:lang(zh) .hero-copy h1,
:lang(zh) .hero-panel h2,
:lang(zh) .section-heading h2,
:lang(zh) .cta-box h2,
:lang(zh) .card h3,
:lang(zh) .card h4,
:lang(zh) .feature-copy h3,
:lang(zh) .contact-card h3,
:lang(zh) .form-card h3,
:lang(zh) .footer-links h4,
:lang(zh) .footer-contact h4,
:lang(zh) .sample-card h2,
:lang(zh-CN) .hero-copy h1,
:lang(zh-CN) .hero-panel h2,
:lang(zh-CN) .section-heading h2,
:lang(zh-CN) .cta-box h2,
:lang(zh-CN) .card h3,
:lang(zh-CN) .card h4,
:lang(zh-CN) .feature-copy h3,
:lang(zh-CN) .contact-card h3,
:lang(zh-CN) .form-card h3,
:lang(zh-CN) .footer-links h4,
:lang(zh-CN) .footer-contact h4,
:lang(zh-CN) .sample-card h2 {
  text-transform: none;
  letter-spacing: 0.02em;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}

:lang(ja) .button,
:lang(ja) .button-secondary,
:lang(ko) .button,
:lang(ko) .button-secondary,
:lang(zh) .button,
:lang(zh) .button-secondary,
:lang(zh-CN) .button,
:lang(zh-CN) .button-secondary {
  text-transform: none;
  letter-spacing: 0.04em;
  padding: 0 22px;
  white-space: nowrap;
}

:lang(ja) .eyebrow,
:lang(ja) .mini-label,
:lang(ja) .brand-kicker,
:lang(ko) .eyebrow,
:lang(ko) .mini-label,
:lang(ko) .brand-kicker,
:lang(zh) .eyebrow,
:lang(zh) .mini-label,
:lang(zh) .brand-kicker,
:lang(zh-CN) .eyebrow,
:lang(zh-CN) .mini-label,
:lang(zh-CN) .brand-kicker {
  letter-spacing: 0.12em;
}

.lang-switch a { white-space: nowrap; }
.contact-meta a, .contact-meta span { overflow-wrap: anywhere; word-break: break-word; }
.field input, .field textarea { min-width: 0; }
.form-grid { min-width: 0; }
.nav { row-gap: 8px; }

/* ===== Original-site imagery ===== */
.section-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 30px;
  aspect-ratio: 16/6;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 18px 40px rgba(42, 44, 45, 0.08);
}

.section-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 44, 45, 0.04) 0%, rgba(42, 44, 45, 0.18) 100%);
}

.section-banner.under-eye {
  background-image: url("https://www.lineaestheticsclinic.com/wp-content/uploads/2025/08/section-banner-image-3.jpg");
}

.section-banner.eyelid {
  background-image: url("https://www.lineaestheticsclinic.com/wp-content/uploads/2025/09/section-banner-image-6.jpg");
}

.hero-photo {
  display: block;
  width: 100%;
  height: 200px;
  margin-top: 18px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(42, 44, 45, 0.1);
}

.cta-box.with-photo {
  background:
    linear-gradient(115deg, rgba(255, 252, 246, 0.97) 0%, rgba(255, 252, 246, 0.85) 50%, rgba(255, 252, 246, 0.4) 100%),
    url("https://www.lineaestheticsclinic.com/wp-content/uploads/2025/07/cta-banner-2_image.jpg") center/cover;
}

.feature-panel.symptoms {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(42, 44, 45, 0.34)),
    url("https://www.lineaestheticsclinic.com/wp-content/uploads/2025/10/AdobeStock_565968303.jpg") center/cover;
}

@media (max-width: 820px) {
  .section-banner { aspect-ratio: 4/3; margin-bottom: 22px; }
}
