/* Connecticut Real Estate & Design Center — house style for pages
   that should look as if they are shown in an iframe on
   connecticutrealestate.online.

   Tokens taken from the live WordPress / Astra theme (read-only, Nov 2026):
   --ast-global-color-0 #0c57a2 (links)
   --ast-global-color-1 #044483 (hover / darker blue)
   --ast-global-color-2 #1e293b (primary dark, headings, nav)
   --ast-global-color-3 #334155
   --ast-global-color-4 #F0F5FA (site wash; this snippet uses #f1f5f9)
   --ast-global-color-5 #FFFFFF
   Font: "Open Sans", sans-serif

   Load the font before this file:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap" rel="stylesheet">
*/

:root {
  --ctre-font: "Open Sans", sans-serif;
  --ctre-ink: #1e293b;
  --ctre-ink-soft: #334155;
  --ctre-link: #0c57a2;
  --ctre-link-hover: #044483;
  --ctre-paper: #ffffff;
  --ctre-wash: #f1f5f9;
  --ctre-line: #e2e8f0;
  --ctre-muted: #64748b;
  --ctre-radius: 8px;
  --ctre-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

html, body {
  margin: 0;
}

body {
  font-family: var(--ctre-font);
  color: var(--ctre-ink);
  background: var(--ctre-wash);
}

a {
  color: var(--ctre-link);
}
a:hover, a:focus {
  color: var(--ctre-link-hover);
}

.ctre-btn,
button.ctre-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--ctre-link);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ctre-btn:hover, .ctre-btn:focus {
  background: var(--ctre-link-hover);
  color: #fff;
}

/* Outer page + white framed panel (the “embedded iframe” look). */
.ctre-shell {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 1rem 0.75rem 2rem;
  background: var(--ctre-wash);
}

.ctre-frame {
  max-width: 72rem;
  margin: 0 auto;
  background: var(--ctre-paper);
  border: 1px solid var(--ctre-line);
  border-radius: var(--ctre-radius);
  box-shadow: var(--ctre-shadow);
}

.ctre-strip,
.ctre-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  font-family: var(--ctre-font);
  font-size: 12px;
  line-height: 1.4;
}

/* Legacy slim strip — superseded by .ctre-nav. Do not use both. */
.ctre-strip {
  background: var(--ctre-ink);
  color: #fff;
  padding: 0.45rem 1.25rem;
  border-radius: var(--ctre-radius) var(--ctre-radius) 0 0;
}
.ctre-strip a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.ctre-strip a:hover, .ctre-strip a:focus {
  color: #e2e8f0;
  text-decoration: underline;
}

.ctre-credit {
  background: var(--ctre-paper);
  color: var(--ctre-muted);
  padding: 0.7rem 1.25rem 0.9rem;
  border-top: 1px solid var(--ctre-line);
  border-radius: 0 0 var(--ctre-radius) var(--ctre-radius);
}
.ctre-credit a {
  color: var(--ctre-link);
  font-weight: 600;
  text-decoration: none;
}
.ctre-credit a:hover, .ctre-credit a:focus {
  color: var(--ctre-link-hover);
  text-decoration: underline;
}

/* The slim .ctre-strip header is retired. Use .ctre-nav (see ctre-nav.html)
   as the single top bar so the page is not two stacked headers. */

/* Main site navigation — full width, flush to the top of the page. */
.ctre-nav {
  background: #1e293b;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  border-bottom: 1px solid #0f172a;
}
.ctre-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 0.85rem;
  min-height: 3.1rem;
}
.ctre-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  padding: 0.45rem 0;
}
.ctre-nav-brand:hover,
.ctre-nav-brand:focus {
  color: #fff;
  text-decoration: none;
}
.ctre-nav-brand:hover .ctre-nav-name,
.ctre-nav-brand:focus .ctre-nav-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ctre-nav-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 4px;
  background: #0c57a2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ctre-nav-name {
  max-width: 14rem;
  line-height: 1.25;
}
.ctre-nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ctre-nav-burger {
  display: none;
  margin-left: auto;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  user-select: none;
}
.ctre-nav-burger:hover {
  border-color: #0c57a2;
  color: #fff;
}
.ctre-nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem 0.15rem;
  margin-left: auto;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ctre-nav-links a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.7rem 0.55rem;
  border-bottom: 2px solid transparent;
}
.ctre-nav-links a:hover,
.ctre-nav-links a:focus {
  color: #fff;
  border-bottom-color: #0c57a2;
  text-decoration: none;
}

@media (max-width: 960px) {
  .ctre-nav-burger { display: inline-flex; align-items: center; }
  .ctre-nav-name { display: none; }
  .ctre-nav-inner { flex-wrap: wrap; }
  .ctre-nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    overflow: visible;
    padding-bottom: 0.5rem;
  }
  .ctre-nav-toggle:checked ~ .ctre-nav-links { display: flex; }
  .ctre-nav-links a {
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .ctre-nav-links a:hover,
  .ctre-nav-links a:focus {
    color: #fff;
    border-bottom-color: #0c57a2;
  }
}

/* Featured image — full width of the content area, directly under the page title. */
.ctre-featured {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.35rem 0 1.15rem;
  object-fit: cover;
}


/* BIOS Homes one-page site */

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

html { scroll-behavior: smooth; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ctre-ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 30;
  text-decoration: none;
}
.skip:focus {
  left: 0;
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ctre-link);
  outline-offset: 2px;
}

.page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.75rem 1.35rem 2.5rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ctre-muted);
}

h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
  color: var(--ctre-ink);
}

.lede {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ctre-ink-soft);
  margin: 0 0 1.15rem;
}

.ctas,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
}

.ctas { margin: 0 0 2.35rem; }

.ctre-btn-secondary,
a.ctre-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--ctre-paper);
  color: var(--ctre-link);
  border: 1px solid var(--ctre-link);
  border-radius: 4px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ctre-btn-secondary:hover,
.ctre-btn-secondary:focus,
a.ctre-btn-secondary:hover,
a.ctre-btn-secondary:focus {
  background: #f0f5fa;
  color: var(--ctre-link-hover);
  border-color: var(--ctre-link-hover);
}

.ctas .ctre-btn,
.ctas .ctre-btn-secondary,
.contact-actions .ctre-btn,
.contact-actions .ctre-btn-secondary {
  padding: 0.7rem 1.2rem;
  min-height: 2.75rem;
}

section {
  margin: 0 0 2.35rem;
}
section:last-of-type { margin-bottom: 0.35rem; }

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 0.8rem;
  font-weight: 700;
  color: var(--ctre-ink);
}

.prose p {
  margin: 0;
  color: var(--ctre-ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.card {
  background: var(--ctre-paper);
  border: 1px solid var(--ctre-line);
  border-radius: var(--ctre-radius);
  padding: 1.05rem 1.15rem 1.2rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ctre-ink);
}

.card p {
  margin: 0;
  color: var(--ctre-ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact {
  background: #f8fafc;
  border: 1px solid var(--ctre-line);
  border-radius: var(--ctre-radius);
  padding: 1.3rem 1.25rem 1.45rem;
}

.contact p {
  margin: 0 0 0.85rem;
  color: var(--ctre-ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-list {
  margin: 0 0 1.05rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0.25rem 0;
  color: var(--ctre-ink-soft);
  font-size: 1.05rem;
}

.contact-list a {
  font-weight: 600;
  text-decoration: none;
}
.contact-list a:hover,
.contact-list a:focus {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ctre-shell { padding: 0 0 1.25rem; }
  .ctre-frame { border-radius: 0; border-left: 0; border-right: 0; }
  .page { padding: 1.35rem 1rem 2rem; }
}
