/* =========================================================
   naturistwebsites.com — design system
   Editorial directory/review hybrid. Bootstrap is the grid
   and component skeleton only — everything visual is custom.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..900&family=Fraunces:ital,opsz,wght@1,9..144,400..600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  color-scheme: light;

  --bg: #FAF5EA;
  --bg-soft: #F2EBDA;
  --surface: #FFFDF7;
  --surface-raised: #FFFFFF;
  --ink: #211D15;
  --ink-soft: #55503F;
  --ink-faint: #8B8368;
  --border: #E3D9C0;
  --border-strong: #CFC29D;

  --accent: #C1502A;
  --accent-ink: #FFF6EF;
  --accent-2: #4E6B4A;
  --accent-2-ink: #F1F7EE;
  --accent-3: #B08A2E;

  --great: #3F7D4E;
  --good: #2E7B8C;
  --bad: #B27C1E;
  --ugly: #B3402C;

  --shadow-1: 0 1px 2px rgba(33,29,21,.06), 0 1px 1px rgba(33,29,21,.04);
  --shadow-2: 0 12px 28px -12px rgba(33,29,21,.22);
  --shadow-3: 0 24px 60px -20px rgba(33,29,21,.28);

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-bs-theme="dark"]{
  color-scheme: dark;

  --bg: #16140F;
  --bg-soft: #1C1911;
  --surface: #1F1C14;
  --surface-raised: #262218;
  --ink: #F3ECDA;
  --ink-soft: #C6BC9F;
  --ink-faint: #857D62;
  --border: #34301F;
  --border-strong: #453F27;

  --accent: #E58452;
  --accent-ink: #241205;
  --accent-2: #8FAE81;
  --accent-2-ink: #10190D;
  --accent-3: #D4AC50;

  --great: #6FB07E;
  --good: #5FAEC2;
  --bad: #D4A94F;
  --ugly: #E17E63;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 16px 32px -14px rgba(0,0,0,.55);
  --shadow-3: 0 30px 70px -24px rgba(0,0,0,.65);
}

*{ scrollbar-color: var(--border-strong) transparent; }

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}

.bg-noise{
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(circle at 20% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%),
                     radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 40%);
}

h1,h2,h3,h4,h5, .display-font{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a{ color: var(--accent); text-decoration: none; }
a:hover{ color: var(--accent); }

.container-wide{ max-width: 1320px; }

.text-muted-2{ color: var(--ink-soft) !important; }
.text-faint{ color: var(--ink-faint) !important; }
.mono{ font-family: var(--font-mono); }

/* ---------- kicker / eyebrow ---------- */
.kicker{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.kicker::before{
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- top utility bar ---------- */
.utility-bar{
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  color: var(--ink-faint);
}
.utility-bar a{ color: var(--ink-soft); }
.utility-bar a:hover{ color: var(--accent); }

/* ---------- main nav ---------- */
.site-nav{
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1030;
}

.brand{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: .1rem;
}
.brand .brand-accent{ color: var(--accent); font-style: italic; font-weight: 500; }
.brand .brand-dot{ color: var(--accent-2); }

.nav-link-custom{
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft) !important;
  padding: .5rem .9rem !important;
  border-radius: var(--radius-sm);
  transition: background-color .15s ease, color .15s ease;
}
.nav-link-custom:hover, .nav-link-custom:focus{
  color: var(--ink) !important;
  background: var(--bg-soft);
}
.nav-link-custom.active{ color: var(--accent) !important; }

/* mega dropdown */
.mega{
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  padding: 1.1rem;
  margin-top: .6rem !important;
}
.mega-link{
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .65rem .7rem;
  border-radius: var(--radius-sm);
  color: var(--ink) !important;
}
.mega-link:hover{ background: var(--bg-soft); }
.mega-link .mega-icon{
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  color: var(--accent);
  border: 1px solid var(--border);
}
.mega-link strong{ font-size: .88rem; font-weight: 600; display:block; }
.mega-link span{ font-size: .78rem; color: var(--ink-faint); }

/* theme toggle */
.theme-toggle{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.theme-toggle:hover{ background: var(--bg-soft); }
.theme-toggle:active{ transform: scale(.92); }
.theme-toggle svg{ width: 18px; height: 18px; }
.theme-toggle .icon-sun{ display: none; }
:root[data-bs-theme="dark"] .theme-toggle .icon-sun{ display: block; }
:root[data-bs-theme="dark"] .theme-toggle .icon-moon{ display: none; }

.btn-search{
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); display:inline-flex; align-items:center; justify-content:center;
}

/* ---------- buttons ---------- */
.btn-accent{
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  padding: .62rem 1.3rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-accent:hover{
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.btn-outline-custom{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  padding: .6rem 1.25rem;
}
.btn-outline-custom:hover{ background: var(--bg-soft); color: var(--ink); }

/* ---------- hero ---------- */
.hero{
  padding: 5.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero h1{
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.04;
}
.hero .lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-stats{
  display: flex; gap: 2.2rem; flex-wrap: wrap;
}
.hero-stats .num{
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.hero-stats .lbl{
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-faint);
}

.search-shell{
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: .5rem .5rem .5rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.search-shell input{
  border: none; background: transparent; outline: none;
  color: var(--ink); font-size: 1rem; flex: 1; min-width: 0;
  font-family: var(--font-body);
}
.search-shell input::placeholder{ color: var(--ink-faint); }

/* hero visual stack */
.hero-visual{ position: relative; }
.hero-visual .float-card{
  position: absolute;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  background: var(--surface-raised);
  overflow: hidden;
}
.hero-visual .float-card img{ display:block; width:100%; height:100%; object-fit: cover; }

/* ---------- section headers ---------- */
.section-head{
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .2rem 0 0; }

/* ---------- category chip filter ---------- */
.chip-row{
  display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar{ display:none; }
.chip{
  flex: none;
  font-size: .84rem; font-weight: 600;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover{ border-color: var(--border-strong); color: var(--ink); }
.chip.active{ background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-bs-theme="dark"] .chip.active{ background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- listing card ---------- */
.card-listing{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-listing:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.card-listing .shot{
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.card-listing .shot img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card-listing:hover .shot img{ transform: scale(1.045); }

.cat-badge{
  position: absolute; top: .65rem; left: .65rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .32rem .6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--ink);
}
.verdict-tag{
  position: absolute; top: .65rem; right: .65rem;
  max-width: calc(100% - 5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: .78rem; font-weight: 600;
  line-height: 1.2;
  padding: .32rem .65rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root[data-bs-theme="dark"] .verdict-tag{ background: var(--accent); color: var(--accent-ink); }

.verdict-tag-lg{
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: .95rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
:root[data-bs-theme="dark"] .verdict-tag-lg{ background: var(--accent); color: var(--accent-ink); }

.card-listing .body{
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex; flex-direction: column; gap: .4rem; flex: 1;
}
.card-listing .url-title{
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; gap: .35rem;
  word-break: break-word;
}
.card-listing .url-title svg{ flex: none; color: var(--ink-faint); width: 14px; height: 14px; }
.card-listing .tagline{
  font-size: .89rem;
  color: var(--ink-soft);
  flex: 1;
}
.card-listing .foot-row{
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .3rem;
  font-size: .76rem;
  color: var(--ink-faint);
}

.stretched-cover{ position: absolute; inset: 0; z-index: 1; }

/* featured / large card */
.card-featured{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  box-shadow: var(--shadow-2);
}
@media (max-width: 767.98px){ .card-featured{ grid-template-columns: 1fr; } }
.card-featured .shot{ position: relative; overflow: hidden; background: var(--bg-soft); min-height: 260px; }
.card-featured .shot img{ width:100%; height:100%; object-fit: cover; }
.card-featured .content{ padding: 2rem; display:flex; flex-direction: column; justify-content:center; gap: .9rem; }

/* ---------- how-it-works ---------- */
.step-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
}
.step-num{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  border: 1px solid var(--border);
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

/* ---------- verdict sections (blog page) ---------- */
.verdict-block{
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.6rem 1.8rem;
}
.verdict-block.great{ border-left-color: var(--great); }
.verdict-block.good{ border-left-color: var(--good); }
.verdict-block.bad{ border-left-color: var(--bad); }
.verdict-block.ugly{ border-left-color: var(--ugly); }

.verdict-label{
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.verdict-label.great{ color: var(--great); background: color-mix(in srgb, var(--great) 14%, transparent); }
.verdict-label.good{ color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.verdict-label.bad{ color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.verdict-label.ugly{ color: var(--ugly); background: color-mix(in srgb, var(--ugly) 14%, transparent); }

.side-nav-sticky{
  position: sticky; top: 6.2rem;
}
.side-nav-sticky .side-link{
  display: block;
  padding: .5rem 0 .5rem .9rem;
  border-left: 2px solid var(--border);
  color: var(--ink-faint);
  font-size: .86rem;
  font-weight: 500;
}
.side-nav-sticky .side-link.active{
  border-left-color: var(--accent);
  color: var(--ink);
}

/* listing header */
.listing-hero-shot{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  background: var(--bg-soft);
}
.listing-hero-shot img{ width: 100%; display: block; }

.meta-pill{
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--ink-soft);
  border: 1px solid var(--border);
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--surface);
}

/* ---------- newsletter cta ---------- */
.cta-band{
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
:root[data-bs-theme="dark"] .cta-band{ background: var(--surface-raised); border: 1px solid var(--border-strong); }
.cta-band h2{ color: var(--bg); }
:root[data-bs-theme="dark"] .cta-band h2{ color: var(--ink); }
.cta-band .form-control{
  border-radius: 999px;
  border: none;
  padding: .8rem 1.2rem;
}

/* ---------- footer ---------- */
.site-footer{
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h6{
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.site-footer a{ color: var(--ink-soft); font-size: .89rem; }
.site-footer a:hover{ color: var(--accent); }
.footer-bottom{
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: var(--ink-faint);
}

/* ---------- misc ---------- */
.divider-label{
  display: flex; align-items: center; gap: 1rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.divider-label::before, .divider-label::after{
  content: ""; height: 1px; background: var(--border); flex: 1;
}

.offcanvas-custom{
  background: var(--surface);
  color: var(--ink);
  width: min(88vw, 360px);
}
.offcanvas-custom .offcanvas-body{ display: flex; flex-direction: column; }
.offcanvas-custom .nav-link-custom{ display: block; font-size: 1rem; padding: .8rem 0 !important; border-bottom: 1px solid var(--border); border-radius: 0; }

::selection{ background: var(--accent); color: var(--accent-ink); }

.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

@media (max-width: 575.98px){
  .hero{ padding: 3rem 0 2.5rem; }
  .cta-band{ padding: 2rem 1.4rem; }
}
