:root {
  --terracotta: #c65d3b;
  --terracotta-dark: #a64b2e;
  --ochre: #d4a373;
  --sage: #8a9a5b;
  --cream: #f5f1e8;
  --charcoal: #2c2420;
  --earth: #5c4a3d;
}

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

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}

.font-serif {
  font-family: "Cormorant Garamond", serif;
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition:
    transform 0.2s,
    background 0.2s;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  transform: scale(2);
  background: var(--terracotta);
}

/* Navigation */
.nav-hidden {
  transform: translateY(-100%);
}

.nav-visible {
  transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu {
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
  clip-path: circle(150% at calc(100% - 40px) 40px);
}

/* Hamburger icon default color */
#menuBtn span {
  background-color: var(--charcoal);
}

/* Navbar when mobile menu is open */
nav.menu-open {
  background-color: var(--charcoal) !important;
  border-color: transparent !important;
}

nav.menu-open a {
  color: var(--cream) !important;
}

nav.menu-open #menuBtn span {
  background-color: var(--cream) !important;
}

.mobile-menu a {
  color: var(--cream);
}

.mobile-menu a:hover {
  color: var(--terracotta);
}

.mobile-menu a.active-link {
  color: var(--terracotta);
}

.mobile-menu button {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* Loading Screen */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--charcoal);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-text {
  color: var(--cream);
  font-size: 2rem;
  letter-spacing: 0.5em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
