/*
Theme Name: Rent in Sedona
Theme URI: https://rentinsedona.com
Author: Rent in Sedona
Description: Rent In Sedona: Sedona short-term rental market site for investors and owners. Terracotta and sand palette, Source Serif 4 + Inter Tight typography.
Version: 3.7
License: GPL v2 or later
Text Domain: rentinsedona
*/

:root {
  --sand: #f3ead9;
  --sand-deep: #e8dcc1;
  --cream: #faf5ea;
  --terracotta: #b8532a;
  --terracotta-deep: #8f3d1d;
  --clay: #d47a4f;
  --rust: #6b2d12;
  --ink: #2a1810;
  --charcoal: #3d2a1f;
  --sage: #8a8a6b;
  --stone: #a89680;
  --glow: rgba(184, 83, 42, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.serif { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ====== NAV ====== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(250, 245, 234, 0.85);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(42, 24, 16, 0.08);
}
.logo {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 100%; height: 100%; }
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta a,
.nav-cta {
  padding: 0.6rem 1.4rem;
  background: var(--ink);
  color: var(--cream) !important;
  border-radius: 999px;
  transition: background 0.3s !important;
}
.nav-links .nav-cta a:hover,
.nav-cta:hover { background: var(--terracotta) !important; }
.nav-links .nav-cta a::after,
.nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px; height: 20px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: 0.3s;
}
.menu-toggle span:nth-child(1) { top: 2px; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 2px; }

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 3rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(212, 122, 79, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(184, 83, 42, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, #f3ead9 0%, #e8dcc1 45%, #d4a373 100%);
}
.hero-scene { position: absolute; inset: 0; pointer-events: none; }
.hero-scene svg { width: 100%; height: 100%; display: block; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.5rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--rust); }

h1.hero-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.5s forwards;
}
h1.hero-title em { font-style: italic; color: var(--terracotta); font-weight: 400; }
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 480px;
  color: var(--charcoal);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ====== SEARCH WIDGET ====== */
.search-widget {
  background: rgba(250, 245, 234, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(42, 24, 16, 0.1);
  border-radius: 8px;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1px;
  max-width: 1100px;
  box-shadow: 0 20px 60px -20px rgba(107, 45, 18, 0.25);
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}
.search-field { padding: 0.9rem 1.2rem; background: transparent; position: relative; }
.search-field + .search-field { border-left: 1px solid rgba(42, 24, 16, 0.12); }
.search-field label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rust);
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.search-field input, .search-field select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  padding: 0;
  font-weight: 500;
}
.search-field input::placeholder { color: var(--stone); }
.search-btn {
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 4px;
  padding: 0 2rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-btn:hover { background: var(--terracotta); transform: translateY(-1px); }

/* ====== SECTIONS ====== */
section { position: relative; z-index: 2; }
.section-inner { max-width: 1400px; margin: 0 auto; padding: 8rem 3rem; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: end;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  font-weight: 500;
}
h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h2 em { font-style: italic; color: var(--terracotta); font-weight: 400; }
.section-desc { font-size: 1.05rem; color: var(--charcoal); max-width: 460px; padding-bottom: 0.5rem; }

/* ====== PROPERTIES ====== */
.properties { background: var(--sand); position: relative; }
.properties::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,24,16,0.15), transparent);
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}
.property-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 260px;
}
/* Hero card: full left side, spans 2 rows */
.property-card:nth-child(1) { grid-column: span 6; grid-row: span 2; }
/* Four smaller cards: 2x2 grid on the right */
.property-card:nth-child(2),
.property-card:nth-child(3),
.property-card:nth-child(4),
.property-card:nth-child(5) { grid-column: span 3; }
/* Force the hero to maintain a nice portrait-ish aspect matching the 2x2 stack */
.property-card:nth-child(1)::before {
  content: '';
  display: block;
  padding-bottom: 100%;
}
.property-card:hover { transform: translateY(-4px); }
.property-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.property-card:hover .property-img { transform: scale(1.05); }
.property-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(42, 24, 16, 0.75));
  pointer-events: none;
}
.property-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem;
  color: var(--cream);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}
.property-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.property-meta { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.property-price {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  text-align: right;
  white-space: nowrap;
}
.property-price span {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 400;
}
.property-tag {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  padding: 0.35rem 0.75rem;
  background: rgba(250, 245, 234, 0.95);
  color: var(--rust);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
  border-radius: 2px;
}

/* ====== GUIDE / BLOG ====== */
.guide { background: var(--cream); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.guide-card { cursor: pointer; display: block; text-decoration: none; color: inherit; }
.guide-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; margin-bottom: 1.5rem; position: relative; }
.guide-img-inner {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.guide-card:hover .guide-img-inner { transform: scale(1.04); }
.guide-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.guide-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.guide-card:hover .guide-title { color: var(--terracotta); }
.guide-excerpt { font-size: 0.95rem; color: var(--charcoal); line-height: 1.5; }

/* ====== NEWSLETTER ====== */
.newsletter { background: var(--rust); color: var(--cream); position: relative; overflow: hidden; }
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(212, 122, 79, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(143, 61, 29, 0.5) 0%, transparent 60%);
}
.newsletter-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 7rem 3rem;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.newsletter h2 { color: var(--cream); }
.newsletter h2 em { color: #f5c7a0; }
.newsletter p { margin-top: 1.5rem; font-size: 1.05rem; opacity: 0.85; max-width: 440px; }
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-form-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(250, 245, 234, 0.4);
  padding-bottom: 0.75rem;
  transition: border-color 0.3s;
}
.newsletter-form-row:focus-within { border-bottom-color: var(--cream); }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 0;
  color: var(--cream);
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.05rem;
}
.newsletter-form input::placeholder { color: rgba(250, 245, 234, 0.5); }
.newsletter-form button {
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}
.newsletter-form button:hover { gap: 1rem; }
.newsletter-small { font-size: 0.8rem; opacity: 0.6; margin-top: 0.5rem; }

/* ====== FOOTER ====== */
.site-footer { background: var(--ink); color: var(--sand); padding: 5rem 3rem 2rem; position: relative; z-index: 2; }
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(243, 234, 217, 0.15);
}
.footer-brand .logo { color: var(--sand); }
.footer-brand p { margin-top: 1.5rem; font-size: 0.9rem; color: rgba(243, 234, 217, 0.6); max-width: 280px; line-height: 1.6; }
.footer-col h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(243, 234, 217, 0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--clay); }
.footer-bottom { max-width: 1400px; margin: 2rem auto 0; display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(243, 234, 217, 0.5); }
.footer-disclosure {
  max-width: 1400px;
  margin: 2rem auto 0;
  font-size: 0.75rem;
  color: rgba(243, 234, 217, 0.4);
  line-height: 1.6;
  font-style: italic;
}

/* ====== BLOG / SINGLE POST / ARCHIVE ====== */
.page-header {
  padding: 12rem 3rem 5rem;
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
  text-align: center;
}
.page-header .eyebrow { justify-content: center; display: block; }
.page-header h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--charcoal);
}
.post-content h2, .post-content h3 { margin: 2.5rem 0 1rem; color: var(--ink); }
.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.4rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content img { border-radius: 4px; margin: 2rem 0; }
.post-content blockquote {
  border-left: 3px solid var(--terracotta);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
}
.post-content a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { margin: 0 0 1.5rem 1.5rem; }
.post-meta {
  text-align: center;
  color: var(--stone);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}
.featured-image {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
}
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--terracotta);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.back-link:hover { text-decoration: underline; }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .site-nav { padding: 1.25rem 1.5rem; }
  .site-nav.scrolled { padding: 0.9rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.mobile-visible {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
  }
  .menu-toggle { display: block; }
  .hero { padding: 0 1.5rem 2rem; }
  .section-inner { padding: 5rem 1.5rem; }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .section-desc { padding-bottom: 0; }
  .search-widget { grid-template-columns: 1fr; gap: 0; }
  .search-field + .search-field { border-left: none; border-top: 1px solid rgba(42, 24, 16, 0.12); }
  .search-btn { padding: 1rem; width: 100%; justify-content: center; margin-top: 0.5rem; }
  .property-grid { display: flex; flex-direction: column; gap: 1rem; }
  .property-card { aspect-ratio: 4 / 3 !important; grid-column: auto !important; grid-row: auto !important; }
  .guide-grid { grid-template-columns: 1fr; gap: 3rem; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 1.5rem; }
  .site-footer { padding: 3rem 1.5rem 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .page-header { padding: 8rem 1.5rem 3rem; }
}

/* ============ Properties archive (archive-property.php) ============ */
.properties-page .section-inner { padding-top: 0; }
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.properties-grid .property-card { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; min-height: 0; }
.properties-grid .property-card::before { content: none; }
.properties-intro { max-width: 640px; margin: 0 auto 3rem; text-align: center; color: var(--stone); }
@media (max-width: 900px) {
  .properties-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  .properties-grid { grid-template-columns: 1fr; }
}

/* ============ Footer: brokerage compliance strip (inc/brokerage.php) ============ */
.footer-contact { margin-top: 1rem; font-size: 0.9rem; line-height: 1.8; }
.footer-contact a { color: rgba(243, 234, 217, 0.75); text-decoration: none; }
.footer-contact a:hover { color: var(--clay); }
.footer-compliance {
  max-width: 1400px; margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid rgba(243, 234, 217, 0.1);
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: space-between;
}
.footer-logos { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer-logos img { height: 56px; width: auto; opacity: 0.85; filter: brightness(0) invert(1); }
.footer-legal { font-size: 0.76rem; color: rgba(243, 234, 217, 0.5); line-height: 1.7; max-width: 720px; }
.footer-legal strong { color: rgba(243, 234, 217, 0.8); font-weight: 500; }
.footer-legal a { color: rgba(243, 234, 217, 0.7); text-decoration: underline; text-decoration-color: rgba(243, 234, 217, 0.3); }
.footer-legal a:hover { color: var(--clay); }
.footer-bottom { flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 768px) {
  .footer-compliance { flex-direction: column; }
  .footer-logos img { height: 44px; }
}

/* ============ Phase 1: two-door funnel (template-parts/home-two-door.php, template-*.php) ============ */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border-radius: 999px; font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: background 0.3s, color 0.3s, transform 0.2s; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--terracotta); transform: translateY(-1px); }
.btn-line { border: 1px solid rgba(42, 24, 16, 0.3); color: var(--ink); }
.btn-line:hover { border-color: var(--terracotta); color: var(--terracotta); }

.hero-doors { justify-content: center; padding-top: 8rem; }
.hero-doors h1.hero-title { font-size: clamp(2.6rem, 6.5vw, 5.6rem); max-width: 1100px; }
.hero-doors .hero-sub { max-width: 620px; }
/* Hero renders static: no entrance animation (crawlers, screenshots, slow devices always see the text). */
.hero-doors .hero-eyebrow, .hero-doors h1.hero-title, .hero-doors .hero-sub, .hero-doors .doors, .hero-doors .doors-alt { opacity: 1; animation: none; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1100px; opacity: 0; animation: fadeUp 1s ease 1.1s forwards; }
.door {
  display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none; color: var(--ink);
  background: rgba(250, 245, 234, 0.78); backdrop-filter: blur(16px);
  border: 1px solid rgba(42, 24, 16, 0.12); border-radius: 8px; padding: 2rem 2rem 1.8rem;
  box-shadow: 0 20px 60px -20px rgba(107, 45, 18, 0.25); transition: transform 0.3s, border-color 0.3s;
}
.door:hover { transform: translateY(-4px); border-color: var(--terracotta); }
.door-kicker { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rust); font-weight: 500; }
.door-title { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; letter-spacing: -0.005em; }
.door-text { font-size: 0.98rem; color: var(--charcoal); line-height: 1.55; }
.door-cta { margin-top: 0.6rem; font-weight: 500; color: var(--terracotta); }
.door-sell { background: rgba(42, 24, 16, 0.9); color: var(--cream); border-color: transparent; }
.door-sell .door-kicker { color: #f5c7a0; }
.door-sell .door-text { color: rgba(243, 234, 217, 0.8); }
.door-sell .door-cta { color: #f5c7a0; }

.proof { background: var(--ink); color: var(--sand); }
.proof-inner { max-width: 1400px; margin: 0 auto; padding: 2.5rem 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.proof-item { display: flex; flex-direction: column; gap: 0.25rem; }
.proof-item strong { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 1.7rem; line-height: 1; letter-spacing: -0.005em; }
.proof-item span { font-size: 0.85rem; color: rgba(243, 234, 217, 0.65); line-height: 1.5; }
.proof-item a { color: #f5c7a0; }

.guide-card .guide-kicker { margin-bottom: 0.6rem; }
.guide-card { padding: 2rem; border: 1px solid rgba(42, 24, 16, 0.1); border-radius: 6px; background: rgba(250, 245, 234, 0.6); transition: border-color 0.3s, transform 0.3s; }
.guide-card:hover { border-color: var(--terracotta); transform: translateY(-3px); }

.buy-section { background: var(--sand); }
.buy-section::before, .valuation::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(42,24,16,0.15), transparent); }
.form-wrap { max-width: 760px; }
.form-fallback, .form-note { font-size: 0.9rem; color: var(--charcoal); }
.form-note { margin-top: 1.25rem; opacity: 0.8; }

.will-section { background: var(--cream); }
.will-inner { display: grid; grid-template-columns: 2fr 3fr; gap: 4rem; align-items: center; }
.will-photo img { border-radius: 6px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.will-text p { margin: 1.5rem 0 2rem; font-size: 1.05rem; color: var(--charcoal); max-width: 560px; }
.will-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.not-for { background: var(--sand-deep); }
.not-for-inner { max-width: 1400px; margin: 0 auto; padding: 2rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; font-size: 0.92rem; color: var(--charcoal); }
.not-for strong { color: var(--ink); font-weight: 500; }

/* Inner page hero */
.page-hero { position: relative; z-index: 2; padding: 10rem 3rem 4rem; background: linear-gradient(180deg, #f3ead9 0%, #faf5ea 100%); }
.page-hero-short { padding-bottom: 2rem; }
.page-hero-inner { max-width: 1400px; margin: 0 auto; }
.page-hero-title { font-size: clamp(2.4rem, 5.5vw, 4.6rem) !important; max-width: 900px; }
.page-hero .hero-sub { max-width: 640px; margin-bottom: 0; }
/* Inner-page heroes render static: no entrance animation, so screenshots, crawlers and slow devices always see the text. */
.page-hero .hero-eyebrow, .page-hero .hero-title, .page-hero .hero-sub { opacity: 1; animation: none; }

/* Valuation */
.valuation { background: var(--cream); }
.valuation-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; padding-top: 4rem; align-items: start; }
.aside-card { background: rgba(243, 234, 217, 0.7); border: 1px solid rgba(42, 24, 16, 0.1); border-radius: 6px; padding: 1.75rem; margin-bottom: 1.25rem; }
.aside-card .eyebrow { margin-bottom: 0.8rem; }
.check-list, .steps, .link-list { padding-left: 1.2rem; font-size: 0.95rem; color: var(--charcoal); line-height: 1.55; }
.check-list li, .steps li, .link-list li { margin-bottom: 0.6rem; }
.link-list { list-style: none; padding-left: 0; }
.link-list a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(184, 83, 42, 0.4); }
.link-list a:hover { color: var(--terracotta); }
.aside-contact { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.aside-contact p { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.2rem; }

.faq { background: var(--sand); }
.faq-inner .section-head { margin-bottom: 3rem; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.faq-item h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 1.3rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.faq-item p { font-size: 0.95rem; color: var(--charcoal); }

/* Contact */
.contact .valuation-form .eyebrow { margin-bottom: 1.5rem; }
.contact-email { font-size: 0.95rem; color: var(--charcoal); text-decoration: underline; text-decoration-color: rgba(184, 83, 42, 0.4); }
.contact-email:hover { color: var(--terracotta); }
.contact-office { font-size: 0.95rem; color: var(--ink); line-height: 1.6; }
.contact-office a { color: var(--charcoal); text-decoration: underline; text-decoration-color: rgba(184, 83, 42, 0.4); }
.contact-small { margin-top: 0.75rem; font-size: 0.85rem; color: var(--stone); }
.form-note a { color: var(--terracotta); }

/* Thank you */
.thanks { background: var(--cream); }
.thanks-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; padding-top: 2rem; align-items: start; }
.thanks-calendly { border: 1px solid rgba(42, 24, 16, 0.1); border-radius: 6px; overflow: hidden; background: var(--cream); }

/* Fluent Forms: match the theme */
.fluentform { font-family: 'Inter Tight', sans-serif; }
.fluentform .ff-el-group { margin-bottom: 1.4rem; }
.fluentform .ff-el-input--label label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rust); font-weight: 500; }
.fluentform .ff-el-form-control {
  width: 100%; background: rgba(250, 245, 234, 0.6); border: 1px solid rgba(42, 24, 16, 0.18); border-radius: 4px;
  padding: 0.85rem 1rem; font-family: 'Inter Tight', sans-serif; font-size: 1rem; color: var(--ink); box-shadow: none; height: auto;
}
.fluentform .ff-el-form-control:focus { border-color: var(--terracotta); outline: none; box-shadow: 0 0 0 3px var(--glow); }
.fluentform textarea.ff-el-form-control { min-height: 120px; }
.fluentform .ff-el-help-message { font-size: 0.82rem; color: var(--stone); }
.fluentform .ff-btn-submit, .fluentform .ff-btn-submit.ff-btn-md {
  background: var(--ink) !important; color: var(--cream) !important; border: none !important; border-radius: 999px !important;
  padding: 0.95rem 2.2rem !important; font-family: 'Inter Tight', sans-serif !important; font-size: 1rem !important; font-weight: 500 !important; cursor: pointer; transition: background 0.3s;
}
.fluentform .ff-btn-submit:hover { background: var(--terracotta) !important; }
.fluentform .ff-message-success { background: var(--sand); border: 1px solid rgba(42, 24, 16, 0.15); color: var(--ink); border-radius: 6px; padding: 1.25rem; }
.fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--terracotta-deep); }
.fluentform .text-danger, .fluentform .error { color: var(--terracotta-deep) !important; font-size: 0.82rem; }

/* Sticky mobile action bar */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .doors, .proof-inner, .will-inner, .valuation-grid, .thanks-grid, .faq-grid, .not-for-inner { grid-template-columns: 1fr; }
  .hero-doors { padding: 7rem 1.5rem 3rem; }
  .proof-inner, .not-for-inner { padding: 2rem 1.5rem; gap: 1.25rem; }
  .page-hero { padding: 7rem 1.5rem 2.5rem; }
  .valuation-grid, .thanks-grid { gap: 2.5rem; }
  .thanks-calendly .calendly-inline-widget { height: 640px !important; }
  body.ris-funnel { padding-bottom: 4.5rem; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: rgba(42, 24, 16, 0.2); border-top: 1px solid rgba(42, 24, 16, 0.15);
  }
  .mobile-bar a { display: block; text-align: center; padding: 1rem 0.5rem; font-size: 0.9rem; font-weight: 500; text-decoration: none; background: var(--ink); color: var(--cream); }
  .mobile-bar a.mobile-bar-alt { background: var(--terracotta); }
}

/* Guide pages (template-guide.php) */
.guide-meta { margin-top: 1.25rem; font-size: 0.85rem; color: var(--stone); letter-spacing: 0.02em; }
.guide-page { background: var(--cream); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 760px) 320px; gap: 4rem; padding-top: 3rem; align-items: start; justify-content: space-between; }
.guide-content.post-content { max-width: none; margin: 0; padding: 0 0 4rem; font-size: 1.05rem; }
.guide-content h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 2rem; letter-spacing: -0.005em; margin: 3rem 0 1rem; padding-top: 1rem; border-top: 1px solid rgba(42, 24, 16, 0.1); }
.guide-content h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.guide-content h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 1.35rem; }
.guide-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 0.95rem; }
.guide-content th, .guide-content td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid rgba(42, 24, 16, 0.12); }
.guide-content th { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rust); font-weight: 500; background: rgba(243, 234, 217, 0.6); }
.guide-content .callout { border: 1px solid rgba(42, 24, 16, 0.12); border-left: 3px solid var(--terracotta); background: rgba(243, 234, 217, 0.5); border-radius: 4px; padding: 1.1rem 1.3rem; margin: 1.5rem 0 2rem; font-size: 0.98rem; }
.guide-content .callout p:last-child { margin-bottom: 0; }
.guide-content .callout-verify { border-left-color: var(--sage); background: rgba(138, 138, 107, 0.08); }
.guide-content .verify { display: inline-block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); border: 1px solid var(--sage); border-radius: 3px; padding: 0.05rem 0.4rem; margin-left: 0.35rem; vertical-align: middle; }
.guide-content .source { font-size: 0.82rem; color: var(--stone); }
.guide-content .source a { color: var(--stone); }
.guide-content .toc { background: rgba(243, 234, 217, 0.6); border-radius: 4px; padding: 1.2rem 1.5rem; margin: 0 0 2.5rem; }
.guide-content .toc ol { margin: 0.5rem 0 0 1.2rem; columns: 2; column-gap: 2rem; font-size: 0.95rem; }
.guide-content .toc li { break-inside: avoid; margin-bottom: 0.35rem; }
.guide-aside { position: sticky; top: 6rem; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 2rem; }
  .guide-aside { position: static; }
  .guide-content .toc ol { columns: 1; }
  .guide-content table { display: block; overflow-x: auto; }
}

/* Calculator (template-calculator.php) */
.calc { background: var(--cream); }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 3rem; padding-top: 3rem; align-items: start; }
.calc-group { border: 0; padding: 0; margin: 0 0 2rem; }
.calc-group legend { padding: 0; margin-bottom: 1rem; }
.calc-field { margin-bottom: 1rem; }
.calc-field label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: 0.35rem; }
.calc-input { display: flex; align-items: center; border: 1px solid rgba(42, 24, 16, 0.18); border-radius: 4px; background: rgba(250, 245, 234, 0.6); overflow: hidden; max-width: 360px; }
.calc-input:focus-within { border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--glow); }
.calc-input input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.7rem 0.9rem; font-family: 'Inter Tight', sans-serif; font-size: 1rem; color: var(--ink); outline: none; }
.calc-unit { padding: 0 0.8rem; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--stone); white-space: nowrap; }
.calc-help { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: var(--stone); max-width: 360px; }
.calc-reset { margin-top: 1rem; }
.calc-results { position: sticky; top: 6rem; }
.calc-card { background: rgba(243, 234, 217, 0.7); border: 1px solid rgba(42, 24, 16, 0.1); border-radius: 6px; padding: 1.5rem; margin-bottom: 1.25rem; }
.calc-headline { background: var(--ink); color: var(--sand); border-color: transparent; }
.calc-headline .eyebrow { color: #f5c7a0; }
.calc-big { display: flex; flex-direction: column; margin: 0.5rem 0 1.25rem; }
.calc-big span { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: -0.005em; }
.calc-big small { font-size: 0.85rem; color: rgba(243, 234, 217, 0.65); margin-top: 0.4rem; }
.calc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.5rem; }
.calc-kpis div { display: flex; flex-direction: column; }
.calc-kpis strong { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.calc-kpis span { font-size: 0.78rem; color: rgba(243, 234, 217, 0.65); }
.calc-headline .is-negative { color: #f0a080; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.calc-table td { padding: 0.45rem 0; border-bottom: 1px solid rgba(42, 24, 16, 0.08); }
.calc-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-table .calc-total td { font-weight: 600; color: var(--ink); border-bottom: 1px solid rgba(42, 24, 16, 0.25); }
.calc-table td.is-negative { color: var(--rust); }
.calc-table .calc-total td.is-negative { color: var(--terracotta-deep); }
.calc-note { font-size: 0.82rem; color: var(--stone); line-height: 1.55; }
.calc-note a { color: var(--terracotta); }
.calc-lead { background: var(--sand); }
.calc-lead::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(42,24,16,0.15), transparent); }
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; gap: 2rem; }
  .calc-results { position: static; }
  .calc-input, .calc-help { max-width: none; }
}

.doors-alt { margin-top: 1.25rem; font-size: 0.95rem; color: var(--charcoal); opacity: 0; animation: fadeUp 1s ease 1.3s forwards; }
.doors-alt a { color: var(--terracotta); }
.section-desc a { color: var(--terracotta); }

/* Post lead box (single.php) */
.post-cta { background: var(--sand); padding: 4rem 2rem; position: relative; z-index: 2; }
.post-cta-inner { max-width: 720px; margin: 0 auto; }
.post-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.5rem 0 1rem; }
.post-cta p { font-size: 1.02rem; color: var(--charcoal); margin-bottom: 1.5rem; }
.post-cta p a { color: var(--terracotta); }

/* Rental Report (guide template pages) */
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 2.5rem; }
.report-kpi { background: var(--ink); color: var(--sand); border-radius: 6px; padding: 1.2rem 1.2rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.report-kpi strong { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 1.9rem; line-height: 1; letter-spacing: -0.005em; }
.report-kpi span { font-size: 0.8rem; color: rgba(243, 234, 217, 0.7); line-height: 1.4; }
.report-kpi .verify { color: #f5c7a0; border-color: #f5c7a0; }
.report-chart { margin: 2rem 0; padding: 1.25rem 1rem 0.75rem; background: rgba(243, 234, 217, 0.5); border: 1px solid rgba(42, 24, 16, 0.1); border-radius: 6px; }
.report-chart figcaption { font-size: 0.8rem; color: var(--stone); margin-top: 0.75rem; line-height: 1.5; }
@media (max-width: 900px) { .report-kpis { grid-template-columns: 1fr 1fr; } }

.report-issues { display: grid; gap: 1.25rem; margin: 0 0 1.5rem; }
.guide-content .report-issue { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; padding: 1.75rem; background: rgba(243, 234, 217, 0.7); border: 1px solid rgba(42, 24, 16, 0.12); border-left: 4px solid var(--terracotta); border-radius: 6px; color: var(--ink); text-decoration: none; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.guide-content .report-issue:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -24px rgba(107, 45, 18, 0.5); border-color: var(--terracotta); }
.report-issue-date { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust); font-weight: 500; }
.report-issue-title { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.005em; }
.report-issue-summary { font-size: 0.98rem; color: var(--charcoal); line-height: 1.55; margin-bottom: 0.5rem; }
.report-issue .btn { pointer-events: none; }
.report-next { font-size: 0.9rem; color: var(--stone); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* WP alignment defaults */
.alignleft { float: left; margin: 0.5rem 1.5rem 0.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 0.5rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
