/*
Theme Name: HavenHome - Lifestyle & Home
Theme URI: https://example.com/havenhome
Author: Gemini Spark
Author URI: https://example.com
Description: A clean, modern, mobile-first WordPress theme designed specifically for lifestyle, home organization, renter hacks, and high-engagement Pinterest publishers. Optimized for Google AdSense viewability and Core Web Vitals.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: havenhome
*/

:root {
  --primary-color: #2b3a42;
  --accent-color: #c07a5f;
  --accent-hover: #a36148;
  --bg-color: #fdfbf7;
  --surface-color: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #eae5de;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
  --content-width: 780px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Header & Navigation */
.site-header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding .site-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-branding .site-title a {
  color: var(--primary-color);
}

.site-branding .site-description {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.main-navigation a {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 15px;
  text-transform: capitalize;
}

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

/* Container & Layout */
.site-container {
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.site-container.full-width {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
}

/* Featured Hero & Category Banner */
.hero-banner {
  background: linear-gradient(135deg, #f3ece4 0%, #faefe8 100%);
  border-radius: 12px;
  padding: 40px 32px;
  margin-bottom: 36px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.hero-banner h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.hero-banner p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto;
}

/* Post Grid / Cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.post-card-thumb {
  height: 220px;
  overflow: hidden;
  background-color: #ede8e1;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.03);
}

.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.post-card-title a {
  color: var(--primary-color);
}

.post-card-excerpt {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.post-card-meta {
  font-size: 13px;
  color: #999999;
  border-top: 1px solid #f0ebe4;
  padding-top: 12px;
}

/* Single Post Layout */
.single-post-content {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border-color);
}

.single-post-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.single-post-header h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.25;
  color: var(--primary-color);
  margin: 12px 0 16px;
}

.single-post-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.entry-content {
  font-size: 18px;
  line-height: 1.8;
  color: #2d2d2d;
}

.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--primary-color);
  margin: 36px 0 16px;
}

.entry-content h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin: 24px 0 12px;
}

.entry-content p {
  margin-bottom: 22px;
}

.entry-content ul, .entry-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

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

.entry-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 16px 24px;
  background: #fdf6f2;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-style: italic;
}

/* Download Box & Callout Box */
.download-box {
  background: #f9f5f0;
  border: 2px dashed var(--accent-color);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  margin: 36px 0;
}

.download-box h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.download-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #ffffff !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  margin-top: 14px;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background-color: var(--accent-hover);
}

/* AdSense Ad Placement Containers */
.adsense-slot {
  margin: 28px 0;
  padding: 12px;
  text-align: center;
  background: #faf8f5;
  border: 1px dashed #d8d2c9;
  border-radius: 8px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.adsense-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 6px;
}

/* Sidebar */
.sidebar-widget {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.sidebar-widget h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  color: #f3efe9;
  padding: 50px 20px 30px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-col p {
  color: #cfc8bd;
  font-size: 14.5px;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #ded7cc;
  font-size: 14.5px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #a89f92;
}

/* Mobile Responsive */
@media (max-width: 860px) {
  .site-container {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .single-post-content {
    padding: 24px 18px;
  }
  .single-post-header h1 {
    font-size: 28px;
  }
}
