/*
Theme Name: Cents and Suitcases
Theme URI: https://centsandsuitcases.com
Author: Cents and Suitcases
Description: A travel and personal finance blog theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: cents-and-suitcases
*/

/* ===================== RESET & ROOT ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1410;
  --sand: #f5f0e8;
  --rust: #c45c2b;
  --rust-light: #f0e6de;
  --moss: #3b5a3e;
  --sky: #2d6a8f;
  --muted: #7a6f65;
  --white: #fffdf9;
  --border: rgba(26,20,16,0.12);
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ===================== NAV ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(255,253,249,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.site-logo span { color: var(--rust); font-style: italic; }

.main-navigation ul {
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.main-navigation a:hover { color: var(--rust); }

.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--rust);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover { background: #a84b22 !important; transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--ink);
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem 3rem 4rem;
  gap: 4rem;
  background: linear-gradient(135deg, var(--sand) 0%, var(--white) 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rust-light);
  color: var(--rust);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rust);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.hero h1 em { font-style: italic; color: var(--rust); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover { background: var(--rust); transform: translateY(-2px); }

.btn-ghost {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s, color 0.2s;
}

.btn-ghost:hover { gap: 0.7rem; color: var(--rust); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visuals {
  position: relative;
  height: 600px;
}

.hero-img-main {
  position: absolute;
  width: 72%; height: 75%;
  top: 0; right: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.hero-img-secondary {
  position: absolute;
  width: 50%; height: 48%;
  bottom: 0; left: 0;
  z-index: 2;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.hero-img-main img,
.hero-img-secondary img {
  width: 100%; height: 100%; object-fit: cover;
}

.img-tag {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: rgba(255,253,249,0.92);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  z-index: 3;
}

/* ===================== SECTIONS ===================== */
.section { padding: 5rem 3rem; }
.section-bg { background: var(--sand); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.view-all {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.view-all:hover { color: var(--rust); border-color: var(--rust); }

/* ===================== POST CARDS ===================== */
.posts-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.post-card {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.post-card .card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.post-card.featured .card-img { aspect-ratio: 16/9; }

.card-body { padding: 1.25rem 1.5rem 1.5rem; }

.card-category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.6rem;
  display: block;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.post-card.featured .card-title { font-size: 1.55rem; }

.card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-meta .dot {
  width: 3px; height: 3px;
  background: var(--muted);
  border-radius: 50%;
  display: inline-block;
}

.read-time {
  background: var(--sand);
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
}

/* ===================== BLOG PAGE ===================== */
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 7rem 3rem 5rem;
}

.blog-posts { display: flex; flex-direction: column; gap: 2rem; }

.blog-post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.blog-post-card img {
  width: 100%; height: 200px; object-fit: cover;
}

.blog-post-card .card-body { padding: 1.5rem 1.5rem 1.5rem 0; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }

.widget {
  background: var(--sand);
  border-radius: 1rem;
  padding: 1.5rem;
}

.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.widget ul { display: flex; flex-direction: column; gap: 0.5rem; }
.widget ul a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.widget ul a:hover { color: var(--rust); }

/* ===================== SINGLE POST ===================== */
.single-post {
  max-width: 780px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}

.post-header { margin-bottom: 2.5rem; }

.post-header .card-category { margin-bottom: 1rem; }

.post-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.post-header .card-meta { margin-bottom: 2rem; }

.post-featured-img {
  width: 100%;
  border-radius: 1rem;
  margin-bottom: 3rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-content { font-size: 1.05rem; line-height: 1.85; color: var(--ink); }

.post-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

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

.post-content ul, .post-content ol {
  margin: 0 0 1.5rem 1.5rem;
  list-style: disc;
}

.post-content li { margin-bottom: 0.5rem; }

.post-content a { color: var(--rust); border-bottom: 1px solid var(--rust-light); }
.post-content a:hover { border-color: var(--rust); }

.post-content blockquote {
  border-left: 3px solid var(--rust);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--rust-light);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--muted);
}

/* ===================== DESTINATIONS ===================== */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.dest-card {
  border-radius: 0.875rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.25s;
}

.dest-card:hover { transform: scale(1.02); }

.dest-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}

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

.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
}

.dest-info {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  color: #fff;
}

.dest-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}

.dest-count { font-size: 0.78rem; opacity: 0.8; margin-top: 0.2rem; }

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  padding-bottom: 3rem;
  padding-right: 3rem;
}

.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 1rem;
}

.about-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 0.875rem;
  border: 3px solid var(--white);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about-accent img { width: 100%; height: 100%; object-fit: cover; }

.about-tag {
  position: absolute;
  top: 2rem; right: -0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.about-tag strong { display: block; font-weight: 500; color: var(--ink); font-size: 0.875rem; }
.about-tag span { color: var(--muted); font-size: 0.78rem; }

.about-body h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.about-body h2 em { font-style: italic; color: var(--rust); }

.about-body p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.about-icons {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.about-icon-item { display: flex; flex-direction: column; gap: 0.3rem; }

.icon-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.icon-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer .site-logo a { color: #fff; }
.site-footer p { font-size: 0.85rem; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--rust); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid .post-card.featured { grid-column: 1 / -1; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .site-header { padding: 1rem 1.5rem; }
  .main-navigation, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; min-height: auto; }
  .hero-visuals { display: none; }
  .section { padding: 3rem 1.5rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; }
  .blog-post-card { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .hero-stats { gap: 1.5rem; }
}
