* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Geist Variable',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background: transparent;
  font-weight: 400;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f0e12;
  z-index: -2;
}

#gradient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  opacity: 0;
  animation: fadeInGradient 1.5s ease-out forwards;
  animation-delay: 3.5s;
}

@keyframes fadeInGradient {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 8vw, 12rem);
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

header.header-hidden {
  transform: translateY(-100%);
}

header.header-visible {
  transform: translateY(0);
}

/* Dark logo and hamburger when header is over light background */
header.header-over-light .logo img {
  filter: brightness(0) saturate(100%) invert(0);
}

header.header-over-light .menu-toggle span {
  background: #0f0e12;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav > * {
  pointer-events: auto;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* Hide logo when menu is open */
body.menu-open .logo {
  opacity: 0;
  pointer-events: none;
}

.logo:hover img {
  opacity: 0.8;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 10000;
  transition: all 0.5s ease;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #f5f2e8;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Make X more visible when menu is open */
.menu-toggle.active span {
  background: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  width: 25px !important;
}

.menu-toggle span:nth-child(1) {
  width: 25px;
}

.menu-toggle span:nth-child(2) {
  width: 20px;
}

.menu-toggle span:nth-child(3) {
  width: 25px;
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 25px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 25px;
}

main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(6rem, 10vw, 12rem) clamp(1.25rem, 8vw, 12rem);
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  animation-delay: 1s;
}

.hero {
  text-align: left;
  color: #f5f2e8;
  width: 100%;
  max-width: 95%;
  margin-left: 0;
  position: relative;
  min-height: 350px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #f1e8e0;
  width: 100%;
  max-width: none;
}

.emphasis {
  font-weight: 600;
}

.emphasis-underline {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* Hero CTA Button */
.hero-cta {
  position: absolute;
  bottom: -6rem;
  left: 0;
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid #f1e8e0;
  border-radius: 50px;
  color: #f1e8e0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInCTA 1s ease-out forwards;
  animation-delay: 10s;
}

.hero-cta:hover {
  background: #f1e8e0;
  color: #0f0e12;
  transform: translateY(-2px);
}

@keyframes fadeInCTA {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.message {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation-duration: 14s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}

.message-1 {
  animation-name: fadeInOut1;
  animation-delay: 1s;
}

.message-2 {
  animation-name: fadeInOut2;
  animation-delay: 1s;
}

@keyframes fadeInOut1 {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  40% {
    opacity: 1;
  }

  45% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeInOut2 {
  0% {
    opacity: 0;
  }

  45% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  95% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 14, 18, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-overlay-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2rem;
}

.menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-nav li {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.menu-overlay.active .menu-nav li {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for menu items */
.menu-overlay.active .menu-nav li:nth-child(1) {
  transition-delay: 0.1s;
}

.menu-overlay.active .menu-nav li:nth-child(2) {
  transition-delay: 0.15s;
}

.menu-overlay.active .menu-nav li:nth-child(3) {
  transition-delay: 0.2s;
}

.menu-overlay.active .menu-nav li:nth-child(4) {
  transition-delay: 0.25s;
}

.menu-overlay.active .menu-nav li:nth-child(5) {
  transition-delay: 0.3s;
}

.menu-nav a {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: #f5f2e8;
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
  display: inline-block;
}

.menu-nav a:hover {
  color: #8b8b7a;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  background: #f5f2e8;
  color: #0f0e12;
  padding: 4rem clamp(1.25rem, 8vw, 12rem) 6rem;
}

.footer-wrapper {
  max-width: 1600px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

/* Social Media */
.footer-social {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-social a {
  color: #0f0e12;
  transition: opacity 0.3s ease;
}

.footer-social a:hover {
  opacity: 0.6;
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

/* Address */
.footer-address p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Contact Email */
.footer-contact a {
  color: #0f0e12;
  text-decoration: underline;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.footer-contact a:hover {
  opacity: 0.6;
}

/* Newsletter */
.footer-newsletter {
  /* Takes right side of grid */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-newsletter h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #0f0e12;
}

.newsletter-form {
  width: 100%;
}

.newsletter-input-wrapper {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.newsletter-input-wrapper input {
  flex: 1;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid #0f0e12;
  background: transparent;
  font-family: 'Geist Variable', sans-serif;
  font-size: 1rem;
  color: #0f0e12;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-input-wrapper input::placeholder {
  color: #666;
}

.newsletter-input-wrapper input:focus {
  border-bottom-color: #571217;
}

.newsletter-submit {
  padding: 0.75rem 2rem;
  background: #0f0e12;
  color: #f5f2e8;
  border: none;
  border-radius: 30px;
  font-family: 'Geist Variable', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-submit:hover {
  background: #571217;
  transform: translateY(-1px);
}

/* Newsletter submit full-width on mobile */
@media (max-width: 768px) {
  .newsletter-submit {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
  }
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(15, 14, 18, 0.15);
}

.footer-tagline {
  font-size: 1rem;
  color: #0f0e12;
  margin: 0;
}

.footer-bottom-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-bottom-right a {
  color: #0f0e12;
  text-decoration: underline;
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}

.footer-bottom-right a:hover {
  opacity: 0.6;
}

.copyright {
  font-size: 0.875rem;
  color: #666;
}

/* Responsive - Tablet & Mobile */
@media (max-width: 1024px) {
  /* Header & Main */
  header {
    padding: 2rem !important;
  }

  main {
    padding: 2rem !important;
    padding-top: 6rem !important;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    line-height: 1.3 !important;
  }

  /* CTA Button for Tablet */
  .hero-cta {
    position: static;
    margin-top: 12rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
    display: block;
    width: fit-content;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-left {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Header Responsive */
  header {
    padding: 2rem !important;
  }

  .logo img {
    height: 22px;
  }

  /* Main Content Responsive */
  main {
    padding: 2rem !important;
    padding-top: 6rem !important;
  }

  .hero {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    line-height: 1.3 !important;
  }

  /* CTA Button Responsive */
  .hero-cta {
    position: static;
    margin-top: 12rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
    display: block;
    width: fit-content;
    text-align: center;
    letter-spacing: 0.08em;
  }

  /* Footer Responsive */
  .site-footer {
    padding: 3rem 2rem 2rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-left {
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .footer-bottom-right {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .newsletter-input-wrapper {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }

  .newsletter-input-wrapper input {
    width: 100%;
  }
}
