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

:root {
  --primary: #2d1b0d;
  --secondary: #e8dcc8;
  --accent-dark: #1a5d4d;
  --accent-light: #f5f3f0;
  --text-primary: #2d2d2d;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--text-primary);
  background-color: #ffffff;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

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

/* Navbar */
.navbar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.25rem;
  color: var(--primary) !important;
  letter-spacing: 0.5px;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Section Blocks */
.section-block {
  padding: 4rem 0;
}

.section-block h2 {
  margin-top: 0;
}

.section-block img {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

.section-block.bg-light {
  background-color: var(--accent-light);
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-dark {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-dark:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

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

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Forms */
.form-control {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 0.2rem rgba(26, 93, 77, 0.1);
}

.form-group label {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-check-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
footer {
  margin-top: auto;
}

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

footer a {
  color: var(--text-secondary);
}

footer a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer .border-top {
  border-top: 1px solid var(--border-color) !important;
}

/* Table */
table {
  margin-top: 1rem;
}

table thead {
  background-color: var(--accent-light);
  border-top: 1px solid var(--border-color);
}

table th {
  color: var(--primary);
  font-weight: 600;
  padding: 1rem;
  border: 1px solid var(--border-color);
}

table td {
  padding: 1rem;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

table tbody tr:hover {
  background-color: rgba(232, 220, 200, 0.3);
}

/* Alert */
.alert {
  border-radius: 4px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.alert-info {
  background-color: rgba(26, 93, 77, 0.05);
  border-color: var(--accent-dark);
  color: var(--primary);
}

.alert-info .alert-heading {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .lead {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

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

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.cookie-banner p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cookie-banner .btn {
  margin-left: 0.5rem;
}

/* Additional utility classes */
.text-balance {
  text-wrap: balance;
}

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

.pl-md-4 {
  padding-left: 1.5rem;
}

@media (min-width: 768px) {
  .pl-md-4 {
    padding-left: 1.5rem;
  }

  .pr-md-4 {
    padding-right: 1.5rem;
  }
}

/* Sticky Footer */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Accessibility */
.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;
}
