/**
 * BIMraum Base Styles
 * Professional design system with consistent theming
 * 3-Color Palette: Gold, Dark, Light + Neutrals
 */

/* ============================================
   CUSTOM FONTS
   ============================================ */

@font-face {
  font-family: 'Grandview';
  src: url('../font/Grandview.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Grandview';
  src: url('../font/GrandviewBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Grandview';
  src: url('../font/GrandviewLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'GrandviewItalic';
  src: url('../font/GrandviewItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'GrandviewItalic';
  src: url('../font/GrandviewBoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'GrandviewItalic';
  src: url('../font/GrandviewLightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */

:root {
  /* ===== Color Palette ===== */

  /* Primary Colors (The 3 Main Colors) */
  --color-gold: #a38344;        /* Brand color - links, CTAs, accents, icons */
  --color-dark: #2c2c2c;        /* Headings and primary text */
  --color-light: #ffffff;       /* Backgrounds and cards */

  /* Supporting Neutrals */
  --color-gray-50: #f8f9fa;     /* Subtle background sections */
  --color-gray-100: #f1f5f9;    /* Card backgrounds, dividers */
  --color-gray-200: #e2e8f0;    /* Borders */
  --color-gray-400: #9ca3af;    /* Disabled states */
  --color-gray-500: #64748b;    /* Secondary text */
  --color-gray-600: #475569;    /* Tertiary text */
  --color-gray-800: #1a1a1a;    /* Alternative dark text */
  --color-gray-900: #0f172a;    /* Darkest backgrounds */

  /* Semantic Colors */
  --color-success: #10b981;     /* Success states */
  --color-error: #ef4444;       /* Error states */
  --color-warning: #f59e0b;     /* Warning states */

  /* Gold Color Variations (for index_new.html compatibility) */
  --gold-dark: #8a6f3a;         /* Darker gold shade */
  --gold-light: #b89558;        /* Lighter gold shade */

  /* Alternative naming (for index_new.html compatibility) */
  --primary-gold: var(--color-gold);
  --primary-dark: var(--color-dark);
  --primary-light: var(--color-light);
  --gray-50: var(--color-gray-50);
  --gray-100: var(--color-gray-100);
  --gray-200: var(--color-gray-200);
  --gray-600: #6c757d;          /* Secondary gray */
  --gray-700: #495057;          /* Tertiary gray */

  /* ===== Typography ===== */

  /* Font Families */
  --font-primary: 'Grandview', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-headers: 'Grandview', 'Grandview', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes */
  --font-size-xs: 0.75rem;      /* 12px - Small labels */
  --font-size-sm: 0.875rem;     /* 14px - Small text */
  --font-size-base: 1rem;       /* 16px - Body text */
  --font-size-lg: 1.125rem;     /* 18px - Large body */
  --font-size-xl: 1.25rem;      /* 20px - Small headings */
  --font-size-2xl: 1.5rem;      /* 24px - Sub headings */
  --font-size-3xl: 2rem;        /* 32px - Section headings */
  --font-size-4xl: 2.5rem;      /* 40px - Hero headings */

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

  /* Line Heights */
  --line-height-tight: 1.2;     /* Headings */
  --line-height-snug: 1.3;      /* Sub-headings */
  --line-height-normal: 1.5;    /* Small text */
  --line-height-relaxed: 1.6;   /* Body text */
  --line-height-loose: 1.8;     /* Long-form content */

  /* ===== Spacing ===== */

  --spacing-xs: 0.5rem;         /* 8px */
  --spacing-sm: 0.75rem;        /* 12px */
  --spacing-md: 1rem;           /* 16px */
  --spacing-lg: 1.5rem;         /* 24px */
  --spacing-xl: 2rem;           /* 32px */
  --spacing-2xl: 3rem;          /* 48px */
  --spacing-3xl: 4rem;          /* 64px */
  --spacing-4xl: 5rem;          /* 80px */
  --spacing-5xl: 6rem;          /* 96px */

  /* ===== Layout ===== */

  --container-max-width: 1200px;
  --content-max-width: 800px;
  --section-spacing: var(--spacing-4xl);
  --card-padding: var(--spacing-2xl);

  /* ===== Borders & Shadows ===== */

  --border-radius-sm: 0.375rem;  /* 6px */
  --border-radius-md: 0.5rem;    /* 8px */
  --border-radius-lg: 0.75rem;   /* 12px */
  --border-radius-xl: 1rem;      /* 16px */

  --border-width: 1px;
  --border-color: var(--color-gray-200);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);

  /* ===== Transitions ===== */

  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
}


/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 85px; /* Account for fixed header */
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-dark);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  font-weight: 100;
  line-height: var(--line-height-tight);
  color: var(--color-dark);
  margin-bottom: var(--spacing-lg);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--spacing-lg);
  font-weight: 100;
  color: var(--color-dark);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   STANDARDIZED TEXT CLASSES
   User requested: Only 3 text types throughout website
   ============================================ */

.title {
  font-size: 2.75rem;
  font-weight: 100;
  color: var(--color-dark);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-lg);
}

.subtitle {
  font-size: 1.4rem;
  font-weight: 100;
  color: var(--color-dark);
  line-height: var(--line-height-snug);
  margin-bottom: var(--spacing-md);
}

.para {
  font-size: 1rem;
  font-weight: 100;
  color: var(--color-dark);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
}

.para-bold {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-dark);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
}

/* Responsive typography for standardized classes */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 1.875rem;  /* 30px on mobile */
    --font-size-3xl: 1.5rem;    /* 24px on mobile */
    --font-size-2xl: 1.25rem;   /* 20px on mobile */
  }
}


/* ============================================
   LINKS
   ============================================ */

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

a:hover {
  opacity: 0.8;
}

a:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}



/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Flexbox utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.h-12 {
  height: 3rem;
}

.w-auto {
  width: auto;
}

.text-xl {
  font-size: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }

  .md\:hidden {
    display: none !important;
  }
}


/* ============================================
   LISTS
   ============================================ */

ul, ol {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-xl);
}

li {
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray-600);
  line-height: var(--line-height-relaxed);
}

/* Gold numbered lists */
ol {
  counter-reset: item;
  list-style: none;
}

ol > li {
  counter-increment: item;
  position: relative;
  padding-left: var(--spacing-md);
}

ol > li::before {
  content: counter(item) ".";
  position: absolute;
  left: calc(var(--spacing-xl) * -1);
  color: var(--color-gold);
  font-weight: var(--font-weight-semibold);
}

/* Disc lists */
ul {
  list-style: disc;
}


/* ============================================
   CONTAINERS & LAYOUT
   ============================================ */

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

.content-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* Section spacing - only top padding to prevent doubling */
section {
  padding: var(--section-spacing) 0 0;
}

/* Text alignment utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}


/* ============================================
   HEADINGS WITH GOLD DIVIDER
   ============================================ */

.heading-with-divider {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.heading-with-divider h2,
.heading-with-divider h3 {
  margin-bottom: var(--spacing-md);
}

.heading-divider {
  width: 80px;
  height: 4px;
  background-color: var(--color-gold);
  margin: 0 auto;
  border-radius: 2px;
}


/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--color-light);
  border-radius: var(--border-radius-xl);
  padding: var(--card-padding);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-subtle {
  background-color: var(--color-gray-50);
  border: 1px solid var(--border-color);
  box-shadow: none;
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  border-radius: var(--border-radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-light);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--color-light);
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}

.btn-secondary:hover {
  background-color: var(--color-dark);
  color: var(--color-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn-outline:hover {
  background-color: var(--color-gold);
  color: var(--color-light);
}


/* ============================================
   ICONS
   ============================================ */

.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.icon-gold {
  color: var(--color-gold);
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-xl {
  width: 48px;
  height: 48px;
}

/* Font Awesome icon alignment */
.fa, .fas, .far, .fal, .fab {
  vertical-align: baseline;
  position: relative;
  top: 0.1em;
}

/* List items with icons - flex layout for proper multi-line alignment */
ul.list-unstyled li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

ul.list-unstyled li i {
  margin-top: 0.2em;
  flex-shrink: 0;
}


/* ============================================
   FOOTER
   ============================================ */

/* Footer styles have been moved to includes/footer.php for component-level styling */


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

/* Spacing utilities */
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }
.mb-3xl { margin-bottom: var(--spacing-3xl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }
.mt-3xl { margin-top: var(--spacing-3xl); }

/* Color utilities */
.text-gold { color: var(--color-gold); }
.text-dark { color: var(--color-dark); }
.text-gray { color: var(--color-gray-600); }
.text-light { color: var(--color-light); }

.bg-gold { background-color: var(--color-gold); }
.bg-dark { background-color: var(--color-dark); }
.bg-light { background-color: var(--color-light); }
.bg-gray-50 { background-color: var(--color-gray-50); }
.bg-gray-100 { background-color: var(--color-gray-100); }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* Flex utilities */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  :root {
    --container-max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: var(--spacing-3xl);
    --card-padding: var(--spacing-xl);
  }

  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  :root {
    --section-spacing: var(--spacing-2xl);
  }
}


/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Reduced motion for accessibility */
@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;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-gray-600: var(--color-dark);
  }
}


/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background-color: white;
    color: black;
  }

  a {
    text-decoration: underline;
    color: black;
  }

  .no-print {
    display: none;
  }
}
