/* Can Refugio Welcome — matches main site
   Palette: off-white, sand, warm wood, soft ink.
   Type: Cormorant Garamond (headlines) + Inter (body). */

:root {
  --bg: #f7f4ef;
  --bg-alt: #efe9df;
  --ink: #2b2724;
  --ink-soft: #5b524a;
  --line: #d8cfc2;
  --accent: #8a6a4b;
  --accent-soft: #c8a880;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease;
}
a:hover { border-color: var(--accent); }

/* Headlines */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; margin-bottom: 0.6em; }
h3 {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}
h4 { font-size: 1.4rem; margin-bottom: 0.3em; }

p { margin: 0 0 1em 0; color: var(--ink-soft); }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink);
  max-width: 60ch;
  margin-bottom: 1.4em;
}

/* Container & sections */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(60px, 9vw, 110px) 0; }
section.alt { background: var(--bg-alt); }
section + section { border-top: 1px solid var(--line); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(247,244,239,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  color: var(--ink);
}
.lang-switch {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lang-switch a {
  color: var(--ink-soft);
  border: none;
  margin-left: 14px;
  cursor: pointer;
}
.lang-switch a.active {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}
.lang-switch a:hover { color: var(--ink); }

/* Welcome Hero */
.welcome-hero {
  padding-top: clamp(60px, 10vw, 130px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.welcome-hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* Facts grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 48px;
  margin: 12px 0 0;
}
.fact dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.fact dd {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--ink);
}

/* Cards (How things work) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 36px;
  margin-top: 18px;
}
.card { }
.card h4 {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.card p, .card li { color: var(--ink-soft); }
.card ul { margin: 0; padding-left: 1.1em; }
.card ul li { margin-bottom: 0.4em; }

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 40px;
  margin-top: 16px;
  list-style: none;
  padding: 0;
}
.highlights-grid li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}
.highlights-grid li::before {
  content: "";
  position: absolute; left: 0; top: 0.75em;
  width: 10px; height: 1px;
  background: var(--accent-soft);
}

/* Contacts */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px 48px;
  margin: 12px 0 0;
}
.contacts > div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.contacts dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.contacts dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Sign-off */
.signoff {
  margin-top: 36px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--ink);
}
.signoff span {
  display: inline-block;
  margin-top: 6px;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ============== PASSWORD GATE ============== */
.gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.gate-inner {
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.gate-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
  color: var(--ink);
}
.gate-sub {
  color: var(--ink-soft);
  margin-bottom: 24px;
}
#gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#gate-input {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  width: 100%;
  text-align: center;
  letter-spacing: 0.04em;
}
#gate-input:focus {
  outline: none;
  border-color: var(--accent);
}
#gate-form button {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}
#gate-form button:hover {
  background: var(--accent);
}
.gate-error {
  margin-top: 14px;
  color: #a04040;
  font-size: 0.9rem;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .welcome-hero { padding-top: 60px; }
  h1 { font-size: 2.2rem; }
}
