﻿/* ---------- Nav ---------- */
header.nav{
  position:sticky; top:0; z-index:80;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 40px;
  max-width:1400px; margin:0 auto;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family:'Fraunces', serif; font-weight:600; font-size:19px;
  color:var(--ink);
}
.logo img{
  height:58px;
  width:auto;
  display:block;
}
.logo svg{ width:24px; height:24px; flex-shrink:0; color:var(--ink); }

.nav-links{
  display:flex;
  gap:32px;
  align-items:center;
}
.nav-item{ position:relative; }
.nav-top{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  font-weight:500;
  color:var(--ink-soft);
  padding:8px 0;
  position:relative;
  transition:color .15s ease;
}
.nav-top::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:2px;
  height:1.5px;
  background:var(--ink);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .18s ease;
}
.nav-item:hover .nav-top,
.nav-item:focus-within .nav-top,
.nav-item.is-active .nav-top,
.nav-top:hover,
.nav-top.is-active{
  color:var(--ink);
}
.nav-item:hover .nav-top::after,
.nav-item:focus-within .nav-top::after,
.nav-item.is-active .nav-top::after,
.nav-top:hover::after,
.nav-top.is-active::after{
  transform:scaleX(1);
}
.nav-chevron{
  width:10px;
  height:7px;
  display:block;
  transition:transform .18s ease;
}
.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron{
  transform:rotate(180deg);
}

.nav-dropdown{
  position:absolute;
  top:100%;
  left:0;
  min-width:240px;
  padding:12px 0 14px;
  background:transparent;
  border:none;
  box-shadow:none;
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:90;
}
.nav-dropdown::before{
  content:"";
  position:absolute;
  top:12px; left:0; right:0; bottom:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 14px 34px rgba(30,29,22,0.10);
  z-index:-1;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.nav-dropdown a{
  display:block;
  padding:10px 22px;
  font-size:14px;
  font-weight:500;
  color:var(--ink);
  transition:color .15s ease, background .15s ease;
}
.nav-dropdown a:hover{
  color:var(--umber);
  background:var(--bg-soft);
}

.nav-cta{ display:flex; align-items:center; gap:20px; }
.nav-phone{ font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--ink-soft); display:flex; align-items:center; gap:6px; }
.nav-phone svg{ flex-shrink:0; }

.menu-toggle{
  display:none; flex-direction:column; gap:5px;
  width:36px; height:36px; align-items:center; justify-content:center;
  background:transparent; border:none; cursor:pointer; padding:0; flex-shrink:0;
}
.menu-toggle span{ width:22px; height:1.5px; background:var(--ink); transition:transform .25s ease, opacity .25s ease; }
.menu-toggle.active span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2){ opacity:0; }
.menu-toggle.active span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

.mobile-menu{ display:none; flex-direction:column; background:#fff; border-bottom:1px solid var(--line); padding:6px 40px 20px; }
.mobile-menu > a,
.mobile-nav-toggle{
  padding:14px 0;
  font-size:15.5px;
  font-weight:500;
  border-bottom:1px solid var(--line);
  color:var(--ink);
  width:100%;
  background:transparent;
  border-left:none;
  border-right:none;
  border-top:none;
  text-align:left;
  cursor:pointer;
  font-family:inherit;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.mobile-menu > a:last-of-type{ border-bottom:none; }
.mobile-menu .btn{ margin-top:14px; width:100%; justify-content:center; padding:12px 16px; font-size:13px; }
.mobile-nav-group{ border-bottom:1px solid var(--line); }
.mobile-nav-group .mobile-nav-toggle{ border-bottom:none; }
.mobile-nav-group.open .nav-chevron{ transform:rotate(180deg); }
.mobile-submenu{
  display:none;
  flex-direction:column;
  padding:0 0 10px 12px;
}
.mobile-nav-group.open .mobile-submenu{ display:flex; }
.mobile-submenu a{
  padding:10px 0;
  font-size:14.5px;
  font-weight:500;
  color:var(--ink-soft);
  border-bottom:none;
}
.mobile-submenu a:hover{ color:var(--umber); }

@media (max-width:960px){
  .nav-links{ display:none; }
  .nav-phone{ display:none; }
  .menu-toggle{ display:flex; }
  .mobile-menu.open{ display:flex; }
}

/* ---------- Footer ---------- */
footer{ background:var(--ink); color:rgba(255,255,255,0.68); padding:64px 0 36px; }
.footer-top{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.14); }
.footer-col h4{ font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.55); margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; font-size:14px; color:rgba(255,255,255,0.68); }
.footer-col ul li a:hover{ color:#fff; }
.footer-contact li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  max-width:240px;
  line-height:1.45;
}
.footer-contact-icon{
  flex-shrink:0;
  width:18px;
  height:18px;
  margin-top:2px;
  color:rgba(255,255,255,0.55);
}
.footer-contact-icon svg{ width:100%; height:100%; display:block; }
.footer-logo{ display:flex; align-items:center; gap:10px; font-family:'Fraunces', serif; font-size:19px; color:#fff; margin-bottom:14px; }
.footer-logo img{ height:92px; width:auto; display:block; }
.footer-logo svg{ width:22px; height:22px; color:#fff; }
.footer-brand p{ max-width:280px; font-size:13.5px; color:rgba(255,255,255,0.5); }
.footer-equal-housing{
  display:block;
  margin-top:18px;
  height:42px;
  width:auto;
  opacity:0.9;
}
.footer-contact-link{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:rgba(255,255,255,0.68);
  text-decoration:none;
  line-height:1.45;
}
.footer-contact-link:hover{ color:#fff; }
.footer-contact-link:hover .footer-contact-icon{ color:rgba(255,255,255,0.85); }
.footer-bottom{ padding-top:26px; font-size:12.5px; color:rgba(255,255,255,0.42); display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.footer-bottom .legal{ max-width:760px; line-height:1.7; }
.footer-bottom-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  text-align:right;
}
.footer-bottom-meta .powered-by{
  margin:0;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.42);
}
.footer-bottom-meta .powered-by a{
  color:inherit;
  text-decoration:underline;
}
.footer-bottom-meta .powered-by a:hover{ color:#fff; }
@media (max-width:640px){
  .footer-bottom-meta{ align-items:flex-start; text-align:left; }
}

@media (max-width:640px){
  .nav-inner{ padding:16px 22px; }
  .mobile-menu{ padding:6px 22px 20px; }
  .logo img{ height:48px; }
  .footer-logo img{ height:72px; }
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta{ display:none; }
@media (max-width:720px){
  .mobile-cta{ display:flex; position:fixed; bottom:0; left:0; right:0; z-index:70; background:#fff; border-top:1px solid var(--line); padding:10px 14px; gap:8px; box-shadow:0 -8px 24px rgba(0,0,0,0.06); }
  .mobile-cta .btn{ flex:1; padding:10px 12px; font-size:12.5px; min-height:0; }
  body{ padding-bottom:64px; }
}
