/*
Theme Name: Roaming with Bibi
Theme URI: https://roamingwithbibi.com
Author: Bibi
Author URI: https://roamingwithbibi.com
Description: The official #RwB travel journal theme — deep navy, aged gold, postcard soul. Built for roamingwithbibi.com.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rwb
Tags: travel, blog, photography, portfolio, custom-colors, custom-logo, full-width-template, post-formats
*/

/* ═══════════════════════════════════════════
   #RwB THEME — GLOBAL DESIGN SYSTEM
   Navy · Gold · Cream · Postcard Soul
═══════════════════════════════════════════ */

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

/* ── VARIABLES ── */
:root {
  --navy:       #0D2145;
  --navy-light: #1A3560;
  --navy-deep:  #070F22;
  --gold:       #B8972A;
  --gold-light: #D4AF50;
  --cream:      #F7F2E8;
  --cream-dark: #EDE4D0;
  --text-dark:  #1a1a1a;
  --text-mid:   #555555;
  --text-light: #999999;
  --expo:       cubic-bezier(0.16, 1, 0.3, 1);
  --quart:      cubic-bezier(0.76, 0, 0.24, 1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Cormorant Garamond', 'Times New Roman', serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── BASE ── */
body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-ui);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.rwb-cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--expo), height .3s var(--expo);
  mix-blend-mode: multiply;
}
.rwb-cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .4s var(--expo), height .4s var(--expo);
  opacity: .55;
}
.rwb-cursor.hov     { width: 6px; height: 6px; }
.rwb-cursor-ring.hov{ width: 54px; height: 54px; opacity: .2; }

/* ── GRAIN OVERLAY ── */
.rwb-grain {
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none; opacity: .026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}
p { font-family: var(--font-body); line-height: 1.8; }

.rwb-label {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 5px;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.rwb-label::before {
  content: ''; width: 28px; height: 1px;
  background: var(--gold); display: block;
}

/* ── BUTTONS ── */
.rwb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 13px 28px; border: 1px solid;
  cursor: none; transition: all .35s var(--expo);
  position: relative; overflow: hidden; text-decoration: none;
}
.rwb-btn::before {
  content: ''; position: absolute; inset: 0;
  transform: translateX(-101%);
  transition: transform .4s var(--expo);
}
.rwb-btn:hover::before { transform: translateX(0); }
.rwb-btn span { position: relative; z-index: 1; }
.rwb-btn-navy  { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.rwb-btn-navy::before  { background: var(--navy-light); }
.rwb-btn-gold  { background: transparent; color: var(--gold); border-color: var(--gold); }
.rwb-btn-gold::before  { background: var(--gold); }
.rwb-btn-gold:hover span  { color: var(--navy); }
.rwb-btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247,242,232,.3); }
.rwb-btn-ghost::before { background: rgba(247,242,232,.1); }
.rwb-btn-ghost:hover { border-color: var(--cream); }

/* ── TICKER ── */
.rwb-ticker {
  background: var(--gold); padding: 11px 0;
  overflow: hidden; white-space: nowrap;
}
.rwb-ticker-inner {
  display: inline-flex;
  animation: rwbTick 30s linear infinite;
}
.rwb-ticker-inner:hover { animation-play-state: paused; }
.rwb-tick-item {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--navy); padding: 0 44px;
}
.rwb-tick-item::after { content: '✦'; margin-left: 44px; opacity: .45; }
@keyframes rwbTick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SCROLL REVEAL ── */
[data-rwb-reveal] {
  opacity: 0;
  transition: opacity .9s var(--expo), transform .9s var(--expo);
}
[data-rwb-reveal="up"]    { transform: translateY(40px); }
[data-rwb-reveal="left"]  { transform: translateX(-40px); }
[data-rwb-reveal="right"] { transform: translateX(40px); }
[data-rwb-reveal].rwb-revealed { opacity: 1; transform: none; }

/* ── NAV ── */
#rwb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 72px; padding: 0 52px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7,15,34,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184,151,42,.18);
}
.rwb-nav-logo { display: flex; flex-direction: column; gap: 1px; }
.rwb-nav-logo .rwb-mark {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--cream); letter-spacing: -.5px; line-height: 1;
}
.rwb-nav-logo .rwb-mark span { color: var(--gold); }
.rwb-nav-logo .rwb-tagline {
  font-family: var(--font-body);
  font-size: 10px; color: var(--gold);
  font-style: italic; letter-spacing: 1.5px;
}
.rwb-nav-links {
  display: flex; align-items: center;
  gap: 38px; list-style: none;
}
.rwb-nav-links li { position: relative; }
.rwb-nav-links li a {
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: 2px;
  color: rgba(247,242,232,.65);
  text-transform: uppercase; transition: color .25s; padding-bottom: 2px;
}
.rwb-nav-links li a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--expo);
}
.rwb-nav-links li a:hover { color: var(--cream); }
.rwb-nav-links li a:hover::after,
.rwb-nav-links li.current-menu-item a::after { transform: scaleX(1); transform-origin: left; }
.rwb-nav-links li.current-menu-item a { color: var(--gold); }

/* Hamburger */
.rwb-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.rwb-hamburger span {
  display: block; width: 24px; height: 1.5px; background: var(--cream);
  transition: transform .35s var(--expo), opacity .25s;
}
.rwb-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.rwb-hamburger.open span:nth-child(2) { opacity: 0; }
.rwb-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
#rwb-mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 499;
  background: var(--navy-deep);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; opacity: 0; pointer-events: none;
  transition: opacity .4s var(--expo);
}
#rwb-mobile-nav.open { opacity: 1; pointer-events: all; }
#rwb-mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 52px); font-weight: 700;
  color: var(--cream); font-style: italic;
  transition: color .25s;
}
#rwb-mobile-nav a:hover,
#rwb-mobile-nav a.current-menu-item { color: var(--gold); }

/* ── PAGE HERO ── */
.rwb-page-hero {
  min-height: 55vh; margin-top: 72px;
  position: relative; display: flex;
  align-items: flex-end; padding: 0 52px 64px;
  overflow: hidden;
}
.rwb-page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: rwbZoom 18s ease-in-out infinite alternate;
}
.rwb-page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(7,15,34,.2) 0%, rgba(7,15,34,.88) 100%);
}
@keyframes rwbZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.rwb-page-hero-content { position: relative; z-index: 2; }
.rwb-page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900; color: var(--cream);
  line-height: .93; letter-spacing: -2px;
}
.rwb-page-title em { font-style: italic; color: var(--gold-light); }
.rwb-page-sub {
  font-family: var(--font-body);
  font-size: 18px; color: rgba(247,242,232,.6);
  font-style: italic; margin-top: 14px; line-height: 1.6;
}

/* ── PLACE CARDS ── */
.rwb-place-card {
  background: #fff; border: 1px solid var(--cream-dark);
  overflow: hidden; cursor: none;
  transition: transform .4s var(--expo), box-shadow .4s var(--expo);
}
.rwb-place-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(13,33,69,.12);
}
.rwb-card-img { position: relative; height: 240px; overflow: hidden; }
.rwb-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--expo);
}
.rwb-place-card:hover .rwb-card-img img { transform: scale(1.08); }
.rwb-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,15,34,.5) 0%, transparent 55%);
}
.rwb-card-stamp {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  color: rgba(184,151,42,.7); border: 1px solid rgba(184,151,42,.4);
  padding: 3px 8px; background: rgba(7,15,34,.35); letter-spacing: 1px;
  transition: opacity .3s;
}
.rwb-place-card:hover .rwb-card-stamp { opacity: 0; }
.rwb-card-badge {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-body); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--cream);
  background: rgba(7,15,34,.7); padding: 4px 10px;
  border: 1px solid rgba(184,151,42,.3);
}
.rwb-card-body { padding: 24px 24px 20px; }
.rwb-card-region {
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.rwb-card-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--navy); line-height: 1.15; margin-bottom: 4px;
}
.rwb-card-hook {
  font-family: var(--font-display); font-size: 14px;
  font-style: italic; color: var(--gold);
  margin-bottom: 12px; line-height: 1.4;
}
.rwb-card-text {
  font-family: var(--font-body); font-size: 15px;
  line-height: 1.8; color: var(--text-mid);
}
.rwb-card-footer {
  padding: 18px 24px 22px;
  display: flex; gap: 12px;
  border-top: 1px solid var(--cream-dark);
}

/* ── POSTCARD ── */
.rwb-postcard {
  background: var(--cream); border: 1px solid var(--cream-dark);
  display: grid; grid-template-columns: 1fr 1px 1fr;
  box-shadow: 10px 10px 0 var(--cream-dark), 20px 20px 0 rgba(0,0,0,.05);
  transition: transform .4s var(--expo), box-shadow .4s;
}
.rwb-postcard:hover {
  transform: translateY(-6px);
  box-shadow: 10px 16px 0 var(--cream-dark), 20px 28px 0 rgba(0,0,0,.07);
}
.rwb-pc-brand {
  font-family: var(--font-display); font-size: 40px;
  font-weight: 900; color: var(--navy); letter-spacing: -1px; line-height: 1;
}
.rwb-pc-brand span { color: var(--gold); }
.rwb-pc-wish {
  font-family: var(--font-body); font-style: italic;
  font-size: 14px; color: var(--gold); letter-spacing: 1px;
}

/* ── GALLERY MASONRY ── */
.rwb-masonry { columns: 3; column-gap: 10px; }
.rwb-masonry-item {
  break-inside: avoid; margin-bottom: 10px;
  position: relative; overflow: hidden; cursor: none;
}
.rwb-masonry-item img {
  width: 100%; display: block;
  transition: transform .7s var(--expo);
  filter: brightness(.92);
}
.rwb-masonry-item:hover img { transform: scale(1.05); filter: brightness(1); }
.rwb-masonry-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,15,34,.88) 0%, transparent 55%);
  opacity: 0; transition: opacity .4s var(--expo);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
}
.rwb-masonry-item:hover .rwb-masonry-overlay { opacity: 1; }

/* ── FOOTER ── */
#rwb-footer {
  background: var(--navy-deep);
  padding: 72px 52px 0;
  border-top: 1px solid rgba(184,151,42,.12);
}
.rwb-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px; padding-bottom: 56px;
}
.rwb-footer-brand .rwb-mark {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 700; color: var(--cream); letter-spacing: -.5px;
}
.rwb-footer-brand .rwb-mark span { color: var(--gold); }
.rwb-footer-brand .rwb-tagline {
  font-family: var(--font-body); font-size: 12px;
  color: var(--gold); font-style: italic; margin-top: 4px; letter-spacing: 1px;
}
.rwb-footer-brand p {
  font-family: var(--font-body); font-size: 15px;
  color: rgba(247,242,232,.3); margin-top: 18px; line-height: 1.8;
}
.rwb-footer-col h4 {
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.rwb-footer-col ul { list-style: none; }
.rwb-footer-col ul li { margin-bottom: 10px; }
.rwb-footer-col ul li a {
  font-family: var(--font-body); font-size: 16px;
  color: rgba(247,242,232,.4); transition: color .25s;
}
.rwb-footer-col ul li a:hover { color: var(--gold); }
.rwb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 22px 0;
  display: flex; justify-content: space-between;
}
.rwb-footer-bottom span {
  font-family: var(--font-body); font-size: 12px;
  color: rgba(247,242,232,.18); letter-spacing: 1px;
}

/* ── WORDPRESS CORE CLASSES ── */
.wp-block-image img     { border-radius: 0; }
.alignwide               { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull               { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text      { position: absolute; left: -9999px; }
.skip-link:focus         { position: static; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .rwb-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .rwb-masonry { columns: 2; }
  .rwb-postcard { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  #rwb-nav { padding: 0 24px; }
  .rwb-nav-links { display: none; }
  .rwb-hamburger { display: flex; }
  #rwb-mobile-nav { display: flex; }
  #rwb-footer { padding: 52px 24px 0; }
  body { cursor: auto; }
  .rwb-cursor, .rwb-cursor-ring { display: none; }
  .rwb-page-hero { padding: 0 24px 48px; }
}
@media (max-width: 480px) {
  .rwb-masonry { columns: 1; }
}
