/* =========================
   Variables & Reset
========================= */
:root {
  --color-bg: #c7a79a;
  --color-bg-light: #D8D2C8;
  --color-text: #2b2b2b;
  --color-button: #A8B5A2;
  --font-family: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-text);
  overflow-x: hidden;

  /* 🔥 KEY: layout fix */
  display: flex;
  flex-direction: column;
}

/* =========================
   Header / Navigation
========================= */
.header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  padding: 1rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  z-index: 10;
}

.logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo img {
  display: block;
  width: 120px;
  max-width: 50%;
}

nav {
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

.header a:hover {
  text-decoration: underline;
}

/* =========================
   Main Layout (NEW)
========================= */
.main {
  flex: 1;
  display: flex;
  height: --webkit-fill-available; /* Full height of the viewport */
  height: 100dvh; /* Fallback for browsers that don't support 100dvh */
}

/* =========================
   Hero Section
========================= */
.hero {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 2rem 1rem;

  /* background-image: url('./assets/img/field_dk.png'); */
  background-color: var(--color-bg-light);
  /* background-size: cover; */
  background-position: center;
}

.hero-text {
  max-width: 600px;
}

.hero-text p {
  font-size: 1.5rem;
  color: var(--color-text);
  padding: 0.3rem;
  border-radius: 10px;
  /* backdrop-filter: blur(5px); */
  /* background: rgba(255, 255, 255, 0.1); */
}

.hero img {
  width: 80%;
  max-width: 300px;
  margin-top: 1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-block;
  padding: 0.75rem;
  background: var(--color-button);
  color: var(--color-text);
  border-radius: 5px;
  border: 1px solid var(--color-button);
  text-decoration: none;
  font-weight: 500;
}

.btn:hover {
  opacity: 0.9;
  border-color: var(--color-text);
}

/* =========================
   Typography
========================= */
p {
  font-size: 1rem;
}

.CompanyName {
  font-size: 2.5rem;
  font-weight: 500;
}

/* =========================
   About Section
========================= */
.about-body {
  padding: 2rem 1rem;
  background: var(--color-bg);
}

/* =========================
   Tablet & Up
========================= */
@media (min-width: 768px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
.logo{
    justify-content: flex-start;
    /* width: auto; */
  }
  nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  nav ul {
    justify-content: flex-end;
  }

  .hero-text p {
    font-size: 2rem;
  }

  .CompanyName {
    font-size: 4rem;
  }
}

/* =========================
   Desktop & Up
========================= */
@media (min-width: 1024px) {
  .hero img {
    width: 40%;
  }

  .CompanyName {
    font-size: 5rem;
  }
}