:root {
  --color-slate: #5F788A;
  --color-mint: #C2E5D8;
  --color-beige: #F0EDE5;
  --color-oak: #4A3728;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-light-gray: #F5F3F0;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-slate);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
}

h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-weight: 300;
}

a {
  color: var(--color-slate);
  text-decoration: none;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-beige);
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header.header-hidden {
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

header.header-visible {
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 8vw;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-slate);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-slate);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-mint);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after {
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--color-slate);
  color: var(--color-beige);
  padding: 4rem 8vw;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-mint);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-section li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-section a {
  color: var(--color-beige);
  text-decoration: none;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover {
  color: var(--color-mint);
}

.footer-bottom {
  max-width: 1600px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(194, 229, 216, 0.2);
  font-size: 0.85rem;
  color: var(--color-beige);
  text-align: center;
}

/* Sections */
section {
  padding: 4rem 8vw;
  max-width: 1600px;
  margin: 0 auto;
}

section.full-width {
  max-width: 100%;
  padding: 0;
}

.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(95, 120, 138, 0.4), rgba(74, 55, 40, 0.3));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  max-width: 600px;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Cards */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-beige);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--color-mint);
  box-shadow: 0 12px 24px rgba(95, 120, 138, 0.12);
}

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

.card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.btn-primary:hover {
  transform: scale(1.04);
  background-color: var(--color-oak);
  box-shadow: 0 8px 16px rgba(95, 120, 138, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-slate);
  border: 2px solid var(--color-slate);
}

.btn-secondary:hover {
  background-color: var(--color-slate);
  color: var(--color-white);
}

/* Images */
.section-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 2rem 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.image-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-grid img:hover {
  transform: scale(1.03);
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

thead {
  background-color: var(--color-slate);
  color: var(--color-white);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-beige);
}

tbody tr:hover {
  background-color: var(--color-light-gray);
}

/* Forms */
form {
  max-width: 600px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-slate);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  border: 1px solid var(--color-beige);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-mint);
  box-shadow: 0 0 0 3px rgba(194, 229, 216, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Container */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 8vw;
}

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

.text-muted {
  color: #666666;
  font-size: 0.9rem;
}

.divider {
  height: 1px;
  background-color: var(--color-beige);
  margin: 3rem 0;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-slate);
  color: var(--color-beige);
  padding: 1.5rem;
  z-index: 999;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--color-mint);
}

.cookie-banner-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-banner-text {
  flex-grow: 1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner-buttons button {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.cookie-banner-buttons .btn-accept {
  background-color: var(--color-mint);
  color: var(--color-oak);
}

.cookie-banner-buttons .btn-accept:hover {
  background-color: var(--color-white);
  transform: scale(1.04);
}

.cookie-banner-buttons .btn-reject {
  background-color: transparent;
  color: var(--color-mint);
  border: 1px solid var(--color-mint);
}

.cookie-banner-buttons .btn-reject:hover {
  background-color: var(--color-mint);
  color: var(--color-slate);
}

.cookie-banner-buttons a {
  color: var(--color-mint);
  text-decoration: underline;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  cursor: pointer;
}

.cookie-banner-buttons a:hover {
  color: var(--color-white);
}

/* Disclaimer Box */
.disclaimer {
  background-color: var(--color-light-gray);
  border-left: 4px solid var(--color-oak);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--color-oak);
}

/* Hide element */
.hidden {
  display: none !important;
}

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

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  section {
    padding: 3rem 4vw;
  }

  .header-content {
    padding: 0 4vw;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-column.reverse {
    direction: ltr;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero {
    height: 400px;
  }

  .cookie-banner-content {
    padding: 0 4vw;
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-banner-buttons {
    flex-wrap: wrap;
    width: 100%;
  }

  .cookie-banner-buttons button,
  .cookie-banner-buttons a {
    flex: 1;
    min-width: 120px;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  section {
    padding: 2rem 4vw;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero {
    height: 300px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

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