@charset "utf-8";
/* CSS Document */


/* ==========================================================
   CRE LOAN ADVISOR 2025
   Global Theme + Navigation + Layout
   CoffeeCup-free version
   ========================================================== */

/* ---------- Root Color Tokens ---------- */
:root {
  --cre-bg-dark: #0b1324;
  --cre-blue: #0b5bd3;
  --cre-blue-hover: #0a4fb8;
  --cre-gold: #d4af37;
  --cre-light: #e5e7eb;
  --cre-white: #ffffff;
  --cre-glass: rgba(255, 255, 255, 0.66);
  --cre-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  --cre-radius: 12px;
  --cre-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Global Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
}

/* ---------- Body & Background ---------- */
body.body-1 {
  font-family: var(--cre-font);
  line-height: 1.6;
  color: var(--cre-light);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(96,165,250,.08), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(52,211,153,.07), transparent 55%),
    url("/images/backgrounds/apartments.jpg") center/cover fixed no-repeat,
    #0f172a;
}

/* ---------- Generic Containers ---------- */
main, section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
h1, h2, h3, h4, h5 {
  font-weight: 600;
  color: var(--cre-white);
  line-height: 1.2;
}
p { margin-bottom: 1rem; }

/* ==========================================================
   NAVIGATION BAR
   ========================================================== */
.cre-nav {
  background: #0e1a6a;
  color: var(--cre-white);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: var(--cre-shadow);
  width: 100%;
}
.cre-nav__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.cre-nav__logo img {
  height: 42px;
  width: auto;
  display: block;
}
.cre-nav__toggle {
  justify-self: end;
  font-size: 1.6rem;
  cursor: pointer;
  background: none;
  border: 0;
  color: var(--cre-white);
  padding: .25rem .5rem;
  display: none;
}

/* Center links in middle column */
.cre-nav__links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  flex-wrap: wrap;
}
.cre-nav__links > a,
.cre-nav__dd-toggle {
  color: var(--cre-white);
  text-decoration: none;
  padding: .65rem .9rem;
  border-radius: .35rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease;
}
.cre-nav__links > a:hover,
.cre-nav__dd-toggle:hover {
  background: rgba(255,255,255,.12);
}

/* Dropdown */
.cre-nav__dd {
  position: relative;
}
.cre-nav__dd-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #14248a;
  border: 1px solid rgba(255,255,255,.15);
  min-width: 240px;
  display: none;
  flex-direction: column;
  padding: .35rem 0;
  border-radius: .5rem;
  box-shadow: var(--cre-shadow);
}
.cre-nav__dd-menu a {
  color: var(--cre-white);
  text-decoration: none;
  padding: .6rem .9rem;
  white-space: nowrap;
  display: block;
}
.cre-nav__dd-menu a:hover {
  background: rgba(255,255,255,.12);
}
@media (min-width: 769px) {
  .cre-nav__dd:hover .cre-nav__dd-menu {
    display: flex;
  }
}
.cre-nav__caret {
  font-size: .85em;
  transition: transform .2s ease;
}
.cre-nav__dd-toggle[aria-expanded="true"] .cre-nav__caret {
  transform: rotate(180deg);
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 768px) {
  .cre-nav {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .cre-nav__toggle {
    display: inline-block;
    justify-self: center;
  }
  .cre-nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.15);
    grid-column: 1;
  }
  .cre-nav__links.cre--open { display: flex; }
  .cre-nav__links > a,
  .cre-nav__dd-toggle {
    width: 100%;
    text-align: center;
  }
  .cre-nav__dd.cre--open .cre-nav__dd-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.15);
    width: 100%;
  }
}

/* ==========================================================
   HERO / HEADER
   ========================================================== */
.cre-hero {
  text-align: center;
  color: var(--cre-white);
  margin: 2rem auto 1rem;
  max-width: 1100px;
  padding: 0 1.5rem;
}
.cre-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: .4rem;
}
.cre-hero__subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--cre-light);
}
.cre-hero__types {
  display: block;
  opacity: .9;
  margin-top: .25rem;
}

/* ==========================================================
   CONTENT SECTIONS
   ========================================================== */
.cre-home {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.cre-home__hero {
  text-align: center;
  margin: 1rem 0 2rem;
}
.cre-home__hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--cre-radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* ---------- Narrative card ---------- */
.cre-card {
  background: var(--cre-glass);
  color: var(--cre-bg-dark);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  margin-bottom: 2rem;
}
.cre-card h2 {
  color: var(--cre-blue);
  margin-bottom: .5rem;
}

/* ---------- Programs grid ---------- */
.cre-section h2 {
  text-align: center;
  margin: 0 0 1rem;
  color: var(--cre-white);
}
.cre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 860px) {
  .cre-grid { grid-template-columns: 1fr; }
}
.cre-tile {
  background: rgba(255,255,255,.95);
  border-radius: var(--cre-radius);
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.cre-tile h3 {
  color: var(--cre-blue-hover);
  font-size: 1.2rem;
  margin-bottom: .3rem;
}
.cre-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.cre-list li {
  margin: .3rem 0;
  color: var(--cre-bg-dark);
}

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cre-cta {
  text-align: center;
  margin-top: 2rem;
  color: var(--cre-light);
}
.cre-btn {
  display: inline-block;
  background: var(--cre-blue);
  color: var(--cre-white);
  border: none;
  border-radius: 10px;
  padding: .8rem 1.3rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .2s ease, box-shadow .2s ease, transform .06s ease;
}
.cre-btn:hover {
  background: var(--cre-blue-hover);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.cre-btn:active {
  transform: translateY(1px);
}
.cre-btn:focus {
  outline: 2px solid rgba(11,91,211,.35);
  outline-offset: 2px;
}

/* ==========================================================
   FOOTER (minimal, optional)
   ========================================================== */
.site-footer {
  text-align: center;
  font-size: .9rem;
  padding: 1rem;
  color: var(--cre-light);
  background: rgba(0,0,0,.35);
}
.site-footer a {
  color: var(--cre-gold);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--cre-white);
}

/* ==========================================================
   MISC UTILS
   ========================================================== */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
/* ==========================================================
   Full-page Translucent Background Section
   (covers both “Advisory Approach” + “Programs”)
   ========================================================== */
.cre-section-bg {
  background: rgba(14, 26, 106, 0.75); /* deep blue with 75% opacity */
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 18px;
  max-width: 1200px;
  margin: 3rem auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Headings inside */
.cre-section-bg h2,
.cre-section-bg h3 {
  color: #ffd700; /* gold highlight */
  text-align: center;
}

/* Links inside */
.cre-section-bg a {
  color: #ffeb3b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cre-section-bg a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Paragraphs */
.cre-section-bg p {
  line-height: 1.6;
  text-align: center;
}

/* Lists */
.cre-section-bg ul {
  list-style: none;
  padding-left: 0;
}
.cre-section-bg li {
  margin: 6px 0;
}
/* ===== Hero header styling to match screenshot ===== */
.container-header{
  text-align:center;
  margin: 22px auto 14px;
  max-width: 2000px;
  padding: 0 16px;
}

/* 1) HUGE ALL-CAPS white H1 with drop shadow */
.container-header .heading-2{
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 900;
  color: #ffffff;
  /* responsive size: ~48–90px depending on width */
  font-size: clamp(30px, 7vw, 60px);
  line-height: 1.05;
  margin: 6px 0 10px;

  /* stacked shadow for depth like your image */
  text-shadow:
     0 2px 0 rgba(0,0,0,.25),
     0 6px 14px rgba(0,0,0,.35);
}

/* 2) Bold black sub-title line: “Bridge and Conventional Real Estate Loans” */
.container-header .paragraph-1{
  margin: 0 auto 8px;
  max-width: 1100px;
  line-height: 1.45;
  color: #000;               /* default for children */
}
.container-header .paragraph-1 .paragraph-text-2{
  display: inline-block;
  font-weight: 800;
  color: #000;               /* solid black */
  font-size: clamp(22px, 2.6vw, 34px);
}

/* 3) Italic property types line in black */
.container-header .paragraph-1 .paragraph-text-6{
  display: inline-block;
  font-style: italic;
  color: #000;               /* solid black */
  font-size: clamp(18px, 2.2vw, 28px);
}

/* Optional: tighten spacing on small screens */
@media (max-width: 520px){
  .container-header .heading-2{ letter-spacing: .8px; }
}
/* Add spacing below the main Programs & Property Types heading */
#programs.heading-3 {
  margin-bottom: 1.5rem;
}

/* Headings above lists — remove extra margin */
.heading-4 {
  margin-bottom: 0.2rem; /* tighter than before */
}

/* Clean, compact list style */
.list-clean {
  list-style: none;
  padding-left: 0;
  margin-top: 0;          /* eliminate top gap */
  margin-bottom: 0.6rem;  /* small gap after list */
}

/* Force no gap between subheadings and lists */
.heading-4 + .list-clean {
  margin-top: 0 !important;
}

/* ---- Kill the extra space only inside the Programs tiles ---- */
.cre-section .cre-grid .cre-tile h3,
.cre-section .cre-grid .cre-tile .heading-4 {
  margin-top: 0;
  margin-bottom: 0.15rem;   /* tighter than global */
  line-height: 1.2;
}

.cre-section .cre-grid .cre-tile ul,
.cre-section .cre-grid .cre-tile .list-clean {
  margin-top: 0 !important; /* ensure no gap under h3 */
  margin-bottom: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.cre-section .cre-grid .cre-tile ul li {
  margin: 0.3rem 0;         /* keep bullets comfy */
}
/* === Kill the space between H3 and UL in Programs section === */
section[aria-labelledby="programs"] h3 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;   /* ensure no bottom margin on the heading */
  line-height: 1.2;
}

section[aria-labelledby="programs"] h3 + ul {
  margin-top: 0 !important;      /* ensure the list doesn't add a top gap */
  padding-top: 0 !important;
}

/* Just in case the third column has anything special applied,
   tighten that specific tile as a fallback. */
section[aria-labelledby="programs"] .grid > div:nth-child(3) h3 {
  margin-bottom: 0 !important;
}
section[aria-labelledby="programs"] .grid > div:nth-child(3) ul {
  margin-top: 0 !important;
}
.cre-tile--tight h3 { margin-bottom: 0 !important; }
.cre-tile--tight ul { margin-top: 0 !important; }
/* ==========================================================
   Gold Border + Transparent Tile Style
   ========================================================== */
.cre-tile {
  background: rgba(255, 255, 255, 0.05); /* mostly transparent */
  border: 2px solid var(--cre-gold);     /* gold border */
  border-radius: var(--cre-radius);
  padding: 20px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cre-tile:hover {
  transform: translateY(-3px);
  border-color: #ffd700; /* brighter gold on hover */
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Keep lists readable inside transparent background */
.cre-tile h3 {
  color: var(--cre-gold);
  margin-bottom: 0.25rem;
}
.cre-tile ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}
.cre-tile li {
  color: var(--cre-light);
  margin: 0.25rem 0;
}
/* DSCR Calculator visual alignment */
.cre-card {
  background: rgba(255,255,255,0.9);
  color: #0b1324;
  border: 2px solid rgba(212,175,55,0.5);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.cre-card h2 {
  color: #d4af37;
  text-align: center;
  margin-bottom: 1rem;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/backgrounds/apartments.jpg') center / cover no-repeat;
  background-attachment: scroll; /* avoids iOS bug */
  z-index: -1;
}

