/* css/base.css */
/* === CSS VARIABLES === */
:root {
  /* Colors */
  --color-primary: #ffd700; /* Gold */
  --color-accent: #e63946; /* Red */
  --color-bg-dark: #0a0a0a; /* Deep black */
  --color-bg-navy: #1a1a2e; /* Navy */
  --color-bg-blue: #16213e; /* Blue */
  --color-bg-accent: #0f3460; /* Accent blue */
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-text-faded: rgba(255, 255, 255, 0.4);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-primary: 'Playfair Display', 'Didot', serif;
  --font-secondary: 'Georgia', 'Times New Roman', serif;
  --font-size-xs: 0.85rem;
  --font-size-sm: 0.95rem;
  --font-size-base: 1rem;
  --font-size-md: 1.2rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-2xl: 2.5rem;
  --font-size-3xl: 3rem;

  /* Borders */
  --border-gold: 2px solid rgba(255, 215, 0, 0.3);
  --border-gold-light: 1px solid rgba(255, 215, 0, 0.2);
  --border-gold-bright: 2px solid rgba(255, 215, 0, 0.6);

  /* Shadows */
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --shadow-gold-lg: 0 0 30px rgba(255, 215, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s ease;

  /* Z-index layers */
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

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

html,
body {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
  overflow: hidden; /* No page scrollbar */
}

body {
  font-family: var(--font-secondary);
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--spacing-sm);
}

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

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

/* === UTILITY CLASSES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center {
  text-align: center;
}
.text-gold {
  color: var(--color-primary);
}
.text-muted {
  color: var(--color-text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === IMAGES === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === SELECTION === */
::selection {
  background: var(--color-primary);
  color: var(--color-bg-dark);
}

::-moz-selection {
  background: var(--color-primary);
  color: var(--color-bg-dark);
}

/* === GLOBAL SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-primary);
}

/* === PAGE LAYOUT WITH FIXED HEADER & FOOTER === */
#app-container {
  transition: opacity 0.3s ease-out;
  margin-top: 10px; /* Adjusted content upward */
  margin-bottom: 70px;
  min-height: calc(100vh - 150px);
  padding-bottom: 0.25in; /* Extra breathing room for all pages */
}

.page-loading #app-container {
  opacity: 0.5;
  pointer-events: none;
}

/* === SECTION SCROLLING === */
.section,
.hero {
  min-height: 100vh;
  padding: var(--spacing-xl) 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Extra bottom space for all sections EXCEPT home */
.section:not(#home) {
  padding-bottom: calc(4rem + 0.25in);
}

/* Visible scrollbar inside sections */
.section::-webkit-scrollbar {
  width: 8px;
}
.section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
}
.section::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
.section::-webkit-scrollbar-thumb:hover {
  background: #ffeb3b;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .section {
    padding: var(--spacing-lg) 0;
    padding-bottom: calc(6rem + 0.25in);
  }

  .page-content {
    margin-top: 110px;
    margin-bottom: 80px;
  }

  .contact-form-section {
    min-height: 70vh;
    padding-bottom: 5rem;
  }
}
