/* ==========================================================================
   Tanzania Hiking and Safaris — coming soon page
   Built by The Modern Companies (themoderncompanies.com)
   ========================================================================== */

:root {
  --bg:            #0d1a15;
  --bg-deep:       #071009;
  --surface:       rgba(255, 255, 255, 0.045);
  --border:        rgba(233, 220, 197, 0.14);
  --border-strong: rgba(233, 220, 197, 0.28);

  --text:      #f2ece0;
  --text-soft: rgba(242, 236, 224, 0.68);
  --text-dim:  rgba(242, 236, 224, 0.45);

  --accent:      #d99e4f;   /* savannah gold */
  --accent-warm: #e7b76c;
  --accent-ink:  #1a1208;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(217, 158, 79, 0.16), transparent 62%),
    radial-gradient(900px 560px at 88% 4%, rgba(94, 158, 133, 0.14), transparent 60%),
    linear-gradient(178deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

/* --- Background texture & mountain ridge ---------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

.ridge {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: min(42vh, 340px);
  pointer-events: none;
}

.ridge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ridge-back  { fill: rgba(94, 158, 133, 0.10); }
.ridge-front { fill: rgba(7, 16, 9, 0.55); }

/* --- Layout: one full viewport, nothing to scroll -------------------------- */

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1.25rem, 0.75rem + 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}

/* --- Brand ---------------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  color: var(--accent);
  background: var(--surface);
}

.brand-mark svg { width: 26px; height: 26px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.005em;
}

.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- Hero (fills the space between header and footer) --------------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40rem;
  padding: 2rem 0;
}

.eyebrow {
  margin: 0 0 1.3rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.6rem + 5.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 2.25rem;
  max-width: 30rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
}

/* --- Buttons -------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-warm), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 10px 26px -12px rgba(217, 158, 79, 0.75);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(217, 158, 79, 0.85); }
.btn-ghost:hover   { border-color: var(--accent); background: rgba(217, 158, 79, 0.09); }

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Footer --------------------------------------------------------------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.foot p { margin: 0; }

.credit a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.credit a:hover {
  color: var(--accent-warm);
  border-color: var(--accent-warm);
}

/* --- Reveal animation ----------------------------------------------------- */

/* Scoped to .js so content is never hidden when scripts don't run. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --- Small screens -------------------------------------------------------- */

@media (max-width: 480px) {
  .actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .ridge { height: 30vh; }
  .foot { justify-content: center; text-align: center; }
}
