@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --cream: #f6efdb;
  --cream-dark: #ece0c2;
  --forest: #26331f;
  --forest-light: #45573a;
  --rust: #b5592c;
  --rust-dark: #8f431f;
  --text: #2a2620;
  --muted: #6b6353;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
}

h1, h2, .brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* ---------- Login gate ---------- */
#gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/hero.jpg') center/cover no-repeat;
}

#gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,51,31,0.45), rgba(38,51,31,0.78));
}

.gate-box {
  position: relative;
  z-index: 1;
  background: rgba(246, 239, 219, 0.95);
  border: 1px solid rgba(181, 89, 44, 0.35);
  border-radius: 4px;
  padding: 44px 38px;
  width: 90%;
  max-width: 360px;
  text-align: center;
}

.gate-box h1 {
  font-size: 1.6rem;
  margin: 0 0 6px;
  color: var(--forest);
  letter-spacing: 0.5px;
}

.gate-box p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gate-box input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 2px;
  border: 1px solid rgba(38, 51, 31, 0.3);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  margin-bottom: 16px;
}

.gate-box input:focus {
  border-color: var(--rust);
}

.gate-box button {
  width: 100%;
  padding: 13px 14px;
  border-radius: 2px;
  border: none;
  background: var(--rust);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gate-box button:hover { background: var(--rust-dark); }

.gate-error {
  color: #a5432a;
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-top: 12px;
}

body.locked { overflow: hidden; }
#site { display: none; }
body.unlocked #site { display: block; }
body.unlocked #gate { display: none; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(246, 239, 219, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(38, 51, 31, 0.12);
}

.brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 1px;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 34px;
}

nav a {
  color: var(--forest);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.15s ease;
}

nav a:hover, nav a.active {
  opacity: 1;
  color: var(--rust);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 88vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('img/hero.jpg') center/cover no-repeat;
}

.hero-sm {
  height: 42vh;
  min-height: 300px;
}

.hero-sm .hero-content h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,51,31,0.15) 0%, rgba(24,30,18,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 0 20px;
}

.hero-content .eyebrow {
  display: block;
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.85;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin: 0 0 18px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.hero-content h1 strong {
  color: #e7c19a;
  font-weight: 700;
}

.hero-content p {
  color: #ece5d6;
  font-size: 1.05rem;
  margin: 0 0 30px;
}

.btn-go {
  display: inline-block;
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  padding: 5px 23px;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 100px;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  background: var(--rust);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--rust-dark); }

/* ---------- Cards ---------- */
.cards {
  max-width: 1000px;
  margin: 0 auto;
  padding: 90px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border: 1px solid rgba(38, 51, 31, 0.1);
  border-radius: 4px;
  padding: 36px 28px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(38, 51, 31, 0.12);
}

.card .icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}
.card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--forest);
  font-weight: 600;
}
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Simple subpage layout ---------- */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 70px 24px 110px;
}

.page h1 {
  color: var(--forest);
  margin-bottom: 12px;
  font-weight: 600;
}

.page p {
  color: var(--muted);
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 28px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  background: var(--cream);
  border-top: 1px solid rgba(38, 51, 31, 0.12);
}
