/* Aesthetics Skin & Hair Care Clinic - modern theme
   Brand palette taken from the original site:
   purple #500087, magenta #ef0483, red #de0f17, gold #fdbd10 */

:root {
  --purple: #500087;
  --purple-deep: #2b0048;
  --magenta: #ef0483;
  --red: #de0f17;
  --gold: #fdbd10;
  --ink: #1f1a26;
  --text: #4b4656;
  --muted: #716b7c;
  --line: #ebe5f0;
  --soft: #faf6fb;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #ef0483 0%, #500087 100%);
  --radius: 18px;
  --shadow: 0 14px 36px rgba(80, 0, 135, .10);
  --shadow-sm: 0 4px 16px rgba(80, 0, 135, .08);
  --maxw: 1180px;
  --font-head: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-decoration: none; }
a:hover { color: var(--purple); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }
.section { padding: clamp(40px, 5vw, 64px) 0; }
.section--soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: .6rem;
}
.lead { font-size: 1.12rem; color: var(--text); max-width: 680px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .03em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  text-decoration: none; line-height: 1.2;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-ghost:hover { background: var(--purple); color: #fff; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-head); font-weight: 700; color: var(--magenta);
  margin-top: auto; padding-top: 10px;
}
.btn-link:hover { color: var(--purple); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; position: relative; }
.brand img { height: 54px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: .5em .85em; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--magenta); background: #fdf0f7; }
.site-nav .btn { margin-left: 10px; padding: .7em 1.3em; font-size: .88rem; color: #fff; }
.site-nav .btn:hover { background: var(--grad); color: #fff; }
.nav-toggle {
  display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: #fdf0f7; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
  background: var(--purple); transition: transform .3s, opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 10px 4% 22px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: .8em 1em; }
  .site-nav .btn { margin: 14px 0 0; }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(28px, 4vw, 52px) 0 clamp(36px, 4.5vw, 60px);
  background:
    radial-gradient(900px 480px at 92% -8%, #fbe3f1 0%, transparent 60%),
    radial-gradient(800px 420px at -8% 12%, #efe3f8 0%, transparent 60%),
    #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy h1 span { color: var(--magenta); }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; font-size: .93rem; color: var(--muted); }
.hero-meta li::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--magenta); margin-right: 8px; vertical-align: middle;
}
.slider {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 11;
  box-shadow: var(--shadow); background: #f5f0f8;
}
.slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.slider img.is-active { opacity: 1; }
.slider-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; }
.slider-dots button {
  width: 10px; height: 10px; border-radius: 10px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(80, 0, 135, .25);
  transition: width .3s, background .3s;
}
.slider-dots button[aria-current="true"] { width: 26px; background: var(--magenta); }

/* ---------- cards: trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.trust-item .icon { margin-bottom: 18px; }
.trust-item p { color: var(--muted); margin: 0; }

.icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.icon svg { width: 24px; height: 24px; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.cat-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 a { color: var(--ink); }
.cat-body h3 a:hover { color: var(--magenta); }
.cat-body ul { list-style: none; padding: 0; margin: 0 0 6px; font-size: .94rem; color: var(--muted); }
.cat-body li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.cat-body li:last-child { border-bottom: 0; }

/* ---------- procedure cards ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.proc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.proc img { aspect-ratio: 16 / 11; width: 100%; object-fit: cover; }
.proc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.proc-body h3 { margin-bottom: .6em; }
.proc-text { color: var(--text); font-size: .98rem; }
.proc-text ul { padding-left: 1.2em; }
.proc-text li { margin-bottom: .35em; }
.proc--wide { grid-column: 1 / -1; }
.proc--wide .proc-body { padding: 30px 34px 34px; }
.proc--plain img { aspect-ratio: 16 / 11; }
.gallery-title { margin: 32px 0 20px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, #fdeaf4 0%, #f3eaf9 100%);
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .35em; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b9aec4; }
.crumbs a { color: var(--purple); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.doc-photo {
  background: linear-gradient(180deg, #f8f1fb, #f1e6f7); border-radius: 28px;
  padding: 22px; box-shadow: var(--shadow);
}
.doc-photo img { border-radius: 18px; width: 100%; height: auto; }
.goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 0; }
.goal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.goal-card h3 { font-size: 1.05rem; color: var(--magenta); letter-spacing: .04em; text-transform: uppercase; }
.goal-card p { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 4px #fff;
}
.timeline li:last-child { padding-bottom: 0; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li {
  background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px;
  font-size: .93rem; color: var(--ink); box-shadow: var(--shadow-sm);
}

/* ---------- call to action band ---------- */
.cta {
  background: var(--grad); color: #fff; border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta h2 { color: #fff; margin: 0 0 .25em; }
.cta p { margin: 0; color: rgba(255, 255, 255, .92); max-width: 620px; }
.cta .btn-primary { background: #fff; color: var(--purple); box-shadow: none; }
.cta .btn-primary:hover { color: var(--purple); }
.cta .btn-ghost { border-color: #fff; color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--purple); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- chips ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips a {
  display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-family: var(--font-head); font-weight: 700; color: var(--purple);
  box-shadow: var(--shadow-sm);
}
.chips a:hover { color: #fff; background: var(--grad); border-color: transparent; }

/* ---------- contact & forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; margin-bottom: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1.05rem; margin-bottom: .2em; }
.info-card p { margin: 0; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  color: var(--ink); margin-bottom: 6px;
}
.form input, .form select, .form textarea, .newsletter input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1px solid #d9cfe3; border-radius: 12px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus, .newsletter input:focus {
  outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(239, 4, 131, .12);
}
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; }
.notice {
  background: #fffaf0; border-left: 4px solid var(--gold); border-radius: 12px;
  padding: 18px 22px; margin-top: 28px; font-size: .95rem;
}
.notice p { margin: 0 0 .5em; }
.notice p:last-child { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: #1d0c2a; color: #cfc6da; padding: 48px 0 22px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h2 {
  font-family: var(--font-head); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin: 0 0 14px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand img { background: #fff; border-radius: 14px; padding: 10px 14px; height: auto; width: 200px; margin-bottom: 16px; }
.footer-brand p { margin: 0 0 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 6px; }
.newsletter input { flex: 1; min-width: 0; background: #2b1a3b; border-color: #41305a; color: #fff; }
.newsletter input::placeholder { color: #aa9bbb; }
.newsletter .btn { padding: .8em 1.1em; font-size: .85rem; }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem; color: #aa9bbb; text-align: center;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .slider { aspect-ratio: 16 / 10; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .form { grid-template-columns: 1fr; }
  .goal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc--wide .proc-body { padding: 24px; }
  .brand img { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}

/* ---------- appointment chatbot ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--font-body); }
.chat-fab {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; border-radius: 999px; padding: 14px 20px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; box-shadow: var(--shadow);
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.chat-panel {
  position: absolute; right: 0; bottom: 66px;
  width: min(370px, calc(100vw - 32px)); height: min(560px, 70vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 20px 50px rgba(29, 12, 42, .25);
}
.chat-panel[hidden] { display: none; }
.chat-head {
  background: var(--grad); color: #fff; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-head strong { font-family: var(--font-head); }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; white-space: pre-line; }
.msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--purple); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 4px; background: var(--soft); }
.chat-options:empty { display: none; }
.chat-options button {
  background: #fff; border: 1px solid #d9cfe3; color: var(--purple); border-radius: 999px;
  padding: 7px 14px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; cursor: pointer;
}
.chat-options button:hover { background: var(--purple); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: 10px 12px;
  border: 1px solid #d9cfe3; border-radius: 12px;
}
.chat-input input:focus { outline: none; border-color: var(--magenta); }
.chat-input .btn { padding: .6em 1.1em; }
@media (max-width: 480px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .chat-fab span { display: none; }
}

/* ---------- About page: doctor showcase ---------- */
.doc-showcase { position: relative; padding: 34px 30px 30px; isolation: isolate; }
.doc-blob {
  position: absolute; inset: 0; z-index: -1; border-radius: 36px;
  background:
    radial-gradient(circle at 18% 16%, rgba(253, 189, 16, .45) 0, transparent 34%),
    radial-gradient(circle at 86% 88%, rgba(239, 4, 131, .28) 0, transparent 42%),
    linear-gradient(135deg, #fbe3f1 0%, #efe3f8 100%);
}
.doc-ring {
  position: absolute; z-index: -1; width: 170px; height: 170px; right: -34px; top: -34px;
  border: 2px dashed var(--magenta); border-radius: 50%; opacity: .45;
}
.doc-dots {
  position: absolute; z-index: -1; width: 130px; height: 130px; left: -16px; bottom: -16px;
  background-image: radial-gradient(var(--purple) 2px, transparent 2.5px);
  background-size: 14px 14px; opacity: .22; border-radius: 8px;
}
.doc-photo { position: relative; z-index: 1; }
.doc-badge {
  position: absolute; z-index: 2; max-width: 210px; padding: 12px 16px 12px 18px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  font-size: .88rem; line-height: 1.35; color: var(--text);
  border-left: 4px solid var(--gold);
}
.doc-badge strong { display: block; font-family: var(--font-head); color: var(--purple); font-size: .98rem; margin-bottom: 2px; }
.doc-badge--top { top: 12%; left: 0; }
.doc-badge--bottom { bottom: 10%; right: 0; border-left-color: var(--magenta); animation: docFloat 6s ease-in-out infinite; }
@keyframes docFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 640px) {
  .doc-showcase { padding: 26px 16px 22px; }
  .doc-badge { max-width: 170px; font-size: .8rem; }
}

/* ---------- About page: doctor showcase, phone layout ---------- */
@media (max-width: 640px) {
  .doc-showcase { padding: 14px 14px 0; overflow: hidden; border-radius: 24px; }
  .doc-blob { border-radius: 24px; }
  .doc-ring, .doc-dots { display: none; }
  .doc-photo { padding: 14px; border-radius: 20px; }
  .doc-badge {
    position: static; display: inline-block; vertical-align: top;
    width: calc(50% - 10px); max-width: none; margin: 14px 0;
    font-size: .82rem; animation: none;
  }
  .doc-badge--top { margin-right: 12px; }
  .doc-badge--top, .doc-badge--bottom { top: auto; bottom: auto; left: auto; right: auto; }
}
