/* =========================================================
   YEHOVA PROPERTIES — Main Stylesheet
   ========================================================= */

:root {
  /* Colors — drawn from the brand mark's navy + gold identity */
  --navy: #0f2038;
  --navy-deep: #0a1626;
  --navy-soft: #1c3454;
  --gold: #b6892f;
  --gold-light: #d9b463;
  --gold-pale: #f3e6c9;
  --paper: #faf7f1;
  --stone: #efe9dc;
  --white: #ffffff;
  --ink: #1b2430;
  --slate: #5b6472;
  --line: #e2ddd0;

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-soft: 0 12px 28px -18px rgba(15, 32, 56, 0.35);
  --shadow-card: 0 1px 2px rgba(15, 32, 56, 0.06), 0 8px 20px -12px rgba(15, 32, 56, 0.18);

  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { margin: 0 0 1em; color: var(--slate); max-width: 62ch; }
p.lede { font-size: 1.15rem; color: var(--ink); max-width: 60ch; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

ul, ol { color: var(--slate); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }

.bg-paper { background: var(--paper); }
.bg-stone { background: var(--stone); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.78); }

.eyebrow {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-soft); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.bg-navy .btn-outline { color: var(--white); }
.bg-navy .btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-whatsapp {
  background: #25D366;
  color: #0a1a10;
}
.btn-whatsapp:hover { background: #1ebe5a; color: #0a1a10; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand img { height: 46px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a.active { color: var(--gold); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 0.6rem; }
.header-cta .btn { padding: 0.65rem 1.15rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--navy); display: block; transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter) 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 260ms ease;
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .header-cta .btn-outline-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn:not(.btn-whatsapp-icon) span.btn-label-full { display: none; }
}

@media (min-width: 901px) {
  .nav-mobile-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lede { color: rgba(255,255,255,0.82); }
.hero .btn-outline { color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero-badge::before {
  content: "";
  width: 26px; height: 1px; background: var(--gold-light);
}
.hero-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.hero-panel .mark {
  width: 84px;
  margin-bottom: 1.25rem;
}
.hero-panel dl { margin: 0; }
.hero-panel dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 1.1rem;
}
.hero-panel dt:first-child { margin-top: 0; }
.hero-panel dd {
  margin: 0.25rem 0 0;
  color: rgba(255,255,255,0.88);
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3rem);
}
.page-hero h1 { color: var(--white); }
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.96rem; }
.card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-pale);
  border-radius: var(--radius);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--navy); }

/* Service card variant with divider numbering (used only where content is a real sequence elsewhere) */
.service-card {
  border-top: 3px solid var(--gold);
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

/* ---------- Two column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- Stats / values row ---------- */
.value-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}
.value-row h4 {
  font-family: var(--font-body);
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.value-row p { font-size: 0.92rem; margin: 0; }

/* ---------- Placeholder / coming soon block ---------- */
.placeholder-block {
  border: 1px dashed var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  background: var(--gold-pale);
}
.placeholder-block h2 { margin-bottom: 0.75rem; }
.placeholder-block p { margin-left: auto; margin-right: auto; }

/* ---------- Gallery ---------- */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.gallery-filter button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.gallery-filter button:hover { border-color: var(--gold); }
.gallery-filter button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.gallery-grid {
  columns: 3 260px;
  column-gap: 1.1rem;
}
.gallery-grid figure {
  margin: 0 0 1.1rem;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  background: var(--stone);
}
.gallery-grid img {
  width: 100%;
  display: block;
  transition: transform 320ms ease;
}
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption {
  font-size: 0.8rem;
  color: var(--slate);
  padding: 0.5rem 0.7rem 0.7rem;
}

@media (max-width: 700px) {
  .gallery-grid { columns: 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius); }
.lightbox-caption { color: rgba(255,255,255,0.8); text-align: center; margin-top: 1rem; font-size: 0.9rem; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ---------- Property cards ---------- */
.property-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.property-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.property-card .body { padding: 1.5rem; }
.property-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--gold-pale);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 1rem;
}
.form-success {
  display: none;
  background: var(--gold-pale);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-top: 1.2rem;
  color: var(--navy);
  font-size: 0.95rem;
}
.form-success.show { display: block; }

/* ---------- Contact info blocks ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-bottom: 3rem;
}
.contact-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.contact-item .icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-pale);
  border-radius: 50%;
  margin-bottom: 1rem;
}
.contact-item .icon svg { width: 18px; height: 18px; stroke: var(--navy); }
.contact-item h4 { font-family: var(--font-body); font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; font-size: 1rem; }
.contact-item p { margin: 0; font-size: 0.94rem; }
.contact-item a { color: var(--slate); }
.contact-item a:hover { color: var(--gold); }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: clamp(3rem, 6vw, 4rem) 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; font-weight: 600; }
.site-footer h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.65rem; font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #25D366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.06); color: #ffffff; }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
