/* =============================================
   RED LINK REALTY — Main Stylesheet
   ============================================= */

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

:root {
  --red:       #8B1A1A;
  --red-dark:  #6B1010;
  --red-light: #A52020;
  --white:     #FFFFFF;
  --off-white: #F8F5F2;
  --gray-lt:   #ECECEC;
  --gray:      #888888;
  --dark:      #1A1A1A;
  --text:      #333333;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

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

/* ---- UTILITY ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.text-center { text-align: center; }

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 3px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--red); }

.section-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.divider {
  width: 56px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 32px;
}
.divider-left { margin: 0 0 32px; }

/* ---- HEADER / NAV ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-lt);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.nav-logo img { height: 72px; width: auto; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--red);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Prevent phone numbers from wrapping anywhere */
a[href^="tel"] { white-space: nowrap; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--dark); transition: all 0.3s; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 60%, var(--red-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
}

.hero-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
  max-width: 540px;
  font-weight: 300;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge {
  position: absolute;
  right: 60px;
  bottom: 60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  font-family: 'Playfair Display', serif;
}
.hero-badge .num { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.hero-badge .lbl { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; color: rgba(255,255,255,0.8); }

/* ---- SERVICES / WHY US ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border-radius: 6px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.service-card p  { font-size: 0.93rem; color: var(--gray); line-height: 1.75; }

/* ---- ABOUT SNIPPET ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 3px solid var(--red);
  border-radius: 4px;
  z-index: 0;
}
.about-img-wrap img {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
  height: 420px;
}

.about-placeholder {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--red-dark), var(--red-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}
.about-placeholder svg { width: 80px; height: 80px; stroke: rgba(255,255,255,0.5); fill: none; stroke-width: 1.2; margin-bottom: 16px; }
.about-placeholder p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.about-text .section-title { margin-bottom: 8px; }
.about-text p { margin-bottom: 18px; color: var(--text); font-size: 0.97rem; }
.about-text blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--off-white);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
}

/* ---- LISTINGS ---- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.listing-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.25s, box-shadow 0.25s;
}
.listing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.listing-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #c8c8c8, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.listing-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #ddd, #eee);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
}
.listing-img-placeholder svg { width: 48px; height: 48px; stroke: #bbb; fill: none; stroke-width: 1.5; }

.listing-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--red);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}

.listing-body { padding: 24px; }
.listing-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 6px;
}
.listing-address { font-weight: 600; font-size: 0.97rem; margin-bottom: 4px; }
.listing-city { color: var(--gray); font-size: 0.88rem; margin-bottom: 16px; }
.listing-specs {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray);
  border-top: 1px solid var(--gray-lt);
  padding-top: 14px;
}
.listing-spec { display: flex; align-items: center; gap: 5px; }
.listing-spec svg { width: 15px; height: 15px; stroke: var(--red); fill: none; stroke-width: 2; }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info { }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.contact-icon {
  width: 46px; height: 46px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; }
.contact-item h4 { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; color: var(--dark); }
.contact-item p, .contact-item a { color: var(--text); font-size: 0.97rem; }
.contact-item a:hover { color: var(--red); }

.contact-form {
  background: var(--white);
  padding: 48px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 8px; }
.contact-form p { color: var(--gray); font-size: 0.92rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-lt);
  border-radius: 3px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); background: white; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--red);
  padding: 48px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ---- TESTIMONIAL ---- */
.testimonial-wrap {
  max-width: 780px;
  margin: 48px auto 0;
  text-align: center;
}
.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-quote::before { content: '\201C'; color: var(--red); font-size: 3rem; line-height: 0; vertical-align: -0.5em; margin-right: 4px; }
.testimonial-quote::after  { content: '\201D'; color: var(--red); font-size: 3rem; line-height: 0; vertical-align: -0.5em; margin-left: 4px; }
.testimonial-author { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dark); }
.testimonial-role   { font-size: 0.85rem; color: var(--gray); margin-top: 2px; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 54px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p   { font-size: 0.9rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-col p   { font-size: 0.92rem; margin-bottom: 8px; }
.footer-col a   { color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}
.footer-bottom p { color: rgba(255,255,255,0.45); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  padding: 80px 0 70px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: white; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; position: relative; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 560px; margin: 0 auto; position: relative; }

/* ---- ABOUT PAGE ---- */
.bio-section { max-width: 820px; margin: 0 auto; }
.bio-section p { margin-bottom: 20px; font-size: 1rem; line-height: 1.85; }
.bio-section blockquote {
  border-left: 4px solid var(--red);
  padding: 16px 24px;
  background: var(--off-white);
  margin: 32px 0;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  border-radius: 0 4px 4px 0;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.credential-card {
  background: var(--white);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--red);
}
.credential-card .year { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--red); font-weight: 700; }
.credential-card p { font-size: 0.9rem; color: var(--gray); margin-top: 8px; }

/* ---- LISTINGS PAGE ---- */
.listings-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  border: 2px solid var(--gray-lt);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: var(--text);
  transition: all 0.2s;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.05em;
}
.filter-btn:hover, .filter-btn.active { background: var(--red); color: white; border-color: var(--red); }

.listings-cta {
  background: var(--off-white);
  border-radius: 8px;
  padding: 56px;
  text-align: center;
  margin-top: 60px;
}
.listings-cta h3 { font-size: 1.8rem; margin-bottom: 12px; }
.listings-cta p  { color: var(--gray); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .services-grid, .listings-grid { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .credentials { grid-template-columns: 1fr 1fr; }
  .hero-badge { display: none; }

  /* Hero split: stack on tablet */
  .hero-split { grid-template-columns: 1fr !important; }
  .hero-split-photo { display: none !important; }

  /* Bio grids on Meet the Team: stack photo above bio */
  .bio-two-col {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .bio-two-col .bio-photo-col {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .services-grid, .listings-grid, .credentials { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .contact-form { padding: 28px; }
  .hero { min-height: 500px; }
  .section { padding: 56px 0; }

  /* Hero split: full width text, no photo on mobile */
  .hero-split { grid-template-columns: 1fr !important; min-height: auto !important; }
  .hero-split-photo { display: none !important; }
  .hero-split-text { padding: 48px 24px !important; }

  /* Bio grids: fully stacked */
  .bio-two-col {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .bio-two-col .bio-photo-col {
    max-width: 280px;
    margin: 0 auto;
  }

  /* Stats bar: 2 col on small screens */
  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  /* Listing cards: single column */
  .listings-grid { grid-template-columns: 1fr !important; }
}

/* Mobile nav open */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  border-top: 1px solid var(--gray-lt);
  padding: 16px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-lt);
  color: var(--dark);
  letter-spacing: 0.05em;
}
.mobile-nav a:last-child { border-bottom: none; }
