/* =================================================================
   Beste Eiendomsmegler - Norwegian Real Estate Blog
   Clean, Professional Design with Teak/Gold Accent
   ================================================================= */

:root {
  /* Brand Colors - Teak/Gold Theme */
  --primary: #b09a68;
  --primary-light: #c9b588;
  --primary-dark: #8f7d52;
  --secondary: #272B2F;
  --accent: #0693e3;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f4;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #555555;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-muted: #6b7280;
  --bg-light: #f8f9fa;

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

  /* Border */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* =================================================================
   Bootstrap Overrides - Norwegian Real Estate Theme
   ================================================================= */

/* Primary brand color */
.bg-primary,
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* =================================================================
   Typography - Clean Norwegian Style
   ================================================================= */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--secondary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* =================================================================
   Navbar - Professional Header
   ================================================================= */

.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary) !important;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: var(--primary-dark) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

/* =================================================================
   Hero Section - Norwegian Commercial Real Estate
   ================================================================= */

.hero-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--gray-800) 100%);
  color: var(--white);
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero-section h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-section p.lead {
  font-size: 1.25rem;
  color: var(--gray-200);
  margin-bottom: 2rem;
}

.hero-section .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

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

.content-section {
  padding: 3rem 0;
}

.content-wrapper {
  max-width: 800px;
}

.content-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.content-wrapper ul,
.content-wrapper ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.content-wrapper li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.content-wrapper strong {
  color: var(--text-primary);
  font-weight: 600;
}

.content-wrapper p {
  margin-bottom: 1.25rem;
}

/* =================================================================
   Cards - Property Feature Cards
   ================================================================= */

.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-title {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =================================================================
   Buttons - Norwegian Style
   ================================================================= */

.btn {
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  border: none;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(176, 154, 104, 0.3);
}

/* =================================================================
   Alerts & Callouts
   ================================================================= */

.alert {
  border-radius: var(--radius-md);
  border-left: 4px solid;
  padding: 1rem 1.5rem;
}

.alert-info {
  background-color: #e3f2fd;
  border-left-color: var(--accent);
  color: #01579b;
}

/* =================================================================
   Lists with Icons
   ================================================================= */

.icon-list {
  list-style: none;
  padding-left: 0;
}

.icon-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
}

.icon-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
}

/* =================================================================
   Footer - Professional Norwegian Design
   ================================================================= */

footer {
  background: var(--secondary);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

footer h5 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

footer a {
  color: var(--gray-300);
  transition: color 0.3s ease;
}

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

footer .text-muted {
  color: var(--gray-400) !important;
}

footer hr {
  border-color: var(--gray-700);
}

/* =================================================================
   Responsive Design
   ================================================================= */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-section {
    padding: 2.5rem 0;
  }

  .content-section {
    padding: 2rem 0;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

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

.text-gold {
  color: var(--primary) !important;
}

.bg-light-gray {
  background-color: var(--bg-light);
}

.shadow-soft {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

/* =================================================================
   404 Page Styling
   ================================================================= */

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
