/*
Theme Name: Estate Link Theme
Theme URI: https://example.com/estate-link-theme
Author: Estate Link
Description: A modern, fully responsive WordPress theme for real estate with Elementor compatibility.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: estate-link-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1f2937;
  --primary-light: #374151;
  --primary-lighter: #f3f4f6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text-dark: #111827;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER */
.estate-header {
  --estate-ink: #0f172a;
  --estate-gold: #d0a63f;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 28px;
  color: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
  transition: 0.25s ease;
}

body.admin-bar .estate-header {
  top: 32px;
}

body.estate-scrolled .estate-header {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  padding: 13px 28px;
}

.estate-brand {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.estate-brand:hover {
  color: #ffffff;
}

.estate-brand span span {
  color: var(--estate-gold);
}

.estate-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.estate-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.estate-nav a:hover {
  color: var(--estate-gold);
  text-decoration: none;
}

.estate-menu-button {
  display: none;
}

.estate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 0;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.2s ease;
}

.estate-btn:hover {
  transform: translateY(-1px);
}

.estate-btn-gold {
  background: var(--estate-gold);
  color: var(--estate-ink);
}

.estate-btn-gold:hover {
  color: var(--estate-ink);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #374151 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  color: #d1d5db;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* SECTIONS */
.site-main {
  background: var(--white);
}

.section {
  padding: 4rem 0;
}

.section:nth-child(even) {
  background: var(--primary-lighter);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 2rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* CTA BOX */
.cta-section {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

/* FOOTER */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* PAGES */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #374151 100%);
  color: var(--white);
  padding: 3rem 0;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 0;
}

.entry-content p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.elementor-page .site-main {
  padding: 0;
}

.estate-link-page .entry-content {
  margin: 0;
}

.estate-link-page .entry-content > * {
  margin-block-start: 0;
}

.elementor-section-wrap {
  width: 100%;
}

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px;
}

.estate-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.estate-link-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.estate-link-card:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  transform: translateY(-3px);
}

.estate-link-card-media {
  aspect-ratio: 16 / 11;
  background: var(--primary-lighter);
  overflow: hidden;
}

.estate-link-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.estate-link-card-body {
  padding: 1.5rem;
}

.estate-link-card-body h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.estate-link-card-body p {
  color: var(--text-light);
  margin-bottom: 0.85rem;
}

.estate-link-card-meta,
.estate-link-card-specs {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.estate-link-card-meta {
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.estate-link-card-meta span,
.estate-link-badge {
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.estate-link-card-meta strong,
.estate-link-accent-text,
.estate-link-rating {
  color: var(--accent);
}

.estate-link-card-specs {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 1rem 0;
  padding: 0.75rem 0;
}

.estate-link-location {
  font-size: 0.9rem;
}

.estate-link-card-button {
  align-items: center;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  margin-top: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  width: 100%;
}

.estate-link-card-button:hover {
  background: var(--accent);
  color: var(--primary);
}

.estate-link-testimonial-card .estate-link-card-body {
  min-height: 250px;
}

.estate-link-rating {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.estate-link-empty {
  color: var(--text-light);
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .estate-link-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  body.admin-bar .estate-header {
    top: 46px;
  }

  .estate-menu-button {
    display: block;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 12px;
    font: inherit;
    cursor: pointer;
  }

  .estate-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15, 23, 42, 0.98);
    padding: 18px;
  }

  .estate-nav.open {
    display: flex;
  }
}

@media (max-width: 600px) {
  body.admin-bar .estate-header {
    top: 0;
  }
}
