/* Blue Rhino Housing — single-page teaser.
   Layout, section order, and element count follow the corphousingpros.com template.
   Colors are sampled from the approved RHINO logo (2026-11-14).
   Copy, photographs, and the logo are original to this draft. Not published. */

:root {
  --navy: #001846;
  --royal: #0C6CD2;
  --royal-dark: #0A4FA8;
  --ink: #000C22;
  --background: #F3F6FB;
  --cream: #E6EEF8;
  --muted: #E8EDF3;
  --charcoal: #001846;
  --warm-gray: #3A4A5C;
  --muted-foreground: #5A6B80;
  --line: #D0D7E4;
  --paper: #ffffff;
  --footer-text: rgba(243, 246, 251, 0.8);
  --font-sans: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--background);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input { font: inherit; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 80;
  background: var(--navy); color: #fff;
  padding: 0.5rem 0.8rem;
}
.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;
}

.container { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.container-wide { width: min(var(--max), calc(100% - 4rem)); }
@media (min-width: 768px) {
  .container-wide { width: min(var(--max), calc(100% - 6rem)); }
}
.container-narrow { width: min(36rem, calc(100% - 3rem)); margin: 0 auto; text-align: center; }

/* 1. Header: centered logo, thin divider, no nav */
.site-header { padding: 2rem 0; background: var(--background); }
.site-header .container { display: flex; flex-direction: column; align-items: center; }
.brand { display: flex; justify-content: center; text-decoration: none; }
.brand img { width: 220px; height: auto; }
.header-rule { width: 100%; height: 1px; background: rgba(0, 24, 70, 0.2); margin-top: 1.5rem; }

/* 2. Hero: two-thirds photo, one-third typography panel */
.hero { padding: 2rem 0; background: var(--background); }
.hero-row { display: flex; flex-direction: column; }
.hero-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.hero-panel {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
}
.section-title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.hero-panel h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  max-width: 16ch;
}
@media (min-width: 1024px) {
  .hero-row { flex-direction: row; align-items: stretch; }
  .hero-photo { width: 66.666%; }
  .hero-photo img { height: 500px; }
  .hero-panel { width: 33.333%; padding: 0 3rem; }
}

/* 3. About: uppercase label + three square photo cards */
.about { padding: 3rem 0; background: var(--background); }
.about-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .cards { gap: 2rem; }
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--muted);
}
.card-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--charcoal);
  text-align: center;
  line-height: 1.25;
  margin: 1rem 1rem 0.75rem;
  padding: 0 0.5rem;
}
@media (min-width: 768px) {
  .card h2 { font-size: 1.5rem; }
}
.card p {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.625;
  letter-spacing: 0.025em;
  color: var(--warm-gray);
  text-align: center;
  padding: 0 1rem 1.5rem;
}

/* 4. Gallery strip + lightbox */
.gallery { padding: 4rem 0; background: var(--background); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.95); }
.lightbox-stage {
  position: relative; z-index: 1;
  margin: 0; padding: 3rem;
  max-width: 95vw; max-height: 95vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-stage img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain;
}
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 2;
  background: transparent; border: 0; color: rgba(255,255,255,0.7);
  cursor: pointer; padding: 0.75rem;
}
.lightbox-close:hover, .lightbox-nav:hover { color: #fff; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav.prev { left: 1rem; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); border-radius: 999px; }
.lightbox-nav.next { right: 1rem; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); border-radius: 999px; }
.lightbox-count {
  position: absolute; z-index: 2;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  margin: 0;
}
.lightbox-dots {
  position: absolute; z-index: 2;
  bottom: 4rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.lightbox-dots .dot {
  width: 8px; height: 8px; border-radius: 999px;
  border: 0; padding: 0; background: rgba(255,255,255,0.35); cursor: pointer;
}
.lightbox-dots .dot[aria-current="true"] { background: #fff; }

/* 5. Subscribe: centered email + Sign up */
.subscribe { padding: 3rem 0; background: var(--background); }
.subscribe h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .subscribe h2 { font-size: 1.875rem; }
}
.body-text {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.625;
  letter-spacing: 0.025em;
  color: var(--warm-gray);
  margin-bottom: 2rem;
}
#launch-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#launch-form input[type="email"] {
  flex: 1 1 auto;
  height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(0, 24, 70, 0.2);
  background: var(--background);
  color: var(--ink);
  border-radius: 0;
}
#launch-form button[type="submit"] {
  height: 3rem;
  padding: 0 2rem;
  background: var(--charcoal);
  color: var(--background);
  border: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.875rem;
  cursor: pointer;
}
#launch-form button[type="submit"]:hover { background: #000C22; }
#form-status { margin-top: 1rem; font-size: 0.95rem; color: var(--warm-gray); }
@media (min-width: 640px) {
  #launch-form { flex-direction: row; }
}

/* 6. Footer */
.site-footer { padding: 2rem 0; background: var(--charcoal); }
.footer-rule { width: 100%; height: 1px; background: rgba(243, 246, 251, 0.2); margin-bottom: 1.5rem; }
.site-footer p {
  text-align: center;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--footer-text);
}
.site-footer a { color: #8CB8F0; }
.site-footer .draft-note { margin-top: 0.4rem; font-size: 0.75rem; color: rgba(243, 246, 251, 0.55); }

/* 7. Chat widget */
.chat-launcher {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 50;
  width: 3.5rem; height: 3.5rem;
  border-radius: 999px;
  border: 0;
  background: var(--charcoal);
  color: var(--cream);
  box-shadow: 0 10px 24px rgba(0, 12, 34, 0.28);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.chat-launcher:hover { transform: scale(1.1); }
.chat-launcher.is-hidden { opacity: 0; pointer-events: none; }

.chat-panel[hidden] { display: none; }
.chat-panel {
  position: fixed;
  bottom: 0; right: 0;
  z-index: 50;
  width: 100%;
}
@media (min-width: 640px) {
  .chat-panel { width: 400px; bottom: 1.5rem; right: 1.5rem; }
}
.chat-window {
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 16px 40px rgba(0, 12, 34, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
  max-height: 80vh;
}
@media (min-width: 640px) {
  .chat-window { border-radius: 1rem; }
}
.chat-toolbar {
  background: var(--navy);
  color: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-title { font-family: var(--font-sans); font-size: 1.125rem; }
.chat-icon-btn, .chat-spacer {
  width: 2rem; height: 2rem;
  border: 0; background: transparent; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 999px;
}
.chat-icon-btn:hover { background: rgba(255,255,255,0.1); }
.chat-intro {
  background: var(--navy);
  color: #fff;
  padding: 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chat-intro p { font-size: 0.875rem; font-family: var(--font-sans); }
.chat-avatar {
  border-radius: 999px;
  background: var(--royal);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-avatar.large { width: 5rem; height: 5rem; margin-bottom: 0.75rem; }
.chat-avatar.small { width: 3rem; height: 3rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; background: #f5f5f5; }
.bubble-row { margin-bottom: 1rem; display: flex; }
.bubble-row.from-user { justify-content: flex-end; }
.bubble-row.from-agent { justify-content: flex-start; align-items: flex-start; gap: 0.75rem; }
.bubble {
  background: #fff;
  color: var(--charcoal);
  border-radius: 1rem 1rem 1rem 0.25rem;
  padding: 0.75rem 1rem;
  max-width: 80%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.from-user .bubble {
  background: var(--navy);
  color: #fff;
  border-radius: 1rem 1rem 0.25rem 1rem;
  box-shadow: none;
}
.bubble p { font-family: var(--font-sans); font-size: 0.875rem; }
.chat-time { font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; font-family: var(--font-sans); }
.from-user .chat-time { text-align: right; }
.chat-starter {
  margin-top: 0.75rem;
  width: 100%;
  background: #9e9e9e;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
}
.chat-starter:hover { background: #8a8a8a; }
.chat-compose {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
.chat-compose input {
  flex: 1;
  border: 0;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--charcoal);
  background: transparent;
}
.chat-compose button {
  width: 2.5rem; height: 2.5rem;
  border: 0; border-radius: 999px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.chat-compose button:hover { background: #000C22; }

@media (max-width: 1023px) {
  /* Keep the fixed chat button from covering the hero headline on stacked layouts */
  .hero-panel { padding: 3rem 4.5rem 3rem 2rem; }
}
@media (max-width: 799px) {
  .container-wide { width: min(var(--max), calc(100% - 3rem)); }
  .hero-panel h1 { font-size: 2.25rem; }
  .brand img { width: 180px; }
}
