/* ============================================================
   Darell Valiente Taganas — Real Estate Sales Manager
   Clean light design system
   ============================================================ */

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F7F5;
  --bg-card: #FFFFFF;
  --accent: #1E3A5F;
  --accent-hover: #16304D;
  --accent-soft: rgba(30, 58, 95, 0.07);
  --accent-line: rgba(30, 58, 95, 0.22);
  --text-primary: #14161A;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 8px 20px -6px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, 0.20);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: min(1200px, 92vw);
  --section-pad: clamp(4rem, 8vw, 7rem);
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-lock { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container { width: var(--container); margin: 0 auto; }
.section { padding: var(--section-pad) 0; position: relative; }
.section--alt { background: var(--bg-secondary); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-heading { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.18; }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; margin-top: 1.1rem; max-width: 60ch; }
.is-placeholder { color: var(--text-secondary); font-style: italic; }
.is-disabled { opacity: 0.35; pointer-events: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--border-strong); color: var(--text-primary); }
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-on-dark { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-on-accent { background: #fff; color: var(--accent); }
.btn-on-accent:hover { background: #EDF1F5; }
.text-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.text-link:hover { border-color: var(--accent); }

/* ---- Media frame (holds an actual <img>) ---- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.media-frame:hover img { transform: scale(1.03); }

/* ---- Logo (DVT monogram) ---- */
.logo { display: inline-flex; align-items: center; }
.logo__mark {
  height: 40px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.nav.is-scrolled .logo__mark { height: 34px; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.3rem 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  padding: 0.8rem 0;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.nav__menu { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
.nav__menu a:not(.btn) {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease);
}
.nav__menu a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav__menu a:not(.btn):hover, .nav__menu a:not(.btn).is-active { color: var(--text-primary); }
.nav__menu a:not(.btn):hover::after, .nav__menu a:not(.btn).is-active::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; padding: 0;
}
.nav__toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--text-primary); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto;
    width: min(340px, 82vw); height: 100vh;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 3rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a.btn { margin-top: 1rem; }
}

/* ============================================================
   Hero — split layout
   ============================================================ */
.hero { padding-top: clamp(7rem, 14vw, 10rem); padding-bottom: var(--section-pad); }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.12; }
.hero__byline { margin-top: 1.5rem; }
.hero__name { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 700; color: var(--accent); }
.hero__role { color: var(--text-secondary); font-size: 0.95rem; margin-top: 0.3rem; }
.hero__desc { margin-top: 1.4rem; color: var(--text-secondary); max-width: 52ch; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 2.25rem; }
.hero__trust {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.hero__media .media-frame { aspect-ratio: 4 / 5; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media .media-frame { aspect-ratio: 16 / 10; }
}

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__media .media-frame { min-height: 460px; }
.about__text { color: var(--text-secondary); font-size: 1.05rem; }
.about__text p + p { margin-top: 1.1rem; }
.about__philosophy {
  margin-top: 1.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}
.about__philosophy span { color: var(--accent); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}
.stat__value { display: block; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 800; color: var(--accent); letter-spacing: -0.01em; }
.stat__label { display: block; margin-top: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   Properties
   ============================================================ */
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.property-card__media { aspect-ratio: 4 / 3; border-radius: 0; border: none; border-bottom: 1px solid var(--border); }
.property-card__body { padding: 1.6rem; }
.property-card__num { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.property-card__name { margin-top: 0.5rem; font-size: 1.2rem; }
.property-card__location { margin-top: 0.35rem; font-size: 0.82rem; color: var(--text-secondary); }
.property-card__category {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.property-card__desc { margin-top: 0.9rem; color: var(--text-secondary); font-size: 0.92rem; }
.property-card__body .text-link { display: inline-block; margin-top: 1.3rem; }
@media (max-width: 960px) { .properties-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .properties-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Services
   ============================================================ */
.service-intro { max-width: 70ch; }
.service-intro h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.service-intro p { margin-top: 1.1rem; color: var(--text-secondary); font-size: 1.02rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.feature-card__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.feature-card h4 { margin-top: 1rem; font-size: 1rem; }
.feature-card p { margin-top: 0.6rem; color: var(--text-secondary); font-size: 0.9rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Experience — clean bordered cards (no line/dot timeline)
   ============================================================ */
.timeline { display: grid; gap: 1.25rem; }
.timeline__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-left-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.timeline__item.is-visible { border-left-color: var(--accent); box-shadow: var(--shadow-sm); }
.timeline__period { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.timeline__current {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}
.timeline__item h3 { margin-top: 0.6rem; font-size: 1.3rem; }
.timeline__desc { margin-top: 0.65rem; color: var(--text-secondary); font-size: 0.95rem; max-width: 62ch; }
.timeline__highlight { margin-top: 1.3rem; display: flex; align-items: baseline; gap: 0.9rem; }
.timeline__highlight-value { font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 800; color: var(--accent); letter-spacing: -0.01em; }
.timeline__highlight-label { color: var(--text-secondary); font-size: 0.85rem; }
.timeline__highlight--current .timeline__highlight-value { font-size: clamp(2.2rem, 3.8vw, 3rem); }

/* ============================================================
   Sales performance (dashboard)
   ============================================================ */
.performance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.performance-grid .stat { text-align: center; padding: clamp(1.75rem, 4vw, 2.25rem) 1.25rem; }
.performance-grid .stat__value { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.performance-grid .stat--primary { background: var(--accent); border-color: var(--accent); }
.performance-grid .stat--primary .stat__value { color: #fff; font-size: clamp(2rem, 3.8vw, 2.8rem); }
.performance-grid .stat--primary .stat__label { color: rgba(255,255,255,0.75); }
.performance__statement { margin-top: 2.25rem; text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }

/* ============================================================
   Brand statement
   ============================================================ */
.brand-statement { text-align: center; }
.brand-statement__heading { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 22ch; margin: 0 auto; }
.brand-statement__desc { margin: 1.4rem auto 0; max-width: 56ch; color: var(--text-secondary); font-size: 1.05rem; }
.brand-statement .btn { margin-top: 2.25rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-secondary); }
.field input, .field textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 0.5rem; }
.form-status { grid-column: 1 / -1; font-size: 0.88rem; color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

.contact-info dl { display: grid; gap: 1.1rem; }
.contact-info .item { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.contact-info dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.contact-info dd { margin: 0.4rem 0 0; font-size: 1.05rem; }

/* ============================================================
   Final CTA + Footer — solid navy closing block
   ============================================================ */
.final-cta {
  text-align: center;
  background: var(--accent);
  color: #fff;
}
.final-cta__heading { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 20ch; margin: 0 auto; color: #fff; }
.final-cta__desc { margin: 1.2rem auto 0; max-width: 50ch; color: rgba(255,255,255,0.75); }
.final-cta .btn { margin-top: 2.25rem; }

.footer { background: var(--accent-hover); color: rgba(255,255,255,0.85); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.footer__desc { margin-top: 1rem; color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 42ch; }
.footer h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1.2rem; }
.footer ul { display: grid; gap: 0.7rem; }
.footer a { color: #fff; font-size: 0.92rem; transition: opacity 0.3s var(--ease); }
.footer a:hover { opacity: 0.7; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.footer__disclaimer { max-width: 80ch; }
@media (max-width: 700px) { .footer__top { grid-template-columns: 1fr; } }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 0.8rem 1.2rem; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Quick contact (WhatsApp / Messenger) ---- */
.quick-contact {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quick-contact__btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.quick-contact__btn:hover { transform: translateY(-3px); background: var(--accent-hover); }
.quick-contact__btn.is-disabled { background: var(--border-strong); color: #fff; box-shadow: none; }
.quick-contact__btn svg { width: 24px; height: 24px; fill: currentColor; }
