/*
Theme Name: JointDecor
Theme URI: https://jointdecor.com
Author: JointDecor
Description: A WordPress version of the JointDecor home decor tools website.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jointdecor
*/

:root {
  --primary: #2c3e50;
  --primary-light: #34495e;
  --accent: #d4af37;
  --accent-hover: #b8962e;
  --bg-color: #fdfdfd;
  --text-color: #333333;
  --text-muted: #666666;
  --card-bg: rgba(255, 255, 255, 0.86);
  --border-color: #e0e0e0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

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

h1,
h2,
h3,
h4 {
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 70px;
  display: flex;
  align-items: center;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.jd-block-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 70px;
  display: flex;
  align-items: center;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.jd-block-header__inner {
  width: 100%;
  padding-block: 1rem;
}

.jd-block-header .wp-block-navigation a {
  min-height: 44px;
  font-weight: 600;
}

.jd-block-header .wp-block-navigation__responsive-container-open {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--primary);
}

.jd-block-header .wp-block-navigation__responsive-container-open svg {
  width: 24px;
  height: 24px;
}

.jd-block-footer {
  margin-top: 4rem;
  padding-block: 4rem 2rem;
  overflow: hidden;
}

.jd-block-footer a,
.jd-block-footer p {
  color: rgba(255, 255, 255, 0.74);
}

.jd-block-footer .wp-block-heading {
  margin-bottom: 1rem;
}

.jd-home-cta,
.has-primary-background-color.glass-card {
  color: #ffffff;
}

.jd-home-cta h2,
.has-primary-background-color.glass-card h2,
.jd-home-cta .wp-block-heading,
.has-primary-background-color.glass-card .wp-block-heading {
  color: #ffffff !important;
}

.jd-home-cta p,
.has-primary-background-color.glass-card p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.jd-block-footer h3.wp-block-heading {
  color: #ffffff !important;
}

.jd-block-footer h4.wp-block-heading {
  color: var(--accent) !important;
}

.jd-footer-copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82) !important;
}

.jd-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2;
}

.jd-pattern-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.jd-pattern-grid > .wp-block-column {
  min-width: 0;
}

.jd-category-section .section-title {
  margin-bottom: 3rem;
}

.jd-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.jd-category-card {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  flex-direction: column;
  text-align: center;
}

.jd-category-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.jd-category-card span {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 500;
}

.wp-block-post-title a,
.wp-block-query-title a {
  color: inherit;
}

.wp-block-post-terms a {
  color: var(--accent);
  font-weight: 700;
}

.wp-block-search__inside-wrapper {
  gap: 0.5rem;
}

.site-header-inner,
.site-nav ul {
  display: flex;
  align-items: center;
}

.site-header-inner {
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  color: var(--primary);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.site-nav ul {
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--primary);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.hero {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-color) 0%, #f0f4f8 100%);
}

.hero h1,
.page-title,
.page-title-lg,
.section-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.hero h1 {
  max-width: 880px;
  margin-inline: auto;
  font-size: 3.5rem;
}

.hero .jd-hero-title,
.hero .has-hero-font-size {
  font-size: 3.5rem !important;
}

.hero .jd-hero-title mark {
  padding: 0;
  background: transparent !important;
  color: var(--accent) !important;
}

.hero p {
  max-width: 800px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.hero p.has-large-font-size,
.hero .wp-block-paragraph.has-large-font-size {
  font-size: 1.2rem !important;
  line-height: 1.6;
}

.page-shell {
  padding-block: 4rem;
}

.page-shell-lg {
  padding-block: 6rem;
}

.page-title {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.page-title-lg {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

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

.accent {
  color: var(--accent);
}

.muted {
  color: var(--text-muted);
}

.center {
  text-align: center;
}

.narrow {
  max-width: 900px;
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.responsive-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.glass-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

a.glass-card {
  display: flex;
  flex-direction: column;
}

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

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tool-icon {
  margin-bottom: 1.2rem;
  font-size: 2.6rem;
}

.tool-card-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.tool-card-copy {
  color: var(--text-muted);
  flex: 1;
  font-size: 0.95rem;
}

.tool-card-link {
  margin-top: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.tool-page-grid,
.seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.tool-panel {
  position: sticky;
  top: 100px;
}

.tool-form {
  display: grid;
  gap: 1rem;
}

.tool-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tool-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary);
  font-weight: 700;
}

.tool-field input,
.tool-field select,
.contact-form input,
.contact-form textarea,
.footer-newsletter input {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  color: var(--text-color);
}

.tool-result {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
}

.tool-result.is-visible {
  display: block;
}

.tool-result strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 1.45rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.18);
}

.breadcrumbs {
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--accent);
  font-weight: 600;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: 2rem;
}

.jointdecor-services {
  max-width: 1000px;
  margin: 0 auto;
}

.services-intro {
  margin-bottom: 5rem;
}

.services-intro p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.8;
}

.services-grid-original {
  gap: 3rem;
  margin-bottom: 6rem;
}

.service-card-original {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  border-radius: 24px;
}

.service-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.service-card-head h3 {
  margin-right: 1rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.service-price-wrap {
  flex: 0 0 auto;
  text-align: right;
}

.service-price {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
}

.service-duration,
.service-consultant {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.service-consultant {
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-consultant span {
  color: var(--accent);
}

.service-desc {
  margin-bottom: 2rem;
}

.service-includes {
  margin-bottom: 2.5rem;
}

.service-includes h4 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.service-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-includes li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.service-includes span {
  color: var(--accent);
  font-size: 1.2rem;
}

.service-actions {
  margin-top: 1.5rem;
}

.service-actions .btn {
  flex: 1;
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

.services-why {
  padding: 4rem;
  border-radius: 24px;
  text-align: center;
}

.services-why > p {
  max-width: 750px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.services-proof-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 3rem;
}

.services-proof-grid h4 {
  color: var(--accent);
  font-size: 1.2rem;
}

.services-proof-grid p {
  font-size: 0.85rem;
}

.service-detail,
.contact-page-original {
  max-width: 800px;
  margin: 0 auto;
}

.service-detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.service-price-large {
  display: block;
  font-size: 2.5rem;
}

.service-detail-intro {
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-detail-intro p {
  margin-bottom: 1.5rem;
}

.service-detail-section-title {
  margin-bottom: 1.5rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.service-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.step-card {
  display: flex;
  gap: 1.5rem;
}

.step-number {
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.step-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.service-request-card {
  padding: 3rem;
}

.service-request-card h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-request-form,
.contact-form-original {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid,
.responsive-grid-2-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-request-form label,
.contact-form-original label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 700;
}

.service-request-form input,
.service-request-form select,
.service-request-form textarea,
.contact-form-original input,
.contact-form-original select,
.contact-form-original textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-color);
}

.mock-input,
.mock-select,
.mock-textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-muted);
  font-weight: 400;
}

.mock-select {
  color: var(--text-color);
}

.mock-textarea {
  min-height: 120px;
}

.service-request-form textarea,
.contact-form-original textarea {
  min-height: 120px;
}

.contact-form-original textarea {
  min-height: 150px;
}

.jd-about-inner {
  max-width: 900px;
  margin: 0 auto;
}

.jd-about-inner > .page-title-lg {
  margin-bottom: 2.5rem;
}

.jd-about-intro {
  margin-bottom: 4rem;
}

.jd-about-intro p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

.jd-about-principles {
  margin-bottom: 5rem;
}

.jd-about-principles h2,
.jd-about-community h2 {
  margin-bottom: 1.5rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.jd-about-principles p {
  line-height: 1.7;
}

.jd-about-section-title {
  margin-bottom: 3rem;
}

.jd-about-reasons {
  margin-bottom: 5rem;
}

.jd-about-reasons h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.jd-about-reasons p {
  font-size: 0.95rem;
}

.jd-experts-panel {
  margin-bottom: 5rem;
  padding: 4rem 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--glass);
  text-align: center;
}

.jd-experts-panel > p {
  max-width: 700px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

.jd-experts-grid,
.wp-block-group.jd-experts-grid,
div.jd-experts-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  justify-content: center !important;
}

@media (max-width: 850px) {
  .jd-experts-grid,
  .wp-block-group.jd-experts-grid,
  div.jd-experts-grid {
    grid-template-columns: 1fr !important;
  }
}

.jd-expert-card {
  display: flex;
  align-items: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  flex-direction: column;
}

.jd-expert-image {
  margin: 0 0 1.5rem;
}

.jd-expert-card img {
  width: 120px;
  height: 120px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.jd-expert-card h4 {
  margin-bottom: 0.2rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.jd-expert-role {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.jd-expert-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.jd-about-community {
  margin-top: 6rem;
}

.jd-about-community p {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.jd-about-community .btn {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

.jd-legal-page {
  max-width: 800px;
  margin: 0 auto;
}

.jd-legal-page .page-title-lg {
  margin-bottom: 2rem;
}

.jd-legal-date {
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.jd-legal-content {
  color: var(--text-color);
  line-height: 1.8;
}

.jd-legal-content section {
  padding: 0;
  margin-bottom: 3rem;
}

.jd-legal-content section:last-child {
  margin-bottom: 2rem;
}

.jd-legal-content h2 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.8rem;
}

.jd-legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.jd-legal-content ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.jd-legal-content p + p {
  margin-top: 1rem;
}

.jd-legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

.jd-disclaimer-notice {
  margin-bottom: 4rem;
  padding: 2.5rem;
  border-left: 5px solid var(--accent);
}

.jd-disclaimer-notice p {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
}

.contact-intro {
  margin-bottom: 4rem;
}

.contact-layout h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-block h4 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-card img {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  border: 3px solid var(--accent);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.blog-index {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.blog-index__intro {
  margin-bottom: 4rem;
}

.blog-index__intro .page-title {
  margin-bottom: 1rem;
}

.blog-index__intro .muted {
  max-width: 700px;
  margin: 1rem auto 0;
}

.blog-index__grid.wp-block-post-template {
  display: grid;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 2.5rem;
}

.blog-index__grid.wp-block-post-template > li {
  width: auto !important;
  margin: 0;
}

.blog-index-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

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

.blog-index-card__body {
  flex: 1;
}

.blog-index-card__category {
  margin-bottom: 1rem;
}

.blog-index-card__category a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
}

.blog-index-card__title {
  margin-bottom: 1rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.3;
}

.blog-index-card__title a {
  color: inherit;
}

.blog-index-card__excerpt,
.blog-index-card__excerpt .wp-block-post-excerpt__excerpt {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-card-meta p,
.blog-card-meta .wp-block-post-date,
.blog-card-meta .wp-block-shortcode,
.blog-card-meta .wp-block-read-more {
  margin: 0;
}

.blog-card-meta__date {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
}

.blog-card-read-more,
.blog-card-meta .wp-block-read-more {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.blog-single {
  max-width: 800px;
  padding-block: 4rem;
}

.blog-single .breadcrumbs {
  margin-bottom: 1rem;
}

.blog-single__header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-single__category {
  margin-bottom: 1rem;
}

.blog-single__category a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
}

.blog-single__title {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  line-height: 1.2;
}

.blog-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.blog-meta p,
.blog-meta .wp-block-post-author-name,
.blog-meta .wp-block-post-date,
.blog-meta .wp-block-shortcode {
  flex: 0 0 auto;
  margin: 0;
}

.blog-meta .wp-block-post-author-name {
  font-weight: 700;
  color: var(--text-muted);
}

.blog-content {
  max-width: 800px;
  margin-inline: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.blog-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1.2;
}

.blog-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

.blog-content ul,
.blog-content ol {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0 0 1.5rem;
  padding-left: 2rem;
}

.blog-content li {
  margin: 0;
}

.blog-tool-cta {
  display: flex;
  align-items: center;
  margin-top: 4rem;
  padding: 2.5rem;
  border-color: var(--accent);
  flex-direction: column;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(212, 175, 55, 0.05) 100%);
  text-align: center;
}

.blog-tool-cta__icon {
  display: block;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  line-height: 1;
}

.blog-tool-cta h3 {
  margin-bottom: 0.5rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.blog-tool-cta p {
  max-width: 500px;
  margin: 0 auto 1.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-tool-cta .btn {
  padding: 0.9rem 2rem;
}

.blog-back-link {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.blog-back-link a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 700px) {
  .blog-single {
    padding-block: 3rem;
    padding-inline: 1.25rem;
  }

  .blog-index__intro {
    margin-bottom: 3rem;
  }

  .blog-index__grid.wp-block-post-template {
    gap: 1.5rem;
  }

  .blog-single__header {
    margin-bottom: 2.25rem;
    padding-bottom: 1.6rem;
  }

  .blog-single__title {
    font-size: 2.35rem;
  }

  .blog-meta {
    gap: 0.25rem;
    font-size: 0.78rem;
  }

  .blog-content {
    font-size: 1rem;
  }

  .blog-content h2 {
    font-size: 1.55rem;
  }

  .blog-content h3 {
    font-size: 1.25rem;
  }

  .blog-tool-cta {
    padding: 2rem 1.25rem;
  }
}

.site-footer {
  margin-top: 4rem;
  padding: 4rem 0 2rem;
  background: var(--primary);
  color: #fff;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.site-footer h4 {
  color: var(--accent);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2;
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.footer-newsletter input {
  flex: 1 1 auto;
  width: auto;
  min-height: 34px;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  color: var(--text-color);
  font-size: 0.9rem;
}

.footer-newsletter .btn {
  flex: 0 0 auto;
  width: auto;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}

.copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 800px) {
  .container {
    padding-inline: 1rem;
  }

  .jd-block-header {
    min-height: 110px;
    align-items: center;
    z-index: 100000;
  }

  .jd-block-header__inner {
    flex-wrap: nowrap !important;
    padding: 1rem 1.8rem;
  }

  .jd-block-header .site-brand,
  .jd-block-header .site-brand a {
    font-size: 2.1rem !important;
    line-height: 1.1;
    text-transform: none;
  }

  .jd-block-header .wp-block-navigation__responsive-container-open {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }

  .jd-block-header .wp-block-navigation__responsive-container-open svg {
    width: 30px;
    height: 30px;
  }

  .jd-block-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100001 !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: 2rem !important;
    background: var(--bg-color) !important;
    color: var(--primary) !important;
  }

  .jd-block-header .wp-block-navigation__responsive-close,
  .jd-block-header .wp-block-navigation__responsive-dialog {
    width: 100%;
    max-width: 100%;
  }

  .jd-block-header .wp-block-navigation__responsive-container-close {
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100002;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--primary);
  }

  .jd-block-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: 100%;
    padding-top: 5rem !important;
    align-items: stretch !important;
  }

  .jd-block-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .jd-block-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100%;
    align-items: stretch !important;
  }

  .jd-block-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary) !important;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
  }

  .site-header {
    align-items: flex-start;
    min-height: 64px;
  }

  .site-header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 0.75rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.5rem;
    border-top: 1px solid var(--border-color);
  }

  .site-nav a {
    width: 100%;
    padding: 0.65rem 0;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1,
  .hero .jd-hero-title,
  .hero .has-hero-font-size {
    font-size: 2.35rem !important;
  }

  .hero p,
  .hero p.has-large-font-size,
  .hero .wp-block-paragraph.has-large-font-size {
    max-width: 34rem;
    font-size: 1rem !important;
    line-height: 1.6;
  }

  .page-shell,
  .page-shell-lg {
    padding-block: 2.75rem;
  }

  .wp-block-group.hero,
  .wp-block-group.page-shell {
    padding-inline: 1rem;
  }

  .grid,
  .grid-2,
  .responsive-grid-2,
  .responsive-grid-2-wide,
  .form-grid,
  .tool-page-grid,
  .seo-grid,
  .tool-input-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .tool-panel {
    position: static;
  }

  .glass-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .jd-pattern-grid,
  .jd-footer-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .jd-block-footer {
    margin-top: 2.5rem;
    padding: 2.5rem 1rem 1.5rem;
  }

  .jd-block-footer .jd-footer-grid.wp-block-columns {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    width: 100%;
    max-width: 100%;
    margin-inline: 0 !important;
  }

  .jd-block-footer .wp-block-column {
    flex-basis: auto !important;
    min-width: 0;
    width: 100%;
  }

  .jd-block-footer h3.wp-block-heading {
    margin-bottom: 0.65rem;
    font-size: 1.65rem;
  }

  .jd-block-footer h4.wp-block-heading {
    margin-bottom: 0.55rem;
    font-size: 1rem;
  }

  .jd-block-footer p,
  .jd-footer-list {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .jd-pattern-grid .glass-card {
    width: 100%;
  }

  .jd-category-section .section-title {
    margin-bottom: 2rem;
  }

  .jd-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .jd-category-card {
    min-height: 140px;
    padding: 1.25rem;
  }

  .jd-category-card h3 {
    font-size: 1.1rem;
  }

  .jd-category-card span {
    font-size: 0.98rem;
  }

  .tool-icon {
    margin-bottom: 1rem;
    font-size: 2rem;
  }

  .tool-card-title {
    font-size: 1.25rem;
  }

  .services-intro {
    margin-bottom: 3rem;
  }

  .service-card-original,
  .services-why {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .service-card-head,
  .service-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-price-wrap {
    text-align: left;
  }

  .button-row,
  .mobile-stack-row {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-newsletter {
    width: 100%;
    max-width: 22rem;
    flex-direction: row;
    align-items: stretch;
  }

  .footer-newsletter input {
    min-width: 0;
  }

  .btn {
    width: 100%;
  }

  .footer-newsletter .btn {
    width: auto;
  }

  .result-row {
    flex-direction: column;
  }

  .step-card {
    flex-direction: column;
  }

  .service-request-card {
    padding: 1.25rem;
  }

  .jd-about-intro,
  .jd-about-principles,
  .jd-about-reasons,
  .jd-experts-panel {
    margin-bottom: 3rem;
  }

  .jd-about-intro p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .jd-about-principles h2,
  .jd-about-community h2 {
    font-size: 1.65rem;
  }

  .jd-experts-panel {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  .jd-about-community {
    margin-top: 4rem;
  }

  .jd-about-community .btn {
    width: 100%;
    padding-inline: 1rem;
  }

  .jd-legal-content h2 {
    font-size: 1.45rem;
  }

  .jd-legal-content h3 {
    font-size: 1.15rem;
  }

  .jd-disclaimer-notice {
    margin-bottom: 3rem;
    padding: 1.5rem;
  }

  .jd-disclaimer-notice p {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .jd-block-header__inner {
    padding-inline: 1.25rem;
  }

  .jd-block-header .site-brand,
  .jd-block-header .site-brand a {
    font-size: 1.85rem !important;
  }

  .jd-block-header .wp-block-navigation__responsive-container-open {
    width: 54px;
    height: 54px;
    border-radius: 11px;
  }

  .jd-block-header .wp-block-navigation__responsive-container-open svg {
    width: 28px;
    height: 28px;
  }

  .jd-block-header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 1.5rem !important;
  }

  .jd-block-footer {
    padding-inline: 1rem;
  }

  .footer-newsletter {
    max-width: none;
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer-newsletter input,
  .footer-newsletter .btn {
    width: 100%;
  }

  .jd-category-grid {
    grid-template-columns: 1fr;
  }

  .jd-block-footer > .has-text-align-center {
    margin-top: 1.75rem;
    font-size: 0.8rem !important;
    line-height: 1.5;
  }
}
