@font-face {
  font-family: 'Butler';
  src: url('../fonts/Butler-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Butler', 'Georgia', 'Times New Roman', serif;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Container ---- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Nav ---- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-shrink: 0;
  position: relative;
  z-index: 101;
}

.logo {
  display: inline-flex;
  line-height: 0;
}

.logo img {
  display: block;
  height: 18px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 15px;
  line-height: 1;
  padding: 4px 0 1px;
}

.nav-link:hover {
  opacity: 0.7;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.8;
}

.btn-primary {
  background: #111;
  color: #fff;
  font-size: 15px;
  height: 30px;
  line-height: 1;
  padding: 4px 12px 1px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  height: 450px;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
}

.hero picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 60px;
}

.hero-content h1 {
  color: #fff;
  font-size: 60px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 24px;
  font-weight: 400;
  max-width: 680px;
}

/* ---- Columns ---- */

.columns {
  display: flex;
  gap: 60px;
  padding: 48px 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.column h2 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 18px;
}

.column p {
  font-size: 18px;
  line-height: 1.4;
  color: #333;
  flex: 1;
}

/* ---- Page content ---- */

.container--page {
  height: auto;
}

.container--page .footer {
  margin-top: auto;
}

.page-content {
  padding: 48px 0;
  margin: 0 auto;
  text-align: center;
}

.page-content h1 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 24px;
}

.page-content p {
  font-size: 18px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 18px;
}

.page-content a {
  text-decoration: underline;
}

/* ---- Footer ---- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
  font-size: 14px;
  color: #555;
}

.footer-right {
  display: flex;
  gap: 36px;
}

.footer-right a:hover {
  color: #111;
}

/* ---- Mobile menu ---- */

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 101;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #111;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger span:nth-child(1) { top: 4px; }
.burger span:nth-child(2) { bottom: 4px; }

.menu-open .burger span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-open .burger span:nth-child(2) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-menu a {
  font-size: 36px;
  color: #111;
}

.mobile-menu a:hover {
  opacity: 0.7;
}

.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Animations ---- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav,
.hero,
.column,
.page-content,
.footer {
  opacity: 0;
}

.hero {
  animation: fade-up 0.7s ease-out 0.1s forwards;
}

.nav {
  animation: fade-down 0.6s ease-out 0.5s forwards;
}

.footer {
  animation: fade-up 0.6s ease-out 0.5s forwards;
}

.page-content {
  animation: fade-up 0.6s ease-out 0.5s forwards;
}

.column:nth-child(1) {
  animation: fade-up 0.6s ease-out 0.85s forwards;
}

.column:nth-child(2) {
  animation: fade-up 0.6s ease-out 1.05s forwards;
}

/* ---- Responsive ---- */

@media (max-width: 1240px) {
  .container {
    padding: 0 36px;
  }
}

@media (max-width: 768px) {
  html, body {
    height: auto;
    overflow: auto;
  }

  .container {
    height: auto;
    padding: 0 24px;
  }

  .nav-right {
    display: none;
  }

  .burger {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    height: 300px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .columns {
    flex-direction: column;
    gap: 36px;
    overflow: visible;
  }

  .column h2 {
    font-size: 24px;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
