/*
Theme Name: ATXCasa Blog
Theme URI: https://blog.atxcasa.com/
Author: ATXCasa
Description: A lightweight editorial theme that visually extends the ATXCasa real estate website.
Version: 1.2.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: atxcasa-blog
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --atx-ink: #191919;
  --atx-muted: #667085;
  --atx-blue: #3b5cde;
  --atx-blue-dark: #2948c2;
  --atx-pale: #f4f5f8;
  --atx-line: #e5e6ea;
  --atx-white: #ffffff;
  --atx-shadow: 0 18px 48px rgba(32, 36, 55, 0.09);
  --atx-radius: 10px;
  --atx-content: 1180px;
  --atx-reading: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--atx-ink);
  background: var(--atx-white);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: var(--atx-blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--atx-blue); }
img { max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: #fff;
  color: #111;
}

.atx-container { width: min(calc(100% - 40px), var(--atx-content)); margin-inline: auto; }

.atx-topbar { background: var(--atx-pale); border-top: 3px solid #f4d39b; border-bottom: 1px solid #eceef2; font-size: 13px; }
.atx-topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.atx-contact, .atx-social { display: flex; align-items: center; gap: 22px; }
.atx-contact a, .atx-social a { color: #4c5566; text-decoration: none; }
.atx-contact a:hover, .atx-social a:hover { color: var(--atx-blue); }
.atx-social a { display: inline-flex; align-items: center; gap: 6px; }
.atx-social svg, .atx-contact svg { width: 15px; height: 15px; fill: currentColor; vertical-align: -2px; }

.atx-site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--atx-line); }
.atx-nav-row { min-height: 92px; display: flex; align-items: center; gap: 34px; }
.atx-brand { flex: 0 0 auto; display: inline-flex; align-items: center; text-decoration: none; }
.atx-brand img { display: block; width: auto; height: 70px; object-fit: contain; }
.atx-brand-name { margin-left: 12px; color: var(--atx-ink); font-family: "Montserrat", "Open Sans", sans-serif; font-weight: 700; font-size: 14px; line-height: 1.25; letter-spacing: .02em; }

.atx-menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--atx-line); background: #fff; color: var(--atx-ink); border-radius: 6px; cursor: pointer; }
.atx-menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; }

.atx-primary-nav { flex: 1; }
.atx-primary-nav ul { list-style: none; display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.05vw, 36px); margin: 0; padding: 0; }
.atx-primary-nav li { margin: 0; }
.atx-primary-nav a { color: #202020; text-decoration: none; font-family: "Montserrat", "Open Sans", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .085em; white-space: nowrap; }
.atx-primary-nav a:hover, .atx-primary-nav .current-menu-item > a, .atx-primary-nav .atx-active > a { color: var(--atx-blue); }
.atx-primary-nav .atx-outline-link a { border: 1px solid var(--atx-ink); padding: 9px 13px; }
.atx-primary-nav .atx-outline-link a:hover { border-color: var(--atx-blue); }

.atx-blog-hero { padding: 42px 0 32px; background: linear-gradient(135deg, #f4f6ff 0%, #fff 68%); border-bottom: 1px solid var(--atx-line); }
.atx-blog-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 42px; align-items: center; }
.atx-kicker { margin: 0 0 12px; color: var(--atx-blue-dark); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.atx-blog-hero h1, .atx-section-heading h2, .atx-archive-header h1, .atx-article-header h1, .atx-article-content h2, .atx-article-content h3, .atx-article-content h4, .atx-footer-cta h2 { font-family: "Montserrat", "Open Sans", sans-serif; }
.atx-blog-hero h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -.04em; }
.atx-blog-hero p { max-width: 690px; margin: 22px 0 0; color: #50596a; font-size: clamp(17px, 2vw, 20px); }
.atx-hero-note { border-left: 3px solid var(--atx-blue); padding: 18px 0 18px 24px; color: #4c5566; }
.atx-hero-note strong { display: block; margin-bottom: 4px; color: var(--atx-ink); font-size: 19px; }

.atx-home-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.atx-search-form { width: min(100%, 500px); }
.atx-search-form form { display: flex; overflow: hidden; border: 1px solid #cfd4e2; background: #fff; box-shadow: 0 8px 24px rgba(27, 46, 116, .08); }
.atx-search-form label { flex: 1; }
.atx-search-form .screen-reader-text { position: absolute; }
.atx-search-form input[type="search"] { width: 100%; min-height: 48px; border: 0; padding: 0 15px; color: var(--atx-ink); font: inherit; outline: none; }
.atx-search-form button { min-width: 112px; border: 0; background: var(--atx-blue); color: #fff; font-family: "Montserrat", "Open Sans", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .06em; cursor: pointer; }
.atx-search-form button:hover { background: var(--atx-blue-dark); }

.atx-category-strip { border-bottom: 1px solid var(--atx-line); background: #fff; }
.atx-category-list { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 16px 0; scrollbar-width: thin; }
.atx-category-list a { flex: 0 0 auto; padding: 7px 13px; border: 1px solid var(--atx-line); border-radius: 99px; color: #3f4859; text-decoration: none; font-size: 13px; font-weight: 600; }
.atx-category-list a:hover { border-color: var(--atx-blue); color: var(--atx-blue-dark); }

.atx-main { padding: 42px 0 72px; }
.atx-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.atx-section-heading h2, .atx-archive-header h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -.02em; }
.atx-section-heading p, .atx-archive-header p { margin: 4px 0 0; color: var(--atx-muted); }

.atx-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.atx-card { overflow: hidden; border: 1px solid var(--atx-line); border-radius: var(--atx-radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.atx-card:hover { transform: translateY(-3px); border-color: #c8d6e0; box-shadow: var(--atx-shadow); }
.atx-card-media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dcecf5, #f7f9fb); overflow: hidden; }
.atx-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.atx-card:hover .atx-card-media img { transform: scale(1.025); }
.atx-card-body { padding: 23px 23px 25px; }
.atx-card h2, .atx-card h3 { margin: 8px 0 10px; font-size: 21px; line-height: 1.32; letter-spacing: -.015em; }
.atx-card h2 a, .atx-card h3 a { color: var(--atx-ink); text-decoration: none; }
.atx-card h2 a:hover, .atx-card h3 a:hover { color: var(--atx-blue-dark); }
.atx-card p { margin: 0; color: #5b6473; font-size: 14px; line-height: 1.65; }
.atx-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #7a8391; font-size: 12px; }
.atx-meta a { color: var(--atx-blue-dark); text-decoration: none; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.atx-empty { padding: 48px; border: 1px dashed #cfd6de; border-radius: var(--atx-radius); text-align: center; background: var(--atx-pale); }
.atx-empty h2 { margin-top: 0; }

.atx-pagination { margin-top: 40px; }
.atx-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.atx-pagination a, .atx-pagination span { min-width: 38px; padding: 7px 11px; border: 1px solid var(--atx-line); text-align: center; text-decoration: none; }
.atx-pagination .current { border-color: var(--atx-blue); background: var(--atx-blue); color: #fff; }

.atx-article-wrap { width: min(calc(100% - 40px), 1080px); margin: 0 auto; padding: 62px 0 88px; }
.atx-article-header { max-width: 900px; margin: 0 auto 38px; text-align: center; }
.atx-article-header h1 { margin: 13px 0 18px; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -.03em; }
.atx-article-deck { max-width: 740px; margin: 0 auto 20px; color: #566071; font-size: 19px; line-height: 1.65; }
.atx-featured-image { margin: 0 0 48px; border-radius: 12px; overflow: hidden; box-shadow: var(--atx-shadow); }
.atx-featured-image img { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.atx-article-content { width: min(100%, var(--atx-reading)); margin: 0 auto; font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: #303744; font-size: 19px; line-height: 1.75; }
.atx-article-content h2, .atx-article-content h3, .atx-article-content h4 { color: var(--atx-ink); font-weight: 700; line-height: 1.28; letter-spacing: -.022em; scroll-margin-top: 26px; }
.atx-article-content h2 { margin: 54px 0 17px; font-size: clamp(27px, 3vw, 34px); }
.atx-article-content h3 { margin: 36px 0 12px; font-size: 24px; }
.atx-article-content p, .atx-article-content ul, .atx-article-content ol { margin: 0 0 25px; }
.atx-article-content li { margin-bottom: 10px; }
.atx-article-content blockquote { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--atx-blue); color: #465164; font-size: 21px; }
.atx-article-content .wp-block-image { margin: 38px auto; max-width: 920px; }
.atx-article-content .wp-block-image img { display: block; width: 100%; border-radius: 8px; box-shadow: 0 12px 30px rgba(32, 36, 55, .09); }
.atx-article-content figcaption { margin-top: 9px; color: #788190; font-family: "Roboto", "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 13px; line-height: 1.45; text-align: center; }
.atx-article-cta { width: min(100%, 860px); margin: 64px auto 0; padding: 34px; background: var(--atx-ink); color: #fff; border-radius: var(--atx-radius); text-align: center; }
.atx-article-cta h2 { margin: 0 0 8px; font-size: 29px; }
.atx-article-cta p { margin: 0 auto 20px; max-width: 650px; color: #d8dde5; }
.atx-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.atx-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--atx-blue); background: var(--atx-blue); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-decoration: none; }
.atx-button:hover { border-color: #fff; background: #fff; color: var(--atx-ink); }
.atx-button-secondary { border-color: #fff; background: transparent; }
.atx-related { margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--atx-line); }
.atx-related h2 { margin: 0 0 24px; font-size: 29px; }
.atx-page-content, .atx-archive-header { width: min(calc(100% - 40px), 900px); margin: 0 auto; }
.atx-page-content { padding: 62px 0 84px; }
.atx-page-content > h1 { margin: 0 0 30px; font-size: clamp(38px, 5vw, 58px); line-height: 1.1; }
.atx-archive-header { margin-bottom: 32px; }
.atx-site-footer { margin-top: 0; background: #333; color: #e4e4e4; }
.atx-footer-cta { padding: 54px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.atx-footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.atx-footer-cta h2 { margin: 0 0 6px; color: #fff; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; }
.atx-footer-cta p { margin: 0; color: #adb5c2; }
.atx-footer-main { display: grid; grid-template-columns: 1.15fr .85fr .7fr; gap: 54px; padding: 52px 0 38px; }
.atx-footer-main h2, .atx-footer-main h3 { margin: 0 0 14px; color: #fff; font-family: "Montserrat", "Open Sans", sans-serif; font-size: 15px; letter-spacing: .03em; }
.atx-footer-main p { margin: 0 0 10px; color: #adb5c2; font-size: 14px; }
.atx-footer-main a { color: #d7dce4; text-decoration: none; }
.atx-footer-main a:hover { color: #fff; }
.atx-footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.atx-footer-links li { margin-bottom: 8px; font-size: 13px; break-inside: avoid; }
.atx-footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); color: #8f98a8; font-size: 12px; }
.atx-footer-bottom-inner { display: flex; justify-content: space-between; gap: 22px; }
@media (max-width: 1080px) {
  .atx-menu-toggle { display: block; }
  .atx-primary-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; padding: 14px 20px 24px; border-top: 1px solid var(--atx-line); border-bottom: 1px solid var(--atx-line); background: #fff; box-shadow: 0 16px 28px rgba(0,0,0,.08); }
  .atx-primary-nav.is-open { display: block; }
  .atx-primary-nav ul { display: block; }
  .atx-primary-nav li { border-bottom: 1px solid #eef1f4; }
  .atx-primary-nav a { display: block; padding: 13px 4px; }
  .atx-primary-nav .atx-outline-link { border-bottom: 0; }
  .atx-primary-nav .atx-outline-link a { margin-top: 12px; text-align: center; }
  .atx-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .atx-container { width: min(calc(100% - 28px), var(--atx-content)); }
  .atx-topbar-inner { justify-content: center; min-height: 38px; }
  .atx-contact { gap: 14px; }
  .atx-contact a { font-size: 12px; }
  .atx-social { display: none; }
  .atx-nav-row { min-height: 82px; }
  .atx-brand img { height: 54px; }
  .atx-brand-name { display: none; }
  .atx-blog-hero { padding: 48px 0 44px; }
  .atx-blog-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .atx-hero-note { padding: 12px 0 12px 18px; }
  .atx-main { padding: 48px 0 60px; }
  .atx-post-grid { grid-template-columns: 1fr; }
  .atx-article-wrap { width: min(calc(100% - 28px), 1080px); padding: 46px 0 62px; }
  .atx-article-header { text-align: left; }
  .atx-article-content { font-size: 17px; }
  .atx-article-content h2 { font-size: 28px; }
  .atx-article-content .wp-block-image { margin-inline: 0; }
  .atx-article-cta { padding: 28px 20px; }
  .atx-footer-cta-inner, .atx-footer-bottom-inner { display: block; }
  .atx-footer-cta .atx-buttons { justify-content: flex-start; margin-top: 22px; }
  .atx-footer-main { grid-template-columns: 1fr; gap: 30px; }
  .atx-footer-bottom-inner > :last-child { margin-top: 6px; }
}
@media (min-width: 901px) and (max-height: 840px) {
  .atx-blog-hero { padding: 24px 0 18px; }
  .atx-blog-hero-grid { gap: 30px; }
  .atx-blog-hero h1 { font-size: clamp(32px, 3.8vw, 44px); }
  .atx-blog-hero p { margin: 14px 0 0; font-size: 16px; }
  .atx-hero-note { padding: 10px 0 10px 16px; }
  .atx-hero-note strong { font-size: 17px; }
  .atx-home-tools { margin-top: 14px; }
  .atx-main { padding-top: 26px; }
}


/* ATXCasa personal identity and footer alignment — 2026-09-13 */
.atx-topbar-inner { flex-wrap: wrap; gap: 8px 20px; padding-block: 7px; }
.atx-agent-identity { color: #303744; font-weight: 700; text-decoration: none; }
.atx-topbar .atx-contact { flex-wrap: wrap; justify-content: center; }
.atx-topbar .atx-social { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.atx-topbar .atx-social-profile { width: 32px; height: 32px; justify-content: center; border-radius: 4px; }
.atx-topbar .atx-social-profile svg { width: 18px; height: 18px; }
.atx-topbar .atx-social-profile:hover { background: #e7ebf4; }
.atx-topbar a:focus-visible { outline: 2px solid #3e59de; outline-offset: 3px; }
.atx-topbar .atx-social > a:last-child { margin-left: 8px; }
.atx-topbar .atx-review-profile { padding: 4px 6px; font-weight: 600; }
.atx-footer-cta-inner > div:first-child { min-width: 0; flex: 1; }
.atx-footer-cta h2 { font-size: clamp(26px, 2.6vw, 36px); text-wrap: balance; }
.atx-footer-cta p { max-width: none; text-wrap: pretty; }
.atx-footer-cta .atx-buttons { display: grid; grid-template-columns: minmax(0, 1fr); flex: 0 0 280px; width: 280px; max-width: 100%; gap: 11px; }
.atx-footer-cta .atx-buttons .atx-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; min-height: 48px; box-sizing: border-box; margin: 0; padding: 0 18px; border-width: 1px; border-style: solid; line-height: 1.25; text-align: center; }
@media (max-width: 760px) {
  .atx-topbar-inner { justify-content: center; text-align: center; }
  .atx-agent-identity { flex-basis: 100%; }
  .atx-topbar .atx-contact { gap: 6px 16px; }
  .atx-footer-cta-inner { display: block; }
  .atx-footer-cta .atx-buttons { width: 100%; margin-top: 22px; }
}

.atx-section-heading h1 { font-family: "Montserrat", "Open Sans", sans-serif; margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -.02em; }
