/* =========================================
   JUST SOLD REAL ESTATE — Main Stylesheet
   ========================================= */

:root {
  --red:       #b22b2e;
  --red-dark:  #8f1f22;
  --red-light: #cc3538;
  --charcoal:  #414143;
  --dark:      #2e2e30;
  --darker:    #1e1e20;
  --darkest:   #141416;
  --white:     #ffffff;
  --off-white: #f5f5f2;
  --gray:      #9a9a9c;
  --light-gray:#e0e0e0;
  --border:    rgba(255,255,255,0.08);

  --font-main: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', sans-serif;
  --transition: all 0.3s ease;
  --radius: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--darker);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--font-main); font-weight: 600; line-height: 1.15; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1.2rem;
}

.section-title span { color: var(--red); }

.section-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  line-height: 1.8;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn-red  { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--darker); border-color: var(--white); }

/* ========== LANGUAGE TOGGLE ========== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.25);
  overflow: hidden;
}
.lang-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.lang-btn.active { background: var(--red); color: var(--white); }

/* ========== NAVBAR ========== */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 1.2rem 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(30,30,32,0.97);
  padding: 0.85rem 5%;
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(178,43,46,0.25);
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; }
.nav-logo .logo-main { font-family: var(--font-main); font-size: 1.45rem; font-weight: 700; color: var(--white); }
.nav-logo .logo-sub  { font-family: var(--font-sans); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.nav-logo-img { height: 38px; width: auto; object-fit: contain; }

.nav-right { display: flex; align-items: center; gap: 2rem; }

.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.nav-links a:hover { color: var(--red); }
.nav-links .nav-cta {
  padding: 0.55rem 1.3rem;
  background: var(--red); color: var(--white);
  font-weight: 700;
}
.nav-links .nav-cta:hover { background: var(--red-dark); color: var(--white); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

/* ========== HERO ========== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--darkest);
}

.hero-bg-shape {
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark) 100%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-accent-line {
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--red);
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 5%; max-width: 780px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(178,43,46,0.45);
  margin-bottom: 2rem;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: pulse 2s infinite; }
.hero-badge span { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.3} }

.hero-title { font-size: clamp(2.8rem, 6.5vw, 5.5rem); font-weight: 700; line-height: 1.0; margin-bottom: 0.4rem; color: var(--white); }
.hero-title .highlight { color: var(--red); display: block; }
.hero-tagline { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 2.5rem; }
.tagline-main { font-family: var(--font-main); font-size: clamp(2.2rem, 4.5vw, 3.5rem); color: rgba(255,255,255,0.9); font-style: italic; font-weight: 600; display: block; }
.tagline-sub  { font-family: var(--font-sans); font-size: clamp(0.8rem, 1.4vw, 1rem); color: rgba(255,255,255,0.5); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; display: block; }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  position: absolute; bottom: 3.5rem; right: 5%;
  z-index: 2;
}
.stat-cta {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.4rem 2.8rem;
  background: var(--red);
  border: 2px solid var(--red);
  text-decoration: none;
  transition: var(--transition);
  gap: 0.4rem;
}
.stat-cta:hover {
  background: transparent;
  border-color: var(--red);
}
.stat-cta-main {
  font-family: var(--font-main); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; color: var(--white); display: block; line-height: 1.1;
}
.stat-cta-sub {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); display: block;
}

.hero-scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; z-index: 2; cursor: pointer;
}
.hero-scroll span { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--red), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform:scaleY(1);transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom} }

/* ========== TICKER ========== */
.ticker-wrapper { background: var(--red); padding: 0.75rem 0; overflow: hidden; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 28s linear infinite; }
.ticker-track span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); padding: 0 2.5rem; }
.ticker-track span::before { content: '◆'; margin-right: 2.5rem; opacity: 0.6; }
@keyframes ticker { 0%{transform:translateX(0)}100%{transform:translateX(-50%)} }

/* ========== SERVICES ========== */
#services { padding: 6rem 5%; background: var(--darker); }

.services-header { margin-bottom: 3.5rem; }

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

.service-card {
  background: var(--charcoal);
  padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.4s ease;
}
.service-card:hover::after { width: 100%; }
.service-card:hover { background: #4a4a4c; }

.service-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(178,43,46,0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.8rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { border-color: var(--red); background: rgba(178,43,46,0.1); }
.service-icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.5; }

.service-num { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; color: rgba(178,43,46,0.35); margin-bottom: 0.6rem; }
.service-title { font-size: 1.55rem; color: var(--white); margin-bottom: 0.9rem; }
.service-desc { font-size: 1rem; color: rgba(255,255,255,0.5); line-height: 1.8; }

/* ========== LISTINGS ========== */
#listings { padding: 6rem 5%; background: var(--dark); }

.listings-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3rem; }

.listings-tabs { display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.1); }
.tab-btn {
  padding: 0.6rem 1.4rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; color: rgba(255,255,255,0.45);
  border: none; cursor: pointer; transition: var(--transition);
  font-family: var(--font-sans);
}
.tab-btn.active { background: var(--red); color: var(--white); }

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

.listing-card {
  background: var(--charcoal);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }

.listing-img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--darker);
  overflow: hidden;
}
.listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.listing-card:hover .listing-img img { transform: scale(1.05); }
.listing-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; color: rgba(255,255,255,0.15);
}
.listing-img-placeholder svg { width: 36px; height: 36px; stroke: rgba(178,43,46,0.25); fill: none; stroke-width: 1; }
.listing-img-placeholder span { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; }

.listing-badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--red); color: var(--white);
}
.listing-badge.sold { background: var(--charcoal); }
.listing-badge.lease { background: #1a5c2e; }

.listing-info { padding: 1.5rem; }
.listing-price { font-family: var(--font-main); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.listing-price span { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); vertical-align: middle; margin-left: 0.4rem; }
.listing-address { font-size: 0.95rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.listing-details { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.listing-detail { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.listing-detail svg { width: 13px; height: 13px; stroke: rgba(178,43,46,0.6); fill: none; stroke-width: 2; }

.mls-cta {
  margin-top: 3rem;
  background: var(--charcoal);
  border: 1px solid rgba(178,43,46,0.25);
  padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.mls-cta-text h4 { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.mls-cta-text p { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

/* ========== ABOUT ========== */
#about { padding: 6rem 5%; background: var(--darker); }

.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; }

.about-photo-wrap { position: relative; }
.about-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: var(--charcoal);
  border: 1px solid rgba(178,43,46,0.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
}
.about-photo-placeholder svg { width: 44px; height: 44px; stroke: rgba(178,43,46,0.25); fill: none; stroke-width: 1; }
.about-photo-placeholder span { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.2); }
.about-agent-photo { width: 50%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; background: #d8d8d8; margin: 0 auto; }

.about-red-bar { position: absolute; top: 2rem; left: -1rem; width: 4px; height: calc(100% - 4rem); background: var(--red); }

.about-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  width: 120px; height: 120px;
  background: var(--red);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem;
}
.about-badge .badge-num { font-family: var(--font-main); font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1; }
.about-badge .badge-text { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.85); line-height: 1.3; }

.about-content p { font-size: 1.05rem; color: rgba(255,255,255,0.55); line-height: 1.9; margin-bottom: 1.1rem; }

.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 1.8rem 0; }
.value-item { display: flex; align-items: flex-start; gap: 0.6rem; }
.check {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px;
  background: rgba(178,43,46,0.12); border: 1px solid rgba(178,43,46,0.35);
  display: flex; align-items: center; justify-content: center;
}
.check svg { width: 9px; height: 9px; stroke: var(--red); fill: none; stroke-width: 2.5; }
.value-item span { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.7); }

/* ========== WHY US ========== */
#sold { padding: 6rem 5%; background: var(--dark); }
#why { padding: 6rem 5%; background: var(--dark); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 3.5rem; }
.why-card {
  padding: 2.2rem 1.8rem; border: 1px solid rgba(255,255,255,0.07);
  text-align: center; transition: var(--transition);
}
.why-card:hover { border-color: rgba(178,43,46,0.35); background: rgba(178,43,46,0.04); }
.why-card svg { width: 30px; height: 30px; stroke: var(--red); fill: none; stroke-width: 1.5; margin: 0 auto 1.3rem; }
.why-card h4 { font-family: var(--font-sans); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 0.7rem; }
.why-card p { font-size: 0.95rem; color: rgba(255,255,255,0.4); line-height: 1.8; }

/* ========== CONTACT ========== */
#contact { padding: 6rem 5%; background: var(--darker); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; margin-top: 3.5rem; }

.contact-info h3 { font-size: 1.7rem; color: var(--white); margin-bottom: 1.2rem; }
.contact-info > p { font-size: 1rem; color: rgba(255,255,255,0.45); line-height: 1.8; margin-bottom: 2.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid rgba(178,43,46,0.3);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 17px; height: 17px; stroke: var(--red); fill: none; stroke-width: 1.5; }
.contact-item-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 0.2rem; }
.contact-item-value { font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.5; }
.contact-item-value a:hover { color: var(--red); }

/* ========== FORM ========== */
.contact-form { background: var(--charcoal); padding: 2.8rem; border-top: 3px solid var(--red); }
.form-group { margin-bottom: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 0.5rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--dark); border: 1px solid rgba(255,255,255,0.08);
  color: var(--white); padding: 0.8rem 1rem;
  font-family: var(--font-sans); font-size: 0.84rem;
  outline: none; transition: var(--transition); appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.18); }
.form-group textarea { height: 110px; resize: vertical; }
.form-group select option { background: var(--dark); }
.form-submit {
  width: 100%; padding: 1rem;
  background: var(--red); border: 2px solid var(--red);
  color: var(--white); font-family: var(--font-sans);
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: var(--transition);
}
.form-submit:hover { background: var(--red-dark); border-color: var(--red-dark); }
.form-note { font-size: 0.7rem; color: rgba(255,255,255,0.25); margin-top: 0.9rem; text-align: center; }

/* ========== FOOTER ========== */
footer { background: var(--darkest); border-top: 1px solid rgba(255,255,255,0.06); padding: 3rem 5% 2rem; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 1.5rem;
}
.footer-logo .logo-main { font-family: var(--font-main); font-size: 1.35rem; font-weight: 700; color: var(--white); }
.footer-logo .logo-sub { font-family: var(--font-sans); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.footer-logo-img { height: 40px; width: auto; object-fit: contain; }
.footer-tagline { font-family: var(--font-main); font-size: 0.95rem; font-style: italic; color: rgba(255,255,255,0.3); }
.footer-contact-quick { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-contact-quick a { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.footer-contact-quick a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.7rem; color: rgba(255,255,255,0.2); }
.footer-bottom a { color: rgba(178,43,46,0.6); }

/* ========== ANIMATIONS ========== */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .listings-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 270px;
    background: var(--darker); flex-direction: column; align-items: flex-start;
    justify-content: center; padding: 3rem 2rem; gap: 1.8rem;
    transition: right 0.35s ease; border-left: 1px solid rgba(255,255,255,0.06);
    list-style: none;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 0.9rem; }
  .hero-stats { display: none; }
  .hero-bg-shape { width: 40%; }
  .services-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-badge { right: 1rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem; }
  .hero-ctas { flex-direction: column; }
  .hero-bg-shape { display: none; }
  .listings-header { flex-direction: column; align-items: flex-start; }
  .mls-cta { flex-direction: column; }
}
