/* ============================================
   GRIEF TRIPS - Central Stylesheet
   /styles.css
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* --- Variables --- */
:root {
  /* Backgrounds */
  --bg:   #FAF6F2;
  --card: #FFFFFF;
  --warm: #F5F0EB;

  /* Text */
  --ink:   #3D2F2F;
  --muted: #6B5B4F;
  --faint: #A89A8E;

  /* Brand */
  --terra:  #E07856;
  --sand:   #D4A574;
  --sage:   #7BA895;
  --steel:  #5B9FBD;

  /* Trip accents */
  --porto:    #8BA5A5;
  --morocco:  #C9956E;
  --maldives: #5BA8B0;
  --bali:     #9B8B5E;

  /* Utility */
  --rule: rgba(61, 47, 47, 0.1);
  --nav-h: 64px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: 'DM Sans', sans-serif; cursor: pointer; }

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.navi {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--terra);
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.logo:hover { opacity: 0.8; }

.navl {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.navl a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.navl a:hover,
.navl a.on { color: var(--terra); }

.navl .cta {
  background: var(--terra);
  color: #fff !important;
  border-radius: 2rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.75rem !important;
  transition: filter 0.2s;
}

.navl .cta:hover { filter: brightness(0.9); }

/* Mobile hamburger - hidden by default */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 0.25rem;
  line-height: 1;
}

/* --- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--terra);
}

/* --- Section label --- */
.slbl {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.slbl::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* --- Divider --- */
hr {
  border: none;
  height: 1px;
  background: var(--rule);
  max-width: 1280px;
  margin: 0 auto;
}

hr.full {
  max-width: 100%;
}

/* --- Shared buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--terra);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover { filter: brightness(0.92); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  color: var(--terra);
  border: 1.5px solid var(--terra);
  border-radius: 2rem;
  padding: 0.6rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-outline:hover { background: var(--terra); color: #fff; }

/* --- Newsletter section --- */
.nlsec {
  background: var(--warm);
  padding: 4rem 2rem;
}

.nlsec-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.nlsec h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.nlsec h2 em {
  color: var(--terra);
  font-style: italic;
}

.nlsec p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.nl-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 400px;
  margin: 0 auto;
}

.nl-form input {
  width: 100%;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nl-form input:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(224, 120, 86, 0.1);
}

.nl-form input::placeholder { color: var(--faint); }

.nl-form button {
  width: 100%;
  background: var(--terra);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}

.nl-form button:hover { filter: brightness(0.9); }
.nl-form button:disabled { opacity: 0.6; cursor: not-allowed; }

.nl-status {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.nl-status.ok  { color: var(--sage); }
.nl-status.err { color: var(--terra); }

/* --- Footer --- */
.foot {
  border-top: 1px solid var(--rule);
  background: var(--warm);
  padding: 2.25rem 2rem;
}

.footi {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footb {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--terra);
  flex-shrink: 0;
}

.foott {
  font-size: 0.82rem;
  color: var(--faint);
  flex: 1;
  text-align: center;
}

.footl {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.footl a {
  color: var(--terra);
  font-size: 0.88rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footl a:hover { opacity: 0.75; }

.footcta {
  background: var(--terra);
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
  white-space: nowrap;
}

.footcta:hover { filter: brightness(0.9); }

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.3rem;
  border-radius: 0.5rem;
  font-size: 0.84rem;
  z-index: 700;
  animation: toastIn 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* --- Form fields (shared) --- */
.fg {
  margin-bottom: 1.1rem;
}

.fg label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.fg input,
.fg textarea,
.fg select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.87rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(224, 120, 86, 0.1);
}

.fg textarea { resize: vertical; min-height: 100px; }

.fg-hint {
  font-size: 0.72rem;
  color: var(--faint);
  font-style: italic;
  margin-top: 0.25rem;
}

.fg-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.5;
}

.fg-check input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--terra);
  flex-shrink: 0;
}

.fg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .footi { flex-direction: column; text-align: center; }
  .foott { text-align: center; }
  .footl { justify-content: center; }
}

@media (max-width: 640px) {
  .navi { padding: 0 1rem; }

  /* Mobile nav */
  .navl {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    z-index: 199;
    box-shadow: 0 4px 12px rgba(61,47,47,0.08);
  }

  .navl.open { display: flex; }

  .navl a {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--rule);
    font-size: 0.82rem;
  }

  .navl a:last-child { border-bottom: none; }

  .navl .cta {
    margin: 0.75rem 1.5rem;
    text-align: center;
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
  }

  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .nlsec { padding: 3rem 1.5rem; }
  .nlsec h2 { font-size: 1.75rem; }

  .foot { padding: 2rem 1.25rem; }
  .footi { gap: 1rem; }

  .fg-row { grid-template-columns: 1fr; }
}
