/* ============================================================
   APEX FM & PROPERTY VENTURES
   Bold red/black theme matching the company logo — diagonal
   triangle motif echoes the logo's angular mark.
   ============================================================ */


:root{
  --black: #0a0a0a;
  --charcoal: #161616;
  --charcoal-2: #1f1f1f;
  --white: #f5f4f2;
  --white-dim: #c9c7c3;
  --red: #e1261c;
  --red-bright: #ff3b2f;
  --grey: #8a8a8a;
  --line: #2b2b2b;

  --display: 'Archivo Black', sans-serif;
  --body: 'Work Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---------- diagonal corner motif (from the logo) ---------- */
.corner-motif{
  position: absolute;
  top: 0; right: 0;
  width: 340px; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.corner-motif::before{
  content:'';
  position:absolute; top:0; right:0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 340px 340px 0;
  border-color: transparent var(--grey) transparent transparent;
  opacity: 0.5;
}
.corner-motif::after{
  content:'';
  position:absolute; top:0; right:0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 230px 230px 0;
  border-color: transparent var(--red) transparent transparent;
}

.corner-motif-foot{
  position: absolute;
  bottom: 0; left: 0;
  width: 220px; height: 220px;
  pointer-events: none;
  overflow: hidden;
}
.corner-motif-foot::before{
  content:'';
  position:absolute; bottom:0; left:0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 220px 0 0 220px;
  border-color: transparent transparent transparent var(--black);
}
.corner-motif-foot::after{
  content:'';
  position:absolute; bottom:0; left:0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 150px 0 0 150px;
  border-color: transparent transparent transparent var(--red);
}

/* ---------- header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 84px;
}
.brand{
  display:flex;
  flex-direction: column;
  line-height: 1;
}
.brand-main{
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand-main span{ color: var(--red); }
.brand-sub{
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 4px;
}

.site-nav{ display:flex; gap: 30px; }
.site-nav a{
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white-dim);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover,
.site-nav a.active{
  color: var(--white);
  border-color: var(--red);
}
.nav-toggle{
  display:none;
  background:none;
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 1.1rem;
  padding: 6px 12px;
  border-radius: 4px;
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: 100px 0 76px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-content{ position: relative; z-index: 1; max-width: 680px; }
.eyebrow{
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before{
  content:'';
  width: 22px; height: 2px;
  background: var(--red);
  display:inline-block;
}
.hero h1{
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero h1 em{ color: var(--red); font-style: normal; }
.hero .lede{
  font-size: 1.1rem;
  color: var(--white-dim);
  margin-bottom: 36px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.btn{
  display:inline-block;
  padding: 15px 30px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover{ background: var(--red-bright); transform: translateY(-1px); }
.btn-ghost{
  border: 1px solid var(--line);
  color: var(--white);
}
.btn-ghost:hover{ border-color: var(--red); color: var(--red-bright); }

/* ---------- sections ---------- */
section{ padding: 84px 0; position: relative; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow{ margin-bottom: 14px; }
.section-head h2{
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 14px;
  line-height: 1.15;
}
.section-head p{ color: var(--white-dim); }

.band-alt{ background: var(--charcoal); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- stat strip ---------- */
.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat{
  padding: 40px 24px;
  border-left: 1px solid var(--line);
  text-align:center;
}
.stat:first-child{ border-left:none; }
.stat-num{
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--red-bright);
  display:block;
}
.stat-label{
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- cards / grid ---------- */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.card{
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 2px;
  padding: 30px 26px;
  transition: border-color .2s ease, transform .15s ease;
}
.card:hover{ border-left-color: var(--red-bright); transform: translateY(-2px); }
.card h3{
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.card p{ color: var(--white-dim); font-size: 0.94rem; margin:0; }
.card .idx{
  font-family: var(--mono);
  color: var(--grey);
  font-size: 0.75rem;
  display:block;
  margin-bottom: 12px;
}

/* ---------- property placeholder tiles ---------- */
.property-card{
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow:hidden;
  background: var(--charcoal);
}
.property-thumb{
  height: 190px;
  background:
    repeating-linear-gradient(135deg, rgba(225,38,28,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, var(--charcoal-2), var(--black));
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.property-thumb[data-tag]::before{
  content: 'Photo coming soon';
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px dashed var(--line);
  padding: 6px 14px;
  border-radius: 20px;
}
.property-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-thumb::before{
  content:'';
  position:absolute; top:0; right:0;
  width:0; height:0;
  border-style:solid;
  border-width: 0 90px 90px 0;
  border-color: transparent var(--red) transparent transparent;
  opacity: 0.85;
}
.property-body{ padding: 20px 22px; }
.property-body h3{
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.property-body p{ color: var(--white-dim); font-size: 0.88rem; margin:0; }

.notice{
  border: 1px dashed var(--line);
  border-radius: 2px;
  padding: 16px 20px;
  color: var(--grey);
  font-size: 0.88rem;
  margin-bottom: 36px;
}
.notice strong{ color: var(--red-bright); }

/* ---------- CTA band ---------- */
.cta-band{
  position: relative;
  text-align:center;
  padding: 100px 24px;
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  overflow: hidden;
}
.cta-band h2{
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin: 0 0 24px;
  position: relative; z-index:1;
}
.cta-band .btn{ position: relative; z-index: 1; }

/* ---------- forms ---------- */
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full{ grid-column: 1 / -1; }
label{
  display:block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
input, textarea, select{
  width:100%;
  background: var(--charcoal);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 12px 14px;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus{
  outline: none;
  border-color: var(--red);
}
textarea{ resize: vertical; min-height: 120px; }

/* ---------- footer ---------- */
.site-footer{
  position: relative;
  border-top: 1px solid var(--line);
  padding: 52px 0 24px;
  overflow: hidden;
}
.footer-inner{
  position: relative; z-index: 1;
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 32px;
}
.footer-col h4{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 14px;
}
.footer-col p, .footer-col a{
  display:block;
  color: var(--white-dim);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-col a:hover{ color: var(--red-bright); }
.footer-tagline{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.muted{ color: var(--grey); font-size: 0.9rem; }
.fine{
  position: relative; z-index: 1;
  text-align:center;
  color: var(--grey);
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ---------- misc pages ---------- */
.two-col{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  position: relative; z-index: 1;
}
.two-col h2{
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-top:0;
  line-height: 1.2;
}
.two-col p{ color: var(--white-dim); }

.value-list{ list-style:none; padding:0; margin:0; }
.value-list li{
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display:flex;
  gap: 18px;
}
.value-list li:first-child{ padding-top:0; }
.value-list .mark{ color: var(--red); font-family: var(--mono); min-width: 90px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

.check-list{ list-style:none; padding:0; margin:0; display:grid; gap: 14px; }
.check-list li{ display:flex; gap: 12px; color: var(--white-dim); font-size: 0.95rem; }
.check-list li::before{
  content:'—';
  color: var(--red);
  font-weight: 700;
  flex-shrink:0;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-btn{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display:flex;
  align-items:center;
  gap: 10px;
  background: #25D366;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 13px 20px 13px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform .15s ease, box-shadow .2s ease;
}
.whatsapp-btn:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.whatsapp-btn svg{ width: 22px; height: 22px; flex-shrink:0; }
.whatsapp-btn span{ white-space: nowrap; }
@media (max-width: 600px){
  .whatsapp-btn span{ display:none; }
  .whatsapp-btn{ padding: 14px; border-radius: 50%; }
}

/* ---------- scroll reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------- FAQ accordion ---------- */
.faq-list{ display:grid; gap: 14px; max-width: 760px; }
.faq-item{
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.faq-item summary{
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  list-style: none;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:'+';
  color: var(--red);
  font-family: var(--body);
  font-size: 1.4rem;
  flex-shrink:0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item .faq-answer{
  padding: 0 24px 20px;
  color: var(--white-dim);
  font-size: 0.94rem;
}

/* ---------- testimonials ---------- */
.testimonial-card{
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 28px 26px;
  border-radius: 2px;
}
.testimonial-card p{
  color: var(--white-dim);
  font-style: italic;
  margin: 0 0 16px;
  font-size: 0.96rem;
}
.testimonial-name{
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--white);
}
.testimonial-role{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- 404 page ---------- */
.error-page{
  min-height: 60vh;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 80px 24px;
}
.error-page .error-code{
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 9rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}
.error-page h1{
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 0 0 16px;
}
.error-page p{ color: var(--white-dim); margin-bottom: 32px; max-width: 480px; }

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .site-nav{ display:none; }
  .nav-toggle{ display:block; }
  .stats{ grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3){ border-left:none; }
  .grid{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; gap: 32px; }
  .form-grid{ grid-template-columns: 1fr; }
  .corner-motif{ width: 160px; }
  .corner-motif::before{ border-width: 0 160px 160px 0; }
  .corner-motif::after{ border-width: 0 100px 100px 0; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition: none !important; }
}
