/* =========================================================
   YATTIR Real Estate — Shared Stylesheet (Optimized)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Core Backgrounds */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F2F2F2;
  
  /* Dark Backgrounds */
  --color-bg-dark: #0A0A0A;
  --color-bg-darker: #000000;
  
  /* Text Colors */
  --color-text: #000000;
  --color-text-soft: #2B2B2B;
  --color-muted: #737373;
  
  /* Light Colors */
  --color-light: #FFFFFF;
  --color-light-muted: #CCCCCC;
  
  /* Brand Accents */
  --color-gold: #fdbb05;
  --color-gold-light: #edbe30;
  
  /* Borders */
  --color-border: rgba(0, 0, 0, 0.15);
  --color-border-light: rgba(255, 255, 255, 0.20);

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout and UI */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 20px 40px -14px rgba(0, 0, 0, 0.40);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   UTILITY CLASSES & GRADIENTS
   ========================================================= */
.gold-gradient-bg {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

.gold-gradient-text {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ---------- Typography & Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }
.section-pad { padding: 96px 0; }
@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-bg-dark);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { color: var(--color-text-soft); }

.lede {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

/* ---------- Buttons & CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg-darker);
  border: 1px solid transparent; 
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover { 
  background: transparent; 
  border: 1px solid var(--color-gold); 
  color: var(--color-gold); 
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-bg-dark);
}
.btn-outline:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn-outline-light {
  background: transparent;
  border: 1px solid var(--color-border-light);
  color: var(--color-light);
}
.btn-outline-light:hover { border-color: var(--color-gold); color: var(--color-gold-light); }
.btn-block { width: 100%; }
.btn-dark {
  display: block;
  text-align: center;
  background: var(--color-bg-darker);
  color: var(--color-gold);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-dark:hover {
  background: var(--color-bg-dark);
  color: var(--color-light);
  transform: translateY(-2px);
}
.btn-paginate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; 
  padding: 10px 24px;
  border-radius: 999px; 
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}
.btn-paginate svg { width: 18px; height: 18px; }
.btn-paginate:hover:not(.disabled) {
  background: var(--color-bg-dark, #111);
  color: var(--color-light, #fff);
  border-color: var(--color-bg-dark, #111);
}
.btn-paginate.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  background: var(--color-bg); 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.site-header.dark.scrolled,
.site-header.dark.menu-open {
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  height: 55px;
  width: auto;
  display: block;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--color-bg); 
  transition: color 0.3s ease;
}
.site-header.scrolled .brand-name,
.site-header.menu-open .brand-name {
  color: var(--color-bg-darker);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-light);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
  text-decoration: none;
}
.site-header.scrolled .main-nav a,
.site-header.menu-open .main-nav a {
  color: var(--color-bg-darker);
}
.main-nav a:hover, 
.main-nav a.active { 
  color: var(--color-gold) !important; 
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--color-gold);
}
.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001; 
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--color-light); 
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  display: block;
  border-radius: 2px;
}
.site-header.scrolled .nav-toggle span,
.site-header.menu-open .nav-toggle span {
  background: var(--color-text);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 24px;
    gap: 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  .main-nav.open { 
    transform: translateY(0); 
    opacity: 1;
    visibility: visible;
  }
  .main-nav a {
    width: 100%;
    text-align: left;
    padding: 18px 8px;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.15rem;
    color: var(--color-text) !important;
    display: block;
  }
  .main-nav a.active::after { display: none; }
  .header-actions .btn-primary { display: none; }
  .header-actions .nav-toggle { display: flex; }
  .btn-primary, .btn-outline, .btn-outline-light {
    width: 100%;
  }
}

/* =========================================================
   HERO / HEADERS
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-light);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,29,22,0.55) 0%, rgba(12,29,22,0.55) 40%, rgba(12,19,15,0.94) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 160px 24px 120px;
  width: 100%;
}
.hero h1 { color: var(--color-light); max-width: 780px; }
.hero .lede { color: var(--color-light-muted); margin: 22px 0 34px; }

@media (max-width: 768px) {
  .hero-content { padding: 130px 20px 60px; }
}

/* Page header (non-home hero) */
.page-header {
  background: var(--color-bg-dark);
  color: var(--color-light);
  padding: 160px 0 80px;
}
.page-header .eyebrow { color: var(--color-gold-light); }
.page-header h1 { color: var(--color-light); }
.page-header .lede { color: var(--color-light-muted); margin-top: 18px; }

/* =========================================================
   STEWARDSHIP / ABOUT
   ========================================================= */
.stewardship { background: var(--color-bg); }
.stewardship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.stewardship-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.pillars {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gold); font-weight: 600; margin-bottom: 6px; }
.pillar p { font-size: 0.93rem; }

@media (max-width: 900px) {
  .stewardship-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================
   VALUE CARDS
   ========================================================= */
.why-section { 
  position: relative;
  overflow: hidden;
}
.why-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay to ensure text readability and card contrast */
.why-section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85); /* Adjust the 0.85 to make the image lighter or darker */
  z-index: 1;
}

/* Ensures the text and cards sit on top of the image and overlay */
.why-section-content {
  position: relative;
  z-index: 2;
}

/* Changes the heading color to white to contrast with the dark background image */
.why-section .section-head h2 {
  color: var(--color-light);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  transition: var(--transition);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.value-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  color: var(--color-gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-display);
}
.value-card h3 { margin-bottom: 10px; }
.value-card p { font-size: 0.95rem; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MAGAZINE EDITORIAL LAYOUT
   ========================================================= */
.magazine-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}
.magazine-header h2 {
  font-size: 2.8rem; 
  line-height: 1.2;
}
.magazine-feature-image {
  width: 100%;
  height: 500px; 
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 4rem;
}
.magazine-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.magazine-content {
  max-width: 1000px;
  margin: 0 auto;
}
.magazine-lede {
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-bg-dark);
  margin-bottom: 3rem;
  line-height: 1.6;
}
.magazine-text-columns {
  column-count: 2;
  column-gap: 4rem;
  text-align: justify; 
}
.magazine-text-columns p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.magazine-list {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
  break-inside: avoid; 
}
.magazine-list li { margin-bottom: 0.5rem; }
.magazine-pullquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-gold);
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
  margin: 2.5rem 0;
  line-height: 1.4;
  break-inside: avoid; 
}

@media (max-width: 900px) {
  .magazine-text-columns {
    column-count: 1; 
    text-align: left;
  }
  .magazine-feature-image { height: 350px; }
  .magazine-header h2 { font-size: 2.2rem; }
}

/* =========================================
   TRACK RECORD SECTION
   ========================================= */
.track-record-section {
  background-color: var(--color-bg-darker);
}

.track-record-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* Tablet and Desktop Layout */
@media (min-width: 768px) {
  .track-record-grid {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

/* High-Contrast Stat Box */
.track-record-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-dark);
  border: 1px solid var(--color-border-light);
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.track-record-stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.track-record-stat .stat-number {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.track-record-stat .stat-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-light-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Content Typography */
.track-record-content .eyebrow {
  color: var(--color-gold);
}

.track-record-content h2 {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-light);
}

.track-record-content p {
  color: var(--color-light-muted);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.track-record-content p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   WHY WE EXIST / PURPOSE SECTION
   ========================================================= */
.purpose-section { background: var(--color-bg-alt); }
.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr; 
  gap: 4rem;
  align-items: start;
}
.purpose-title {
  position: sticky;
  top: 120px; 
}
.purpose-title h2 {
  font-size: 2.8rem;
  margin-top: 0.5rem;
  line-height: 1.2;
}
.purpose-intro {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-bg-dark);
  margin-bottom: 2rem;
  line-height: 1.4;
}
.purpose-content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.purpose-list {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 2.5rem;
}
.purpose-list li {
  margin-bottom: 0.5rem;
  font-weight: 500; 
}
.purpose-statements {
  background: var(--color-bg); 
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--color-gold);
  border-radius: 0 8px 8px 0;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-card);
}
.purpose-statements p { margin-bottom: 1rem; font-size: 1.1rem; }
.purpose-statements p:last-child { margin-bottom: 0; }
.purpose-conclusion {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2.5rem;
  color: var(--color-bg-dark);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .purpose-grid { grid-template-columns: 1fr; gap: 2rem; }
  .purpose-title { position: static; }
  .purpose-title h2 { font-size: 2.2rem; }
  .purpose-statements { padding: 1.5rem; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.service-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: 14px;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { font-size: 0.92rem; flex-grow: 1; }
.service-card .link-more {
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-gold);
  align-self: flex-start;
  padding-bottom: 2px;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* Detailed service blocks on services.html */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail-head .service-index { font-size: 1rem; }
.service-detail-head h3 { font-size: 1.7rem; margin: 10px 0 8px; }
.service-detail-head .tagline { color: var(--color-gold); font-weight: 600; font-size: 0.95rem; }
.service-feature-list {
  margin: 22px 0 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.service-feature-list li {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  padding-left: 22px;
  position: relative;
}
.service-feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}
@media (max-width: 800px) {
  .service-detail { grid-template-columns: 1fr; gap: 20px; }
  .service-feature-list { grid-template-columns: 1fr; }
}

/* =========================================================
   METHODOLOGY
   ========================================================= */
.methodology { background: var(--color-bg-dark); color: var(--color-light); }
.methodology .section-head h2 { color: var(--color-light); }
.methodology .eyebrow { color: var(--color-gold-light); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.method-step {
  border-left: 2px solid var(--color-border-light);
  padding: 4px 0 4px 22px;
}
.method-step .step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-gold-light);
  display: block;
  margin-bottom: 10px;
}
.method-step h4 { color: var(--color-light); font-size: 1.05rem; margin-bottom: 6px; }
.method-step p { color: var(--color-light-muted); font-size: 0.9rem; }
@media (max-width: 900px) { .method-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
@media (max-width: 560px) { .method-grid { grid-template-columns: 1fr; } }

/* =========================================================
   AUDIENCE TAGS
   ========================================================= */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.audience-card {
  background: var(--color-bg);
  padding: 24px;
  border: 1px solid var(--color-gold-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.audience-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--color-gold); 
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--color-gold);
}
.audience-card:hover::before { transform: scaleY(1); }
.card-icon {
  font-size: 1.5rem;
  background: var(--color-bg-dark);
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.audience-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-bg-dark);
  margin: 0;
}

/* =========================================================
   PORTFOLIO / PROPERTIES
   ========================================================= */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-soft);
  transition: var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: var(--color-light);
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.property-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.property-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .property-media img { transform: scale(1.06); }
.property-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--color-gold);
  color: var(--color-bg-darker);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.property-body { padding: 22px 24px 26px; }
.property-location { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 6px; }
.property-body h3 { margin-bottom: 8px; }
.property-price { color: var(--color-gold); font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 12px; }
.property-meta {
  display: flex; gap: 16px;
  font-size: 0.82rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}
@media (max-width: 900px) { .property-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { 
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .property-grid { grid-template-columns: 1fr; } 
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination-wrapper {
  margin-top: 56px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  clear: both;
}
.step-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.current-page {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-soft, #555);
  letter-spacing: 0.02em;
}

/* =========================================================
   PROPERTY DETAIL PAGE
   ========================================================= */
.property-detail-header { padding-top: 24px; padding-bottom: 24px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 32px;
  transition: var(--transition);
}
.back-link:hover { color: var(--color-gold); }
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.property-location-large {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-top: 12px;
}
.header-price .price-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}
.property-detail-content { padding-bottom: 80px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 992px) {
  .detail-grid { grid-template-columns: 1.8fr 1.2fr; }
}

/* Gallery */
.property-gallery { margin-bottom: 48px; }
.gallery-main-view {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}
.gallery-main-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition);
}
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.thumbnail-btn {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}
.thumbnail-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-btn:hover { opacity: 0.9; }
.thumbnail-btn.active { opacity: 1; border-color: var(--color-gold); }

/* Rich Text */
.property-description h2 { margin-bottom: 24px; font-size: 2rem; }
.ckeditor-content { color: var(--color-text-soft); line-height: 1.8; font-size: 1.05rem; }
.ckeditor-content p { margin-bottom: 1.5em; }
.ckeditor-content ul, .ckeditor-content ol { margin-bottom: 1.5em; padding-left: 20px; }

/* Sidebar */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.stat-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.specs-card h3 { margin-bottom: 20px; font-size: 1.4rem; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.specs-table tr:last-child td { border-bottom: none; padding-bottom: 0; }
.specs-table td:first-child { font-weight: 600; color: var(--color-text); width: 45%; }
.specs-table td:last-child { color: var(--color-text-soft); text-align: right; }
.cta-card { border: none; color: var(--color-bg-darker); }
.cta-card h3 { color: var(--color-bg-darker); margin-bottom: 12px; }
.cta-card p { margin-bottom: 24px; font-size: 0.95rem; font-weight: 500; line-height: 1.6; }

@media (max-width: 900px) {
  .property-detail-header { padding-top: 20px; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--color-bg-dark);
  color: var(--color-light);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-light);
  margin-bottom: 24px;
}
.testimonial-author { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.82rem; color: var(--color-light-muted); }
@media (max-width: 900px) { .testimonial-track { grid-template-columns: 1fr; } }

/* =========================================================
   FAQ SECTION
   ========================================================= */
.faq-section { 
  background: var(--color-bg-alt); 
}

/* Mobile First: Single Column */
.faq-list { 
  max-width: 780px; 
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.faq-item { 
  border-bottom: 1px solid var(--color-border); 
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--color-bg-dark);
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--color-gold);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item.open .faq-icon { 
  transform: rotate(45deg); 
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p { 
  padding: 0 4px 24px; 
  font-size: 0.95rem; 
  max-width: 680px; 
}

.faq-item.open .faq-answer { 
  max-height: 240px; 
}

/* =========================================
   Desktop Adjustments (Two Columns)
   ========================================= */
@media (min-width: 900px) {
  .faq-list {
    max-width: 1100px;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    row-gap: 16px;
    align-items: start;
  }
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  position: relative;
  color: var(--color-light);
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
}
.cta-band-media { position: absolute; inset: 0; z-index: 0; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,29,22,0.82), rgba(12,29,22,0.92));
}
.cta-band-content { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta-band .eyebrow { color: var(--color-gold-light); }
.cta-band h2 { color: var(--color-light); }
.cta-band p { color: var(--color-light-muted); margin: 18px 0 30px; }
.cta-band .cta-row { 
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-bg-darker);
  color: var(--color-light-muted);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr max-content max-content;
  gap: 64px; 
  padding-bottom: 56px;
  border-bottom: 1px solid var(--color-border-light);
}
.footer-brand { max-width: 400px; }
.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 22px;
}
.footer-brand p { color: var(--color-light-muted); font-size: 0.9rem; }
.footer-tagline {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-gold-light);
  font-size: 0.98rem;
  line-height: 1.5;
}
.footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-light); 
  transition: var(--transition);
}
.footer-socials a:hover { 
  background: var(--color-gold); 
  border-color: var(--color-gold); 
  color: var(--color-bg-darker); 
}
.footer-col h4 {
  color: var(--color-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-col a, .footer-bottom a { text-decoration: none; color: inherit; transition: var(--transition); }
.footer-col a:hover, .footer-bottom a:hover { color: var(--color-gold-light); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--color-light-muted);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-brand-logo {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; width: 100%;
  }
  .footer-brand-logo .brand-logo { height: 80px; }
  .footer-brand-logo .brand-name { margin-top: 8px; font-size: 1.5rem; }
  .footer-brand p, .footer-tagline { text-align: left; }
  .footer-socials { justify-content: flex-start; }
}

/* =========================================
   BLOG SECTION
   ========================================= */
.blog-section {
    padding: 2rem 5% 6rem 5%;
    background-color: var(--color-bg);
}

.blog-container {
    max-width: var(--container);
    margin: 0 auto;
}

/* =========================================
   HIGHLIGHT CARD (Top Large Post)
   ========================================= */
.blog-highlight-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
}

.blog-highlight-img-box {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

.blog-highlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-highlight-content {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-highlight-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--color-text);
    line-height: 1.2;
    margin: 1rem 0 1.5rem 0;
}

.blog-highlight-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* =========================================
   BLOG GRID (Bottom 3 Posts)
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
    line-height: 1.3;
    margin: 1rem 0;
}

.blog-card-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* =========================================
   SHARED TYPOGRAPHY & LINKS
   ========================================= */
.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-meta-dot {
    color: var(--color-light-muted);
}

/* Text Colors for Meta Tags */
/* Note: Since --brand-green is absent from your new root, --color-text-soft is used instead as a placeholder */
.brand-green { color: var(--color-text-soft); } 
.brand-gold { color: var(--color-gold); }
.brand-muted { color: var(--color-muted); }

/* Read Links */
.blog-read-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity var(--transition);
}

.blog-read-link:hover {
    opacity: 0.7;
}

.blog-read-link svg {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    stroke: currentColor;
}

/* =========================================
   JOURNAL DETAIL VIEW - REDESIGN
   ========================================= */

.journal-container {
  max-width: var(--container); 
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.journal-breadcrumbs-wrapper {
  /* Added significant top padding to clear a fixed top navbar (Adjust the 120px to match your navbar height) */
  padding: 20px 0 1rem 0; 
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-soft);
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--color-text);
}

.breadcrumbs .separator {
  color: var(--color-muted);
}

.breadcrumbs .current {
  color: var(--color-text);
  font-weight: 500;
}

/* --- LAYOUT GRID (Desktop: Left Content, Right Sidebar) --- */
.journal-detail-wrapper {
  margin-bottom: 5rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr; /* Mobile default */
  gap: 3rem;
  align-items: start;
}

/* --- MAIN ARTICLE CONTENT --- */
.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem); /* Responsive typography */
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
  font-weight: 700;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  object-fit: cover;
  max-height: 600px;
}

.article-excerpt {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin-bottom: 2.5rem;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-gold);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Social Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.share-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text-soft);
  transition: all var(--transition);
}

.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-btn:hover { background: var(--color-gold); color: var(--color-light); }

/* Body Content */
.article-body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.article-body h2, .article-body h3 {
  font-family: var(--font-display);
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.article-body p { margin-bottom: 1.5rem; }

.article-body blockquote {
  font-size: 1.15rem;
  font-style: italic;
  border-left: 4px solid var(--color-gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Field Gallery */
.article-gallery {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.article-gallery h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.gall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gall-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: transparent !important; /* Forces no background on the whole item */
  border: none;
  padding: 0;
}

.gall-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem; /* Slight gap so the text sits naturally below the image */
}

/* Fallback for standard figcaption tag */
.gall-item figcaption {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin-top: 0;
  font-style: italic;
}

/* Specific styling for your gallery-description class */
.gallery-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-soft); 
  background: transparent !important; /* Removes the box behind the text */
  padding: 0 !important; /* Removes inner spacing to align with the image edge */
  margin: 0;
  border: none;
}

.gallery-description p { 
  margin: 0; 
}

/* --- RIGHT SIDEBAR (Sticky Layout) --- */
.article-sidebar {
  /* Sticky properties */
  position: sticky;
  top: 100px; /* Keeps it 100px below top of viewport when scrolling */
  max-height: calc(100vh - 120px);
  overflow-y: auto; /* Allows the sidebar itself to scroll if widgets are very tall */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-right: 0;
}

/* Sidebar scrollbar styling */
.article-sidebar::-webkit-scrollbar { width: 4px; }
.article-sidebar::-webkit-scrollbar-track { background: transparent; }
.article-sidebar::-webkit-scrollbar-thumb { background: var(--color-light-muted); border-radius: var(--radius-sm); }

.sidebar-widget {
  background: var(--color-bg-alt);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.sidebar-widget h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 0 0 1.25rem 0;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.75rem;
  font-weight: 600;
}

/* Recent Posts List */
.recent-posts-list {
  list-style: none;
  padding: 0; margin: 0;
}

.recent-posts-list li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.recent-posts-list li:last-child {
  margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}

.recent-posts-list a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.recent-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
  transition: color var(--transition);
}

.recent-posts-list a:hover .recent-title { color: var(--color-gold); }

.recent-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Related Posts Mini Cards */
.related-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-mini-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform var(--transition);
}

.related-mini-card:hover { transform: translateX(4px); }

.related-mini-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.related-mini-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.related-mini-category {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
}

.related-mini-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
  transition: color var(--transition);
}

.related-mini-card:hover .related-mini-title {
  color: var(--color-gold);
}

.view-all-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}

.view-all-link:hover { color: var(--color-text); }

@media (min-width: 992px) {
  .article-layout {
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

@media (max-width: 992px) {
  .blog-highlight-card {
      grid-template-columns: 1fr;
  }
  
  .blog-highlight-img-box {
      min-height: 300px;
  }
  
  .blog-highlight-content {
      padding: 3rem 2rem;
  }

  .blog-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
      grid-template-columns: 1fr;
  }
  
  .blog-highlight-title {
      font-size: 1.75rem;
  }
  .article-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .article-meta .meta-divider {
    display: none;
  }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-info-card {
  background: var(--color-bg-dark);
  color: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  height: fit-content;
}
.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.contact-channel:first-of-type { padding-top: 0; }
.contact-channel .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gold-light); }
.contact-channel .value { font-size: 1.05rem; font-weight: 500; }
.contact-quote {
  margin-top: 26px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-light-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.contact-form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  align-self: start;
  height: fit-content;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-bg-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  background: var(--color-bg);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--color-muted); margin-top: 14px; }
.form-success {
  display: none;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  font-weight: 600;
  color: var(--color-bg-dark);
}
.form-success.visible { display: block; }
.contact-map { margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); }
.contact-map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Real-time Validation Feedback Styles */
.form-group input.is-valid,
.form-group select.is-valid,
.form-group textarea.is-valid {
  border-color: #28a745 !important;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  display: none;
  color: #dc3545; /* Red color matching the border */
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 6px;
}

.form-group input.is-invalid ~ .invalid-feedback,
.form-group select.is-invalid ~ .invalid-feedback,
.form-group textarea.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Submit Button Disabled State */
#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--color-muted);
  border-color: transparent;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 300px;
  max-width: 450px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  color: var(--color-light);
  font-family: var(--font-body);
  font-weight: 500;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success { background: #1B4D3E; border-left: 4px solid var(--color-gold); }
.toast-error { background: #dc3545; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row, .radio-group, .checkbox-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px; }
}

/* =========================================================
   MISC / UTILITY / FOUNDER LAYOUT
   ========================================================= */
.two-col-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .two-col-split { grid-template-columns: 1fr; } }

.founder-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-bg-dark);
  line-height: 1.5;
  border-left: 3px solid var(--color-gold);
  padding-left: 28px;
  margin: 26px 0;
}
.founder-signature { margin-top: 18px; font-weight: 600; font-size: 0.9rem; }
.founder-signature span { display: block; font-weight: 400; color: var(--color-muted); font-size: 0.85rem; }

/* Founder Text Formatting */
.founder-text p {
  margin-bottom: 1rem; 
  line-height: 1.6;
}
.founder-text ul {
  list-style-type: disc; 
  margin-left: 1.5rem; 
  margin-bottom: 1rem; 
}
.founder-text li { margin-bottom: 0.25rem; }
.founder-text p:last-of-type { margin-bottom: 0; }

/* Mobile First Founder Layout */
.founder-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem; 
}
.founder-image { order: -1; }
.founder-image-wrapper {
  position: relative;
  order: -1;
  margin-bottom: 3rem;
  z-index: 1;
}
.founder-image-frame {
  position: relative;
  z-index: 1;
}

/* The gold accent frame behind the image */
.founder-image-frame::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -24px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  z-index: -1;
  transition: transform 0.4s ease;
}

/* Interactive hover effect on the structural frame */
.founder-image-wrapper:hover .founder-image-frame::after {
  transform: translate(-10px, -10px);
}

/* Forcing a premium aspect ratio on the image */
.founder-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: block;
}

@media (min-width: 768px) {
  .founder-layout {
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .founder-image-wrapper {
    position: sticky;
    top: 120px; 
    order: 2;
    margin-bottom: 0;
  }
  .founder-text { order: 1; }
}

.pill-note {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-bg-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}