/* ============================================
   BT House & Mediseg — Landing Page
   Editorial, restrained, one accent colour.
   ============================================ */

:root {
  --bg: #080706;
  --surface: #0F0D0A;
  --panel: #131110;

  --ink: #F1ECE1;
  --muted: #948C7C;
  --faint: #5C574A;

  --gold: #B4904F;
  --gold-2: #D9BC85;
  --line: rgba(180, 144, 79, 0.24);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], article[id] { scroll-margin-top: 110px; }

@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);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 7, 6, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 15px 0;
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup { display: flex; align-items: center; gap: 18px; line-height: 0; }
.brand-lockup-mark { height: 48px; width: auto; display: block; }
/* The BT House mark (TB monogram stacked above the wordmark) has a taller
   glyph-to-canvas ratio than the Mediseg mark, so at equal image height its
   wordmark reads smaller — bump it ~17% to match Mediseg's visual weight. */
.brand-lockup-mark.logo-bthouse { height: 56px; }
.brand-lockup-divider { width: 1px; height: 30px; background: var(--line); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  color: rgba(241, 236, 225, 0.8);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.main-nav a:not(.nav-cta):hover { color: var(--gold-2); }
.main-nav .nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--line);
  padding: 13px 28px;
  border-radius: var(--r);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.main-nav .nav-cta:hover { border-color: var(--gold); background: var(--gold); color: var(--bg) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.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); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--bg); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.text-link::after { content: "→"; color: var(--gold); transition: transform 0.3s var(--ease); }
.text-link:hover { color: var(--gold-2); border-color: var(--gold); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Hero — split screen ---------- */
.hero-split {
  position: relative;
  height: 100svh;
  display: flex;
}
.hero-half {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.hero-half-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(78%) brightness(0.72) contrast(1.05);
  transform: scale(1.02);
  transition: filter 1.1s var(--ease), transform 1.6s var(--ease);
}
.hero-half:hover .hero-half-photo,
.hero-half:focus-visible .hero-half-photo {
  filter: grayscale(0%) brightness(0.78) contrast(1.05);
  transform: scale(1.07);
}
.hero-half-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,7,6,0.35) 0%, rgba(8,7,6,0.15) 40%, rgba(8,7,6,0.65) 100%);
}
.hero-half-tag {
  position: absolute;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2;
  opacity: 0.98;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.55));
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero-half:hover .hero-half-tag { opacity: 1; transform: translateY(-4px); }
.hero-half--a .hero-half-tag { right: 8%; }
.hero-half--b .hero-half-tag { left: 8%; }
.hero-half-tag img { height: 66px; width: auto; }
.hero-half-tag img.logo-bthouse { height: 78px; }
.hero-half-tag em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-split-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  z-index: 2;
  pointer-events: none;
}
.hero-split-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 46% at 50% 52%, rgba(8,7,6,0.78) 0%, rgba(8,7,6,0.15) 65%, transparent 100%);
}

.hero-split-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: min(92%, 780px);
  padding: 0 20px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 24px;
}
.hero-split-title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-split-title span { display: block; }
.hero-split-title em { font-style: italic; color: var(--gold-2); }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(241, 236, 225, 0.35);
  border-radius: 100px;
  z-index: 3;
}
.scroll-cue span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: var(--gold-2);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Sections (generic) ---------- */
.section { padding: 140px 0; }
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 22px;
}
.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.22;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 820px;
}
.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0;
}

.about-inner { max-width: 780px; }

/* ---------- Index (brand rows) ---------- */
.index-section { padding-top: 130px; border-top: 1px solid var(--line); }
.index-row {
  display: grid;
  grid-template-columns: 70px 260px 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.index-row:last-child { border-bottom: 1px solid var(--line); }

.index-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--faint);
  padding-top: 4px;
}
.index-thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
}
.index-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(85%) brightness(0.82);
  transform: scale(1.02);
  transition: filter 0.9s var(--ease), transform 1.3s var(--ease);
}
.index-row:hover .index-thumb img { filter: grayscale(0%) brightness(0.95); transform: scale(1.08); }

.index-logo { height: 64px; width: auto; margin-bottom: 22px; }
.index-logo.logo-bthouse { height: 75px; }
.index-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.index-text { color: var(--muted); margin: 0 0 22px; max-width: 560px; }
.index-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.index-list li {
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}
.index-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 1px;
  background: var(--gold);
}

/* ---------- Statement ---------- */
.statement {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 130px 0;
}
.statement-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(70%) brightness(0.5);
}
.statement-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,7,6,0.55), rgba(8,7,6,0.78) 60%, rgba(8,7,6,0.9));
}
.statement-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }
.statement-kicker { justify-content: center; color: var(--gold-2); }
.statement-kicker::before, .statement-kicker::after { content: ""; width: 30px; height: 1px; background: var(--gold-2); }
.statement-quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.statement-quote em { font-style: italic; color: var(--gold-2); }

/* ---------- Why ---------- */
.why { border-top: 1px solid var(--line); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.why-item {
  padding: 0 40px;
  border-left: 1px solid var(--line);
}
.why-item:first-child { padding-left: 0; border-left: none; }
.why-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.why-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: var(--ink);
}
.why-item p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Space ---------- */
.space { background: var(--surface); border-top: 1px solid var(--line); }
.space-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 2px;
  margin-top: 56px;
}
.space-photo { margin: 0; overflow: hidden; position: relative; }
.space-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) brightness(0.85);
  transition: filter 0.9s var(--ease), transform 1.3s var(--ease);
}
.space-photo:hover img { filter: grayscale(0%) brightness(1); transform: scale(1.06); }

.space-photo--a { grid-column: 1; grid-row: 1 / span 2; }
.space-photo--b { grid-column: 2 / span 2; grid-row: 1; }
.space-photo--c { grid-column: 2; grid-row: 2; }
.space-photo--d { grid-column: 3; grid-row: 2; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.contact-details li:first-child { border-top: none; padding-top: 0; }
.contact-details svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.contact-cta { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.contact-cta-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.contact-cta-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.contact-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--panel);
  color: var(--gold);
}
.contact-cta-icon svg { width: 24px; height: 24px; }
.contact-cta-card--whatsapp .contact-cta-icon { color: #3FBA5A; }
.contact-cta-copy { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.contact-cta-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-cta-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.contact-cta-arrow {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}
.contact-cta-card:hover .contact-cta-arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  color: var(--muted);
  padding: 64px 0 32px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 auto 22px; }
.footer-logo img { height: 38px; width: auto; }
.footer-logo img.logo-bthouse { height: 45px; }
.footer-tagline {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--gold-2);
  margin: 0 0 34px;
  font-size: 1.05rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--faint);
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(300px, 80vw);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--line);
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .hero-split { flex-direction: column; height: 100svh; }
  .hero-half-tag { flex-direction: row; gap: 10px; left: 50%; right: auto; transform: translateX(-50%); }
  .hero-half--a .hero-half-tag { display: none; }
  .hero-half--b .hero-half-tag { bottom: 30px; }
  .hero-half:hover .hero-half-tag { transform: translateX(-50%); }
  .hero-half-tag img { height: 38px; }
  .hero-split-divider { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .hero-split-vignette { background: radial-gradient(ellipse 80% 40% at 50% 52%, rgba(8,7,6,0.82) 0%, rgba(8,7,6,0.2) 65%, transparent 100%); }
  .hero-split-title { font-size: clamp(1.6rem, 7.5vw, 2.2rem); }
  .hero-eyebrow { font-size: 0.66rem; margin-bottom: 18px; }
  .hero-split-center { width: 92%; }

  .index-row { grid-template-columns: 1fr; gap: 24px; }
  .index-thumb { aspect-ratio: 16 / 10; max-width: 320px; }
  .index-num { padding-top: 0; }

  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-item { padding: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 32px; }
  .why-item:first-child { border-top: none; padding-top: 0; }

  .space-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 160px 160px;
  }
  .space-photo--a { grid-column: 1 / span 2; grid-row: 1; }
  .space-photo--b { grid-column: 1 / span 2; grid-row: 2; }
  .space-photo--c { grid-column: 1; grid-row: 3; }
  .space-photo--d { grid-column: 2; grid-row: 3; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 520px) {
  .section { padding: 90px 0; }
  .index-section { padding-top: 90px; }
  .hero-half-tag img { height: 30px; }
}
