/* ==========================================================================
   SISSY CLINIC — GLOBAL DESIGN SYSTEM & FOUNDATION
   Based on docs/DESIGN.md & AGENTS.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Layout & Viewport Standards */
  --container-max-width: 1600px;
  --container-gutter-mobile: 15px;
  --container-gutter-desktop: 32px;
  
  /* Core Color Palette ("Prestige Medical Clinic") */
  --color-bg-primary: #FAF8F5;          /* Alabaster Warm White (60%) */
  --color-bg-surface: #FFFFFF;          /* Pure White for Elevated Cards */
  --color-bg-secondary: #E6DFD5;        /* Soft Warm Sand (15%) */
  
  --color-brand-primary: #1B3B48;        /* Deep Petrol Blue (20%) */
  --color-brand-primary-hover: #244D5E;  /* Lighter Petrol for Hover */
  --color-brand-primary-dark: #122831;   /* Active / Footer Deep Petrol */
  --color-brand-primary-muted: rgba(27, 59, 72, 0.08);

  --color-brand-accent: #C59B76;         /* Clinical Bronze (5%) */
  --color-brand-accent-hover: #B38760;   /* Deep Bronze */
  --color-brand-accent-dark: #8C623E;    /* Dark Bronze (AAA Text Safe) */
  --color-brand-accent-light: #F4ECE4;   /* Soft Bronze Pill Tint */

  /* Feminine Prestige Accent (Powder Blush for Hero CTAs) */
  --color-powder-blush: #F4D9D5;
  --color-powder-blush-hover: #EFCBC6;
  --color-powder-blush-border: #EAC4BF;
  --shadow-blush-cta: 0 8px 24px -4px rgba(244, 217, 213, 0.45);


  --color-text-main: #1E2528;           /* Charcoal Slate Body */
  --color-text-muted: #525E64;          /* Secondary Muted Copy */
  --color-text-inverse: #FAF8F5;        /* Alabaster on Dark */

  --color-border-subtle: #DCD4C8;       /* Subtle Sand Border */
  --color-border-dark: rgba(27, 59, 72, 0.15);

  /* Semantic Feedback */
  --color-success: #2E6F40;
  --color-warning: #B4690E;
  --color-danger: #A83232;

  /* Typography — Montserrat Suite */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: var(--font-primary);
  --font-body: var(--font-primary);

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Standardized Fluid Typography Tokens for Heroes */
  --font-size-hero-title: clamp(1.85rem, 5.2vw, 3.85rem);
  --font-size-subhero-title: clamp(1.75rem, 4.2vw, 3.25rem);
  --font-size-hero-lead: clamp(0.95rem, 2vw, 1.25rem);
  --font-size-subhero-lead: clamp(0.9375rem, 1.6vw, 1.125rem);
  --line-height-hero-title: 1.15;
  --line-height-hero-lead: 1.65;

  --leading-tight: 1.15;
  --leading-snug: 1.3;

  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* 100% Touch Standards */
  --touch-target-min: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Elevations & Shadows */
  --shadow-subtle: 0 4px 16px -2px rgba(27, 59, 72, 0.06);
  --shadow-elevated: 0 12px 32px -4px rgba(27, 59, 72, 0.10);
  --shadow-cta: 0 8px 24px -4px rgba(27, 59, 72, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Modern Reset & Box Sizing
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* Clean touch feedback */
}

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

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-main);
  background-color: var(--color-bg-primary);
  line-height: var(--leading-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Content pushes footer to bottom */
main {
  flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   3. Typography Defaults
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-brand-primary);
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  font-weight: var(--font-weight-bold);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: var(--font-weight-semibold);
}

p {
  margin-bottom: 1.25rem;
}

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

a {
  color: var(--color-brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

strong, b {
  font-weight: var(--font-weight-medium); /* Refined 500 weight for elegant editorial typography */
  color: var(--color-brand-primary);
}

img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   4. Layout Containers (1600px Desktop & 15px Mobile Gutters)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter-mobile);
  padding-right: var(--container-gutter-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--container-gutter-desktop);
    padding-right: var(--container-gutter-desktop);
  }
}

/* --------------------------------------------------------------------------
   5. Touch-First Component Helpers
   -------------------------------------------------------------------------- */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: var(--touch-target-min);
  padding: 0.875rem 1.875rem;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
  transition: background-color var(--transition-normal),
              color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-fast);
}

.btn:active {
  transform: scale(0.98);
}

/* Primary Button (Deep Petrol + Clinical Bronze Accent) */
.btn-primary {
  background-color: var(--color-brand-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background-color: var(--color-brand-primary-hover);
  color: #FFFFFF;
  box-shadow: var(--shadow-elevated);
}

.btn-primary:active {
  background-color: var(--color-brand-primary-dark);
}

/* Feminine Prestige Hero CTA Button (Powder Blush) */
.btn-blush {
  background-color: var(--color-powder-blush);
  color: var(--color-brand-primary);
  border: 1px solid var(--color-powder-blush-border);
  box-shadow: none;
}

.btn-blush:hover {
  background-color: var(--color-powder-blush-hover);
  color: var(--color-brand-primary-dark);
  border-color: #DEB1AB;
  box-shadow: none;
}

.btn-blush:active {
  background-color: #E2B9B3;
  color: var(--color-brand-primary-dark);
}


/* Secondary Button (Outline) */

.btn-secondary {
  background-color: transparent;
  color: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
}

.btn-secondary:hover {
  background-color: var(--color-brand-primary);
  color: var(--color-bg-primary);
}

/* Mobile Inputs Zoom Prevention Rule (iOS 16px requirement) */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 16px; /* Strictly declared to prevent iOS auto-zoom */
}

/* Visually Hidden for Screen Readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center !important;
}

/* ==========================================================================
   Custom Luxury Cursor Follower (Precision Bronze & Ring)
   ========================================================================== */
.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}

/* Central Solid Dot (pure 2px solid bronze, zero shadow to prevent dark-bg irradiation) */
.custom-cursor-dot {
  width: 2px;
  height: 2px;
  background-color: var(--color-brand-accent);
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  transition: opacity 0.2s ease;
}

/* Outer Ring (permanent fixed size matching reference) */
.custom-cursor-ring {
  width: 22px;
  height: 22px;
  border: 1.2px solid var(--color-brand-accent);
  background-color: rgba(197, 155, 118, 0.05);
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

/* Hide custom cursor strictly on pure touch screens (mobile/tablets without hover capability) */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}


