/* ==========================================================================
   DentalPracticesSale.com — Base Design System & Core Styles
   Advisor: Michael Makabeh | Peak Commercial (CA DRE #01411477)
   Theme: Private Wealth, Commercial Real Estate & Dental Transition Advisory
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Caveat:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* --- Color Palette --- */
  --bg-primary: #FAF9F6;           /* Warm Alabaster / Ivory */
  --bg-surface: #FFFFFF;           /* Crisp White Card Surface */
  --bg-subtle: #F3F1EB;            /* Muted Stone Background */
  --bg-dark: #14181B;              /* Tailored Deep Charcoal */
  --bg-dark-elevated: #1E2328;     /* Slightly elevated charcoal */
  --bg-dark-card: #252C32;         /* Dark card background */

  /* Text Colors */
  --text-primary: #181D20;         /* Deep Charcoal Body Text */
  --text-secondary: #586167;       /* Muted Neutral for Subtitles/Meta */
  --text-muted: #7E8992;           /* Light Muted for Secondary Details */
  --text-inverse: #FAF9F6;         /* Alabaster Text for Dark Backgrounds */
  --text-inverse-muted: #A3ADB6;   /* Muted text on dark */

  /* Warm Metallic / Bronze Accents */
  --accent-gold: #B88E48;          /* Antique Warm Bronze */
  --accent-gold-light: #D4AD66;    /* Champagne Highlight */
  --accent-gold-dark: #967132;     /* Deep burnished bronze */
  --accent-gold-subtle: #F6F1E6;   /* Subtle champagne tint for badges */
  --accent-gold-border: #DFD3BA;   /* Gold tinted border */

  /* Restrained Dental Slate / Navy */
  --dental-navy: #152B44;          /* Deep Regal Navy */
  --dental-slate: #2A4869;         /* Sophisticated Slate Blue */
  --dental-subtle: #EDF3F8;        /* Restrained Ice/Slate tint */

  /* Borders & Dividers */
  --border-light: #E7E5DE;         /* Soft warm hairline border */
  --border-subtle: #F0EFE9;        /* Ultra-light separator */
  --border-dark: #2F373E;          /* Hairline border for dark modes */

  /* Status Colors */
  --status-active: #237A4B;        /* Forest Green for Active */
  --status-escrow: #C07421;        /* Amber for In Escrow */
  --status-lease: #1F5E8C;         /* Navy for For Lease */
  --status-closed: #5A6571;        /* Slate for Closed/Sold */

  /* --- Typography --- */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-handwriting: 'Caveat', cursive, sans-serif;
  --font-cursive: 'Alex Brush', cursive;

  /* Type Scale */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md: 1.125rem;    /* 18px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 2rem;       /* 32px */
  --text-3xl: 2.5rem;     /* 40px */
  --text-4xl: 3.25rem;    /* 52px */
  --text-5xl: 4.25rem;    /* 68px */

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* --- Spacing & Layout --- */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  --container-max: 1320px;
  --container-narrow: 940px;
  --container-padding: 1.5rem;

  /* --- Shadows & Elevation --- */
  --shadow-sm: 0 1px 3px rgba(20, 24, 27, 0.05);
  --shadow-md: 0 4px 16px rgba(20, 24, 27, 0.07);
  --shadow-lg: 0 12px 32px rgba(20, 24, 27, 0.09);
  --shadow-card: 0 2px 10px rgba(20, 24, 27, 0.04), 0 20px 40px -15px rgba(20, 24, 27, 0.06);
  --shadow-card-hover: 0 16px 36px -8px rgba(20, 24, 27, 0.12);

  /* --- Transitions --- */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Borders & Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* --- CSS Reset & Global Standards --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main Container fills space above footer */
main {
  flex: 1 0 auto;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

ul, ol {
  list-style: none;
}

/* --- Accessibility Skip Link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--bg-dark);
  color: var(--accent-gold-light);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: 99999;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1.5rem;
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

/* --- Universal Focus States --- */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* --- Global Typography Utility --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, var(--text-5xl));
}

h2 {
  font-size: clamp(2rem, 3.8vw, var(--text-3xl));
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, var(--text-2xl));
}

h4 {
  font-size: var(--text-xl);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

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

.lead {
  font-size: clamp(1.125rem, 1.8vw, 1.35rem);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

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

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

.eyebrow-dark {
  color: var(--accent-gold-light);
}

.eyebrow-dark::before {
  background-color: var(--accent-gold-light);
}

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

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

/* Section Spacing */
.section {
  padding-top: clamp(3.5rem, 7vw, var(--space-4xl));
  padding-bottom: clamp(3.5rem, 7vw, var(--space-4xl));
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}

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

.section-dark p {
  color: var(--text-inverse-muted);
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* --- Subtle Grid & Floorplan Architectural Motifs --- */
.bg-architectural-grid {
  background-image: 
    linear-gradient(to right, rgba(184, 142, 72, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 142, 72, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-dark-blueprint {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(43, 76, 111, 0.25) 0%, transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

/* --- Respect Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
