/* =============================================
   HOMEFINDS — Editorial Review Site
   ============================================= */

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

:root {
  --cream: #faf8f5;
  --cream-mid: #f2ede6;
  --cream-dark: #e8e0d5;
  --navy: #1a2332;
  --navy-mid: #2d3e54;
  --warm-brown: #8b6f5e;
  --accent: #c4602a;
  --accent-hover: #a84f22;
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-light: #8a8a8a;
  --border: #e2ddd7;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-text { font-weight: 400; letter-spacing: 0.02em; }

.top-bar-links { display: flex; gap: 16px; }
.top-bar-links a { color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.top-bar-links a:hover { color: white; }

.main-nav-wrap { background: var(--white); }

.nav-container {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

/* Main Nav */
.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
}

.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  transition: all 0.15s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--navy);
  background: var(--cream-mid);
}

.main-nav a.nav-highlight {
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
}

.main-nav a.nav-highlight:hover {
  background: var(--accent-hover);
  color: white;
}

/* Search Toggle */
.nav-search { margin-left: auto; }

.search-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: all 0.15s;
}

.search-toggle:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.mobile-menu.open { display: block; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu nav a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--cream-mid);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-overlay.active { display: flex; }

.search-overlay-inner {
  background: var(--white);
  width: 100%;
  max-width: 640px;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-hover);
  margin: 0 16px;
}

.search-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: 4px;
}

.search-close:hover { background: var(--cream-mid); color: var(--navy); }

#search-input {
  width: 100%;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-sans);
  outline: none;
  background: var(--cream);
}

.search-results {
  margin-top: 16px;
  max-height: 360px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--cream-mid);
  transition: background 0.1s;
}

.search-result-item:hover { background: var(--cream-mid); }

.search-result-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.search-result-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* === HERO === */
.hero {
  background: var(--navy);
  padding: 60px 0;
  margin-bottom: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title:hover { color: var(--cream-mid); }

.hero-excerpt {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-mid), #3a5068);
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-category-badge {
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 20px;
}

/* === CATEGORY STRIP === */
.category-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: calc(var(--nav-height) + 34px);
  z-index: 90;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-pills::-webkit-scrollbar { display: none; }

.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--cream-mid);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
}

.pill:hover, .pill.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* === ARTICLES SECTION === */
.articles-section {
  padding: 56px 0;
}

.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-light);
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: transparent;
}

.card-image-link { display: block; }

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream-mid));
  position: relative;
  overflow: hidden;
}

.card-image:hover .card-image-inner { opacity: 1; }

.card-image-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(to top, rgba(26,35,50,0.5) 0%, transparent 60%);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.card-category {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-link { display: block; margin-bottom: 8px; }

.card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}

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

.card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

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

.card-date {
  font-size: 12px;
  color: var(--text-light);
}

.card-read-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}

.card-read-more:hover { color: var(--accent-hover); }

/* Load More */
.load-more-wrap {
  text-align: center;
  margin-top: 48px;
}

/* === TRUST STRIP === */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === NEWSLETTER === */
.newsletter-section {
  background: var(--navy);
  padding: 56px 0;
}

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

.newsletter-inner h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.newsletter-inner > p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 12px;
}

.newsletter-input {
  flex: 1;
  border: none;
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  background: rgba(255,255,255,0.12);
  color: white;
  outline: none;
  border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.16); }

.newsletter-fine {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 96, 42, 0.35);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  transition: all 0.15s;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-outline:hover {
  background: var(--navy);
  color: white;
}

/* === POST PAGE === */
.post-page {
  padding: 40px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-light); }

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.post-header {
  margin-bottom: 24px;
}

.post-category-tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.post-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.post-author { font-weight: 500; color: var(--text-secondary); }
.post-divider { color: var(--cream-dark); }

/* Affiliate Disclosure */
.affiliate-disclosure {
  background: var(--cream-mid);
  border-left: 3px solid var(--warm-brown);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}

.affiliate-disclosure strong { color: var(--text-primary); }
.affiliate-disclosure a { color: var(--accent); text-decoration: underline; }

/* Featured Image */
.post-featured-image {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

.featured-image-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #3a5068 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.featured-image-placeholder span {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-align: center;
  max-width: 80%;
  line-height: 1.3;
}

/* Post Content */
.post-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 36px 0 14px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-content h2 { font-size: 26px; border-bottom: 2px solid var(--cream-dark); padding-bottom: 10px; }
.post-content h3 { font-size: 21px; }
.post-content h4 { font-size: 17px; font-family: var(--font-sans); font-weight: 700; }

.post-content p { margin-bottom: 18px; }

.post-content ul, .post-content ol {
  margin: 16px 0 20px 24px;
}

.post-content li { margin-bottom: 8px; }

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-content a:hover { color: var(--accent-hover); }

.post-content strong { font-weight: 600; color: var(--navy); }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--cream-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Amazon link button style */
.post-content a[href*="amazon.com"] {
  display: inline-block;
  background: #FF9900;
  color: #111;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  margin: 4px 0;
  transition: all 0.15s;
}

.post-content a[href*="amazon.com"]:hover {
  background: #e68800;
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255,153,0,0.4);
}

/* === SIDEBAR === */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 48px);
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.widget-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cream-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.toc-links { display: flex; flex-direction: column; gap: 6px; }

.toc-links a {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.4;
  transition: all 0.1s;
}

.toc-links a:hover { background: var(--cream-mid); color: var(--navy); }

.related-post {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-mid);
  transition: all 0.15s;
}

.related-post:last-child { border-bottom: none; }

.related-post:hover .related-title { color: var(--accent); }

.related-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.related-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  transition: color 0.15s;
}

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  margin-bottom: 10px;
}

.footer-disclosure-note {
  font-size: 11px !important;
  color: rgba(255,255,255,0.35) !important;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.footer-col ul a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .nav-search { display: none; }
}

@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero { padding: 40px 0; }
  .articles-section { padding: 36px 0; }
}
