/* ============================================
   Bilt Card Calculator - Main Styles
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
  --primary-teal: #103C54;
  --light-blue: #75C2E6;
  --success-green: #04D380;
  --warning-red: #ef4444;
  --background-light: #f9fafb;
  --background-white: #ffffff;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Base Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
}

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

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--primary-teal);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-teal);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

a {
  color: var(--light-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Header
   ============================================ */

.header {
  background: var(--background-white);
  border-bottom: 2px solid var(--light-blue);
  padding: 2rem 0;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.header-text h1 {
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   Sections
   ============================================ */

section {
  background: var(--background-white);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

/* ============================================
   Buttons
   ============================================ */

button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:focus {
  outline: 2px solid var(--light-blue);
  outline-offset: 2px;
}

/* ============================================
   Hidden Class
   ============================================ */

.hidden {
  display: none !important;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--background-light);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   Utility Classes
   ============================================ */

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1rem 0;
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .header {
    border-bottom: none;
  }

  button {
    display: none;
  }

  .recommendation-banner {
    display: none;
  }
}
