/*
Theme Name: OwnedNotOwned
Theme URI: https://ownednotowned.com
Author: OwnedNotOwned
Author URI: https://ownednotowned.com
Description: A clean, fast, AdSense-friendly WordPress theme for OwnedNotOwned.com — America's #1 resource for manufactured home owners and buyers.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ownednotowned
Tags: blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

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

:root {
  --primary:    #1a5276;
  --primary-dk: #154360;
  --secondary:  #1e8449;
  --accent:     #e67e22;
  --light:      #f4f6f8;
  --white:      #ffffff;
  --text:       #2c3e50;
  --text-light: #5d6d7e;
  --border:     #dce1e7;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --font:       'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w:      1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--light); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
p { margin-bottom: 1rem; }
h1,h2,h3,h4,h5,h6 { color: var(--primary-dk); line-height: 1.3; margin-bottom: .75rem; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

/* ========== LAYOUT ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.content-area { flex: 1; }

.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  padding: 30px 0;
}
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--primary-dk);
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,.8); }
.top-bar a:hover { color: #fff; text-decoration: none; }

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}
.site-branding { flex-shrink: 0; }
.site-title { font-size: 1.6rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.site-title span { color: var(--accent); }
.site-description { font-size: .8rem; color: var(--text-light); margin: 0; }

/* ========== NAVIGATION ========== */
.main-nav { display: flex; align-items: center; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 5px; flex-wrap: wrap; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
/* Dropdown */
.main-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  z-index: 200;
  flex-direction: column;
  gap: 0;
}
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul li ul li a { padding: 10px 16px; font-weight: 500; border-radius: 0; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li ul { position: static; box-shadow: none; border: none; background: var(--light); }
  .header-inner { flex-wrap: wrap; }
}

/* ========== AD BANNER (HEADER) ========== */
.header-ad {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  text-align: center;
}
.ad-label {
  font-size: .65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.ad-placeholder {
  background: #eaf0fb;
  border: 1px dashed #b0bec5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #90a4ae;
  font-size: .8rem;
  margin: 0 auto;
}
.ad-728x90 { width: 728px; max-width: 100%; height: 90px; }
.ad-300x250 { width: 300px; height: 250px; }
.ad-336x280 { width: 336px; max-width: 100%; height: 280px; margin: 20px auto; }
.ad-responsive { width: 100%; min-height: 90px; }

/* ========== HERO (FRONT PAGE) ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 60%, #2471a3 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.hero h1 { color: white; font-size: 2.4rem; margin-bottom: .5rem; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 640px; margin: 0 auto 1.5rem; }
.hero-search {
  display: flex;
  max-width: 540px;
  margin: 0 auto;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero-search input {
  flex: 1;
  padding: 14px 22px;
  border: none;
  font-size: 1rem;
  outline: none;
}
.hero-search button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
  transition: background .2s;
}
.hero-search button:hover { background: #d35400; }
.hero-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.8rem; color: #f9ca24; }
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.8); }

/* ========== CATEGORY CARDS ========== */
.categories-section { padding: 40px 0; background: var(--white); }
.section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 8px;
  color: var(--primary-dk);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: .95rem;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--light);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.cat-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.cat-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--primary-dk); }
.cat-card p { font-size: .82rem; color: var(--text-light); margin: 0; }

/* ========== POSTS GRID ========== */
.posts-section { padding: 40px 0; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}
.post-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.post-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: linear-gradient(135deg, #d5e8f5, #eaf4ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-cat-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.post-cat-badge:hover { background: var(--accent); text-decoration: none; }
.post-card h3 { font-size: 1rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--primary); text-decoration: none; }
.post-card p { font-size: .87rem; color: var(--text-light); flex: 1; }
.post-meta { font-size: .78rem; color: var(--text-light); margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.post-meta span { display: flex; align-items: center; gap: 4px; }
.read-more {
  display: inline-block;
  margin-top: 12px;
  background: var(--primary);
  color: white;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  transition: background .2s;
}
.read-more:hover { background: var(--accent); text-decoration: none; }

/* ========== SINGLE POST ========== */
.single-post-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 30px 0 20px;
}
.breadcrumb { font-size: .83rem; color: var(--text-light); margin-bottom: 12px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }
.single-post-header h1 { font-size: 2rem; max-width: 800px; line-height: 1.3; }
.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: .84rem;
  color: var(--text-light);
  align-items: center;
}
.post-meta-bar a { color: var(--primary); }
.author-badge {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-content { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: var(--shadow); }
.post-content h2 { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--light); }
.post-content h3 { margin-top: 1.2rem; color: var(--secondary); }
.post-content ul, .post-content ol { margin-bottom: 1rem; }
.post-content li { margin-bottom: .4rem; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--light);
  margin: 1.5rem 0;
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-content table th { background: var(--primary); color: white; padding: 10px 14px; text-align: left; font-size: .9rem; }
.post-content table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.post-content table tr:nth-child(even) { background: var(--light); }

/* Info box */
.info-box {
  background: #eaf4fb;
  border: 1px solid #aed6f1;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.info-box.warning { background: #fef9e7; border-color: #f9e79f; }
.info-box.success { background: #eafaf1; border-color: #a9dfbf; }
.info-box strong { display: block; margin-bottom: 6px; }

/* Post Tags */
.post-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags span { font-weight: 600; font-size: .85rem; }
.tag {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .8rem;
  color: var(--primary);
  transition: background .2s;
}
.tag:hover { background: var(--primary); color: white; text-decoration: none; }

/* Related Posts */
.related-posts { margin-top: 30px; }
.related-posts h3 { font-size: 1.2rem; margin-bottom: 15px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
.related-card { background: var(--white); border-radius: var(--radius); padding: 15px; border: 1px solid var(--border); }
.related-card a { font-size: .9rem; font-weight: 600; color: var(--text); }
.related-card a:hover { color: var(--primary); text-decoration: none; }

/* ========== SIDEBAR ========== */
.sidebar { display: flex; flex-direction: column; gap: 25px; }
.widget {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.widget-title {
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: .3px;
}
.widget-body { padding: 18px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { border-bottom: 1px solid var(--border); padding: 9px 0; font-size: .88rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); display: flex; justify-content: space-between; }
.widget ul li a:hover { color: var(--primary); text-decoration: none; }
.widget ul li a span { color: var(--text-light); font-size: .8rem; }

.search-form { display: flex; gap: 0; }
.search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .9rem;
  outline: none;
}
.search-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: .9rem;
}

/* ========== ABOUT WIDGET ========== */
.about-widget { text-align: center; }
.about-widget img { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 12px; border: 3px solid var(--primary); }
.about-widget p { font-size: .85rem; color: var(--text-light); }

/* ========== CTA WIDGET ========== */
.cta-widget {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 24px 20px;
  border-radius: 10px;
}
.cta-widget h3 { color: white; font-size: 1rem; margin-bottom: 8px; }
.cta-widget p { font-size: .83rem; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  transition: background .2s;
}
.cta-btn:hover { background: #d35400; color: white; text-decoration: none; }

/* ========== PAGINATION ========== */
.pagination { margin: 30px 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  transition: all .2s;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  text-decoration: none;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #1a252f;
  color: rgba(255,255,255,.8);
  margin-top: 40px;
}
.footer-top { padding: 50px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .site-title { font-size: 1.4rem; color: white; margin-bottom: 10px; display: block; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.6; }
.footer-col h4 { color: white; font-size: .95rem; margin-bottom: 16px; letter-spacing: .3px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .87rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.65); }
.footer-bottom a:hover { color: white; text-decoration: none; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.disclaimer-bar {
  background: #111;
  padding: 12px 0;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ========== PAGE CONTENT ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  color: white;
  padding: 50px 0 40px;
}
.page-hero h1 { color: white; font-size: 2.2rem; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 600px; }

.page-content { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: var(--shadow); line-height: 1.8; }
.page-content h2 { margin-top: 1.5rem; border-bottom: 2px solid var(--light); padding-bottom: .5rem; }
.page-content h3 { color: var(--secondary); margin-top: 1.2rem; }

/* ========== ABOUT PAGE ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.value-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.value-card { background: var(--light); padding: 20px; border-radius: 10px; text-align: center; }
.value-card .icon { font-size: 2rem; margin-bottom: 8px; }
.value-card h4 { margin-bottom: 6px; font-size: .95rem; }
.value-card p { font-size: .83rem; color: var(--text-light); margin: 0; }

/* ========== CONTACT PAGE ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font);
  margin-bottom: 16px;
  transition: border-color .2s;
  outline: none;
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--accent); }
.contact-info-card { background: var(--light); padding: 24px; border-radius: 10px; }
.contact-info-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-info-item .ci-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-info-item p { font-size: .87rem; color: var(--text-light); margin: 0; }
.contact-info-item strong { display: block; color: var(--text); margin-bottom: 2px; }

/* ========== CATEGORY PAGE ========== */
.category-header { background: var(--primary); color: white; padding: 35px 0; }
.category-header h1 { color: white; font-size: 1.8rem; margin-bottom: 5px; }
.category-header p { color: rgba(255,255,255,.85); font-size: .95rem; margin: 0; }
.cat-count { background: rgba(255,255,255,.2); display: inline-block; padding: 2px 10px; border-radius: 50px; font-size: .82rem; margin-top: 8px; }

/* ========== 404 PAGE ========== */
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 .big-num { font-size: 8rem; font-weight: 900; color: var(--light); line-height: 1; }
.page-404 h2 { font-size: 1.8rem; margin-bottom: 10px; }
.page-404 p { color: var(--text-light); margin-bottom: 24px; }

/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), #2471a3);
  padding: 50px 0;
  text-align: center;
  color: white;
}
.newsletter-section h2 { color: white; font-size: 1.8rem; margin-bottom: .5rem; }
.newsletter-section p { color: rgba(255,255,255,.85); max-width: 500px; margin: 0 auto 20px; }
.newsletter-form { display: flex; max-width: 460px; margin: 0 auto; gap: 0; border-radius: 50px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.2); }
.newsletter-form input { flex: 1; padding: 13px 22px; border: none; font-size: .95rem; outline: none; }
.newsletter-form button { background: var(--accent); color: white; border: none; padding: 13px 24px; font-weight: 700; cursor: pointer; transition: background .2s; }
.newsletter-form button:hover { background: #d35400; }
.newsletter-note { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 10px; }

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.section-pad { padding: 50px 0; }

/* ========== YOAST BREADCRUMB ========== */
.yoast-breadcrumb { font-size: .83rem; padding: 10px 0; color: var(--text-light); border-bottom: 1px solid var(--border); background: var(--white); }
.yoast-breadcrumb a { color: var(--primary); }
.yoast-breadcrumb .breadcrumb_last { color: var(--text-light); }

/* ========== COMMENTS ========== */
.comments-section { background: var(--white); padding: 25px; border-radius: 10px; box-shadow: var(--shadow); margin-top: 25px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-family: var(--font);
  font-size: .9rem;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--primary); outline: none; }
