/*
Theme Name: Skin Version
Theme URI: https://skinversionaestheticclinic.com/
Author: Skin Version
Description: Warm clinical-luxury WordPress theme for Skin Version Dermatology & Aesthetic Clinic, Karachi. Includes home, services, about and contact templates with WhatsApp booking.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: skin-version
Tags: clinic, medical, one-column, custom-menu, featured-images
*/

/* ---------- Design tokens ---------- */
:root {
  --radius: 0.75rem;
  --background: oklch(0.985 0.008 60);
  --foreground: oklch(0.28 0.045 20);
  --card: oklch(0.995 0.004 60);
  --primary: oklch(0.42 0.07 15);
  --primary-foreground: oklch(0.985 0.008 60);
  --secondary: oklch(0.945 0.022 40);
  --muted-foreground: oklch(0.52 0.035 25);
  --accent: oklch(0.78 0.065 35);
  --gold: oklch(0.72 0.08 55);
  --blush: oklch(0.955 0.025 30);
  --ivory: oklch(0.985 0.012 75);
  --border: oklch(0.9 0.02 40);
  --shadow-soft: 0 2px 12px -4px oklch(0.42 0.07 15 / 0.12);
  --shadow-elegant: 0 24px 60px -28px oklch(0.42 0.07 15 / 0.28);
  --font-display: "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-sans: "Karla", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Helpers ---------- */
.sv-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .sv-wrap { padding: 0 32px; } }
.sv-narrow { max-width: 780px; margin: 0 auto; }
.sv-eyebrow { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-foreground); }
.sv-muted { color: var(--muted-foreground); }
.sv-section { padding: 80px 0; }
@media (min-width: 768px) { .sv-section { padding: 112px 0; } }
.sv-bg-blush { background: var(--blush); }
.sv-bg-ivory { background: var(--ivory); }
.sv-bg-primary { background: var(--primary); color: var(--primary-foreground); }
.sv-bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sv-icon { width: 24px; height: 24px; color: var(--accent); }
.sv-icon-sm { width: 16px; height: 16px; color: var(--accent); }
.sv-center { text-align: center; }
.sv-h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.sv-h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
.sv-h3 { font-size: 1.5rem; }
.sv-lead { margin-top: 24px; max-width: 36rem; color: var(--muted-foreground); }
.sv-mt-4 { margin-top: 16px; }
.sv-mt-6 { margin-top: 24px; }
.sv-mt-8 { margin-top: 32px; }
.sv-mt-12 { margin-top: 48px; }

/* ---------- Buttons ---------- */
.sv-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.2s, background-color 0.2s;
  cursor: pointer;
  border: 0;
}
.sv-btn-primary { background: var(--primary); color: var(--primary-foreground); }
.sv-btn-primary:hover { opacity: 0.9; }
.sv-btn-outline { background: transparent; border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent); }
.sv-btn-outline:hover { background: var(--secondary); }
.sv-btn-light { background: var(--background); color: var(--foreground); }
.sv-btn-ghost-light { border: 1px solid color-mix(in oklab, var(--primary-foreground) 30%, transparent); color: var(--primary-foreground); }
.sv-btn-ghost-light:hover { background: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }
.sv-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.sv-btn-row.sv-center { justify-content: center; }
.sv-link { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.sv-link:hover { color: var(--foreground); }

/* ---------- Grid ---------- */
.sv-grid { display: grid; gap: 20px; }
.sv-grid-2 { grid-template-columns: 1fr; }
.sv-grid-3 { grid-template-columns: 1fr; }
.sv-grid-4 { grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 640px) { .sv-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .sv-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 56px; }
  .sv-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .sv-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.sv-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .sv-split { grid-template-columns: repeat(2, 1fr); gap: 56px; } }

/* ---------- Cards ---------- */
.sv-card {
  height: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s;
}
.sv-card:hover { box-shadow: var(--shadow-soft); }
.sv-card-plain { background: var(--blush); border: 0; }
.sv-card p { color: var(--muted-foreground); font-size: 0.9375rem; }
.sv-card .sv-grow { flex: 1; }
.sv-quote { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; }

/* ---------- Header ---------- */
.sv-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.sv-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.sv-brand { display: flex; flex-direction: column; line-height: 1.1; }
.sv-brand strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; }
.sv-brand span { font-size: 0.5625rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-foreground); }
.sv-nav { display: none; gap: 32px; align-items: center; }
.sv-nav .sv-menu-list { display: flex; align-items: center; gap: 32px; margin: 0; }
.sv-mobile-nav .sv-menu-list { display: block; }
.sv-nav a { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.sv-nav a:hover, .sv-nav .current-menu-item > a { color: var(--foreground); }
.sv-header-cta { display: none; }
@media (min-width: 900px) {
  .sv-nav, .sv-header-cta { display: flex; }
  .sv-burger { display: none; }
}
.sv-burger { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sv-mobile-nav { display: none; border-top: 1px solid var(--border); padding: 16px 20px 24px; }
.sv-mobile-nav.is-open { display: block; }
.sv-mobile-nav a { display: block; padding: 12px 0; font-size: 0.95rem; border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.sv-hero { background: var(--blush); overflow: hidden; }
.sv-hero-inner { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .sv-hero-inner { padding-top: 96px; padding-bottom: 96px; } }
.sv-hero-img { position: relative; }
.sv-hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-elegant); }
.sv-badge { display: none; position: absolute; bottom: -24px; left: 24px; background: var(--card); border-radius: 16px; padding: 16px 24px; box-shadow: var(--shadow-soft); }
.sv-badge strong { display: block; font-family: var(--font-display); font-size: 1.85rem; font-weight: 300; }
@media (min-width: 768px) { .sv-badge { display: block; } }
.sv-hours { display: flex; align-items: center; gap: 8px; margin-top: 32px; font-size: 0.9rem; color: var(--muted-foreground); }

/* ---------- Page hero ---------- */
.sv-page-hero { background: var(--blush); padding: 64px 0; }
@media (min-width: 768px) { .sv-page-hero { padding: 96px 0; } }
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.sv-chip { border: 1px solid color-mix(in oklab, var(--primary) 20%, transparent); border-radius: 999px; padding: 8px 16px; font-size: 0.75rem; letter-spacing: 0.04em; background: color-mix(in oklab, var(--background) 60%, transparent); }
.sv-chip:hover { background: var(--background); }

/* ---------- Service sections ---------- */
.sv-service { scroll-margin-top: 88px; padding: 64px 0; }
@media (min-width: 768px) { .sv-service { padding: 80px 0; } }
.sv-service:nth-of-type(even) { background: var(--ivory); }

/* ---------- Forms ---------- */
.sv-field { margin-bottom: 20px; }
.sv-field label { display: block; }
.sv-field input, .sv-field select, .sv-field textarea {
  width: 100%; margin-top: 8px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); padding: 12px 16px; font-size: 0.9rem;
  outline: none;
}
.sv-field input:focus, .sv-field select:focus, .sv-field textarea:focus { border-color: var(--gold); }
.sv-btn-block { width: 100%; }
.sv-map { border: 0; width: 100%; height: 320px; border-radius: 16px; margin-top: 32px; }

/* ---------- Footer ---------- */
.sv-footer { background: var(--primary); color: var(--primary-foreground); padding: 64px 0 32px; }
.sv-footer a:hover { color: var(--gold); }
.sv-footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .sv-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.sv-footer h4 { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-sans); opacity: 0.7; }
.sv-footer li { margin-top: 12px; font-size: 0.9rem; opacity: 0.85; }
.sv-footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 20%, transparent); font-size: 0.8rem; opacity: 0.7; }

/* ---------- WhatsApp float ---------- */
.sv-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  border-radius: 999px; padding: 12px 20px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  box-shadow: var(--shadow-elegant);
}
.sv-wa:hover { filter: brightness(1.05); }

/* ---------- Editor content ---------- */
.sv-entry { padding: 64px 0; }
.sv-entry h2, .sv-entry h3 { margin-top: 32px; }
.sv-entry p { margin-top: 16px; color: var(--muted-foreground); }
.sv-entry img { border-radius: 16px; margin-top: 24px; }

/* ---------- Reveal animation ---------- */
.sv-reveal { opacity: 0; transform: translateY(18px); }
.sv-reveal.is-visible { animation: sv-reveal-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes sv-reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sv-reveal { opacity: 1; transform: none; }
  .sv-reveal.is-visible { animation: none; }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.sv-split-top { align-items: start; }
