/*
Theme Name: Navy Home Buyer
Theme URI: https://navyhomebuyer.com
Author: Real Estate Rankers
Author URI: https://realestaterankers.com
Description: Custom theme for Judy Reed Realty - Navy Home Buyer. Military-focused real estate in Hampton Roads, Virginia.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: navyhomebuyer
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== FEATURED COMMUNITIES ===== */
.featured-communities {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 30px;
  text-align: center;
}

.featured-communities .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #3C4B91;
  margin-bottom: 10px;
}

.featured-communities h2 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  color: #232E7E;
  margin-bottom: 50px;
}

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

.community-card {
  position: relative;
  height: 320px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.community-card .card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

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

.community-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(35, 46, 126, 0.7) 0%,
    rgba(35, 46, 126, 0.1) 50%,
    rgba(35, 46, 126, 0) 100%
  );
  transition: background 0.5s ease;
  z-index: 1;
}

.community-card:hover .card-overlay {
  background: rgba(35, 46, 126, 0.65);
}

/* Animated border frame */
.community-card .card-frame {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  pointer-events: none;
}

.community-card .card-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.85);
  transition: width 0.4s ease 0.1s, height 0.4s ease 0.1s;
}

.community-card:hover .card-frame::before {
  width: 100%;
  height: 100%;
}

.community-card .card-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.85);
  transition: width 0.4s ease 0.1s, height 0.4s ease 0.1s;
}

.community-card:hover .card-frame::after {
  width: 100%;
  height: 100%;
}

.community-card .card-title {
  position: absolute;
  z-index: 3;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  text-align: center;
  white-space: nowrap;
  transition: bottom 0.5s ease, text-shadow 0.5s ease;
}

.community-card:hover .card-title {
  bottom: calc(50% - 12px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-communities h2 {
    font-size: 34px;
  }
}

@media (max-width: 600px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
  .community-card {
    height: 260px;
  }
  .featured-communities h2 {
    font-size: 28px;
  }
  .community-card .card-title {
    font-size: 18px;
    letter-spacing: 2px;
  }
}

/* ===== TESTIMONIALS PAGE ===== */
.testimonials-hero {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.testimonials-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.testimonials-hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 34, 96, 0.82) 0%, rgba(35, 46, 126, 0.75) 100%);
}

.testimonials-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.testimonials-hero .hero-content .divider-line {
  width: 48px;
  height: 2px;
  background: #C9A96E;
  margin: 0 auto 28px;
}

.testimonials-hero .hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.testimonials-hero .hero-content .subtitle {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

/* Featured Testimonial */
.featured-section {
  padding: 100px 24px;
  background: #ffffff;
}

.featured-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.featured-inner .quote-icon {
  width: 52px;
  height: 40px;
  margin: 0 auto 36px;
  opacity: 0.85;
}

.featured-inner .quote-icon svg {
  width: 100%;
  height: 100%;
}

.featured-inner blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.75;
  color: #1a1a2e;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 40px;
  letter-spacing: 0.2px;
}

.featured-attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.featured-attribution .attr-line {
  width: 32px;
  height: 1px;
  background: #C9A96E;
  margin-bottom: 4px;
}

.featured-attribution .attr-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #232E7E;
}

.featured-attribution .attr-detail {
  font-size: 13px;
  color: #8a8a9a;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.featured-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
}

.featured-stars .star {
  width: 18px;
  height: 18px;
  color: #C9A96E;
}

/* Testimonials Grid */
.grid-section {
  padding: 100px 24px;
  background: #F9F8F6;
}

.grid-header {
  text-align: center;
  margin-bottom: 64px;
}

.grid-header .section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 16px;
}

.grid-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: -0.3px;
}

.grid-header .header-divider {
  width: 48px;
  height: 2px;
  background: #C9A96E;
  margin: 24px auto 0;
}

.testimonials-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 2px;
  padding: 48px 44px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(35, 46, 126, 0.08);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-stars {
  display: flex;
  gap: 3px;
}

.card-stars .star {
  width: 15px;
  height: 15px;
  color: #C9A96E;
}

.card-quote-svg {
  width: 28px;
  height: 22px;
  color: #232E7E;
  opacity: 0.1;
}

.card-text {
  font-size: 15px;
  line-height: 1.85;
  color: #555566;
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

.card-attribution {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid #E8E6E1;
}

.card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #232E7E 0%, #3C4B91 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.card-meta .card-name {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a2e;
  letter-spacing: 0.3px;
}

.card-meta .card-transaction {
  font-size: 12px;
  color: #8a8a9a;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

/* Second Featured */
.second-featured {
  padding: 100px 24px;
  background: #ffffff;
}

.second-featured .featured-inner blockquote {
  font-size: 24px;
}

/* Testimonials CTA */
.testimonials-cta {
  position: relative;
  padding: 120px 24px;
  text-align: center;
  overflow: hidden;
}

.testimonials-cta .cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.testimonials-cta .cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 34, 96, 0.88) 0%, rgba(35, 46, 126, 0.82) 100%);
}

.testimonials-cta .cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-cta .cta-content .divider-line {
  width: 48px;
  height: 2px;
  background: #C9A96E;
  margin: 0 auto 32px;
}

.testimonials-cta .cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: #ffffff;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.testimonials-cta .cta-content p {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-gold {
  display: inline-block;
  padding: 16px 40px;
  background: #C9A96E;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: #D4B87A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
}

.btn-outline-white {
  display: inline-block;
  padding: 16px 40px;
  background: transparent;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

/* Testimonials Responsive */
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; }
}

@media (max-width: 768px) {
  .testimonials-hero { height: 380px; }
  .testimonials-hero .hero-content h1 { font-size: 38px; }
  .featured-inner blockquote { font-size: 21px; }
  .grid-header h2 { font-size: 32px; }
  .testimonial-card { padding: 36px 32px; }
  .testimonials-cta .cta-content h2 { font-size: 32px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
