/* ============================================================
   BUTTERFLY ESCAPE — Design System
   ============================================================
   Fonts:   Playfair Display (headings) + Lato (body)
   Palette: Cream #FAF7F2 | Rose #C9788A | Taupe #E8DDD3 | Charcoal #2E2E2E
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --cream:      #FAF7F2;
  --cream-dark: #F2EDE5;
  --taupe:      #E8DDD3;
  --rose:       #C9788A;
  --rose-dark:  #A85E70;
  --charcoal:   #2E2E2E;
  --muted:      #7A6E6A;
  --white:      #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', system-ui, sans-serif;

  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 20px rgba(46,46,46,0.10);
  --shadow-hover: 0 10px 40px rgba(46,46,46,0.18);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { text-decoration: none; color: inherit; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--taupe);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.nav-logo span { color: var(--rose); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--rose); }

.nav-links .nav-cta {
  background: var(--rose);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  transition: var(--transition);
}

.nav-links .nav-cta:hover {
  background: var(--rose-dark);
  color: var(--white);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--taupe) 100%);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10 Q35 20 30 30 Q25 20 30 10Z' fill='%23C9788A' opacity='0.04'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1.2rem;
}

.hero-title em {
  font-style: italic;
  color: var(--rose);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-butterfly {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  animation: flutter 3s ease-in-out infinite;
}

@keyframes flutter {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-stat strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--rose);
  display: block;
  line-height: 1;
}

.hero-stat span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Section Header ──────────────────────────────────────── */
.section-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--charcoal);
}

/* ── Search Bar ──────────────────────────────────────────── */
.search-container {
  display: flex;
  justify-content: center;
  padding: 0 2rem 1.5rem;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 1.5px solid var(--taupe);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.search-box input:focus {
  border-color: var(--rose);
  box-shadow: 0 4px 12px rgba(201, 120, 138, 0.1);
}

.search-box input::placeholder {
  color: var(--muted);
  font-style: italic;
}

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 2rem 2rem;
}

.filter-btn {
  background: none;
  border: 1.5px solid var(--taupe);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

/* ── Posts Grid ──────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 2rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

/* ── Post Card ───────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--taupe);
}

/* ── IMAGE SWAP ZONE ──────────────────────────────────────
   To replace a cover image: update the src attribute on
   the <img class="card-image"> element inside each card.
   ─────────────────────────────────────────────────────── */
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image { transform: scale(1.06); }

.card-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
}

.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--charcoal);
  margin-bottom: 0.7rem;
  transition: color 0.2s;
}

.card:hover .card-title { color: var(--rose); }

.card-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-read-more {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.card:hover .card-read-more { gap: 0.6rem; }

/* ── About Strip ─────────────────────────────────────────── */
.about-strip {
  background: var(--charcoal);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
}

.about-strip .eyebrow {
  color: var(--rose);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.about-profile-img {
  width: 140px; 
  height: 140px; 
  border-radius: 50%; 
  object-fit: cover; 
  margin: 1.5rem auto 1rem; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
  display: block;
}

.about-quote {
  font-size: 1.4rem; 
  font-family: var(--font-serif); 
  color: var(--white); 
  margin: 0 auto 1rem; 
  line-height: 1.4; 
  max-width: 600px;
}

.about-quote-author {
  font-style: italic; 
  font-size: 0.95rem; 
  color: var(--muted); 
  margin-bottom: 3rem; 
  text-align: center;
}

.about-content {
  font-size: 1.05rem; 
  line-height: 1.8; 
  color: var(--taupe); 
  max-width: 650px; 
  margin: 0 auto; 
  text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-intro-bold {
  text-align: center; 
  font-weight: 500; 
  font-size: 1.15rem; 
}

.btn-insta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rose);
  color: var(--white);
  border-radius: 50px;
  padding: 0.75rem 1.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: var(--transition);
}

.btn-insta:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.footer a { color: var(--rose); transition: color 0.2s; }
.footer a:hover { color: var(--white); }

/* ══════════════════════════════════════════════════════════
   POST PAGE STYLES
   ══════════════════════════════════════════════════════════ */

/* ── Post Hero ───────────────────────────────────────────── */
.post-hero {
  position: relative;
  height: clamp(380px, 55vh, 600px);
  overflow: hidden;
  background: var(--charcoal);
}

/* ── POST COVER IMAGE ─────────────────────────────────────
   To replace: update the src on <img class="post-hero-img">
   ─────────────────────────────────────────────────────── */
.post-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.6s ease;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,10,15,0.75) 0%, rgba(20,10,15,0.1) 60%);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

.post-hero-content {
  max-width: 760px;
}

.post-hero-tag {
  display: inline-block;
  background: var(--rose);
  color: var(--white);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.post-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.post-hero-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
}

/* ── Post Body ───────────────────────────────────────────── */
.post-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.post-intro {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--taupe);
}

.post-container h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--rose);
  line-height: 1.3;
}

.post-container h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 2rem 0 0.7rem;
}

.post-container p {
  margin-bottom: 1.3rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.post-container ul,
.post-container ol {
  margin: 0.8rem 0 1.5rem 1.5rem;
}

.post-container li {
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #444;
}

.post-container strong { color: var(--charcoal); }

.post-container em { color: var(--rose); font-style: italic; }

.post-container blockquote {
  border-left: 3px solid var(--rose);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--cream-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
}

/* ── POST INLINE IMAGES ───────────────────────────────────
   All inline images within a post article are classed
   "post-img". To replace: change the src attribute.
   ─────────────────────────────────────────────────────── */
.post-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0;
  object-fit: cover;
}

.post-img-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.post-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.post-img-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ── Post Spot Pill ──────────────────────────────────────── */
.spot {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--cream-dark);
  color: var(--rose-dark);
  border-radius: 50px;
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ── Post Footer / Back Link ─────────────────────────────── */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rose);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  margin-bottom: 3rem;
  margin-top: 1rem;
}

.post-back:hover { gap: 0.7rem; color: var(--rose-dark); }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--taupe);
}

.post-tag {
  background: var(--cream-dark);
  color: var(--muted);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 1rem; }


  .posts-grid { 
    grid-template-columns: 1fr; 
    padding: 0 1rem 3rem; 
  }

  .hero { padding: 4rem 1.5rem; }
  .hero-stats { gap: 1.5rem; }

  .post-hero-overlay { padding: 1.5rem; }

  .post-container { padding: 2rem 1.2rem 4rem; }
  .post-container h2 { font-size: 1.3rem; }

  .post-img-grid { grid-template-columns: 1fr; }

  .about-strip { padding: 3.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .filter-bar { padding: 0.5rem 1rem 1.5rem; }
}

/* ── Hamburger Menu ──────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 68px;
    left: -100%;
    width: 65%;
    height: calc(100vh - 68px);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 2rem;
    box-shadow: 4px 0 20px rgba(0,0,0,0.05);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-links .nav-cta {
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
  }
}
