/* ==========================================================================
   DR. ILANGOVAN VEERAPPAN | CHIEF NEPHROLOGIST
   Global CSS & Design System - Inspired by Grigoriak Doctor / Vide Infra
   ========================================================================== */

/* --------------------------------------------------------------------------
   BRAND FONTS (@font-face)
   Preloaded via HTML <head> and served with immutable HTTP caching.
   font-display: block guarantees NO fallback font flash (FOUT).
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Moniqa';
  src: url('../fonts/Moniqa-ExtLtNarrowHeading.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Moniqa';
  src: url('../fonts/Moniqa-ExtLtNarrowHeading.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Moniqa';
  src: url('../fonts/Moniqa-ExtLtNarrowHeading.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Moniqa';
  src: url('../fonts/Moniqa-ExtLtNarrowHeading.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Moniqa';
  src: url('../fonts/Moniqa-ExtLtNarrowHeading.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Moniqa';
  src: url('../fonts/Moniqa-ExtLtNarrowHeading.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Factor A';
  src: url('../fonts/FactorA-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Factor A';
  src: url('../fonts/FactorA-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Factor A';
  src: url('../fonts/FactorA-Regular.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Factor A';
  src: url('../fonts/FactorA-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Factor A';
  src: url('../fonts/FactorA-Regular.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Factor A';
  src: url('../fonts/FactorA-Regular.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Factor A';
  src: url('../fonts/FactorA-Regular.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  /* Color Palette - Dark & Bronze Luxury Palette */
  --c-bg: #141211;
  --c-bg-rgb: 20, 18, 17;
  --c-surface: #1c1817;
  --c-surface-rgb: 28, 24, 23;
  --c-card: #24201e;
  --c-card-rgb: 36, 32, 30;
  --c-card-hover: #2c2725;
  
  --c-white: #ffffff;
  --c-white-rgb: 255, 255, 255;
  --c-offwhite: #f5f2ef;
  --c-cream: #ebe4df;
  
  /* Bronze / Warm Terracotta / Nephrology Gold */
  --c-bronze: #89685c;
  --c-bronze-rgb: 137, 104, 92;
  --c-accent: #c49a82;
  --c-accent-rgb: 196, 154, 130;
  --c-accent-light: #dfc2b1;
  --c-accent-dark: #684a3e;
  
  /* Text & Border Colors */
  --c-text: #ffffff;
  --c-text-muted: #a69c97;
  --c-text-subtle: #756c68;
  --c-border: rgba(255, 255, 255, 0.1);
  --c-border-subtle: rgba(255, 255, 255, 0.05);
  --c-border-accent: rgba(196, 154, 130, 0.35);

  /* Light Theme Variant */
  --c-light-bg: #f7f4f1;
  --c-light-surface: #ffffff;
  --c-light-text: #1a1716;
  --c-light-muted: #6e6561;
  --c-light-border: rgba(32, 28, 27, 0.1);

  /* Typography - Unified to Hero Section Sans */
  --font-logo: 'Moniqa', 'Six Caps', 'Factor A', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: var(--font-sans);
  --font-sans: 'Factor A', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font-sans);

  /* Layout & Spacing */
  --container-width: 1440px;
  --container-padding: clamp(1.25rem, 4vw, 4rem);
  --header-height: 84px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.25s var(--ease-out-expo);
  --transition-medium: 0.5s var(--ease-out-expo);
  --transition-slow: 0.85s var(--ease-out-expo);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--c-bg);
}
::-webkit-scrollbar-thumb {
  background: #38302d;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-accent);
}

/* Typography Hierarchy - Unified with Hero Section Sans Font Family */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.18;
  color: var(--c-text);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.headline-huge {
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.headline-large {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2.1vw, 1.68rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.headline-medium {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.headline-small {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2.1vw, 1.68rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  color: var(--c-text-muted);
  line-height: 1.65;
  max-width: 680px;
  font-weight: 400;
  margin-bottom: 2rem;
}

.title-gradient,
.gradient-accent {
  background: linear-gradient(100deg, #ff4500 0%, #ff6b3d 60%, #ff8c5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.35));
}

.serif-italic {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(100deg, #ff4500 0%, #ff6b3d 60%, #ff8c5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--c-accent);
}

.text-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--c-cream);
  font-weight: 300;
  line-height: 1.6;
}

.text-muted {
  color: var(--c-text-muted);
}

.text-subtle {
  color: var(--c-text-subtle);
  font-size: 0.875rem;
}

/* Container & Grid System */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: clamp(4rem, 9vw, 9rem);
  padding-bottom: clamp(4rem, 9vw, 9rem);
  position: relative;
  overflow: hidden;
}

.section--tight {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

/* Dark and Light Themes for Sections */
.ui-dark {
  background-color: var(--c-bg);
  color: var(--c-text);
}

.ui-surface {
  background-color: var(--c-surface);
  color: var(--c-text);
}

.ui-light {
  background-color: var(--c-light-bg);
  color: var(--c-light-text);
}

.ui-light h1, .ui-light h2, .ui-light h3, .ui-light h4 {
  color: var(--c-light-text);
}

.ui-light .text-lead {
  color: #38302d;
}

.ui-light .text-muted {
  color: var(--c-light-muted);
}

.ui-light .eyebrow {
  color: var(--c-bronze);
}

.ui-light .eyebrow::before {
  background: var(--c-bronze);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--c-accent);
}

/* Custom Interactive Cursor (Desktop) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--c-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(196, 154, 130, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

@media (pointer: coarse) {
  .custom-cursor, .custom-cursor-follower {
    display: none !important;
  }
}
