:root {
  --navy: #0b1f3a;
  --blue: #143f73;
  --light-blue: #eaf3ff;
  --gold: #c8a45d;
  --gold-soft: #fff2cf;
  --cream: #fbf5ea;
  --white: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #e9dfd0;
  --shadow: 0 24px 70px rgba(11,31,58,.14);
  --shadow-strong: 0 34px 110px rgba(11,31,58,.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,242,207,.75), transparent 36rem),
    linear-gradient(180deg, #fbf5ea 0%, #fffaf2 52%, #ffffff 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 5vw;
  background: rgba(251,245,234,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233,223,208,.8);
}

.brand {
  display: grid;
  gap: .15rem;
  font-weight: 1000;
  color: var(--navy);
}

.brand span {
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.brand small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}

nav a {
  padding: .58rem .78rem;
  border-radius: 999px;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 900;
}

nav a:hover {
  background: var(--gold-soft);
}

.language-pill {
  background: var(--navy);
  color: #fff;
}

.language-pill:hover {
  background: var(--blue);
}

main {
  width: 100%;
}

.graphic-hero,
.page-wrap {
  width: min(1220px, 90vw);
  margin: 0 auto;
}

.graphic-hero {
  position: relative;
  padding: 4.4rem 0 3.5rem;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .75;
  pointer-events: none;
}

.shape-one {
  width: 24rem;
  height: 24rem;
  right: -8rem;
  top: 2rem;
  background: rgba(200,164,93,.23);
}

.shape-two {
  width: 18rem;
  height: 18rem;
  left: -6rem;
  bottom: 2rem;
  background: rgba(20,63,115,.12);
}

.hero-top,
.page-hero,
.section-heading,
.showcase-intro {
  position: relative;
  z-index: 2;
}

.hero-top {
  max-width: 820px;
  margin: 0 auto 2.8rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.065em;
}

.index-page .hero-top h1 {
  font-size: clamp(1.55rem, 4vw, 3.6rem);
  line-height: 1.02;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

h3 {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-top p {
  max-width: 710px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
}

.graphic-stage {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 430px) 1fr;
  grid-template-rows: auto auto;
  gap: 1.2rem;
  align-items: center;
}

.feature-box {
  min-height: 190px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(200,164,93,.65);
}

.feature-box span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--navy);
  font-weight: 1000;
}

.feature-box h2 {
  margin-bottom: .55rem;
  font-size: 1.8rem;
}

.feature-box p {
  margin-bottom: 0;
  font-size: .95rem;
}

.box-explore {
  grid-column: 1;
  grid-row: 1;
  margin-right: 1.2rem;
}

.box-homes {
  grid-column: 3;
  grid-row: 1;
  margin-left: 1.2rem;
}

.box-investment {
  grid-column: 1;
  grid-row: 2;
  margin-right: 1.2rem;
}

.box-rentals {
  grid-column: 3;
  grid-row: 2;
  margin-left: 1.2rem;
}

.photo-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 1rem;
}

.photo-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid rgba(200,164,93,.45);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,242,207,.65));
  box-shadow: var(--shadow-strong);
}

.photo-frame {
  order: 2;
  overflow: hidden;
  border-radius: 34px;
  background: #e7d8c3;
  aspect-ratio: 4 / 5;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.quick-guidance-box {
  order: 1;
  position: static;
  transform: none;
  z-index: 8;
  width: 100%;
  padding: .85rem .95rem;
  border-radius: 20px;
  background: rgba(11,31,58,.94);
  color: #fff;
  text-align: center;
  border: 2px solid var(--gold);
  box-shadow: 0 18px 45px rgba(11,31,58,.24);
  animation: quickPulse 1.35s infinite;
}

.quick-guidance-box span {
  display: block;
  margin-bottom: .55rem;
  font-size: .88rem;
  font-weight: 1000;
  letter-spacing: .04em;
}

.quick-guidance-box div {
  display: flex;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.quick-guidance-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .42rem .62rem;
  border-radius: 999px;
  background: #fff2cf;
  color: var(--navy);
  font-size: .76rem;
  font-weight: 1000;
}

.quick-guidance-box a:hover {
  background: #fff;
}

@keyframes quickPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 18px 45px rgba(11,31,58,.24), 0 0 0 0 rgba(200,164,93,.72);
  }

  50% {
    opacity: .82;
    box-shadow: 0 18px 45px rgba(11,31,58,.24), 0 0 0 10px rgba(200,164,93,0);
  }
}

.name-card {
  order: 3;
  position: static;
  padding: 1.15rem;
  border-radius: 26px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 16px 40px rgba(11,31,58,.12);
}

.name-card h2 {
  margin-bottom: .25rem;
  font-size: 2rem;
}

.name-card p:last-child {
  margin-bottom: 0;
  font-size: .9rem;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.trust-strip div {
  padding: 1rem .75rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: #fff;
  font-size: .95rem;
}

.trust-strip span {
  color: rgba(255,255,255,.68);
  font-size: .72rem;
  font-weight: 800;
}

.welcome-card,
.testimonials,
.lead-section,
.explore-showcase,
.manual-property-section,
.crm-login-card {
  margin: 2rem auto;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.welcome-card {
  width: min(1050px, 90vw);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.welcome-icon {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 28px;
  background: var(--navy);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 1000;
  box-shadow: 0 18px 42px rgba(11,31,58,.24);
}

.cta-row {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.button,
button {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .82rem 1.15rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 1000;
  font-size: .92rem;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  background: var(--blue);
  box-shadow: 0 14px 32px rgba(11,31,58,.18);
}

.button.primary {
  background: var(--navy);
  color: #fff;
}

.button.secondary,
button.secondary,
.secondary {
  background: var(--gold-soft);
  color: var(--navy);
}

.button.secondary:hover,
button.secondary:hover,
.secondary:hover {
  background: #ffe7aa;
}

button.danger {
  background: #b42318;
}

button.danger:hover {
  background: #912018;
}

.testimonials {
  width: min(1220px, 90vw);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.testimonial-grid article {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.stars {
  margin-bottom: .65rem;
  color: var(--gold);
  letter-spacing: .08em;
}

.testimonial-grid p {
  margin-bottom: 0;
  font-size: .9rem;
}

.page-wrap {
  padding: 2.6rem 0 3rem;
}

.page-hero {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,242,207,.58)),
    radial-gradient(circle at right top, rgba(200,164,93,.25), transparent 25rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.03rem;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 2rem;
  align-items: start;
}

.lead-form {
  display: grid;
  gap: .9rem;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.crm-tools input,
.crm-tools select {
  width: 100%;
  min-height: 48px;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.lead-form textarea {
  min-height: 120px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.crm-tools input:focus,
.crm-tools select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,164,93,.15);
}

.form-note {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.form-success {
  min-height: 1.2rem;
  color: var(--blue);
  font-weight: 900;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: .5rem;
}

.wizard-progress span {
  padding: .7rem .8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  text-align: center;
}

.wizard-progress span.active {
  background: var(--navy);
  color: #fff;
}

.wizard-step {
  display: none;
  gap: .9rem;
}

.wizard-step.active {
  display: grid;
}

.wizard-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.guidance-output {
  padding: 1.3rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,242,207,.78));
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(11,31,58,.1);
}

.guidance-output h3 {
  margin-bottom: .65rem;
  font-size: 1.45rem;
}

.guidance-output p {
  margin-bottom: .7rem;
}

.guidance-output small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.explore-showcase,
.manual-property-section {
  margin-top: 2rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.video-card,
.property-card,
.manual-property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(11,31,58,.1);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-fallback-link {
  padding: 1rem;
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
}

.video-fallback-link a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.property-photo-space,
.property-image-placeholder,
.manual-property-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(200,164,93,.38), rgba(255,242,207,.72)),
    linear-gradient(180deg, #d9c3a3, #f4eadb);
}

.property-photo-space img,
.manual-property-image img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
}

.manual-property-image > span:not(.photo-placeholder),
.property-link-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 3;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(11,31,58,.92);
  color: white;
  font-size: .76rem;
  font-weight: 1000;
}

.property-card-content,
.manual-property-content {
  padding: 1.4rem;
}

.property-card-content p:last-of-type,
.manual-property-content p {
  margin-bottom: 1rem;
}

.manual-property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.manual-property-card h3 {
  margin-bottom: .55rem;
}

.bottom-contact-bar {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 1.1rem 5vw;
}

.bottom-contact-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .94rem;
}

.bottom-contact-left,
.bottom-contact-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.bottom-contact-right {
  margin-left: auto;
}

.bottom-contact-inner a {
  color: #f6d28b;
  font-weight: 800;
}

.bottom-contact-inner a:hover {
  color: #fff;
}

.social-icons {
  gap: .75rem;
}

.social-icons a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(246, 210, 139, .14);
  border: 1px solid rgba(246, 210, 139, .35);
  color: #f6d28b;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.social-icons a:hover {
  background: #f6d28b;
  color: #000;
  transform: translateY(-2px);
}

.social-icons svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

footer {
  padding: 1.25rem 5vw;
  background: #050505;
  color: rgba(255,255,255,.65);
  text-align: center;
}

footer p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: .86rem;
}

.crm-private-page {
  background: #f6efe4;
}

.crm-login-card {
  max-width: 540px;
}

.login-error {
  min-height: 1.2rem;
  color: #b42318;
  font-weight: 900;
}

.crm-dashboard-hidden {
  display: none;
}

.crm-dashboard-visible {
  display: block;
}

.logout-button {
  margin-top: .8rem;
}

.crm-tools {
  display: grid;
  grid-template-columns: 1fr 220px auto auto;
  gap: .8rem;
  margin: 1.3rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(11,31,58,.08);
}

.crm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(11,31,58,.08);
}

.crm-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.crm-table th,
.crm-table td {
  padding: .9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: .88rem;
}

.crm-table th {
  color: var(--navy);
  background: var(--gold-soft);
  font-weight: 1000;
}

.crm-table td {
  color: var(--ink);
}

.crm-table tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  display: none;
  padding: 1.2rem;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  padding: .38rem .62rem;
  border-radius: 999px;
  background: var(--light-blue);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 1000;
}

@media (max-width: 1040px) {
  .graphic-stage {
    grid-template-columns: 1fr 1fr;
  }

  .photo-panel {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 430px;
    margin: 0 auto;
  }

  .box-explore,
  .box-homes,
  .box-investment,
  .box-rentals {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
  }

  .box-explore {
    grid-column: 1;
    grid-row: 2;
  }

  .box-homes {
    grid-column: 2;
    grid-row: 2;
  }

  .box-investment {
    grid-column: 1;
    grid-row: 3;
  }

  .box-rentals {
    grid-column: 2;
    grid-row: 3;
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .manual-property-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lead-section {
    grid-template-columns: 1fr;
  }

  .crm-tools {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .graphic-hero {
    padding-top: 2.6rem;
  }

  .graphic-stage {
    grid-template-columns: 1fr;
  }

  .photo-panel,
  .box-explore,
  .box-homes,
  .box-investment,
  .box-rentals {
    grid-column: 1;
    grid-row: auto;
  }

  .welcome-card {
    grid-template-columns: 1fr;
  }

  .testimonial-grid,
  .manual-property-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .wizard-progress {
    grid-template-columns: 1fr;
  }

  .video-embed {
    min-height: 300px;
  }

  .property-photo-space img,
  .manual-property-image img {
    height: 220px;
  }

  .bottom-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottom-contact-left,
  .bottom-contact-right {
    align-items: flex-start;
  }

  .bottom-contact-right {
    margin-left: 0;
  }

  .crm-tools {
    grid-template-columns: 1fr;
  }
}

/* Integrated area-guide navigation and hub */
.area-guides-section {
  width: min(1220px, 90vw);
  margin: 1.5rem auto 4rem;
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}
.page-wrap .area-guides-section {
  width: 100%;
}
.area-guide-grid,
.area-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.area-guide-card,
.area-hub-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(11,31,58,.07);
}
.area-guide-card h3,
.area-hub-card h2 {
  margin-bottom: .6rem;
}
.area-guide-card p,
.area-hub-card p {
  margin-bottom: 1rem;
}
.area-guide-link {
  color: var(--blue);
  font-weight: 1000;
}
.area-guide-link:hover {
  text-decoration: underline;
}
.area-guides-all {
  margin-top: 1.25rem;
}
.area-hub-grid {
  margin: 0 0 2rem;
}
.area-hub-card h2 {
  font-size: 1.7rem;
}
.area-hub-note {
  margin: 2rem 0 4rem;
  padding: 2rem;
  border-radius: 28px;
  background: var(--light-blue);
}
.bottom-contact-left a:hover {
  text-decoration: underline;
}

@media (max-width: 1040px) {
  .area-guide-grid,
  .area-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .area-guides-section { padding: 1.35rem; border-radius: 26px; }
  .area-guide-grid,
  .area-hub-grid { grid-template-columns: 1fr; }
}


/* Area directory uses the same property-card components as the rest of the site. */
.area-directory-section,
.area-directory-note {
  width: 100%;
}
.area-directory-card {
  height: 100%;
}
.area-directory-card .manual-property-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 190px);
}
.area-directory-card .manual-property-content .button {
  margin-top: auto;
  align-self: flex-start;
}
.area-guide-image {
  min-height: 190px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.28), transparent 8rem),
    linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
}
.area-guide-image strong {
  max-width: 82%;
  padding: 1.2rem;
  color: #fff;
  font-size: clamp(1.45rem,3vw,2.2rem);
  line-height: 1;
  letter-spacing: -.04em;
  text-align: center;
}
.area-directory-note .section-heading {
  margin-bottom: 0;
}

/* === ByDan header logo — top left (2026-08-12) ===
   Absolute positioning keeps the logo from increasing the header/bar height. */
.site-header {
  isolation: isolate;
}

/* Reserve space on the left for the overlaid logo while leaving the nav unchanged. */
.site-header .brand {
  margin-left: 5.4rem;
}

.site-header nav {
  margin-right: 0;
}

.header-brand-logo {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: max(1rem, 2.2vw);
  right: auto;
  width: 4.55rem;
  height: 3.45rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .55rem;
  overflow: hidden;
  line-height: 0;
}

.header-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-brand-logo:hover {
  transform: translateY(-50%) scale(1.025);
}

@media (max-width: 980px) and (min-width: 681px) {
  .site-header .brand {
    margin-left: 4.3rem;
  }
  .site-header nav {
    margin-right: 0;
    gap: .35rem;
  }
  .site-header nav a {
    padding-left: .56rem;
    padding-right: .56rem;
    font-size: .82rem;
  }
  .header-brand-logo {
    width: 3.65rem;
    height: 2.77rem;
    left: 1rem;
    right: auto;
  }
}

@media (max-width: 680px) {
  .site-header .brand {
    margin-left: 0;
    padding-left: 4.8rem;
    padding-right: 0;
  }
  .site-header nav {
    margin-right: 0;
  }
  .header-brand-logo {
    top: .62rem;
    left: 5vw;
    right: auto;
    width: 3.9rem;
    height: 2.95rem;
    transform: none;
  }
  .header-brand-logo:hover {
    transform: scale(1.025);
  }
}
/* === End ByDan header logo === */



/* === About Dan + FAQ pages (2026-09-05) === */
.authority-hero { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr); gap:2rem; align-items:center; }
.authority-hero .profile-photo { border-radius:28px; overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow); background:#fff; }
.authority-hero .profile-photo img { width:100%; aspect-ratio:1/1; object-fit:cover; display:block; }
.authority-tags { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1.15rem; }
.authority-tags span { padding:.45rem .7rem; border-radius:999px; background:var(--gold-soft); color:var(--navy); font-size:.82rem; font-weight:900; }
.authority-section { margin-top:2rem; padding:clamp(1.35rem,3vw,2rem); border:1px solid var(--line); border-radius:28px; background:#fff; box-shadow:0 12px 30px rgba(11,31,58,.06); }
.authority-section h2 { margin-bottom:.65rem; font-size:clamp(1.55rem,3vw,2.25rem); }
.authority-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(250px,.6fr); gap:2rem; align-items:start; }
.authority-prose p { color:#354154; }
.authority-facts { list-style:none; padding:0; margin:0; border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.authority-facts li { padding:.85rem 1rem; border-bottom:1px solid var(--line); background:#fffaf0; }
.authority-facts li:last-child { border-bottom:0; }
.authority-facts strong { display:block; color:var(--muted); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:.12rem; }
.authority-service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.authority-card { border:1px solid var(--line); border-radius:20px; background:#fffaf0; padding:1.15rem; }
.authority-card h3 { margin-bottom:.45rem; font-size:1.05rem; }
.authority-card p { margin-bottom:0; color:#415065; font-size:.92rem; }
.authority-link-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.authority-source { display:block; padding:1rem 1.05rem; border:1px solid var(--line); border-radius:18px; background:#fff; text-decoration:none; }
.authority-source:hover { background:#fff8e8; }
.authority-source strong { display:block; color:var(--navy); }
.authority-source span { display:block; margin-top:.25rem; color:var(--muted); font-size:.84rem; }
.authority-areas { display:flex; flex-wrap:wrap; gap:.65rem; }
.authority-areas a { padding:.62rem .78rem; border-radius:999px; border:1px solid var(--line); background:#fff; font-weight:900; text-decoration:none; }
.authority-areas a:hover { background:var(--gold-soft); }
.authority-quote-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.authority-quote { margin:0; padding:1.15rem; border-radius:20px; background:#fffaf0; border:1px solid var(--line); }
.authority-quote blockquote { margin:.45rem 0 0; color:#26364a; }
.authority-note { padding:.9rem 1rem; border-left:4px solid var(--gold); background:#fff8e7; color:#4a4a45; }
.faq-page .faq-toolbar { display:flex; flex-wrap:wrap; gap:.75rem; justify-content:space-between; align-items:center; margin:1.25rem 0 .8rem; }
.faq-page .faq-toolbar p { margin:0; color:var(--muted); }
.faq-page .faq-actions { display:flex; gap:.5rem; }
.faq-page details, .authority-faq details { border:1px solid var(--line); border-radius:18px; background:#fff; margin:.7rem 0; overflow:hidden; }
.faq-page summary, .authority-faq summary { cursor:pointer; list-style:none; position:relative; padding:1.05rem 3.1rem 1.05rem 1.1rem; font-weight:1000; color:var(--navy); }
.faq-page summary::-webkit-details-marker, .authority-faq summary::-webkit-details-marker { display:none; }
.faq-page summary::after, .authority-faq summary::after { content:'+'; position:absolute; right:1.1rem; top:.8rem; font-size:1.5rem; color:var(--gold); }
.faq-page details[open] summary::after, .authority-faq details[open] summary::after { content:'–'; }
.faq-page .answer, .authority-faq .faq-answer { padding:0 1.1rem 1.15rem; color:#354154; }
.faq-page .answer p, .authority-faq .faq-answer p { margin-bottom:.75rem; }
.faq-page .answer ul { margin-top:.25rem; padding-left:1.25rem; }
.faq-page .answer li { margin:.4rem 0; }
.faq-page .direct { font-size:1rem; color:#19283c; }
.faq-page .note { padding:.85rem 1rem; border-left:4px solid var(--gold); background:#fff8e7; }
.faq-page .source-link { font-weight:900; color:#163f73; }
.faq-page .example-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem; margin:.8rem 0 1rem; }
.faq-page .example-card { padding:.8rem; border:1px solid var(--line); border-radius:16px; background:#fffaf0; }
.faq-page .example-card b, .faq-page .example-card span { display:block; }
.faq-page .example-card span { margin-top:.2rem; font-weight:1000; color:var(--navy); }
.page-cta { display:flex; align-items:center; justify-content:space-between; gap:1.2rem; margin-top:2rem; padding:1.4rem; border-radius:24px; background:var(--navy); color:#fff; }
.page-cta h2 { color:#fff; margin-bottom:.35rem; }
.page-cta p { color:#e5ecf6; margin-bottom:0; }
.page-cta .button { flex:0 0 auto; background:var(--gold-soft); color:var(--navy); }
.page-disclaimer { margin-top:1rem; color:var(--muted); font-size:.82rem; }
@media (max-width: 980px) { .authority-service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .authority-quote-grid { grid-template-columns:1fr; } }
@media (max-width: 780px) { .authority-hero, .authority-layout { grid-template-columns:1fr; } .authority-hero .profile-photo { max-width:420px; } .authority-link-grid { grid-template-columns:1fr; } .page-cta { display:block; } .page-cta .button { margin-top:1rem; } }
@media (max-width: 620px) { .authority-service-grid, .faq-page .example-grid { grid-template-columns:1fr; } }
/* === End About Dan + FAQ pages === */


/* 2026-09-05 About Dan photo + FAQ readability refinement */
.authority-hero {
  grid-template-columns:minmax(0,1fr) auto;
}
.authority-hero .profile-photo {
  width:60px;
  max-width:60px;
  justify-self:end;
  border-radius:14px;
  box-shadow:0 10px 28px rgba(11,31,58,.14);
}
.authority-hero .profile-photo img {
  width:60px;
  height:60px;
  aspect-ratio:1/1;
}

.faq-page .faq-list {
  counter-reset:faq-question;
  display:grid;
  gap:1rem;
}
.faq-page .faq-list details {
  counter-increment:faq-question;
  margin:0;
  border:2px solid #d8e3f0;
  border-left:7px solid var(--blue);
  border-radius:20px;
  background:linear-gradient(135deg,#ffffff 0%,#f7fbff 100%);
  box-shadow:0 8px 24px rgba(11,31,58,.07);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.faq-page .faq-list details:nth-child(4n+2) {
  border-left-color:var(--gold);
  background:linear-gradient(135deg,#fffdf7 0%,#fff7e4 100%);
}
.faq-page .faq-list details:nth-child(4n+3) {
  border-left-color:#557a95;
  background:linear-gradient(135deg,#ffffff 0%,#f2f7f9 100%);
}
.faq-page .faq-list details:nth-child(4n+4) {
  border-left-color:#8b6e42;
  background:linear-gradient(135deg,#fffefa 0%,#f8f1e6 100%);
}
.faq-page .faq-list details:hover {
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(11,31,58,.11);
}
.faq-page .faq-list details[open] {
  border-color:#b9cbe0;
  box-shadow:0 16px 38px rgba(11,31,58,.12);
}
.faq-page .faq-list summary {
  display:flex;
  align-items:center;
  min-height:72px;
  padding:1rem 3.25rem 1rem 1rem;
  font-size:1.04rem;
  line-height:1.4;
}
.faq-page .faq-list summary::before {
  content:'Q' counter(faq-question);
  flex:0 0 auto;
  display:inline-grid;
  place-items:center;
  min-width:2.65rem;
  height:2.05rem;
  margin-right:.85rem;
  padding:0 .45rem;
  border-radius:999px;
  background:var(--navy);
  color:#fff;
  font-size:.78rem;
  font-weight:1000;
  letter-spacing:.02em;
  box-shadow:0 5px 14px rgba(11,31,58,.16);
}
.faq-page .faq-list details[open] summary {
  border-bottom:1px solid rgba(20,63,115,.13);
}
.faq-page .faq-list .answer {
  padding:.95rem 1.2rem 1.3rem 4.55rem;
}
.faq-page .source-link {
  display:inline;
  padding:.08rem .28rem .12rem;
  border-radius:.34rem;
  background:#e3efff;
  color:#0b3f79;
  font-weight:1000;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:2px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
.faq-page .source-link::after {
  content:' ↗';
  font-size:.82em;
  font-weight:1000;
  text-decoration:none;
}
.faq-page .source-link:hover,
.faq-page .source-link:focus-visible {
  background:var(--gold-soft);
  color:var(--navy);
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.faq-page .source-legend {
  margin:.25rem 0 1.15rem;
  padding:.72rem .9rem;
  border:1px solid #cbd9ea;
  border-radius:12px;
  background:#f4f8fd;
  color:#44536a;
  font-size:.92rem;
}
.faq-page .source-legend .source-demo {
  display:inline-block;
  margin-left:.25rem;
  padding:.08rem .28rem .12rem;
  border-radius:.34rem;
  background:#e3efff;
  color:#0b3f79;
  font-weight:1000;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:2px;
}

@media (max-width:780px) {
  .authority-hero .profile-photo {
    width:60px;
    max-width:60px;
    justify-self:start;
  }
  .faq-page .faq-list .answer {
    padding:.9rem 1rem 1.2rem;
  }
  .faq-page .faq-list summary {
    padding:.95rem 3rem .95rem .85rem;
    font-size:1rem;
  }
  .faq-page .faq-list summary::before {
    min-width:2.4rem;
    height:1.9rem;
    margin-right:.65rem;
    font-size:.74rem;
  }
}
