﻿/* ==========================================================================
   LUMINA DENTAL & HEALTH - DESIGN SYSTEM & CORE STYLES
   Website Concept by Shivpreet Bhardwaj
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Palette */
  --primary: #0F766E;
  --primary-dark: #115E59;
  --primary-darker: #134E4A;
  --primary-light: #CCFBF1;
  --primary-ultralight: #F0FDFA;
  
  --secondary: #14B8A6;
  --secondary-hover: #0D9488;
  --secondary-light: #99F6E4;
  --secondary-subtle: #E6FFFB;
  
  --accent: #FB7185;
  --accent-hover: #F43F5E;
  --accent-light: #FFE4E6;
  --accent-subtle: #FFF1F2;
  
  /* Neutral & Base Colors */
  --bg-page: #F0FDFA;
  --bg-white: #FFFFFF;
  --bg-section-light: #E6FFFB;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F8FDFA;
  
  --text-main: #183B3B;
  --text-heading: #0F2D2D;
  --text-muted: #4E6B6B;
  --text-light: #7E9C9C;
  --text-inverse: #FFFFFF;
  
  /* Borders & Dividers */
  --border-subtle: #D6EFEA;
  --border-medium: #B2DFD8;
  --border-focus: #14B8A6;
  
  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(15, 118, 110, 0.05);
  --shadow-sm: 0 4px 10px -2px rgba(15, 118, 110, 0.06), 0 2px 4px -2px rgba(15, 118, 110, 0.04);
  --shadow-md: 0 12px 28px -6px rgba(15, 118, 110, 0.08), 0 4px 10px -3px rgba(15, 118, 110, 0.04);
  --shadow-lg: 0 20px 38px -8px rgba(15, 118, 110, 0.12), 0 8px 16px -4px rgba(15, 118, 110, 0.06);
  --shadow-xl: 0 28px 60px -12px rgba(15, 118, 110, 0.18);
  --shadow-coral: 0 12px 28px -5px rgba(251, 113, 133, 0.35);
  
  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout Constraints */
  --max-width: 1240px;
  --max-width-wide: 1360px;
  --header-height: 84px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
  width: 100%;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

a:hover {
  color: var(--secondary-hover);
}

ul, ol {
  list-style: none;
}

/* Form input 16px base prevents iOS Safari auto-zoom on focus */
button, input, select, textarea {
  font: inherit;
  color: inherit;
  font-size: 1rem; /* 16px */
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 3.85rem); }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.85rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
h6 { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

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

.text-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-main);
}

.text-small {
  font-size: 0.875rem;
}

.text-accent { color: var(--accent) !important; }
.text-teal { color: var(--primary) !important; }
.text-aqua { color: var(--secondary) !important; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 7rem 0; }

.section-light {
  background-color: var(--bg-section-light);
}

.section-white {
  background-color: var(--bg-white);
}

.section-teal {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  color: var(--text-inverse);
}

.section-teal h1, 
.section-teal h2, 
.section-teal h3, 
.section-teal h4 {
  color: var(--text-inverse);
}

.section-teal p {
  color: rgba(255, 255, 255, 0.88);
}

.section-pattern {
  position: relative;
  overflow: hidden;
}

.section-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 12% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 40%),
                    radial-gradient(circle at 88% 80%, rgba(251, 113, 133, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

/* Header Headings Group */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: 1.1rem;
  border: 1px solid var(--border-subtle);
  max-width: 100%;
}

.section-tag.coral {
  background-color: var(--accent-light);
  color: #BE123C;
  border-color: #FECDD3;
}

.section-title {
  margin-bottom: 1.1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
  width: 100%;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Subtle Animation on Scroll Classes */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Glassmorphism utility */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  max-width: 100%;
}