/* ============================================================
   SCULPTRA PREMIUM AESTHETICS — GLOBAL STYLES
   styles.css: design tokens, reset, typography, layout, utilities
   ============================================================ */

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --color-bg:          #FAF8F5;
  --color-surface:     #F2EDE7;
  --color-text:        #1C1C1C;
  --color-text-muted:  #6B6660;
  --color-accent:      #B89A7A;
  --color-accent-dark: #8A6F54;
  --color-white:       #FFFFFF;
  --color-border:      #E2D9CF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-width: 1200px;
  --section-pad: 80px;
  --section-pad-mobile: 48px;
  --grid-gap: 32px;

  --radius-sm:  2px;
  --radius-md:  8px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-nav:  0 2px 16px rgba(0,0,0,0.06);
  --transition:  0.25s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, select { font-family: var(--font-body); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
}

.text-muted { color: var(--color-text-muted); }
.text-white { color: var(--color-white); }
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }

sup { font-size: 0.6em; vertical-align: super; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-pad);
}

.section--surface { background: var(--color-surface); }
.section--accent  { background: var(--color-accent); color: var(--color-white); }
.section--dark    { background: var(--color-text); color: var(--color-white); }

.section-header {
  margin-bottom: 48px;
}
.section-header.centered { text-align: center; }

/* ── Grid Utilities ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1.5px solid var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-accent-dark);
  border: 1.5px solid var(--color-white);
}
.btn-white:hover {
  background: transparent;
  color: var(--color-white);
}

.btn-sm { padding: 10px 24px; font-size: 0.72rem; }
.btn-full { width: 100%; }

/* ── Image Placeholders ────────────────────────────────────── */
.img-placeholder {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 12px;
  font-family: var(--font-body);
  text-align: center;
  padding: 16px;
  width: 100%;
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 16px 0 24px;
}
.divider.centered { margin-inline: auto; }

/* ── Badge / Pill ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--color-surface);
  color: var(--color-accent-dark);
  border: 1px solid var(--color-border);
}

/* ── Star Rating ───────────────────────────────────────────── */
.stars { color: var(--color-accent); display: flex; gap: 3px; align-items: center; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 16px 0;
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { color: var(--color-text-muted); }

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Stat Strip ────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.2);
}
.stat-item {
  padding: 40px 24px;
  text-align: center;
  background: var(--color-accent);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: var(--section-pad-mobile); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .section-header { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .container { padding-inline: 16px; }
  .btn { padding: 12px 24px; }
}

/* ── Content Protection ─────────────────────────────────────── */
/* Prevent image drag-to-save and right-click-save */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
/* Restore pointer-events for images that are links or inside links */
a img, button img, .product-card-img img,
.ba-card img, .dropdown-tile img { pointer-events: auto; }

/* Prevent text selection on non-interactive elements */
.product-card-name, .product-card-tagline,
.hero-split-text h1, .hero-split-text p,
h2, h3, .eyebrow, .badge,
.footer-tagline, .section-header {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* Always allow selection inside form inputs and textareas */
input, textarea, select, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
  pointer-events: auto;
}

