@font-face {
  font-family: 'Delight';
  src: url('/assets/fonts/Delight-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Delight';
  src: url('/assets/fonts/Delight-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --yellow: #ebd36b;
  --brown: #3f2919;
  --brown-soft: rgba(63, 41, 25, 0.6);
}

html {
  background-color: #ebd36b;
  height: 100%;
}

body {
  font-family: 'Delight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #ebd36b;
  color: #3f2919;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 48px 64px 48px 64px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.logo {
  width: 80px;
  height: 99px;
  cursor: pointer;
}

.logo svg {
  width: 100%;
  height: 100%;
}

.cta {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cta:hover {
  opacity: 0.7;
}

/* Main Content - positioned lower */
.main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 60px; /* Closer to footer */
}

.headline {
  font-size: 84px;
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.015em; /* Much looser spacing */
  word-spacing: -0.08em;
  max-width: 1200px;
  margin: 0;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mobile-cta {
  display: none;
}

.tagline {
  font-size: 13.5px;
  color: var(--brown-soft);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 220px; /* Constrain to 2 lines */
  text-align: right;
  line-height: 1.3;
}

/* Extra large screens - scale font appropriately */
@media (min-width: 2000px) {
  .container {
    max-width: 1800px;
    padding: 56px 100px 56px 100px;
  }

  .headline {
    font-size: 110px; /* Bigger font for huge screens */
    max-width: 1600px;
  }

  .main {
    padding-bottom: 80px;
  }

  .logo {
    width: 90px;
    height: 111px;
  }
}

/* Large screens */
@media (min-width: 1600px) and (max-width: 1999px) {
  .container {
    max-width: 1500px;
    padding: 52px 80px 52px 80px;
  }

  .headline {
    font-size: 96px;
    max-width: 1400px;
  }

  .main {
    padding-bottom: 70px;
  }
}

/* Standard desktop */
@media (min-width: 1200px) and (max-width: 1599px) {
  .headline {
    font-size: 84px;
    max-width: 1100px;
  }

  .container {
    padding: 48px 64px 48px 64px;
  }

  .main {
    padding-bottom: 60px;
  }
}

/* Small desktop */
@media (max-width: 1199px) and (min-width: 1024px) {
  .container {
    padding: 44px 52px 44px 52px;
  }

  .headline {
    font-size: 72px;
    line-height: 0.9;
  }

  .main {
    padding-bottom: 50px;
  }
}

/* Tablets */
@media (max-width: 1023px) and (min-width: 768px) {
  .container {
    padding: 36px 40px 36px 40px;
  }

  .headline {
    font-size: 60px;
    line-height: 0.9;
    letter-spacing: -0.01em;
  }

  .logo {
    width: 70px;
    height: 87px;
  }

  .main {
    padding-bottom: 45px;
  }

  .tagline {
    max-width: 200px;
  }
}

/* Small tablets */
@media (max-width: 767px) and (min-width: 481px) {
  .container {
    padding: 32px 32px 32px 32px;
  }

  .headline {
    font-size: 46px;
    line-height: 0.92;
    letter-spacing: -0.008em;
  }

  .logo {
    width: 60px;
    height: 74px;
  }

  .cta {
    font-size: 17px;
  }

  .main {
    padding-bottom: 40px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .tagline {
    text-align: left;
    max-width: 280px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: clamp(64px, 12vh, 88px) 18px clamp(36px, 10vh, 56px) 18px;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .logo {
    width: 92px;
    height: 114px;
  }

  .cta {
    display: none;
  }

  .headline {
    font-size: 42px;
    line-height: 0.95;
    letter-spacing: -0.01em;
    word-spacing: -0.06em;
  }

  .header {
    margin-bottom: clamp(32px, 8vh, 52px);
  }

  .main {
    flex: 1;
    justify-content: flex-start;
    padding-top: clamp(24px, 7vh, 48px);
    padding-bottom: clamp(24px, 8vh, 52px);
  }

  /* Hide brand name on mobile */
  .brand {
    display: none;
  }

  .footer {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .tagline {
    display: none;
  }

  .mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0;
    background: none;
    border: none;
    color: var(--brown);
    cursor: pointer;
    text-align: left;
    align-self: flex-start;
  }

}

/* Very small mobile */
@media (max-width: 380px) {
  .headline {
    font-size: 38px;
  }

  .logo {
    width: 42px;
    height: 52px;
  }

  .main {
    padding-bottom: 28px;
  }
}

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .container {
    padding: 20px 32px 20px 32px;
  }

  .headline {
    font-size: 38px;
  }

  .main {
    padding-bottom: 25px;
  }

  .logo {
    width: 40px;
    height: 50px;
  }
}

/* Prevent orphans and bad breaks */
@media (min-width: 1200px) {
  .headline {
    /* Use non-breaking spaces strategically */
    text-wrap: balance;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(63, 41, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--yellow);
  border: 3px solid var(--brown);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--brown);
  font-weight: 700;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal h2 {
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal p {
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.4;
  color: var(--brown-soft);
}

.form-field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

input,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--brown);
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Delight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: rgba(251, 247, 240, 0.5);
  color: var(--brown);
}

input:focus,
textarea:focus {
  outline: none;
  background: rgba(251, 247, 240, 0.8);
}

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

.submit-btn {
  width: 100%;
  padding: 14px 28px;
  background: var(--brown);
  color: var(--yellow);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Delight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.005em;
  transition: transform 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .modal-content {
    padding: 28px 20px;
  }
}
