/*
Theme Name: AeA Real Estate - Lone Star Legacy
Theme URI: https://aearealestate.com
Author: AeA Real Estate & Antigravity
Author URI: https://aearealestate.com
Description: Premium custom theme for Lone Star Legacy Properties, powered by Advisory Engineering & Analytics, LLC. Refocused on premium ranches, family farms, and investment agriculture.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aea-real-estate
Tags: luxury, real-estate, custom-logo, post-thumbnails, translation-ready, theme-options

This theme, like WordPress, is licensed under the GPL.
*/

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

:root {
  /* Color Palette - Refocused on Premium Ranches & Agriculture */
  --primary: #1C2E24;
  --primary-rgb: 28, 46, 36;
  --primary-light: #2B4435;
  --accent: #C88C52;
  --accent-rgb: 200, 140, 82;
  --accent-hover: #B2773F;
  --accent-light: #FAF2E8;
  --dark: #1B221D;
  --light: #FAF7F2;
  --white: #FFFFFF;
  --gray-light: #EBECE8;
  --gray-medium: #87918A;
  --gray-dark: #4A534E;
  --border: #DFE2DE;
  --success: #2E7D32;

  /* Typography */
  --font-headings: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Effects */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.25;
}

p {
  color: var(--gray-dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--accent);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(11, 30, 54, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  fill: var(--accent);
}

.logo-text {
  color: var(--white);
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.logo-tagline {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: var(--accent);
  letter-spacing: 1px;
  font-weight: 500;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.main-navigation a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation li.current-menu-item a {
  color: var(--accent);
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item a::after {
  width: 100%;
}

.header-cta {
  background-color: var(--accent);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(200, 140, 82, 0.3);
}

.header-cta:hover {
  background-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  background-color: var(--primary);
  color: var(--white);
  overflow: hidden;
  padding-top: 80px; /* Offset fixed header */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: brightness(0.7) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 30, 54, 0.4) 0%, rgba(11, 30, 54, 0.85) 100%);
  z-index: 2;
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px;
}

.hero-tagline {
  color: var(--accent);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 25px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 600px;
}

/* Search / Filter Widget */
.search-widget {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 20px;
  align-items: flex-end;
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-dark);
  letter-spacing: 1px;
}

.search-input,
.search-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: var(--transition);
}

.search-input:focus,
.search-select:focus {
  border-color: var(--accent);
  background-color: var(--white);
}

.btn-search {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-search:hover {
  background-color: var(--accent);
  color: var(--primary);
}

/* Property Cards */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.property-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.property-image-wrap {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background-color: var(--primary-light);
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image {
  transform: scale(1.08);
}

.property-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: 5;
}

.property-tag.featured {
  background-color: var(--accent);
  color: var(--primary);
}

.property-price {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(11, 30, 54, 0.9);
  backdrop-filter: blur(5px);
  color: var(--white);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 140, 82, 0.3);
  z-index: 5;
}

.property-details {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.property-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin-bottom: 20px;
}

.property-location-icon {
  width: 14px;
  height: 14px;
  fill: var(--gray-medium);
}

.property-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 15px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 0.85rem;
}

.meta-item:not(:last-child) {
  border-right: 1px solid var(--border);
}

.meta-val {
  font-weight: 600;
  color: var(--primary);
}

.meta-lbl {
  font-size: 0.75rem;
  color: var(--gray-medium);
}

/* Feature/Services Section */
.features-section {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
}

.features-section .section-title {
  color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-box {
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-box:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: rgba(200, 140, 82, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent);
}

.feature-box h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.feature-box p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Call to Action */
.cta-banner {
  background-color: var(--accent-light);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cta-text h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cta-text p {
  font-size: 1.1rem;
  max-width: 650px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(200, 140, 82, 0.3);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* Footer styling */
.site-footer {
  background-color: #050E1A;
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-widget h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.footer-legal-name {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 700px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Listings Page & Detail Page */
.page-hero {
  background-color: var(--primary);
  color: var(--white);
  padding: 120px 0 60px;
  text-align: center;
  background-image: linear-gradient(rgba(11,30,54,0.9), rgba(11,30,54,0.95));
}

.page-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 15px;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

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

.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 50px;
}

.filter-sidebar {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.filter-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--light);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.property-gallery {
  margin-bottom: 30px;
}

.gallery-main {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 15px;
  background-color: var(--primary);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.thumb-item {
  aspect-ratio: 3/2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.thumb-item.active,
.thumb-item:hover {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-bottom: 30px;
}

.detail-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.detail-title-price {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.detail-features {
  display: flex;
  gap: 40px;
  background-color: var(--light);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 30px;
}

.detail-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-feature-icon {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.detail-feature-info {
  display: flex;
  flex-direction: column;
}

.detail-feature-val {
  font-weight: 600;
  font-size: 1.1rem;
}

.detail-feature-lbl {
  font-size: 0.8rem;
  color: var(--gray-medium);
}

.detail-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.detail-description {
  margin-bottom: 45px;
}

.detail-description p {
  margin-bottom: 15px;
}

.agent-card-sidebar {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.agent-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--primary-light);
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-name {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.agent-title {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.contact-form-widget {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
}

.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 600;
}

.btn-submit:hover {
  background-color: var(--accent);
  color: var(--primary);
}

/* Responsiveness */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  .search-form {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn-search {
    grid-column: span 2;
  }
  .properties-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .listings-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar,
  .agent-card-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .search-form {
    grid-template-columns: 1fr;
  }
  .btn-search {
    grid-column: span 1;
  }
  .properties-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .cta-flex {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .detail-features {
    flex-wrap: wrap;
    gap: 20px;
  }
}
