/*
Theme Name: CNS Brain Center
Theme URI: https://cnsbraincenter.com
Description: Custom theme for CNS Neurology Clinic
Author: CNS Development Team
Author URI: https://cnsbraincenter.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cns-theme
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (GLOBAL VARIABLES)
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
     COLORS
     ------------------------------------------------------------------------- */

  /* Primary Colors */
  --color-primary: #081630;
  --color-primary-light: #0d2347;
  --color-primary-dark: #050d1c;

  /* Secondary / Accent Colors (Beige) */
  --color-secondary: #EAE4D9;
  --color-secondary-light: #f2ede5;
  --color-secondary-dark: #d9d1c2;
  --color-beige-text: #a89a85; /* Darker beige for text readability */

  /* Accent Color (for icons, links, highlights) */
  --color-accent: #081630;
  --color-accent-hover: #0d2347;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;

  /* Text Colors */
  --color-text: #1a202c;
  --color-text-secondary: #2d343e;
  --color-text-muted: #718096;
  --color-text-light: #a0aec0;
  --color-text-inverse: #ffffff;

  /* Background Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-bg-light: #EAE4D9;
  --color-bg-beige: #EAE4D9;
  --color-bg-dark: #081630;
  --color-bg-darker: #050d1c;

  /* Border Colors */
  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;
  --color-border-dark: #cbd5e0;

  /* Status Colors */
  --color-success: #38a169;
  --color-warning: #d69e2e;
  --color-error: #e53e3e;
  --color-info: #3182ce;

  /* -------------------------------------------------------------------------
     TYPOGRAPHY
     ------------------------------------------------------------------------- */

  /* Font Families */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;

  /* Font Sizes */
  /* Base body text: 16px, larger sizes fluid for headings/special elements */
  --text-xs: 0.8125rem;    /* 13px */
  --text-sm: 0.9375rem;    /* 15px */
  --text-base: 1rem;       /* 16px - standard body text */
  --text-lg: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);      /* ~17-19px */
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);    /* ~20-24px */
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem); /* ~24-30px */
  --text-3xl: clamp(1.875rem, 1.6rem + 1vw, 2.5rem);     /* ~30-40px */
  --text-4xl: clamp(2.25rem, 1.85rem + 1.5vw, 3rem);     /* ~36-48px */
  --text-5xl: clamp(2.75rem, 2.25rem + 2vw, 3.75rem);    /* ~44-60px */
  --text-6xl: clamp(3.25rem, 2.5rem + 2.5vw, 4.5rem);    /* ~52-72px */

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* -------------------------------------------------------------------------
     SPACING
     ------------------------------------------------------------------------- */

  /* Base Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Section Spacing - Fluid (Reduced) */
  --section-padding-y: clamp(24px, 4vw, 56px);
  --section-padding-x: clamp(20px, 5vw, 40px);

  /* Container */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 900px;

  /* Gap */
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 32px;
  --gap-xl: 48px;

  /* -------------------------------------------------------------------------
     BORDERS & RADIUS
     ------------------------------------------------------------------------- */

  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;

  --border-width: 1px;
  --border-width-2: 2px;

  /* -------------------------------------------------------------------------
     SHADOWS
     ------------------------------------------------------------------------- */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 4px 14px rgba(26, 54, 93, 0.25);

  /* -------------------------------------------------------------------------
     TRANSITIONS
     ------------------------------------------------------------------------- */

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slower: 500ms ease;

  /* -------------------------------------------------------------------------
     Z-INDEX
     ------------------------------------------------------------------------- */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ==========================================================================
   BASE STYLES & RESETS
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Prevent horizontal scroll - applied only to html/body */
html {
  overflow-x: hidden;
}

body {
  max-width: 100vw;
  overflow-x: clip;
}

/* Remove default page title */
.page-header,
.entry-header,
h1.entry-title,
.page-title {
  display: none !important;
}

/* Remove default WP content wrapper padding */
.site-main,
.page-content,
.entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}

h1, .h1 { font-size: var(--text-3xl); }
h2, .h2 { font-size: var(--text-2xl); }
h3, .h3 { font-size: var(--text-xl); }
h4, .h4 { font-size: var(--text-xl); }
h5, .h5 { font-size: var(--text-xl); }
h6, .h6 { font-size: var(--text-lg); }

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Standard body text - applies to all description/text elements */
[class*="__desc"],
[class*="__description"],
[class*="__text"],
[class*="__subtitle"],
[class*="__closing"],
[class*="__address"],
[class*="__detail"],
[class*="__info"],
[class*="__extra"],
.cns-section-subtitle,
.cns-body-text {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Section Typography - Consistent across all sections */
.cns-section-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.cns-section-subtitle {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.cns-section-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

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

a:hover {
  color: var(--color-primary-light);
}

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

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

/* Full width sections */
.cns-section-full {
  width: 100%;
  max-width: 100%;
}

/* Container max width */
.cns-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Card Typography - Consistent across all cards */
.cns-card-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}

.cns-card-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   GLOBAL BULLET POINT STYLES
   Consistent soft beige bullets across all content areas
   ========================================================================== */

/* Base list styles for all content sections */
.cns-content-list,
.cns-specialty-content__description ul,
.cns-specialty-content__description ol,
.cns-specialty-experts__description ul,
.cns-specialty-experts__description ol,
.cns-intro-section__description ul,
.cns-intro-section__description ol,
.cns-intro__description ul,
.cns-intro__description ol {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

.cns-content-list li,
.cns-specialty-content__description li,
.cns-specialty-experts__description li,
.cns-intro-section__description li,
.cns-intro__description li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.cns-content-list li::before,
.cns-specialty-content__description li::before,
.cns-specialty-experts__description li::before,
.cns-intro-section__description li::before,
.cns-intro__description li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}

.cns-content-list li strong,
.cns-specialty-content__description li strong,
.cns-specialty-experts__description li strong,
.cns-intro-section__description li strong,
.cns-intro__description li strong {
  color: var(--color-text);
  font-weight: var(--font-semibold);
}

.cns-content-list li a,
.cns-specialty-content__description li a,
.cns-specialty-experts__description li a,
.cns-intro-section__description li a,
.cns-intro__description li a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cns-content-list li a:hover,
.cns-specialty-content__description li a:hover,
.cns-specialty-experts__description li a:hover,
.cns-intro-section__description li a:hover,
.cns-intro__description li a:hover {
  color: var(--color-primary-light);
}
