/* K Beauty Medical Group — static site styles.
   Original CSS only. No external fonts, frameworks, CDNs or trackers. */

:root {
  --paper: #fbf8f4;
  --paper-2: #f4efe8;
  --paper-3: #ece4d9;
  --line: #ded4c7;
  --ink: #16302c;
  --ink-soft: #3d564f;
  --teal: #0f4a44;
  --teal-deep: #0a332f;
  --accent: #9a6a3c;
  --accent-text: #8a5a2e;
  --focus: #1d6f66;
  --radius: 14px;
  --radius-lg: 24px;
  --wrap: 68rem;
  --shadow-sm: 0 1px 2px rgba(22, 48, 44, 0.06), 0 6px 18px rgba(22, 48, 44, 0.05);
  --shadow-md: 0 2px 4px rgba(22, 48, 44, 0.07), 0 18px 40px rgba(22, 48, 44, 0.08);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  /* An email address or a map URL is one unbreakable word. Without this it
     keeps its full width and runs over the border of the card holding it. */
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--teal-deep);
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.1rem);
}

h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

/* The rule above spaces prose lists. Lists used for layout lay their items out
   with flex/grid gaps instead, and the inherited margin would shift every item
   after the first off the row — which is what pushed the navigation's first
   item above its neighbours. Reset it where the container owns the spacing. */
.site-nav ul > li + li,
.actions > li + li,
.cards > li + li,
.inline-links > li + li {
  margin-top: 0;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--teal);
}

strong {
  font-weight: 650;
}

abbr {
  text-decoration: none;
}

/* No border-radius here: it reshaped the pill-shaped buttons and navigation
   links while they held focus. The outline already follows each element's own
   corner radius. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* The header is sticky, so an in-page heading jumped to from the table of
   contents would otherwise land underneath it. */
:target,
.doc h2,
.doc h3 {
  scroll-margin-top: 5.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--teal-deep);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease-in;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal-deep);
  padding: 0.35rem 0;
}

.brand .mark {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle .bars {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle .bars::before {
  top: -5px;
}

.nav-toggle .bars::after {
  top: 5px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.4rem;
}

/* A fixed line-height keeps every pill the same height whether or not it is the
   selected page, so the labels share one baseline across the row. */
.site-nav a {
  display: block;
  padding: 0.6rem 0.7rem;
  border-radius: 999px;
  font-size: 0.93rem;
  line-height: 1.4;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--paper-2);
  color: var(--teal-deep);
}

.site-nav a[aria-current="page"] {
  color: var(--teal-deep);
  background: var(--paper-3);
}

@media (max-width: 52rem) {
  .header-inner {
    align-items: center;
  }

  .js .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .js .site-nav {
    order: 3;
    flex: 1 0 100%;
    display: none;
  }

  .js .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    /* stacked items span the drawer; centring would shrink-wrap each one */
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.6rem;
  }

  .site-nav li + li {
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    border-radius: var(--radius);
    padding: 0.8rem 0.6rem;
    font-size: 1rem;
  }
}

/* ---------- sections ---------- */

main {
  display: block;
}

.section {
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0;
}

.section + .section {
  padding-top: 0;
}

.section-tint {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-block: 1px solid var(--line);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

.measure {
  max-width: 68ch;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.9rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 88% 12%, rgba(154, 106, 60, 0.13), transparent 70%),
    radial-gradient(70% 60% at 6% 92%, rgba(15, 74, 68, 0.12), transparent 72%),
    linear-gradient(170deg, var(--paper-2), var(--paper) 58%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  padding: clamp(2.75rem, 1.5rem + 6vw, 5.5rem) 0;
  align-items: center;
}

@media (min-width: 58rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  margin-bottom: 0.7rem;
}

.hero-figure {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-figure svg {
  width: min(100%, 24rem);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(10, 51, 47, 0.14));
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #082a26;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: #b9ab99;
  color: var(--teal-deep);
}

.btn-secondary:hover {
  background: var(--paper-2);
  color: var(--teal-deep);
}

.btn[aria-disabled="true"],
.btn:disabled {
  background: var(--paper-3);
  border-color: var(--line);
  color: #5c6b66;
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

/* min-width: 0 — a grid item defaults to a minimum of its content's min-content
   width, which a long email address would push past the track it sits in. */
.card {
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--teal);
}

.card-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.25rem);
  box-shadow: var(--shadow-md);
}

.panel-quiet {
  background: var(--paper-2);
  box-shadow: none;
}

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
}

.notice h2,
.notice h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

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

/* ---------- key facts list ---------- */

.facts {
  display: grid;
  gap: 1.1rem;
  margin: 1.75rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.fact {
  margin: 0;
  min-width: 0;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fact dt {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.3rem;
}

.fact dd {
  margin: 0;
  font-size: 1.02rem;
}

.fact dd a {
  font-weight: 600;
}

/* ---------- legal documents ---------- */

.doc {
  max-width: 44rem;
}

.doc h2 {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
}

.doc h2:first-of-type {
  margin-top: 1.5rem;
}

.doc h3 {
  margin-top: 1.5rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.doc-meta div {
  margin: 0;
}

.doc-meta dt {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.doc-meta dd {
  margin: 0;
}

.toc {
  margin: 0 0 2rem;
  padding: 1.1rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc h2 {
  all: unset;
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- opt-in disclosure sample ---------- */

[hidden] {
  display: none !important;
}

.optin {
  margin: 1.75rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

.optin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.optin-head h2,
.optin-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.optin fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #b9ab99;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a4a37;
}

.optin-body {
  padding: 1.35rem 1.25rem;
}

.field {
  display: block;
  margin-bottom: 1.1rem;
}

.field > span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input[type="tel"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field input:disabled {
  color: #5c6b66;
  cursor: not-allowed;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--teal);
}

.consent span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.optin-foot {
  padding: 0 1.25rem 1.35rem;
}

.online-privacy { margin-top: 0.8rem; }
.online-terms { margin: 0.8rem 0 0.4rem; }
.online-code {
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}
.online-copy { margin: 0 0 0.8rem; }
.online-error { color: #9b2525; font-weight: 600; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.92rem;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--teal-deep);
  color: #e7efec;
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem) 0 1.75rem;
}

.site-footer a {
  color: #f2e7d8;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.footer-grid > * {
  min-width: 0;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.3rem;
}

.site-footer address {
  font-style: normal;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(242, 231, 216, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #cfdcd8;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- utilities ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.center {
  text-align: center;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
