/* =========================================================
   Brasch Properties — Shared Stylesheet (Black & White)
   ========================================================= */

:root {
  --navy: #0f0f0f;
  --navy-dark: #000000;
  --copper: #d4232e;
  --copper-dark: #a91622;
  --red: #d4232e;
  --red-dark: #a91622;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --paper: #ffffff;
  --paper-2: #f3f3f3;
  --white: #ffffff;
  --rule: #e0e0e0;
  --muted: #6b6b6b;
  --good: #2c7a4b;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-dark); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  text-transform: uppercase; border: 2px solid transparent;
  transition: transform .1s, background .15s, color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--copper-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 48px; width: auto;
  display: block;
}
.nav-logo:hover img { opacity: .8; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .92rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--copper); border-bottom-color: var(--copper); }
.nav-cta { margin-left: 12px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span {
  display: block; width: 26px; height: 3px;
  background: var(--navy); margin: 5px 0; border-radius: 2px;
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px 24px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav-cta { margin: 12px 0 0; width: 100%; }
}

/* Hero */
.hero {
  position: relative; color: var(--white);
  padding: 120px 0 100px; text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroSlide 27.5s infinite;
}
.hero-bg img:nth-child(1)  { animation-delay: 0s; }
.hero-bg img:nth-child(2)  { animation-delay: 2.5s; }
.hero-bg img:nth-child(3)  { animation-delay: 5s; }
.hero-bg img:nth-child(4)  { animation-delay: 7.5s; }
.hero-bg img:nth-child(5)  { animation-delay: 10s; }
.hero-bg img:nth-child(6)  { animation-delay: 12.5s; }
.hero-bg img:nth-child(7)  { animation-delay: 15s; }
.hero-bg img:nth-child(8)  { animation-delay: 17.5s; }
.hero-bg img:nth-child(9)  { animation-delay: 20s; }
.hero-bg img:nth-child(10) { animation-delay: 22.5s; }
.hero-bg img:nth-child(11) { animation-delay: 25s; }
@keyframes heroSlide {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  12%  { opacity: 1; }
  16%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.65) 100%);
}
.hero > .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; opacity: 1; }
  .hero-bg img:not(:first-child) { display: none; }
}
.hero h1 { color: var(--white); margin-bottom: .25em; }
.hero .eyebrow {
  display: inline-block; text-transform: uppercase;
  letter-spacing: .25em; font-size: .8rem; font-weight: 600;
  color: var(--paper-2); margin-bottom: 14px;
}
.hero .lede {
  font-size: 1.2rem; max-width: 640px;
  margin: 0 auto 32px; color: rgba(255,255,255,.92);
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .badges {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
  font-size: .85rem; color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .15em;
}
.hero .badges span::before { content: "✓ "; color: var(--white); font-weight: 700; }

/* Page header */
.page-header {
  background: var(--navy); color: var(--white);
  padding: 70px 0 60px; text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: .25em; }
.page-header .crumb {
  display: inline-block; text-transform: uppercase;
  letter-spacing: .25em; font-size: .75rem; font-weight: 600;
  color: var(--paper-2); margin-bottom: 12px;
}
.page-header p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto; }

/* Sections */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--navy); color: var(--white); }
section.dark h2, section.dark h3 { color: var(--white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; text-transform: uppercase;
  letter-spacing: .25em; font-size: .8rem; font-weight: 700;
  color: var(--copper); margin-bottom: 10px;
}

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 920px) { .feature-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .card-img { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 24px 26px 28px; }
.card h3 { margin-top: 0; color: var(--navy); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  display: inline-flex; width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: var(--paper-2); color: var(--ink);
  border-radius: 12px; margin-bottom: 14px; font-size: 1.5rem;
}

/* Service callouts */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .service-list { grid-template-columns: 1fr; } }
.service {
  padding: 28px; background: var(--white);
  border-radius: var(--radius); border-top: 4px solid var(--copper);
  border: 1px solid var(--rule); border-top: 4px solid var(--copper);
}
.service h3 { color: var(--navy); margin-bottom: .35em; }
.service p { color: var(--ink-soft); margin: 0; }

/* Savings */
.savings { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
@media (max-width: 720px) { .savings { grid-template-columns: 1fr; } }
.savings .col { padding: 32px 28px; border-radius: var(--radius); text-align: center; }
.savings .ours { background: var(--copper); color: var(--white); box-shadow: var(--shadow-md); }
.savings .theirs { background: var(--white); color: var(--ink); border: 1px solid var(--rule); }
.savings .pct {
  font-family: var(--font-display); font-weight: 800;
  font-size: 4rem; line-height: 1; margin: 8px 0 4px;
}
.savings .label { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; font-weight: 700; }
.savings p { margin-top: 12px; opacity: .9; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-family: var(--font-display);
  font-size: 1.15rem; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; color: var(--copper); font-size: 1.5rem; margin-left: 12px; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--copper); }
.faq p { margin: 14px 0 0; color: var(--ink-soft); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .reviews { grid-template-columns: 1fr; } }
.review {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--rule);
  padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.review .stars { color: var(--copper); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }
.review blockquote {
  margin: 0 0 18px; padding: 0; border: 0;
  font-style: italic; color: var(--ink-soft); flex: 1;
}
.review cite { font-style: normal; font-weight: 700; color: var(--navy); }
.review small { display: block; color: var(--muted); margin-top: 2px; }

/* Forms */
.form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--rule);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--rule); border-radius: 8px;
  padding: 12px 14px; font: inherit; background: var(--paper);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--ink); outline-offset: 1px; background: var(--white);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 920px) { .form-grid { grid-template-columns: 1fr; } }

/* CTA strip */
.cta-strip { background: var(--navy); color: var(--white); text-align: center; padding: 64px 0; }
.cta-strip h2 { color: var(--white); }
.cta-strip p { color: rgba(255,255,255,.85); max-width: 540px; margin: 0 auto 24px; }

/* Footer */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,.78);
  padding: 56px 0 28px; font-size: .95rem;
}
.site-footer a { color: var(--paper-2); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px; margin-bottom: 36px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: var(--white); text-transform: uppercase;
  letter-spacing: .15em; font-size: .85rem;
  font-family: var(--font-body); margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* Property grid */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .property-grid { grid-template-columns: 1fr; } }

.featured-properties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .featured-properties { grid-template-columns: 1fr; } }
.featured-properties .photo { aspect-ratio: 16 / 10; }
.featured-properties .name { font-size: 1.35rem; }

.property {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.property:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.property .photo { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.property .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.property:hover .photo img { transform: scale(1.04); }
.property .info { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.property .name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.15rem; color: var(--navy); line-height: 1.2; margin: 0;
}
.property .area { color: var(--muted); font-size: .85rem; margin: 0; }
.property .specs {
  margin: 6px 0 0; font-size: .85rem; color: var(--ink-soft);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.property .specs span { display: inline-flex; align-items: center; gap: 4px; }
.property .specs strong { color: var(--navy); font-weight: 700; }
.property .actions { margin-top: auto; padding-top: 14px; }
.property .actions a {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .15s, transform .1s;
}
.property .actions a:hover { background: var(--red-dark); color: var(--white); }
.property .actions a:active { transform: translateY(1px); }

/* Floating Book Now button (sticky on every page) */
.floating-book {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(212,35,46,.4);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.floating-book:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212,35,46,.5);
}
@media (max-width: 520px) {
  .floating-book { bottom: 14px; right: 14px; padding: 12px 18px; font-size: .82rem; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.pill {
  display: inline-block; background: var(--paper-2); color: var(--navy);
  border-radius: 999px; padding: 6px 14px;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.pill-copper { background: var(--copper); color: var(--white); }

/* =========================================================
   Language toggle switch (EN / ES)
   ========================================================= */
.lang-toggle-li { display: flex; align-items: center; }
.lang-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 78px;
  height: 32px;
  padding: 0 10px;
  margin-left: 10px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s;
}
.lang-toggle-btn .lt-en,
.lang-toggle-btn .lt-es {
  position: relative;
  z-index: 2;
  transition: color .15s, opacity .15s;
}
.lang-toggle-btn .lt-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 36px;
  height: 24px;
  background: var(--red);
  border-radius: 999px;
  transition: transform .18s ease;
  z-index: 1;
}
.lang-toggle-btn[data-lang="en"] .lt-en { color: var(--white); }
.lang-toggle-btn[data-lang="en"] .lt-es { color: var(--ink); opacity: .55; }
.lang-toggle-btn[data-lang="es"] .lt-knob { transform: translateX(34px); }
.lang-toggle-btn[data-lang="es"] .lt-en { color: var(--ink); opacity: .55; }
.lang-toggle-btn[data-lang="es"] .lt-es { color: var(--white); }
.lang-toggle-btn:hover { border-color: var(--red); }
.lang-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 35, 46, .35);
}

/* Mobile-only toggle that lives directly inside .nav (not inside the
   collapsible nav-links). Hidden on desktop; shown on mobile in the
   top right, just to the left of the hamburger. */
.lang-toggle-mobile { display: none; }
@media (max-width: 920px) {
  /* Hide the in-menu toggle on mobile to avoid duplicates */
  .lang-toggle-li { display: none; }
  /* Show the floating header toggle in the top right corner.
     margin-left: auto pushes it (and the hamburger after it) to the
     right edge of the nav, keeping the logo flush left. */
  .lang-toggle-mobile {
    display: inline-flex;
    margin: 0 12px 0 auto;
  }
}
