/*
Theme Name: Rent in Sedona
Theme URI: https://rentinsedona.com
Author: Rent in Sedona
Description: A custom earthy, minimalist theme for Sedona vacation rentals and hotels. Terracotta and sand palette, Fraunces + Inter Tight typography.
Version: 1.3
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: 'Fraunces', 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: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  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: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  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: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  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: 'Fraunces', 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: 'Fraunces', 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: 'Fraunces', 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: 'Fraunces', 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: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  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: 'Fraunces', 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; }
}

/* 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;
}
