:root {
  --primary: #1f3a5c;
  --accent: #c9a961;
  --background: #f9f7f4;
  --surface: #ffffff;
  --text-primary: #2c2c2c;
  --text-secondary: #666666;
  --border: #e8e5e1;
  --danger: #d32f2f;
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

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

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

a:hover {
  color: var(--accent);
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Navigation */
.navbar {
  background-color: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

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

.nav-link {
  color: var(--text-secondary) !important;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

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

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(249,247,244,0.85) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 500px;
}

/* Content Sections */
.content-section {
  padding: 5rem 0;
}

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

.section-image {
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary);
}

/* Cards */
.principle-card,
.layer-card,
.comparison-card {
  background-color: var(--surface);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.principle-card:hover,
.layer-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.principle-card h3,
.layer-card h3,
.comparison-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.principle-card p,
.layer-card p,
.comparison-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.comparison-card {
  border-left: 4px solid var(--accent);
}

.final-note {
  background-color: var(--background);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  font-style: italic;
  color: var(--text-secondary);
}

.note {
  background-color: #f0ebe4;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* Forms */
.contact-form {
  background-color: var(--surface);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.form-control {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 1rem;
  background-color: var(--surface);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(31, 58, 92, 0.15);
}

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

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

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

/* Buttons */
.btn {
  border-radius: 4px;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background-color: #162b42;
  color: white;
}

.btn-outline-secondary {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer h5 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer .border-top {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

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

.cookie-banner.show {
  display: block;
}

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

.cookie-link {
  color: var(--primary);
  font-weight: 500;
}

/* Alerts */
.alert {
  border-radius: 4px;
  border: none;
  padding: 1rem 1.5rem;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

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

  .section-image {
    margin-bottom: 1.5rem;
  }

  .principle-card,
  .layer-card,
  .comparison-card {
    margin-bottom: 1.5rem;
  }

  .row.align-items-center .col-lg-6.order-lg-1,
  .row.align-items-center .col-lg-6.order-lg-2 {
    margin-bottom: 1.5rem;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .nav-link {
    margin-left: 0.75rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  .footer h5 {
    font-size: 1rem;
  }

  .cookie-banner .row {
    flex-direction: column;
  }

  .cookie-banner .col-md-4.text-right {
    text-align: left !important;
    margin-top: 1rem;
  }

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

  .footer-links {
    columns: 2;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 300px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

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

  .navbar-brand {
    font-size: 1.25rem;
  }

  .nav-link {
    margin-left: 0.5rem;
  }

  .footer {
    padding: 1.5rem 0 1rem;
  }

  .footer h5 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .footer p {
    font-size: 0.9rem;
  }

  .principle-card,
  .layer-card,
  .comparison-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

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

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.pt-4 {
  padding-top: 1.5rem !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.small {
  font-size: 0.875rem;
}

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