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

:root {
  --white: #ffffff;
  --nav-height: 102px;
  --logo-size: 220px;
  --page-padding: 40px;
}

@media (max-width: 900px) {
  :root {
    --nav-height: 88px;
    --logo-size: 170px;
    --page-padding: 24px;
  }
}

@media (max-width: 540px) {
  :root {
    --nav-height: 76px;
    --logo-size: 130px;
    --page-padding: 16px;
  }
}

html,
body {
  height: 100%;
}

body {
  font-family: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #264233;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--page-padding);
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  height: calc(var(--nav-height) - 8px);
}

.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.nav-contact-btn {
  padding: 14px 32px;
  background: #264233;
  color: #C6C6C4;
  border: 2px solid #264233;
  border-radius: 30px;
  font-weight: 600;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.nav-contact-btn:hover {
  transform: scale(1.1);
  background: white;
  color: #264233;
  border-color: #264233;
}

.split-container {
  margin-top: var(--nav-height);
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-rows: minmax(360px, 55vh) auto;
  background: #264233;
}

.top-half {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.top-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.bottom-half {
  position: relative;
  width: 100%;
  background: #264233;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: clamp(48px, 5vw, 72px) var(--page-padding) clamp(32px, 4vw, 60px);
  color: #f2f5f0;
  min-height: calc(45vh - var(--nav-height));
}

.contact-content {
  width: min(1200px, 96vw);
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 48px);
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.contact-left p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(242, 245, 240, 0.9);
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
  text-align: right;
  margin-left: auto;
  align-items: flex-end;
}

.contact-right a {
  color: #f2f5f0;
  font-weight: 700;
  font-size: clamp(15px, 2vw, 18px);
}

.center-logo {
  position: absolute;
  left: 50%;
  top: calc(55vh + (var(--logo-size) * 0.25));
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 50%;
  background: #264233;
  border: 2px solid #264233;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo-circle:hover {
  transform: scale(1.1);
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.logo-text {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  font-family: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f2f5f0;
  text-transform: uppercase;
}

.logo-subtext {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  font-family: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f2f5f0;
}

.logo-subtext.small {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  letter-spacing: 0.1em;
  color: #C6C6C4;
}

.footer {
  background: #264233;
  color: #f2f5f0;
  text-align: center;
  padding: 14px 12px 18px;
  font-weight: 700;
  border-top: 1px solid #264233;
}

.footer a {
  color: #f2f5f0;
}

/* Falling leaves animation */
.falling-leaf {
  position: fixed;
  width: 90px;
  height: 110px;
  z-index: 9999;
  background: transparent;
  cursor: grab;
  animation: fall var(--random-duration, 7s) var(--random-delay, 0s) ease-in forwards;
}

.falling-leaf.grabbed {
  cursor: grabbing;
  animation: none;
  z-index: 10000;
}

.falling-leaf svg {
  width: 100%;
  height: 100%;
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 150px)) rotate(var(--random-rotation, 720deg)) translateX(var(--random-x, 50px));
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .contact-content {
    width: min(1000px, 96vw);
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 0 var(--page-padding);
  }

  .split-container {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .top-half {
    min-height: 40vh;
  }

  .center-logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: -110px auto 8px;
  }

  .bottom-half {
    padding: clamp(20px, 4vw, 32px) var(--page-padding) clamp(38px, 7vw, 64px);
    min-height: auto;
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(720px, 96vw);
  }

  .contact-right {
    text-align: center;
    align-items: center;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .nav-logo {
    height: calc(var(--nav-height) - 12px);
  }

  .nav-contact-btn {
    padding: 11px 18px;
    font-size: 14px;
  }

  .center-logo {
    margin-top: -90px;
  }

  .bottom-half {
    padding: 16px var(--page-padding) clamp(32px, 7vw, 50px);
    min-height: auto;
  }

  .contact-content {
    gap: 20px;
  }

  .contact-left,
  .contact-right {
    width: 100%;
  }
}
