/*
Theme Name: RentDeed - India Rent Agreement & Legal Services
Theme URI: https://rentdeed.in
Author: RentDeed Platform Team
Author URI: https://rentdeed.in
Description: A modern, high-performance, and conversion-focused WordPress theme for Indian rent agreements, doorstep biometric registration, e-stamps, tenant police verification, and legal documentation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: custom-wp-theme
Tags: legal, real-estate, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, grid-layout, wide-blocks
*/

/* ─────────────────────────────────────────────────────────────
   CSS RESET & CORE VARIABLES
───────────────────────────────────────────────────────────── */
:root {
  --bg-main: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-card-soft: #F4EFEB;
  --bg-card-orange: #FFF7ED;
  --bg-dark: #18181B;
  --bg-dark-card: #27272A;
  
  --text-primary: #1C1F1B;
  --text-secondary: #57534E;
  --text-muted: #78716C;
  --text-light: #F4F4F5;
  --text-dark-muted: #A1A1AA;
  
  --orange-primary: #EA580C;
  --orange-hover: #C2410C;
  --orange-light: #FFF7ED;
  --orange-border: #FFEDD5;
  --orange-accent: #FB923C;
  
  --border-light: #E8E4DC;
  --border-soft: #E5DFD6;
  --border-dark: #27272A;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #FAF8F5;
  color: #1C1F1B;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .font-editorial {
  font-family: 'Playfair Display', Georgia, serif;
}

.sand-card {
  background-color: #FFFFFF;
  border: 1px solid #E8E4DC;
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.sand-card:hover {
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 10px 25px -5px rgba(28, 31, 27, 0.08);
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #EA580C;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 0.625rem 0.625rem 1.25rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
  text-decoration: none;
}

.btn-orange:hover {
  background-color: #C2410C;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.38);
}

.btn-orange-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-orange:hover .btn-orange-icon {
  transform: translateX(2px);
  background-color: rgba(255, 255, 255, 0.35);
}

.btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  color: #1C1F1B !important;
  border: 1px solid #E8E4DC;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cream:hover {
  background-color: #F4EFEB;
  border-color: #DCD5C9;
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #EA580C;
}

.eyebrow-label::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5px;
  background-color: #EA580C;
}

.input-sand {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #E2DDD5;
  border-radius: 0.875rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #1C1F1B;
  transition: all 0.15s ease;
}

.input-sand:focus {
  border-color: #EA580C;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
  outline: none;
}

.calc-wrapper {
  background: #FFFFFF;
  border: 1px solid #E8E4DC;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 4px 20px -2px rgba(28, 31, 27, 0.06);
}

.calc-range-slider {
  flex-grow: 1;
  accent-color: #EA580C;
  height: 6px;
  background: #E5DFD6;
  border-radius: 4px;
  cursor: pointer;
}

.calc-breakdown-card {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px dashed rgba(234, 88, 12, 0.2);
}

.calc-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #C2410C;
  border-top: 2px solid #EA580C;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E8E4DC;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.faq-question-btn {
  width: 100%;
  padding: 1.125rem 1.25rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #1C1F1B;
  cursor: pointer;
}

.faq-icon-pill {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: #FFF7ED;
  color: #EA580C;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: #57534E;
  line-height: 1.6;
  border-top: 1px solid #F4EFEB;
  padding-top: 0.875rem;
}

.faq-item.active .faq-answer {
  display: block !important;
}

.faq-item.active .faq-icon-pill {
  transform: rotate(180deg);
}

.rd-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(28, 31, 27, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rd-modal-overlay.active {
  display: flex !important;
}

.rd-modal-content {
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #E8E4DC;
}

.rd-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #F4EFEB;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #57534E;
}

/* Blog Feed Styles */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  background-color: #FFFFFF;
  border: 1px solid #E8E4DC;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 4px 20px -2px rgba(28, 31, 27, 0.06);
}

.blog-card-thumb-wrap {
  position: relative;
  height: 13rem;
  background-color: #F4EFEB;
  overflow: hidden;
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb { transform: scale(1.05); }

.blog-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #1C1F1B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.blog-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.625rem;
}

.blog-card-title a { color: #1C1F1B; text-decoration: none; }
.blog-card-title a:hover { color: #EA580C; }

.blog-card-excerpt {
  color: #57534E;
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #E5DFD6;
  font-size: 0.75rem;
  color: #78716C;
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: #FFFFFF;
  border: 1px solid #E8E4DC;
  color: #1C1F1B;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background-color: #EA580C;
  color: #FFFFFF;
  border-color: #EA580C;
}

/* Single Post */
.single-post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.single-post-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.single-post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 1rem 0;
}

.single-post-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 2rem;
  margin-bottom: 2.5rem;
  border: 1px solid #E8E4DC;
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2D3748;
}

.article-content p { margin-bottom: 1.5rem; }
.article-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  margin: 2.5rem 0 1rem;
}

.article-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  margin: 2rem 0 0.875rem;
}

.article-content ul, .article-content ol { margin: 1.25rem 0 1.5rem 1.75rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
  border-left: 4px solid #EA580C;
  background-color: #FFF7ED;
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.875rem 0.875rem 0;
  font-style: italic;
  margin: 2rem 0;
}

/* Comments */
.comments-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #E8E4DC;
}

.comments-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
}

.comment-list { list-style: none; margin-bottom: 3rem; }
.comment-list .comment {
  padding: 1.5rem;
  background-color: #FFFFFF;
  border: 1px solid #E8E4DC;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
}

.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E8E4DC;
  border-radius: 0.875rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
