/* ============================================================
   RAVIXO — pages.css (inner page styles)
   ============================================================ */

/* ── ARTICLE FULL PAGE ───────────────────────────────────────── */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 28px;
}

.article-header { margin-bottom: 48px; }
.article-header .eyebrow { display: block; }
.article-header h1 {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 18px;
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--mid);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

.article-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 48px;
}

.article-content h2 {
  font-family: var(--ff-head);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--dark);
  margin: 42px 0 14px;
  line-height: 1.25;
}
.article-content h3 {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin: 30px 0 12px;
}
.article-content p {
  font-size: 1.02rem;
  color: #3A3632;
  line-height: 1.85;
  margin-bottom: 20px;
}
.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
.article-content li {
  font-size: 1.02rem;
  color: #3A3632;
  line-height: 1.8;
  margin-bottom: 6px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 18px 28px;
  margin: 36px 0;
  background: var(--white);
}
.article-content blockquote p {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--dark);
  margin: 0;
}

.article-img-inline {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 36px 0;
}

/* ── LISTING PAGE ─────────────────────────────────────────────── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.listing-card {
  background: var(--white);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(28,26,23,0.10);
}
.listing-card__img {
  overflow: hidden;
  aspect-ratio: 16/10;
}
.listing-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.listing-card:hover .listing-card__img img { transform: scale(1.05); }
.listing-card__body { padding: 26px; }
.listing-card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 9px;
}
.listing-card__title {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--dark);
}
.listing-card__excerpt {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 18px;
}
.listing-card__read {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.listing-card__read::after { content: '→'; transition: transform var(--transition); }
.listing-card:hover .listing-card__read::after { transform: translateX(5px); }

/* ── SIDEBAR LAYOUT ───────────────────────────────────────────── */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.sidebar-widget {
  background: var(--white);
  padding: 28px;
  margin-bottom: 28px;
}
.sidebar-widget__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-posts { display: flex; flex-direction: column; gap: 18px; }
.sidebar-post {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sidebar-post__img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-post__title {
  font-family: var(--ff-head);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  transition: color var(--transition);
}
.sidebar-post:hover .sidebar-post__title { color: var(--gold); }
.sidebar-post__date { font-size: 0.77rem; color: var(--mid); margin-top: 4px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  color: var(--mid);
  transition: all var(--transition);
}
.tag-cloud a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ── ABOUT PAGE ───────────────────────────────────────────────── */
.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}
.about-mission__image {
  overflow: hidden;
  height: 560px;
}
.about-mission__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.about-mission:hover .about-mission__image img { transform: scale(1.04); }
.about-mission__content {
  padding: 64px;
  background: var(--white);
}
.about-mission__content .section-title { font-size: 2rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.value-card {
  background: var(--white);
  padding: 44px 36px;
  text-align: center;
}
.value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 1.3rem;
  color: var(--gold);
}
.value-title {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.value-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.75; }

/* ── CONTACT PAGE ──────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}
.contact-info {
  background: var(--dark);
  padding: 72px 56px;
  color: var(--white);
}
.contact-info .section-title { color: var(--white); font-size: 2rem; }
.contact-info .section-lead  { color: rgba(255,255,255,0.65); }
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 26px; }
.contact-detail-item {}
.contact-detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-detail-value {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.contact-detail-value a:hover { color: var(--gold); }

.contact-form-wrap {
  background: var(--white);
  padding: 72px 56px;
}
.contact-form-wrap h2 {
  font-family: var(--ff-head);
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.contact-form-wrap .sub {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 36px;
}

.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--gold); }
.form-textarea { min-height: 130px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check input { margin-top: 3px; accent-color: var(--gold); }
.form-check label { font-size: 0.82rem; color: var(--mid); line-height: 1.5; }
.form-check a { color: var(--gold); text-decoration: underline; }

.form-success {
  display: none;
  background: #f0f8f1;
  border: 1px solid #4caf50;
  padding: 20px;
  text-align: center;
  color: #2e7d32;
  font-size: 0.95rem;
  margin-top: 16px;
}

/* ── POLICY PAGES ──────────────────────────────────────────────── */
.policy-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}
.policy-wrap h1 {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.15;
}
.policy-meta {
  font-size: 0.85rem;
  color: var(--mid);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.policy-toc {
  background: var(--white);
  padding: 26px 28px;
  margin-bottom: 44px;
  border-left: 3px solid var(--gold);
}
.policy-toc h2 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.policy-toc ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.policy-toc li { font-size: 0.88rem; }
.policy-toc a { color: var(--dark); text-decoration: underline; }
.policy-toc a:hover { color: var(--gold); }

.policy-wrap h2 {
  font-family: var(--ff-head);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--dark);
  margin: 44px 0 14px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.policy-wrap h2:first-of-type { padding-top: 0; border-top: none; margin-top: 0; }
.policy-wrap h3 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 26px 0 10px;
}
.policy-wrap p {
  font-size: 0.97rem;
  color: #3A3632;
  line-height: 1.85;
  margin-bottom: 16px;
}
.policy-wrap ul,
.policy-wrap ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.policy-wrap ul { list-style: disc; }
.policy-wrap ol { list-style: decimal; }
.policy-wrap li {
  font-size: 0.97rem;
  color: #3A3632;
  line-height: 1.75;
  margin-bottom: 7px;
}
.policy-wrap a { color: var(--gold); text-decoration: underline; }
.policy-wrap a:hover { color: var(--dark); }
.policy-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.88rem;
}
.policy-wrap th {
  background: var(--dark);
  color: var(--white);
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.policy-wrap td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: #3A3632;
  line-height: 1.7;
}
.policy-wrap tr:nth-child(even) td { background: var(--white); }

.policy-highlight {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin: 24px 0;
  border-left: 3px solid var(--gold);
}
.policy-highlight p { margin: 0; font-size: 0.93rem; }

/* ── REAL ESTATE PAGE ──────────────────────────────────────────── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.property-card {
  background: var(--white);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(28,26,23,0.10);
}
.property-card__img {
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.property-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.property-card:hover .property-card__img img { transform: scale(1.05); }
.property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 12px;
}
.property-card__body { padding: 26px; }
.property-price {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.property-name {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.property-loc {
  font-size: 0.85rem;
  color: var(--mid);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.property-specs {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--mid);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.property-spec { display: flex; align-items: center; gap: 5px; }

/* ── TABS ──────────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  gap: 0;
}
.tab-btn {
  padding: 14px 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn.active {
  color: var(--dark);
  border-bottom-color: var(--gold);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── FACTS SECTION ─────────────────────────────────────────────── */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.fact-card {
  background: var(--white);
  padding: 40px 30px;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition);
}
.fact-card:hover { border-bottom-color: var(--gold); }
.fact-number {
  font-family: var(--ff-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}
.fact-number em { font-style: normal; color: var(--gold); }
.fact-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.6; }

/* ── RESPONSIVE INNER PAGES ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-sidebar { grid-template-columns: 1fr; }
  .listing-grid    { grid-template-columns: repeat(2, 1fr); }
  .property-grid   { grid-template-columns: 1fr; }
  .values-grid     { grid-template-columns: repeat(2, 1fr); }
  .facts-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .about-mission   { grid-template-columns: 1fr; }
  .about-mission__image { height: 320px; }
  .about-mission__content { padding: 40px 28px; }
  .contact-layout  { grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap { padding: 48px 28px; }
  .split-feature__content { padding: 40px 28px; }
  .form-row        { grid-template-columns: 1fr; }
  .listing-grid    { grid-template-columns: 1fr; }
  .values-grid     { grid-template-columns: 1fr; }
  .facts-grid      { grid-template-columns: repeat(2, 1fr); }
  .tab-nav         { overflow-x: auto; }
}

@media (max-width: 480px) {
  .facts-grid { grid-template-columns: 1fr; }
  .article-body { padding: 48px 18px; }
  .policy-wrap  { padding: 48px 18px 72px; }
}
